Failure to run eggplant on Jenkins Pipeline script

Hello team,

I have jenkins slave that uses Ubuntu operating system.

When setting up my jenkins pipeline, I executed the eggplant script with the following command:
sh ‘runscript /test.suite/Script/test.script’

it turns out error, that says:
Uncaught exception NSWindowServerCommunicationException, reason: Unable to connect to X Server ‘:0.0’

hope you can help.
Thank you

Hey @Siti ,
With just this error line its a not possible to provide a solution.
Kindly ask you to file a ticket with our support team to investigate further. Eggplant Support eggplant.support@keysight.com
Include the following details.

  • Eggplant functional version
  • Which Ubuntu system do you use?
  • Attach the Eggplant functional log files and the log file from the script run.
  • You can also attached the jenkins command line output.

Cheers,
Karsten