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
What are the types of webdriver apis available in selenium?
How do you verify if the checkbox/radio is checked or not?
How to verify if the checkbox/radio is checked or not?
What is page object model or pom?
How you can handle colors in web driver?
Explain the different exceptions in selenium webdriver.
How to scroll down a page using javascript in selenium?
What does a knot do on the selenium grid?
Explain me what could be the cause of selenium webdriver test to fail?
What are the regular expression patterns available in selenium?
What is an XPath?
How to delete browser cookies with selenium web driver?
What is the main difference between the close() and quit() methods?
Describe technical problems that you had with selenium tool?
Why should testers opt for selenium and not qtp?