Conducting selenium tests through JUnit in Hudson

Sorry for the somewhat confusing title :-) Basically, I configured Selenium tests to run through JUnit when I create a project through maven. If I started Selenium Server on the command line and then ran the maven build target at another cmd prompt, the tests will pass as expected.

I realized that this process would be easy to implement in Hudson, but it turned out to be quite problematic. I can start my selenium server as before and then configure the build to get started with hudson. However, hudson does not seem to be building a selenium server - an error message appears that says the following:

Unable to obtain goal [test:test]

The reason I think hudson is not communicating with the selenium server is because when I run junit tests through my own command line with the server stopped, I get the same error message.

It is also important to note that I used the seleniumHQ plugin for hudson to run my tests using html files, but I want to change it to JUnit as more flexible.

Any help on this is greatly appreciated!

Thanks, Gearoid.

+3
source share
3 answers

I recommend that you run selenium tests separately from the test: the purpose of the test.

You can create two hudson assemblies for your project, with the second build triggered by the successful completion of the first build.

Why would you do this?

  • , .
  • script ant maven, .
  • mvn test , .
  • hudson "", , . .
+3

URL- , Hudson? URL- , , ?

0
0

Source: https://habr.com/ru/post/1725643/


All Articles