Permalink
Find file Copy path
6e0e192 Dec 30, 2017
2 contributors

Users who have contributed to this file

@tarun3kumar @sbatkovic-zalando
executable file 237 lines (199 sloc) 11.6 KB
<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" > <suite name="Selenium Framework Test Suite" parallel="methods"
verbose="1" thread-count="5">
<listeners>
<listener class-name="com.seleniumtests.reporter.SeleniumTestsReporter" />
<listener class-name="com.seleniumtests.core.TestRetryListener" />
</listeners>
<parameter name="appURL" value="http://www.seleniumtests.com/2015/12/test-registration-page.html"/>
<parameter name="browser" value="*chrome" /> <!--"*firefox, *chrome, *iexplore, *android"-->
<parameter name="runMode" value="LOCAL" /> <!--LOCAL or ExistingGrid -->
<!--if parameter runMode is set to ExistingGrid then parameter webDriverGrid should have value set to system running grid
To start grid on a machine use following command -
java -jar selenium-server-standalone-<version>.jar -role hub
To execute tests on firefox using selenium grid, start node running firefox as -
java -jar selenium-server-standalone-<version>.jar -role node -hub http://localhost:4444/grid/register
-browser browserName=firefox platform=WINDOWS, ensureCleanSession=true, javascriptEnabled=true, acceptSslCerts=true,
ignoreProtectedModeSettings=true, ignoreZoomSetting=true, takesScreenshot=true
To execute tests on chrome using selenium grid, start node running chrome as -
java -jar selenium-server-standalone-<version>.jar -role node -hub http://localhost:4444/grid/register -browser browserName
=chrome platform=WINDOWS, ensureCleanSession=true, javascriptEnabled=true, acceptSslCerts=true, ignoreProtectedModeSettings=true,
ignoreZoomSetting=true, takesScreenshot=true -Dwebdriver.chrome.driver="<path to chrome driver exe on node machine>\chromedriver.exe"
To execute tests on internet explorer using selenium grid, start node running internet explorer as -
java -jar selenium-server-standalone-<version>.jar -role node -hub http://localhost:4444/grid/register -browser browserName
="internet explorer" platform=WINDOWS, ensureCleanSession=true, javascriptEnabled=true, acceptSslCerts=true, ignoreProtectedModeSettings=true,
ignoreZoomSetting=true, takesScreenshot=true -Dwebdriver.ie.driver="<path to internet explorer driver on node machine>\IEDriverServer.exe"
-->
<parameter name="webDriverGrid" value="http://localhost:4444/wd/hub" />
<parameter name="webSessionTimeOut" value="120000" />
<parameter name="maxConcurrentWebSessions" value="5" />
<parameter name="softAssertEnabled" value="true" />
<!-- For soft assert, use assert APIs from com.seleniumtests.core.CustomAssertion class-->
<parameter name="useFirefoxDefaultProfile" value="false"/>
<!--<test name="WebTest - Test Link Login Test in Chrome">
&lt;!&ndash;testType parameter is optional for web test, since testType defaults to web&ndash;&gt;
<parameter name="testType" value="Web" />
<parameter name="eventFiringWebDriver" value="true"/>
<groups>
<run>
<include name="registerWithValidUserData"/>
</run>
</groups>
<classes>
<class name="com.seleniumtests.tests.RegistrationTest" />
</classes>
</test>
<test name="WebTest - JS Error Test">
&lt;!&ndash;testType parameter is optional for web test, since testType defaults to web&ndash;&gt;
<parameter name="appURL" value="http://webdriverjsdemo.github.io/error/"/>
<parameter name="eventFiringWebDriver" value="true"/>
<parameter name="testType" value="Web" />
<parameter name="browser" value="*chrome" />
<classes>
<class name="com.seleniumtests.tests.JSErrorTest" />
</classes>
</test>
<test name="WebTest - Test Link Login Test in Firefox ">
&lt;!&ndash;testType parameter is optional for web test, since testType defaults to web&ndash;&gt;
<parameter name="testType" value="Web" />
<parameter name="browser" value="*firefox" />
<classes>
<class name="com.seleniumtests.tests.RegistrationTest" />
</classes>
</test>
<test name="NonGUITest - Multiple assertion failures">
<parameter name="testType" value="NonGUI" />
<classes>
<class name="com.seleniumtests.tests.RetryTest" />
</classes>
</test>
<test name="NonGUITest - Multiple assertion failures1">
<parameter name="testType" value="NonGUI" />
<classes>
<class name="com.seleniumtests.tests.RetryTest1" />
</classes>
</test>
<test name="NonGUITest - Multiple assertion failures2">
<parameter name="testType" value="NonGUI" />
<classes>
<class name="com.seleniumtests.tests.RetryTest2" />
</classes>
</test>
<test name="NonGUITest - Multiple assertion failures3">
<parameter name="testType" value="NonGUI" />
<classes>
<class name="com.seleniumtests.tests.RetryTest3" />
</classes>
</test>
<test name="NonGUITest - Soft CustomAssertion Test">
<parameter name="testType" value="NonGUI" />
<classes>
<class name="com.seleniumtests.tests.SoftAssertionTest" />
</classes>
</test>
<test name="Android m-site Test" parallel="false">
<parameter name="testType" value="Web" />
<parameter name="browser" value="*android" />
<parameter name="appiumServerURL" value="http://localhost:4723/wd/hub"/>
<parameter name="automationName" value="Appium"/>
<parameter name="platform" value="Android"/>
<parameter name="mobilePlatformVersion" value="5.1"/>
<parameter name="deviceName" value="emulator-5554"/>
&lt;!&ndash;For m-site test, set this parameter to Browser&ndash;&gt;
<parameter name="app" value="Browser"/>
&lt;!&ndash;Test on default emulator Browser
Set the property to "Chrome" to run test on chrome browser on android device instead of default Browser&ndash;&gt;
<parameter name="browserName" value="Browser"/>
<parameter name="newCommandTimeout" value="120"/>
<parameter name="parallel" value="false"/>
<classes>
<class name="com.seleniumtests.tests.RegistrationTest" />
</classes>
</test>
<test name="ios m-site Test" parallel="false">
<parameter name="testType" value="Web" />
&lt;!&ndash;browser *iphone is used to run tests on both iphone and ipad&ndash;&gt;
<parameter name="browser" value="*iphone" />
<parameter name="appiumServerURL" value="http://10.161.53.171:4723/wd/hub"/>
<parameter name="automationName" value="Appium"/>
<parameter name="platform" value="iOS"/>
&lt;!&ndash; You can find the device name, version on ios by executing command "instruments -s devices" &ndash;&gt;
<parameter name="mobilePlatformVersion" value="8.4"/>
<parameter name="deviceName" value="iPad Air"/>
<parameter name="app" value="Safari"/>
<parameter name="browserName" value="Safari"/>
<parameter name="newCommandTimeout" value="120"/>
<parameter name="parallel" value="false"/>
<classes>
<class name="com.seleniumtests.tests.RegistrationTest" />
</classes>
</test>
<test name="Android App test" parallel="false">
<parameter name="browser" value="*android" />
<parameter name="testType" value="app" />
<parameter name="appiumServerURL" value="http://localhost:4723/wd/hub"/>
<parameter name="automationName" value="Appium"/>
<parameter name="platform" value="Android"/>
<parameter name="mobilePlatformVersion" value="5.1"/>
<parameter name="deviceName" value="emulator-5554"/>
&lt;!&ndash;Path to app&ndash;&gt;
&lt;!&ndash;To launch an app, either path to app OR appPackage and appActivity should be specified &ndash;&gt;
&lt;!&ndash;<parameter name="app" value="Path To App"/>&ndash;&gt;
&lt;!&ndash;Java package of Android app to be run&ndash;&gt;
<parameter name="app" value=""/>
<parameter name="appPackage" value="com.android.calculator2"/>
&lt;!&ndash;Activity name for Android activity to be launched from package&ndash;&gt;
<parameter name="appActivity" value="com.android.calculator2.Calculator"/>
&lt;!&ndash;browserName should be empty string when automating app&ndash;&gt;
<parameter name="browserName" value=""/>
<parameter name="newCommandTimeout" value="120"/>
<parameter name="parallel" value="false"/>
<groups>
<run>
<include name="addTwoNumbers"/>
</run>
</groups>
<classes>
<class name="com.seleniumtests.tests.AndroidAppTest" />
</classes>
</test>
<test name="iOS App test" parallel="false">
<parameter name="browser" value="*iphone" />
<parameter name="testType" value="app" />
<parameter name="appiumServerURL" value="http://10.161.53.171:4723/wd/hub"/>
<parameter name="automationName" value="Appium"/>
<parameter name="platform" value="iOS"/>
<parameter name="mobilePlatformVersion" value="8.4"/>
<parameter name="deviceName" value="iPhone 6"/>
&lt;!&ndash;Path to app, if appium server is running on a different machine then this path corresponds to machine
where appium server is running&ndash;&gt;
<parameter name="app" value="/Users/tbhadauria/Downloads/UICatalog.app"/>
&lt;!&ndash;browserName should be empty string when automating app&ndash;&gt;
<parameter name="browserName" value=""/>
<parameter name="newCommandTimeout" value="120"/>
<parameter name="parallel" value="false"/>
<groups>
<run>
<include name="verifyUICatalogScreen"/>
</run>
</groups>
<classes>
<class name="com.seleniumtests.tests.IOSAppTest" />
</classes>
</test>
<test name="SauceLabs test" parallel="false">
<parameter name="browser" value="*saucelabs" />
&lt;!&ndash;<parameter name="testType" value="appium_web_ios" />&ndash;&gt;
<parameter name="sauceLabsURL" value="add saucelabs credentials"/>
<parameter name="browserName" value="chrome"/>
<parameter name="platform" value="Windows 7"/>
<parameter name="version" value="46.0"/>
<groups>
<run>
<include name="sauce"/>
</run>
</groups>
<classes>
<class name="com.seleniumtests.tests.SauceLabsTest" />
</classes>
</test>-->
</suite>