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
How can you handle network latency using selenium?
What happen if you mix both thread.sleep and webdriver waits in a selenium script?
Which is the latest Selenium tool?
Explain what is the main difference between web-driver and rc?
What are the features of selenium ide ?
How to get typed text from a textbox?
List out the names of programming languages, browsers and operating systems that are supported by selenium.
Does selenium support mobile internet testing?
How to clear the text in the text box using selenium webdriver?
How do you verify if the checkbox/radio is checked or not?
To enter values onto text boxes what is the command that can be used?
How many types of webdriver api's are available in selenium?
What is the automation test?
Is selenium server needed to run selenium webdriver scripts?
What is htmlunitdriver?