All automated test runs successfully. but xvfb issue causes the build failure in Jenkins.
I have used below commnad in ExecuteShell option available under Jenkins to run my test cases on headless browser
/usr/bin/xvfb-run /usr/local/apache-maven-3.3.1/bin/mvn clean test -Dbrowser=firefox
Getting the below output:
Results :
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0
[INFO] BUILD SUCCESS
[INFO] Total time: 10:19 min
[INFO] Final Memory: 20M/47M
/usr/bin/xvfb-run: line 171: kill: (25939) - No such process
Build step 'Execute shell' marked build as failure
As we can see in the output [INFO] BUILD SUCCESS
.
But /usr/bin/xvfb-run: line 171: kill: (25939) - No such process
causes the builld failure.
Could anybody please provide some workaround for this?
xvfb-run
? Is the script online somewhere it can be seen? – Mauramauraliakill
fails. I don't know why that would be. You could modify the script to handle that case but it clearly doesn't think that's something that should generally happen. – Mauramauralia