We have some UI test cases which we are currently invoking manually on our Linux machine (with Gnome enabled). We login to the machine and run the below command:
java -jar test_case.jar
to invoke the test case. This opens the browser and performs the application test, and then writes the logs and quits.
Now I am planning to automate this in a Jenkins Pipeline Job. But I am not sure what would be the right way to do this, because I believe Jenkins Pipeline Job gets executed in a pseudo terminal, whereas I believe the above command should be executed in a Gnome console.
Is there a way to automate this scenario?