Deploy and Run automation code using selenium web driver in Java

2.1k views Asked by At

I am writing Automation code in Selenium Webdriver using Java in Eclipse IDE. My project uses TestNG framework in POM design Patttern ,Bit Bucket repository, How do I biuld and run automation test overnight.?

1

There are 1 answers

0
Kovacic On

As @aolisa mentioned there are several tools for continuous integration (CI), that You could use. When I've started to create somekind of CI like You, I've installed Jenkins locally and started to playing with it.

My opinion is that this good entry point is Jenkins.

Here is nice article to start off for Jenkins: http://www.vogella.com/tutorials/Jenkins/article.html

For Jenkins to start, here are few steps:

  1. install it (https://jenkins.io/),
  2. login to Jenkins,
  3. create job (Maven),
  4. connect to Your git repository (in your case BitBucket),
  5. use maven commands to manipulate with tests,
  6. play...tweak... maintain... :)

But in this answers nobody mentioned cloud CI which are really good today.

Now You have several services, but I've tested this ones, and are really easy to use, and documentaion is really straight-forward, and important is that You can play for a while because they are free (to a point) so check them out:

  1. http://circleci.com/
  2. https://www.bitrise.io/

Hope this help...