010-3035929
info@developers.nl
Home
Over ons
Expertise
TechNights
Blog
Werken bij
Werken via
Contact
Blog
Cd part xviii create smoketest
10/03/2017
2 minuten leestijd
CD part XVIII: Create smoketest
After the integration is done we need to create a smoke-test. This is a simple test to see if everything is working before executing the suite-test
create smoketest in jenkins
open a browser and navigate to:
http://localhost:8075/jenkins/
and click in the menu on
Manage Jenkins
click on
Manage Plugins
select the
Available
tab
search for
HTML Publisher plugin
select the plugin and click on the
Install without restart
button
jenkins navigates to the
Installing plugins/upgrades
page, were we see an overview of the plugins to be installed.
stop the tomcat instance and start the instance again
create the smoketest job
we start the tomcat instance for jenkins by executing the
tomcat jenkins - start.cmd
script
open a browser and navigate to:
http://localhost:8075/jenkins/
click in the sidemenu on
New Job
for this exercise, we are using the
account status
webservice
call this item:
ws
account
status_smoketest
select the first radiobutton
create a freestyle project
in the
Source Code Management
section select the
Git
radiobutton
enter the url:
https://bitbucket.org/johantuitel/easywebservices.git
select the credentials you have made for your bitbucket account
in my case it was
j.tuitel@developers.nl/
*
(bitbucket account)
after that we need to set the correct branch in the field
Branches to build
enter:
develop
add a build step and select
Invoke Top-level Maven
target:
clean test-compile failsafe:integration-test -Pfitnesse-integration
POM:
AccountStatusWebservice\fitnesse\pom.xml
navigate to the
Post-build Actions
and add
Publish HTML reports
click on the
Add
button
HTML directory to archive: AccountStatusWebservice\fitnesse\target\fitnesse-results
Index page
Report title: Fitnesse Report
click on
Save
and we are done
test job
click on building the job
you probably get an error like
Filename too long
execute
git config --system core.longpaths true
build the job again and the smoketest is executed
click on the
Fitnesse Report
link