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 we create an object repository in selenium?
Which are the browsers supported by selenium ide?
Explain me how to execute javascript in selenium?
How recorded command can be edited in ide?
How to type in a textbox using selenium?
Do you know what are the main advantages of selenium grid?
Why selenium rc is used?
What are the different types of drivers available on Webdriver ?
List major difference between protractor vs selenium?
How you can insert a start point in selenium ide?
Tell us how to perform right click using selenium webdriver?
How can we deal with web-based pop-up?
Write the code to double click an element in selenium?
How do you click on a menu item in a drop down menu?
How do you verify an object presented in multiple pages?