How to run Selenium tests using TestNG framework and Jenkins

前端 未结 2 1919
半阙折子戏
半阙折子戏 2021-01-22 11:22

I want to run Selenium tests written in TestNG framework using Jenkins.

The command configured in jenkins job (Freestyle project):

java -cp J:\\taf\\tes         


        
2条回答
  •  我在风中等你
    2021-01-22 11:49

    As suggested by Mackowski, installed Jenkins in tomcat as a webapp (instead of Windows Service) and it solved the issue.

    Reference:

    1. https://wiki.jenkins-ci.org/display/JENKINS/Tomcat

    Note: When we run the tests when deployed Jenkins as Windows Service, no browser GUI is launched/observed. Jenkins inside tomcat, browser GUI is launched.

提交回复
热议问题