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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write selenium code for purchasing product from amazon

1181


From your test script how you can create html test report?

475


Have you used any crossbrowsertesting tool to run selenium scripts on cloud?

480


What is webdriverbackedselenium?

657


What are driver.close and driver.quit in WebDriver? Which is more preferable?

491






Write the code for reading and writing to excel through selenium?

512


How to assert the title of the web page?

482


What is a hybrid framework?

557


What is selenium? What are the different selenium components?

506


How would one access the value of a side variable named name from within a javascript snippet used as the argument to a selenese command?

457


Do you know how to debug the tests in selenium ide?

461


How to upload a file in selenium webdriver?

522


What are the types of text patterns available in selenium?

472


Write the code to double click an element in selenium?

467


What are the capabilities of selenium webdriver or google webdriver or selenium 2.0?

495