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 api is required for database testing in selenium webdriver?
To enter values onto text boxes what is the command that can be used?
Explain what is the main difference between web-driver and rc?
Mention what are the types of listeners in testng?
What is the alternate way to click on the login button?
What is the selenese command to show the value of a variable in the log file?
What is the difference between single slash (/) and a double slash ( //) in xpath?
What is the difference between driver.get() and driver.navigate.to()
What are core extension?
What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?
Tell me the meaning of assertion in selenium and what are the types of assertion?
How to check if a text is highlighted on the page ?
How to verify if the checkbox/radio is checked or not?
What does side stand for?
What are the annotations used in testng?