automation - how to set delay between each tests in a testng.xml file -


i'm new testng.i want run test on parallel execution mode.i'm using selenium grid, selenium webdriver, testng.

my testng.xml file is:

`<?xml version="1.0" encoding="utf-8"?> <suite name="webdriver suite" verbose="1" parallel="tests" thread-count="5"> <test name="webdriver test" >     <parameter name="browser" value="firefox" />     <parameter name="port" value="5555" /> <classes>    <class name="bootuptest" >         <methods>             <include name = "testbootup"/>         </methods>     </class> </classes> </test>     <test name="webdriver test ie" >     <parameter name="browser" value="chrome" />     <parameter name="port" value="5556" /> <classes>    <class name="bootuptest" >         <methods>             <include name = "testbootup"/>         </methods>     </class> </classes> </test>   </suite>` 

in above xml file supposed run testbootup method in afirefox chrome.i able run above scenario.but scope want run "webdriver test test first , need delay after webdriver test ie test should have run..

is possible achieve in testng.xml file?.

you can't in testng.xml why not put sleep() in 1 of before methods? (probably @beforemethod)?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -