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

What are the different ways of locating a web element in selenium?

470


What is desired capabilities?

499


What is the difference between assert and verify in selenium?

485


Can you write the code to double click an element in selenium?

514


How can we launch different browsers in selenium webdriver?

466






What is an implicit wait in selenium?

567


What kinds of test types are supported by selenium?

441


How to pause a test execution for 5 seconds at a specific point?

533


What do you know about Selenium IDE?

539


How to perform right click using selenium webdriver?

448


Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please

904


How do perform drag and drop using webdriver?

522


Tell us what kind of keyboard operations can be performed in selenium?

468


How do you clear the contents of a textbox in selenium?

459


What are the advantages of rc?

526