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
Explain how can you find broken links in a page using selenium webdriver?
What is assertion in selenium?
Explain how you can capture server side log selenium server?
How to write selenium code for purchasing product from amazon
How to download a file in selenium webdriver?
How can we check if an element is getting displayed on a web page?
What kinds of test types are supported by selenium?
What exactly is the price of selenium test-suite?
Explain me how many types of webdriver apis are available in selenium?
How can one get side to always record an absolute url for the open command's argument?
How is a statement different from verification?
How to check which option in the dropdown is selected?
To generate pdf reports mention what java api is required?
What is the alternate way to click on login button?
Tell me what are the advantages of using git hub for selenium?