Forum Discussion

dareku's avatar
dareku
New Contributor
14 years ago

LoadUI - tests failing when running from Jenkins (LINUX)

Hi,

I've encountered problem when I was trying to run loadUI tests as Jenkins job. According to guide http://www.eviware.com/blog/?p=129 its possible. When I'm running command from linux console tests are running fine but when the same command is being run from Jenkins I got Failures in output:
14:31:56,305 INFO [CommandRunner] Time: 00:00:11 Samples: 11 Failures: 11
14:31:57,306 INFO [CommandRunner] Time: 00:00:12 Samples: 13 Failures: 13
14:31:58,306 INFO [CommandRunner] Time: 00:00:13 Samples: 15 Failures: 15
14:31:59,308 INFO [CommandRunner] Time: 00:00:14 Samples: 17 Failures: 17
14:32:00,309 INFO [CommandRunner] Time: 00:00:15 Samples: 20 Failures: 20
14:32:01,310 INFO [CommandRunner] Time: 00:00:16 Samples: 21 Failures: 21

I've spotted the same problem when I've tried to run those tests from command line when I was connected to host with Jenkins via SSH.

I'm using Ubuntu 11.4 and Java 1.6 if you need more info just let me know.

Thanks

2 Replies

  • It would be interesting to know exactly what part of the test is failing. Perhaps you can log this by connecting a TableLog component to the Results output of your Runner(s) and configure the log to write to a file?

    Regards,
    Dain
    SmartBear Software
  • dareku's avatar
    dareku
    New Contributor
    OK, I've managed to successfully run tests from Jenkins. I've set DISPLAY env variable and it worked.

    This is how my Jenkins shell command looks like:
    DISPLAY=:0.0
    export DISPLAY
    cd /home/ci/eviware/loadUI-1.5.0
    ./loadUI-cmd.sh -p loadui-projects/project.xml -L 60:0:0 -nofx -l -r load-reports/ -F PDF -A true -nofx