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 languages supported by webdriver?
How can we create a data-driven framework using testng?
How to validate the dropdown value contains specific value or not?
Why selenium rc is used?
Explain what are the junits annotation linked with selenium?
How can you find if an element in displayed on the screen?
How can it be found if an item is displayed on the screen?
What are the types of text patterns available in selenium?
What happen if you mix both thread.sleep and webdriver waits in a selenium script?
How we handle pop-up web-based ?
What are the different types of waits available in webdriver?
What’s the difference between borland silk evaluation and selenium?
How to create and run testng.xml?
How do you read test data from excels?
How do you read data from excel?