Hi Dirk,

first of all thanks for your reaction!
I managed to install and use xvfb.

I can use the command:

./tst_testgui -xunitxml > testresult.xml

and the build is successful.
But I get the following message at the end of the build:

Xlib:  extension "RANDR" missing on display ":1".

Is this a bug in xvfb?



Op woensdag 21 augustus 2013 09:15:57 UTC+2 schreef Niels Hesp:
>
> Hi everybody,
>
> I’m having some problems implementing a simple GuiTest (that uses 
> QTestLib) in Jenkins. In a terminal I can execute the following command:
> ./tst_testgui -xunitxml > testresult.xml
>
> This command generates the following .xml file:
> <?xml version="1.0" encoding="UTF-8" ?>
> <testsuite errors="0" failures="0" tests="3" name="TestGui">
>  <properties>
>    <property value="5.0.2" name="QTestVersion"/>
>    <property value="5.0.2" name="QtVersion"/>
>   </properties>
>   <testcase result="pass" name="initTestCase"/>
>   <testcase result="pass" name="testGui"/>
>   <testcase result="pass" name="cleanupTestCase"/>
>   <system-err/>
> </testsuite>
>
> In Jenkins I’m trying to do the same by executing the same command in an 
> Execute Shell, but after building the project (works fine) and then 
> executing de command:
> ./tst_testgui -xunitxml > testresult.xml
>
> I get the following message in Jenkins:
>
> + ./tst_testgui -xunitxml
> No protocol specified
> QXcbConnection: Could not connect to display :0.0
> Aborted (core dumped)
> Build step 'Execute shell' marked build as failure
> Finished: FAILURE
>
> Does somebody know what could be the problem? 
> I get the same message with the -xml command instead of -xunitxml.
>
> Grtz. Niels
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to