How to create batch(.bat) file after creating suite from TestNG?Can anyone explain entire process?
Answers were Sorted based on User's Feedback
Answer / ajmal
OPen Note pad and enter below code
java -cp bin;* testng TestNG nameOfYourXmlFile
save it as all files then change file type to (.bat)
thats it.. u can run it using CMD of jenkins tool..
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Do you know what are the main advantages of selenium grid?
How you can handle colors in web driver?
What are the capabilities of selenium ide?
How to assert text of webpage using selenium 2.0?
Tell me how you can find broken images in a page using selenium web driver?
Explain me what are the main advantages of selenium?
How to pass parameters using testng.xml?
How to handle the AJAX popup window?
List the different types of drivers available in web drivers.
Do you know how to debug the tests in selenium ide?
How can the user get a text from a web element?
How can I minimize the browser window which has been launched via Selenium Webdriver?