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 is the selenese command to show the value of a variable in the log file?
How you can use “submit” a form using selenium?
What is Selenium IDE?
Explain what is assertion in selenium and what are the types of assertion?
What kind of keyboard operations can be performed in selenium?
What are the advantages of rc?
How to get the number of frames on a page?
How to delete cookies in selenium?
How are selenium ide, webdriver and selenium rc different from each other?
What is the purpose of creating a reference variable- 'driver' of type webdriver instead of directly creating a firefoxdriver object or any other driver's reference in the statement webdriver driver = new firefoxdriver();?
How does one execute java scripts function in selenium?
What is page object model or pom?