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 |
What are the capabilities of selenium webdriver or google webdriver or selenium 2.0?
what is the difference between type keys and type commands?
What is the purpose of selenium ide?
Tell me in which format does source view show the script in selenium ide?
Why should Selenium be selected as a testing tool?
What are some disadvantages of Selenium automation?
What is the price of selenium license per server?
How to handle browser (chrome) notifications in selenium?
How selenium grid hub keeps in touch with rc slave machine?
How can we inspect the web element attributes in order to use them in different locators?
What are the advantages of selenium as a test tool?
How do you Skip Test Case from execution?