Create an Ant build for TestNG tests

The goal of this exercise is to run TestNG tests through Apache Ant. First you have to have a sample TestNg project at your hand. If you don’t have any, you can create the sample using the instructions below, or you can download it from using the link from the bottom of the post. Create […]

Read more
Emulate mobile and tablet devices with ChromeDriver

Desktop version of Google Chrome allows to users to open webpages in mobile view. This means that you can emulate browsing on devices like Google Nexus 5, Apple iPhone 6 etc. You can find this feature in developer tools by clicking on the mobile icon. Now ChromeDriver allows to use device emulation in automated tests […]

Read more
How to run parallel tests with Selenium WebDriver and TestNG in Chrome browser and in Internet Explorer browser

In the previous lesson(How to run parallel tests with Selenium WebDriver and TestNG) we used Firefox browser to run the tests. Now we introduce how to run the tests parallel in Chrome and in Internet Explorer browsers. Firstly download the latest chromedriver and IEDriverServer files. You can download the IEDriverServer file from the http://code.google.com/p/selenium/downloads/list site. […]

Read more
How to run parallel tests with Selenium WebDriver and TestNG

First install Java JRE and JDK. In Advanced system settings/ Environment Variables setup java path: Create a new system variable (if it is not created): Name: JAVA_HOME Value(the location of the jdk):   C:\Program Files\Java\jdk1.7.0_25 In to the Path variable add: The location of jre:  c:\Program Files (x86)\Java\jre7\bin\; Install selenium and testing to Eclipse. Download (from  […]

Read more
How to use TestNG with Selenium WebDriver

(The precondition for this tutorial that the Selenium WebDriver is already installed.) Firstly go to TestNG website’s download page, and follow the instructions to install the TestNG plugin to Eclipse. (http://testng.org/doc/download.html) After the TestNG was installed, create a new java class file (without main method). Create the setUp() function. To this function you can put […]

Read more