Katalon at Unix console throwing No X11 DISPLAY variable was set
Below is command used :- ./katalon -runMode=console -projectPath=“/home/jenktran/Automation/Katalon First Proj/Katalon First Proj.prj” -retry=0 -testSuitePath=“Test Suites/TimesheetTestCaseForChrome” -browserType=“Chrome (headless)”
jenktran@pstas07:~/Automation$ ./katalon -runMode=console -projectPath=“/home/jenktran/Automation/Katalon First Proj/Katalon First Proj.prj” -retry=0 -testSuitePath=“Test Suites/TimesheetTestCaseForChrome” -browserType=“Chrome (headless)”
Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified
129 2.4.7.xx-201611170128-e46 = ACTIVE
/%home%jenktran%Automation%Katalon First Proj%Katalon First Proj.prj/Keywords/newPackage/newKeyword.groovy: 24 Groovy:unable to resolve class internal.GlobalVariable
--------------------------------------------------------------------------------
Test Suites/TimesheetTestCaseForChrome - Chrome (headless) - 20171120_163019....
.........................................................................0/1(0%)
--------------------------------------------------------------------------------
11-20-2017 04:30:23 PM - [START] - Start Test Suite : TimesheetTestCaseForChrome
11-20-2017 04:30:24 PM - [RUN_DATA] - Logging run data 'hostName' with value 'jenktran - pstas07.pstech.pstechnology.com'
11-20-2017 04:30:24 PM - [RUN_DATA] - Logging run data 'os' with value 'Linux 64bit'
11-20-2017 04:30:24 PM - [RUN_DATA] - Logging run data 'hostAddress' with value '127.0.1.1'
11-20-2017 04:30:24 PM - [RUN_DATA] - Logging run data 'katalonVersion' with value '5.1.0.1'
11-20-2017 04:30:24 PM - [START] - Start Test Case : Test Cases/ManualMode/CreateUpdateTimeSheet
11-20-2017 04:30:25 PM - [INFO] - Evaluating variables for test case
11-20-2017 04:30:25 PM - [INFO] - Checking test data id
11-20-2017 04:30:25 PM - [INFO] - Finding test data with id 'Data Files/Excel Data source/Timesheet_input_data'
11-20-2017 04:30:25 PM - [INFO] - Test data is excel file, reading excel file
11-20-2017 04:30:25 PM - [INFO] - Reading excel file with source file 'C:\PS technology\Katalon First Proj\Data Files\Timesheet_input_data.xlsx' and sheet name 'Sheet1'
11-20-2017 04:30:25 PM - [WARNING] - Unable to set variable 'getEmployeeToRemoveHardcodedVal' for test case because (of) Cannot find test data with id 'Data Files/Excel Data source/Timesheet_input_data' because (of) 'java.io.FileNotFoundException: C:\PS technology\Katalon First Proj\Data Files\Timesheet_input_data.xlsx'
11-20-2017 04:30:26 PM - [START] - Start action : Statement - For (def index : (7..8))
11-20-2017 04:30:26 PM - [START] - Start action : openBrowser
11-20-2017 04:30:27 PM - [END] - End action : openBrowser
11-20-2017 04:30:27 PM - [END] - End action : Statement - For (def index : (7..8))
11-20-2017 04:30:27 PM - [ERROR] - Test Cases/ManualMode/CreateUpdateTimeSheet FAILED because (of) java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
11-20-2017 04:30:27 PM - [END] - End Test Case : Test Cases/ManualMode/CreateUpdateTimeSheet
11-20-2017 04:30:27 PM - [END] - End Test Suite : TimesheetTestCaseForChrome
Uploading report to Katalon Analytics...
Start sending test result to Katalon Analytics
Uploading log files in folder path: /home/jenktran/Automation/Katalon First Proj/Reports/TimesheetTestCaseForChrome/20171120_163019
Sending file: /home/jenktran/Automation/Katalon First Proj/Reports/TimesheetTestCaseForChrome/20171120_163019/execution0.log
Sending file: /home/jenktran/Automation/Katalon First Proj/Reports/TimesheetTestCaseForChrome/20171120_163019/execution.properties
Sending file: /home/jenktran/Automation/Katalon First Proj/Reports/TimesheetTestCaseForChrome/20171120_163019/JUnit_Report.xml
Sending file: /home/jenktran/Automation/Katalon First Proj/Reports/TimesheetTestCaseForChrome/20171120_163019/JSON_Report.json
End sending to Katalon Analytics
Report has been sent to Katalon Analytics
--------------------------------------------------------------------------------
Test Suites/TimesheetTestCaseForChrome - Chrome (headless) - 20171120_163019....
.......................................................................1/1(100%)
--------------------------------------------------------------------------------