简体   繁体   中英

Selenium Jenkins Linux TestNG - how to run?

Right now I'm running Jenkins on Windows via command line, so:

  1. I have xml files generated in Eclipse (by TestNG -> Convert to TestNG )
  2. I have run.bat file with

     java -cp bin;libs/* org.testng.TestNG c.xml java -cp bin;libs/* org.testng.TestNG json.xml 
  3. I've created new project in Jenkins to run this bat file

This solution is working for me, but I want to run test on Linux, and I need to direction how to do this the right way.

Basically, the same. Java is the same on Linux - at least, from running TestNg tests perspective

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM