Forum Discussion
patrick1980
10 years agoOccasional Contributor
Hi Mikael,
You are correct. What I did is that I installed an Xvfb Jenkins extension: https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin.
Then part of my Jenkins project steps, I had one step that starts Xvfb.
Build Environment
Start Xvfb before the build, and shut it down after.
After that, I added an "Execute Shell" step where I exported the variables.
export DISPLAY=:1.0
export GDFONTPATH=/opt/SmartBear/LoadUI-2.7.0/jre/lib/fonts
Then I invoked LoadUI and It run okay.
Now, I have only one last question, hopefully
I have been trying to generate the report and then possibly export it to a different machine where I can look at the results but I had no luck. There were no errors but the report is not being generated.
Is that because we are doing a workaround to get LoadUI to work which leads to loosing the possibility to generate a PDF report?
Here is the command I am using:
./loadUI-cmd.sh -p /PROJECT_PATH -L 300:0:0 -r /home/ -F PDF
Again Thanks a lot and I hope that other LoadUI users benefit from this post.
Pat
You are correct. What I did is that I installed an Xvfb Jenkins extension: https://wiki.jenkins-ci.org/display/JENKINS/Xvfb+Plugin.
Then part of my Jenkins project steps, I had one step that starts Xvfb.
Build Environment
Start Xvfb before the build, and shut it down after.
After that, I added an "Execute Shell" step where I exported the variables.
export DISPLAY=:1.0
export GDFONTPATH=/opt/SmartBear/LoadUI-2.7.0/jre/lib/fonts
Then I invoked LoadUI and It run okay.
Now, I have only one last question, hopefully
I have been trying to generate the report and then possibly export it to a different machine where I can look at the results but I had no luck. There were no errors but the report is not being generated.
Is that because we are doing a workaround to get LoadUI to work which leads to loosing the possibility to generate a PDF report?
Here is the command I am using:
./loadUI-cmd.sh -p /PROJECT_PATH -L 300:0:0 -r /home/ -F PDF
Again Thanks a lot and I hope that other LoadUI users benefit from this post.
Pat