Skip to main content

Posts

Install Jenkins and configure it to Run Maven with TestNg Selenium

Steps to Install Jenkins and configure it to Run Maven with TestNg Selenium Installation Step 1)  Go to  http://jenkins-ci.org/ and download correct package for your OS. Install Jenkins. Step 2)  Unzip Jenkins to specified folder. Run exe file as shown in following screenshot: Step 3)  In  Jenkins 1.607 Setup  window click on  Next  button. Step 4)  Click on  Install  button in the end. Step 5)  Once installation is done, navigate to the Jenkins Dashboard (http://localhost:8080 by default) in the browser window. Step 6)  Click on the  New Item  link to create a CI job. Step 7)  Select the Maven project radio button as shown in the following screenshot: Using the Build a  Maven Project  option, Jenkins supports building and testing Maven projects. Step 6)  Click on OK button. A new job with name "WebdriverTest" is created in Jenkins Dashboard. Step 7)  Go to  Manage Jenkins  =>  Configure System  as shown in the following screensho

Install Maven and use it with TestNG

Steps to use install Maven and use it with TestNG Selenium For this tutorial, we will use Eclipse (Juno) IDE for Java Developers to set up Selenium WebDriver Project. Additionally, we need add m2eclipse plugin to Eclipse to facilitate the build process and create pom.xml file. Let's add m2eclipse plugin to Eclipse with following steps: Step1)  In Eclipse IDE, select  Help  |  Install New Software  from Eclipse Main Menu. Step 2)  On the Install dialog, select  Work with  and m2e plugin as shown in the following screenshot: Step 3) Click on  Next  button and finish installation. Configure Eclipse with Maven With m2e plugin is installed, we now need create Maven project. Step 1)  In Eclipse IDE, create a new project by selecting  File  |  New  |  Other  from Eclipse menu. Step 2)  On the  New  dialog, select  Maven  |  Maven Project  and click Next Step 3)  On the  New Maven Project  dialog select the  Create a simple project  and click Next Step 4)  Ent