Selenide on Jenkins

551 views
Skip to first unread message

msto...@googlemail.com

unread,
Mar 6, 2014, 7:11:04 AM3/6/14
to sele...@googlegroups.com
Hi,

I'm evaluating a migration to Selenide for a rather large project. Till now, I was not able to run the tests on my Jenkins (although they are working on my local machine). Are there any good posts on how to set up a Jenkins Job for Selenide so I can recheck my configuration? Unfortunately, the Wiki has not been updated yet.
https://github.com/codeborne/selenide/wiki/Build-script

Best,
Matthias

Andrei Solntsev

unread,
Mar 6, 2014, 7:53:39 AM3/6/14
to msto...@googlemail.com, sele...@googlegroups.com
Hi! 
What do you think by running tests in Jenkins?
How did you run them by now?

I guess you already have some scripts for running tests. I guess the same script should still work with Selenide too.
Is it Ant, Maven, Gradle or something else? Do you use JUnit, TestNG or something else?

Andrei Solntsev



--
You received this message because you are subscribed to the Google Groups "selenide" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenide+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

msto...@googlemail.com

unread,
Mar 6, 2014, 10:09:21 AM3/6/14
to sele...@googlegroups.com, msto...@googlemail.com
Hi Andrei,

> What do you think by running tests in Jenkins?
> How did you run them by now?

> Is it Ant, Maven, Gradle or something else? Do you use JUnit, TestNG or something else?

The Jenkins job triggers an ant target which is using JUnit. Every test is running with a FirefoxWebDriver controlling a FF 26 in xvfb. I am obviously having some configuration issues.

[junit] 25.02.2014 18:37:00 com.codeborne.selenide.Configuration getJenkinsReportsUrl
[junit] INFO: No BUILD_URL variable found. It's not Jenkins.
[junit] 25.02.2014 18:37:00 com.codeborne.selenide.Configuration getReportsUrl
[junit] INFO: Variable selenide.reportsUrl not found

Thats why I would love to see some working example first since I did not set up the initial Jenkins job/configuration and do not want to comb through all the config...

Best,
Matthias

Andrei Solntsev

unread,
Mar 6, 2014, 10:13:41 AM3/6/14
to Matthias Stock, sele...@googlegroups.com
No, it's not a problem, it's just an INFO message.
It says that you could get better errors reports containing screenshots if you pass BUILD_URL environment variable to your build script. But it's not important now.

Basically, if you see this info message, it means that you are already running your tests in Jenkins. It's all right, congratulations!  

Andrei Solntsev



Best,
Matthias

Reply all
Reply to author
Forward
0 new messages