Basic Report Plugin and KRE command line running

I was previously running the docker Katalon with commandline, and subsequently KRE as a docker instance - but have now installed java and KRE on one of our Gitlab runner hosts, in order to reduce costs: we didn’t really need any more than one - but the docker KRE was very useful.

I’ve got the tests to run using

katalonc -retry=0 -runMode=console -statusDelay=15 -projectPath="$TEST_PATH" -testSuiteCollectionPath="Test Suites/AllTests" -reportFolder=Reports/Html -reportFileName=index.html --config -webui.autoUpdateDrivers=true -apiKey=xxxxxx || EXIT_CODE=$?

where TEST_PATH is the top level folder of my Katalon tests. The tests run - but firstly with a shedload of warnings:-

/%home%gitlab-runner%builds%ENQFnZYp%0%my-engine%ci-server%Katalon%ci%CI test1.prj/Scripts/DKIM Tests/Create a new DKIM record for my-engine/Script1579703282005.groovy: 17 Groovy:Invalid duplicate class definition of class Script1579703282005 : The sources /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Scripts/DKIM Tests/Create a new DKIM record for my-engine/Script1579703282005.groovy and /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Scripts/Basic Functional Tests/Create a new DKIM record for my-engine/Script1579703282005.groovy each contain a class with the name Script1579703282005.
 /%home%gitlab-runner%builds%ENQFnZYp%0%my-engine%ci-server%Katalon%ci%CI test1.prj/Test Suites/Manual Tests/Bits and Bytes Test one - Bring on a new client and add a new product straight away.groovy: 34 Groovy:Invalid duplicate class definition of class Bits_and_Bytes_Test_one_-_Bring_on_a_new_client_and_add_a_new_product_straight_away : The sources /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Test Suites/Manual Tests/Bits and Bytes Test one - Bring on a new client and add a new product straight away.groovy and /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Test Suites/Bits and Bytes Test one - Bring on a new client and add a new product straight away.groovy each contain a class with the name Bits_and_Bytes_Test_one_-_Bring_on_a_new_client_and_add_a_new_product_straight_away.

etc...

And then it generates the XML files, but no HTML report (despite having installed the Basic Report Plugin)…

What info do you need to assist with fault finding…

Thanks in advance

Further log information:

Generating global variables...
 Parsing custom keywords...
 Project 'CI test1' opened
 Start reloading plugins...
 Katalon version: 7.2.6
 Plugin info URL: https://store.katalon.com/api/products/ks?appVersion=7.2.6&appType=ENGINE&licenseType=TRIAL
 Plugin info: {
   "expired": false,
   "productId": 59,
   "name": "Basic Report",
   "id": 99162
 }
 Plugin name: Basic Report. Is online: true. Plugin location: /home/gitlab-runner/.eclipse/1176452834_linux_gtk_x86_64/configuration/plugin/install/99162/1.0.7/katalon-studio-report-plugin.jar.
 Plugin "Basic Report" has been installed.
 Start check license task
 chromedriver is located at: /home/gitlab-runner/.eclipse/1176452834_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver
 chromedriver is located at: /home/gitlab-runner/.eclipse/1176452834_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver
 chromedriver is located at: /home/gitlab-runner/.eclipse/1176452834_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver
 chromedriver is located at: /home/gitlab-runner/.eclipse/1176452834_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver
 chromedriver is located at: /home/gitlab-runner/.eclipse/1176452834_linux_gtk_x86_64/configuration/resources/drivers/chromedriver_linux64/chromedriver
 --------------------------------------------------------------------------------
 Test Suites/AllTests - 20200318_143754..................................0/32(0%)
 --------------------------------------------------------------------------------
 Test Suites/BlankDbTests - Chrome (headless) - 20200318_143754..........0/23(0%)
 Test Suites/DKIM Tests - Chrome (headless) - 20200318_143755.............0/2(0%)
 Test Suites/NFR Tests - Chrome (headless) - 20200318_143756..............0/3(0%)
 Test Suites/BillingSupportUrlTests - Chrome (headless) - 20200318_143757.0/2(0%)
 Test Suites/Password Reset Url Tests - Chrome (headless) - 20200318_143758......
 .........................................................................0/2(0%)
 --------------------------------------------------------------------------------
 Launcher status after execution process completed: Running
 Start writing execution.uuid file to folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/BlankDbTests/20200318_143754
 Start generating JUnit report folder at: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/BlankDbTests/20200318_143754...
 JUnit report were generated at folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/BlankDbTests/20200318_143754
 Launcher status after execution process completed: Running
 Start writing execution.uuid file to folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/DKIM Tests/20200318_143755
 Start generating JUnit report folder at: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/DKIM Tests/20200318_143755...
 JUnit report were generated at folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/DKIM Tests/20200318_143755
 Launcher status after execution process completed: Running
 Start writing execution.uuid file to folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/NFR Tests/20200318_143756
 Start generating JUnit report folder at: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/NFR Tests/20200318_143756...
 JUnit report were generated at folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/NFR Tests/20200318_143756
 Launcher status after execution process completed: Running
 Start writing execution.uuid file to folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/BillingSupportUrlTests/20200318_143757
 Start generating JUnit report folder at: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/BillingSupportUrlTests/20200318_143757...
 JUnit report were generated at folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/BillingSupportUrlTests/20200318_143757
 Launcher status after execution process completed: Running
 Start writing execution.uuid file to folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/Password Reset Url Tests/20200318_143758
 Start generating JUnit report folder at: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/Password Reset Url Tests/20200318_143758...
 JUnit report were generated at folder: /home/gitlab-runner/builds/ENQFnZYp/0/my-engine/ci-server/Katalon/ci/Reports/20200318_143754/Password Reset Url Tests/20200318_143758
 For real-time monitoring and better reporting capabilities please integrate this project with Katalon TestOps (more details at https://docs.katalon.com/katalon-analytics/docs/integration-with-katalon-studio.html#enable-integration)
 --------------------------------------------------------------------------------
 Test Suites/AllTests - 20200318_143754.................................5/32(16%)
 --------------------------------------------------------------------------------
 Test Suites/BlankDbTests - Chrome (headless) - 20200318_143754..........1/23(4%)
 Test Suites/DKIM Tests - Chrome (headless) - 20200318_143755............1/2(50%)
 Test Suites/NFR Tests - Chrome (headless) - 20200318_143756.............1/3(33%)
 Test Suites/BillingSupportUrlTests - Chrome (headless) - 20200318_143757........
 ........................................................................1/2(50%)
 Test Suites/Password Reset Url Tests - Chrome (headless) - 20200318_143758......
 ........................................................................1/2(50%)
 --------------------------------------------------------------------------------
 Execution completed. Exit code: 3.
 Start clean up session
 End check license task
 End clean up session
 Start release license task
 License released
 End release license task
 All launchers terminated
 $ set -e
 $ echo "Result of Katalon tests = $EXIT_CODE"
 Result of Katalon tests = 3

Hi @craig.fisher,

Please make sure you has enabled automatically generate HTML reports. You can check it by open the project in Katalon Studio > Project > Settings > Plugin > Report and checked the HTML options.

2 Likes

Hi anhqle
With KSE with enable “Report” plugins is working fine, but when run with KRE as a docker instance. I am getting same error as Craig.

Hi @mung.thai,

Did the plugin generate any type of reports? It would help if you could share with us the logs.

You can check the settings of report plugins at <project_location>/settings/external/com.katalon.plugin.report.properties.

In …report.properties file, all setting to true
generatePDF=true
generateHTML=true
generateCSV=true

I am having this same issue with the 7.7 docker container - is there a resolution to this?