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


Please Help Members By Posting Answers For Below Questions

How can we create an object repository in selenium?

482


Which are the browsers supported by selenium ide?

483


Explain me how to execute javascript in selenium?

465


How recorded command can be edited in ide?

516


How to type in a textbox using selenium?

481






Do you know what are the main advantages of selenium grid?

496


Why selenium rc is used?

568


What are the different types of drivers available on Webdriver ?

502


List major difference between protractor vs selenium?

494


How you can insert a start point in selenium ide?

479


Tell us how to perform right click using selenium webdriver?

440


How can we deal with web-based pop-up?

514


Write the code to double click an element in selenium?

467


How do you click on a menu item in a drop down menu?

450


How do you verify an object presented in multiple pages?

498