简体   繁体   中英

Automated Selenium HTML tests in Jenkins

I'm trying to find a way how to completely automate the Selenium tests in Jenkins.

My whole idea: I want to record a test with the Selenium IDE. Then save the test as the HTML code. Put the HTML file as eg test1.test on the server with Jenkins. Jenkins should do the test from the information of the HTML file.

The last sentence is now the problem. I can't find a simple way to convert the HTML file into a possible JUnit test and just run it.

I found selenese4j and the idea is nice but it's returning just the tests itself. Is there a simple way to tell Jenkins to use selenese4j to convert from HTML to a JUnit test and then run the JUnit test?

I know that it is possible to use a dynamic wrapper to run the tests but it's more than just a simple and easy way.

You should use Selenium Webdriver. If you have not enough skill, just export Selenium IDE code as Java or any language, build it by Jenkins and run.

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