Am 21.08.2013 09:15, schrieb 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.

You need an X server on your Jenkins machine to run GUI programs. Have a
look at Xvfb.

HTH...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Infrastructure
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 1149
*Email*: [email protected] <mailto:[email protected]>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>


http://www.recommind.com

-- 
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