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

Does the selenium have any limitations?

1002


Can we move back and forward in browser using selenium?

927


Explain junit. What are annotations?

1010


List some of the operating systems that are supported by selenium webdriver.

840


What you say in regards to the flexibility of selenium test suite?

981


What is difference between qtp and selenium?

1047


Using web driver how you can store a value which is text box?

968


sorting java array

1671


How to do drag and drop in selenium?

986


Explain how you can debug the tests in selenium ide?

961


Which web driver implementation is fastest?

917


What are the advantages and disadvantages of using selenium as testing tool?

969


How to handle browser (chrome) notifications in selenium?

1022


what are challenges you faced in your last project?

1470


How to handle alerts in selenium webdriver?

995