Currently working on Selenium WebDriver and using Java. I have a project calledTest.
In that Project i have many Java Programs such as Login.java, Testing1.java etc.,.
The scenario is 1st the Login.java need to run once it completed then next file start to run i.e Testing1.java.
-Is there any possible to run like this in Eclipse. I'm using FF 26.0 for execution. ** TestNG** frame work.
解决方案
1) make a new file src/testng.xml
(or edit if already exist)
2) Eclipse:
Run \ Run Configurations...
'Test' tab, 'Suite' radiobutton, Browse. Choose your testng.xml file.
Click Run.
Hope it would help ;)