Issue:
Facing the below error message while executing the test with CI/CD tool:
Unable to init server: Could not connect: Connection refused
Katalonc: Cannot open display:
Katalonc:
An error has occurred. See the log file
/root/katalon_workspace/katalon_home/8.2.0/configuration/164369123535.log.
Katalon Command Execution Status: 13
Solution:
The error shows that the machine is missing Xvfb. Xvfb or X virtual framebuffer is a display server implementing the X11 display server protocol. In contrast to other display servers, Xvfb performs all graphical operations in virtual memory without showing any screen output. From the point of view of the client, it acts exactly like any other X display server, serving requests and sending events and errors as appropriate. However, no output is shown. This virtual server does not require the computer it is running on to have any kind of graphics adapter, a screen or any input device. Only a network layer is necessary.
For Jenkins: Use Katalon TestOps plugin for Jenkins Integration on Ubuntu
For Azure DevOps: How to use Katalon for Azure DevOps
xvfbConfiguration: '-a -n 0 -s "-screen 0 1024x768x24"'
Comments
0 comments
Please sign in to leave a comment.