How to create batch(.bat) file after creating suite from TestNG?Can anyone explain entire process?
Answer Posted / kiran
Before running the code, select the class from the Package Explorer, right click and choose the TestNG> Convert to TestNG. You will be asked to give file name which will be further saved as FileName.xml. And run the xml file once.
On the other side: open Note pad and enter below code
java -cp bin;* testng TestNG nameOfYourXmlFile
and save as the name given to that .xml file. But while saving give the name in double quotes. Ex: "FileName".bat
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does the selenium have any limitations?
Can we move back and forward in browser using selenium?
Explain junit. What are annotations?
List some of the operating systems that are supported by selenium webdriver.
What you say in regards to the flexibility of selenium test suite?
What is difference between qtp and selenium?
Using web driver how you can store a value which is text box?
sorting java array
How to do drag and drop in selenium?
Explain how you can debug the tests in selenium ide?
Which web driver implementation is fastest?
What are the advantages and disadvantages of using selenium as testing tool?
How to handle browser (chrome) notifications in selenium?
what are challenges you faced in your last project?
How to handle alerts in selenium webdriver?