Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 types of webdriver apis available in selenium?

1514


How do you verify if the checkbox/radio is checked or not?

774


How to verify if the checkbox/radio is checked or not?

790


What is page object model or pom?

900


How you can handle colors in web driver?

910


Explain the different exceptions in selenium webdriver.

875


How to scroll down a page using javascript in selenium?

863


What does a knot do on the selenium grid?

921


Explain me what could be the cause of selenium webdriver test to fail?

814


What are the regular expression patterns available in selenium?

843


What is an XPath?

998


How to delete browser cookies with selenium web driver?

881


What is the main difference between the close() and quit() methods?

836


Describe technical problems that you had with selenium tool?

858


Why should testers opt for selenium and not qtp?

912