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?

Answers were Sorted based on User's Feedback



How to create batch(.bat) file after creating suite from TestNG?Can anyone explain entire process?..

Answer / ajmal

OPen Note pad and enter below code
java -cp bin;* testng TestNG nameOfYourXmlFile
save it as all files then change file type to (.bat)
thats it.. u can run it using CMD of jenkins tool..

Is This Answer Correct ?    1 Yes 0 No

How to create batch(.bat) file after creating suite from TestNG?Can anyone explain entire process?..

Answer / 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

More Selenium Interview Questions

Tell me how you can capture server side log selenium server?

0 Answers  


How do you handle Alerts and Pop Ups?

3 Answers   HCL,


Have you created any framework?

0 Answers  


How can you prepare customized html report using testng in hybrid framework?

0 Answers  


Tell us what kind of keyboard operations can be performed in selenium?

0 Answers  


How to iterate through options in test script?

0 Answers  


How does testng allow you to state dependencies? Explain it with an example.

0 Answers  


Explain what is datadriven framework and keyword driven?

0 Answers  


We do create a reference variable ‘driver’ of type webdriver

0 Answers  


Explain what are the junits annotation linked with selenium?

0 Answers  


How to enter text in the HTML text box without invoking the SendKeys ()?

0 Answers  


How do you send enter/tab keys in webdriver?

0 Answers  


Categories