Skip to content

TestNG Configuration

Hemanth Sridhar edited this page Apr 25, 2017 · 11 revisions

TestNG Configuration Tutorial to use WebAppFramework effectively

Mandatory : Use Selenium grid

Run your tests in different browsers

  • In order to run in chrome, add value chrome for browser parameter for the xml below
  • In order to run in firefox, add value firefox for browser parameter for the xml below
  • In order to run in safari, add value safari for browser parameter for the xml below
  • In order to run in edge, add value Microsoft Edge for browser parameter for the xml below
  • In order to run in IE, add value internet explorer for browser parameter for the xml below

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Google Test">
<test name="Regression Testing">
<parameter name="Product Name" value="Google"></parameter>
<parameter name="Application URL" value="http://www.google.com/"></parameter>
<parameter name="Platform" value="ANY"></parameter>
<parameter name="browser" value="chrome"></parameter>
<parameter name="Remote Url" value="http://localhost:4444/wd/hub"></parameter>
<classes>
<class name="org.google.modules.SearchModuleTest" ></class>
</classes>
</test>
</suite>

Clone this wiki locally