Aim
Example will show what to modify/configure in Hudson/selenium test scripts so that Screenshots are saved per build.This is extremely useful when it comes to validation and regression testing as you can refer back to the artifacts to see when things started to break.
Difficulty Level
Hard
What will users learn?
Example will show what to modify/configure in Hudson/selenium test scripts so that Screenshots are saved per build.
Pre-requisites:
Key Steps
Related Entries
Helpful Video:
Example will show what to modify/configure in Hudson/selenium test scripts so that Screenshots are saved per build.This is extremely useful when it comes to validation and regression testing as you can refer back to the artifacts to see when things started to break.
Difficulty Level
Hard
What will users learn?
Example will show what to modify/configure in Hudson/selenium test scripts so that Screenshots are saved per build.
Pre-requisites:
- Hudson war file - the file used to install/start Hudson.
Key Steps
- Open the command prompt.
- Launch Hudson via command: > java -jar hudson.war
- Launch and enter the URL: http://localhost:8080/
- Create a New Job and Enter the Job Name.
- Select a "Build a free-style s/w Project" from radiobutton.
- Click 'OK' button.
- Select a Build 'SeleniumHQ htmlSuite Run' from 'Add build step' drop downlist.
- Fillup all the mandatory field(browser,startURL,resultFile,suiteFile).
- Select 'Archive the artifacts' from checkbox.
- Enter the value into 'Files to archive' textfield.
- Select 'Publish Selenium Report' from checkbox.
- Enter the value into 'Test report HTMLs' textfield.
- Click 'Save' button.
- Now modified the path of CaptureEntirePageScreenShot command to location of workspace of new job.
- Now for build click on 'Build Now' link and that See Job is Runing.
- Click on 'Status' link, see the Report and screen shot link is displayed
Related Entries
Helpful Video:
Notes for Vipin:
ReplyDeleteIn your test scripts, for the captureentirescreenshot command, put the images into the "workspace" directory of Hudson. E.g
* captureEntirePageScreenshot
* D:\PROFILES\yourname\.hudson\jobs\wordpresstest\workspace\wordpressScreenshot_SelectRandomBlogEntry.jpg
It's done
ReplyDeleteRealted Links:
ReplyDeletehttp://time2testcourse.blogspot.com/2011/05/what-is-hudson-workspace.html
additional pre-requsite:
ReplyDelete* download the example zip file
demo should show:
ReplyDelete1. green light with passed screenshot
2. red light with failed screenshot
It's done, and the example zip file I have correctly placed on the VM, which is referenced into the Video.
ReplyDelete