Showing posts with label jenkins. Show all posts
Showing posts with label jenkins. Show all posts

Friday, 27 April 2012

Example - Running selenium2 scripts from the Hudson dashboard

Aim: Hudson with selenium2

Difficulty Level: High

Pr-requisites:
  • JDK and Ant should be configured
  • Hudson should be installed
Steps:
  • Download the project from the link
  • You will get a war file, place it in C drive
  • Open command prompt and go to C drive
  • Run the command "java -jar hudson.war". (By default it will run on port 8080, if this port is busy then run command on other port i.e. "java -jar hudson.war --httpPort=8082")
  • Launch the  firefox and open the hudson dashboard using URL "http://localhost:8080"
  • Create a new job
  • Enter the job name
  • Select the Build Type ANT into the dropdown
  • Enter the target name from build.xml file into Targets field
  • Click on Advanced button
  • Enter the path of build.xml file into the Build of the field
  • Click Save button
  • Start selenium server.
  • Click Build Now link at hudson interface to build the project
  • Script runs and launches the browser
  • Open the build link
  • See the result from console output

Helpful Video:

sel2hudson by time2test