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
What are the different ways of locating a web element in selenium?
What is desired capabilities?
What is the difference between assert and verify in selenium?
Can you write the code to double click an element in selenium?
How can we launch different browsers in selenium webdriver?
What is an implicit wait in selenium?
What kinds of test types are supported by selenium?
How to pause a test execution for 5 seconds at a specific point?
What do you know about Selenium IDE?
How to perform right click using selenium webdriver?
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
How do perform drag and drop using webdriver?
Tell us what kind of keyboard operations can be performed in selenium?
How do you clear the contents of a textbox in selenium?
What are the advantages of rc?