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 api is required for database testing in selenium webdriver?

1039


To enter values onto text boxes what is the command that can be used?

988


Explain what is the main difference between web-driver and rc?

957


Mention what are the types of listeners in testng?

937


What is the alternate way to click on the login button?

989


What is the selenese command to show the value of a variable in the log file?

996


What is the difference between single slash (/) and a double slash ( //) in xpath?

1012


What is the difference between driver.get() and driver.navigate.to()

961


What are core extension?

909


What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?

910


Tell me the meaning of assertion in selenium and what are the types of assertion?

924


How to check if a text is highlighted on the page ?

1121


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

856


What does side stand for?

898


What are the annotations used in testng?

1003