Wednesday, 27 April 2011

Example - Continuous Integration using Ant

Aim:
This simple demo shows Hudson executing a Selenium Automation Suite and the results on the PC.

Pre-requisites:



Here are the key steps
  1. We have already created a New Job.
  2. Launch Hudson.
  3. Launch the Firefox and open the Hudson by using URL: http://localhost:8080/.
  4. Create a New Job.
  5. Enter the Job name.
  6. Select the Build type Ant by Drop down.
  7. Enter the Target name from build.xml file into Targets field.
  8. Click on Advanced button.
  9. Enter the path of build.xml file into Build file field.
  10. Now click on save button.
  11. Click on Build now link for build the Project.
  12. New Browser open and run the Script.
  13. Open the build link.
  14. See the Result by Console Output.
Conclusions
  • Demonstrate Hudson with Ant and Selenium
Related Entries:





Helpful Video File

6 comments:

  1. NOtes for Vipin:
    create this on the VM
    do not show how to install Hudson
    only show an example working on the VM
    video needs to show creation of a new job, setting up the config, running the hudson job, viewing the results.

    ReplyDelete
  2. Feedback:
    I notice that you use Nant build.xml files to run and execute Selenium. This can also be done via Hudson by adding a selenium Step. I will send you a video based on my setup on my work computer

    ReplyDelete
  3. Hi Viresh, please share the video file.

    ReplyDelete
  4. Hi Vipin. Goto My Dropbox\vipin\helloWorldExample\2011-05-11_1701.swf and open the flash file in a browser to view.

    Keep this example as it is - as it uses Ant.Also create another blog entry like the video i have created.

    ReplyDelete
  5. ok..I have provided the solution on the new created blog entry.

    ReplyDelete

Thank you for your comment
- Time2test Team