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 languages supported by webdriver?

920


How can we create a data-driven framework using testng?

1001


How to validate the dropdown value contains specific value or not?

885


Why selenium rc is used?

1067


Explain what are the junits annotation linked with selenium?

1021


How can you find if an element in displayed on the screen?

893


How can it be found if an item is displayed on the screen?

990


What are the types of text patterns available in selenium?

953


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

962


How we handle pop-up web-based ?

1130


What are the different types of waits available in webdriver?

1004


What’s the difference between borland silk evaluation and selenium?

991


How to create and run testng.xml?

1090


How do you read test data from excels?

1062


How do you read data from excel?

1072