# Why Lose some suite report when execute suite collection in console mode?

**URL:** <https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196>\
**Category:** Bug Report\
**Tags:** bugs-report, katalon-studio\
**Created:** [May 28, 2018, 8:27am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196 "2018-05-28T08:27:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![huyuan](https://avatars.discourse-cdn.com/v4/letter/h/b5e925/32.png) [@huyuan](https://forum.katalon.com/u/huyuan)\
**Post date:** [May 28, 2018, 8:27am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/1 "2018-05-28T08:27:31Z")

</div>

Hello,  
I execute a suite collection in console mode,which include 2 test suites,the cmd is as follow:  
katalon -runMode=console -projectPath=“F:\demo\demo.prj” -reportFolder=“D:\project\Reports” -retry=0 -testSuiteCollectionPath=“Test Suites\C1” -browserType=“Chrome”

Some times, there is only one report folder generated in D:\project\Reports,  
while there should be 2 report folders, one report for every suite.  
And the log is like this :  
--------------------------------------------------------------------------------  
Test Suites/C1 - 20180528\_160109…2/2(100%)  
--------------------------------------------------------------------------------  
Test Suites/TS2\_data - Chrome - 20180528\_160110…1/1(100%)  
Test Suites/TS1 - Chrome - 20180528\_160110…1/1(100%)  
--------------------------------------------------------------------------------  
And the execution mode is sequential.

Why one report is lost? Is it because one test suite report cover another suite report in the same collection? How can I solve the problem?

---

<div class="post-metadata">

**Author:** ![David\_Edmondson](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@David\_Edmondson](https://forum.katalon.com/u/David_Edmondson)\
**Post date:** [May 31, 2018, 10:32pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/2 "2018-05-31T22:32:05Z")

</div>

Try adding another argument to your command script (-reportName=“Reports”) and see if that helps…

katalon -runMode=console -projectPath=“F:\demo\demo.prj” -reportFolder=“D:\project\Reports” --reportName=“Reports” retry=0 -testSuiteCollectionPath=“Test Suites\C1” -browserType=“Chrome”

---

<div class="post-metadata">

**Author:** ![Nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@Nick1](https://forum.katalon.com/u/Nick1)\
**Post date:** [June 1, 2018, 10:49pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/3 "2018-06-01T22:49:03Z")

</div>

I have also reported a similar problem in the forum (no response) with the docker image, which also runs in console mode. All suites write to the same report folder, so what you end up with is the results of the last test suite run. I believe it is a bug (although not confirmed), either way, it makes collections unusable.

---

<div class="post-metadata">

**Author:** ![Gerard\_van\_der\_Winke](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerard_van_der_winke/32/22419_2.png) [@Gerard\_van\_der\_Winke](https://forum.katalon.com/u/Gerard_van_der_Winke)\
**Post date:** [June 2, 2018, 12:10pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/4 "2018-06-02T12:10:50Z")

</div>

The BUG here is that the timestamp in the report names are the same for different TestSuites in the TestSuiteCollection.

The original reports are stil generated correctly for Katalon, because they are placed SEPARATELY under subfolders (using TestSuite name) under the Katalon Project path.

But when running under console mode these reports are copied ALL to the SAME supplied -reportFolder WITHOUT using the original subfolders name of the TestSuite, resulting in overwritting reports due to same timestamp name.

Example:

> > > > > >

```auto
C:\Katalon_Studio>katalon -noSplash -runMode=console -projectPath="C:\Katalon_Studio_Projects\ESB API\ESB API.prj" -reportFolder="C:\Jenkins\workspace\Katalon Studio - ESB API\Reports" -reportFileName="report" -retry=0 -testSuiteCollectionPath="Test Suites/TSC-Regression" Request sent successfully.Starting Groovy-Eclipse compiler resolver. Specified compiler level: unspecified133 2.4.7.xx-201611170128-e46 = ACTIVE--------------------------------------------------------------------------------Test Suites/TSC-Regression - 20180601_105317.............................0/7(0%)--------------------------------------------------------------------------------Test Suites/TS-Regression/TS-Retrieve_PUK_Code - Chrome (headless) - 20180601_105317.....................................................................0/2(0%)Test Suites/TS-Regression/TS-Retrieve_Balance_Info - Chrome (headless) - 20180601_105317.................................................................0/2(0%)Test Suites/TS-Regression/TS-Query_MSISDN - Chrome (headless) - 20180601_105318..........................................................................0/3(0%)--------------------------------------------------------------------------------Request sent successfully.--------------------------------------------------------------------------------Test Suites/TSC-Regression - 20180601_105317.............................0/7(0%)--------------------------------------------------------------------------------Test Suites/TS-Regression/TS-Retrieve_PUK_Code - Chrome (headless) - 20180601_105317.....................................................................0/2(0%)Test Suites/TS-Regression/TS-Retrieve_Balance_Info - Chrome (headless) - 20180601_105317.................................................................0/2(0%)Test Suites/TS-Regression/TS-Query_MSISDN - Chrome (headless) - 20180601_105318..........................................................................0/3(0%)--------------------------------------------------------------------------------Copying report to folder C:\Jenkins\workspace\Katalon Studio - ESB API\Reports\20180601_105317...Uploading report to JIRA...Start sending test result to JIRA issuesReport has been sent to JIRA--------------------------------------------------------------------------------Test Suites/TSC-Regression - 20180601_105317............................2/7(29%)--------------------------------------------------------------------------------Test Suites/TS-Regression/TS-Retrieve_Balance_Info - Chrome (headless) - 20180601_105317...............................................................2/2(100%)Test Suites/TS-Regression/TS-Retrieve_PUK_Code - Chrome (headless) - 20180601_105317.....................................................................0/2(0%)Test Suites/TS-Regression/TS-Query_MSISDN - Chrome (headless) - 20180601_105318..........................................................................0/3(0%)--------------------------------------------------------------------------------Copying report to folder C:\Jenkins\workspace\Katalon Studio - ESB API\Reports\20180601_105317...Uploading report to JIRA...Start sending test result to JIRA issuesReport has been sent to JIRA--------------------------------------------------------------------------------Test Suites/TSC-Regression - 20180601_105317............................4/7(57%)--------------------------------------------------------------------------------Test Suites/TS-Regression/TS-Retrieve_Balance_Info - Chrome (headless) - 20180601_105317...............................................................2/2(100%)Test Suites/TS-Regression/TS-Retrieve_PUK_Code - Chrome (headless) - 20180601_105317...................................................................2/2(100%)Test Suites/TS-Regression/TS-Query_MSISDN - Chrome (headless) - 20180601_105318..........................................................................0/3(0%)--------------------------------------------------------------------------------Copying report to folder C:\Jenkins\workspace\Katalon Studio - ESB API\Reports\20180601_105318...Uploading report to JIRA...Start sending test result to JIRA issuesReport has been sent to JIRA--------------------------------------------------------------------------------Test Suites/TSC-Regression - 20180601_105317...........................7/7(100%)--------------------------------------------------------------------------------Test Suites/TS-Regression/TS-Retrieve_Balance_Info - Chrome (headless) - 20180601_105317...............................................................2/2(100%)Test Suites/TS-Regression/TS-Retrieve_PUK_Code - Chrome (headless) - 20180601_105317...................................................................2/2(100%)Test Suites/TS-Regression/TS-Query_MSISDN - Chrome (headless) - 20180601_105318........................................................................3/3(100%)--------------------------------------------------------------------------------C:\Katalon_Studio>exit 1 Build step 'Execute Windows batch command' marked build as failureRecording test resultsFinished: FAILURE>>>>>>The first 2 TestSuites under this TestSuiteCollection BOTH get the same timestamp 20180601_105317 in their name !

```

```auto
I would suggest that during the copying of the reports while running in console mode the subfolder for each TestSuite is also included.

```

---

<div class="post-metadata">

**Author:** ![Zarashima](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/zarashima/32/928_2.png) [@Zarashima](https://forum.katalon.com/u/Zarashima)\
**Post date:** [June 25, 2018, 2:37am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/5 "2018-06-25T02:37:48Z")

</div>

This issue has been fixed and it will be delivered in the next release.

---

<div class="post-metadata">

**Author:** ![Gerard\_van\_der\_Winke](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerard_van_der_winke/32/22419_2.png) [@Gerard\_van\_der\_Winke](https://forum.katalon.com/u/Gerard_van_der_Winke)\
**Post date:** [June 25, 2018, 9:13am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/6 "2018-06-25T09:13:18Z")

</div>

Looking forward to it. Thanx

---

<div class="post-metadata">

**Author:** ![Swaminathan\_Nandakum](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@Swaminathan\_Nandakum](https://forum.katalon.com/u/Swaminathan_Nandakum)\
**Post date:** [July 11, 2018, 10:04pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/7 "2018-07-11T22:04:31Z")

</div>

Hello, I am facing the same problem but in the docker image ([https://github.com/katalon-studio/docker-images](https://github.com/katalon-studio/docker-images)). Will you be updating that also as part of the release?

Best, Nanda

---

<div class="post-metadata">

**Author:** ![Alex8](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@Alex8](https://forum.katalon.com/u/Alex8)\
**Post date:** [July 25, 2018, 3:24pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/8 "2018-07-25T15:24:10Z")

</div>

> [Vinh Nguyen](https://forum.katalon.com/profile/33/Vinh%20Nguyen "Link: /profile/33/Vinh%20Nguyen") said:
> 
> This issue has been fixed and it will be delivered in the next release.

Dear Vingh,  
please let us know if it was already fixed or still waiting for release.  
If I am not mistaken, v.5.5 was published mid of July (after your comment)  
Although I am still facing the issue

---

<div class="post-metadata">

**Author:** ![sudarshan1](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@sudarshan1](https://forum.katalon.com/u/sudarshan1)\
**Post date:** [August 6, 2018, 6:32pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/9 "2018-08-06T18:32:22Z")

</div>

Hi,  
I am also facing the same issue in docker image.will you please let us know when ll this be fixed?

---

<div class="post-metadata">

**Author:** ![Andrei\_Zaharia](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Andrei\_Zaharia](https://forum.katalon.com/u/Andrei_Zaharia)\
**Post date:** [August 25, 2018, 9:11am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/10 "2018-08-25T09:11:46Z")

</div>

Hi,  
Any updates for this issue? I’m having 5.6.0 version and I’m still facing the issue.

---

<div class="post-metadata">

**Author:** ![Sunil\_Kumar\_A](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Sunil\_Kumar\_A](https://forum.katalon.com/u/Sunil_Kumar_A)\
**Post date:** [September 17, 2018, 9:04am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/11 "2018-09-17T09:04:37Z")

</div>

@Vinh Nguyen I have tried it on version 5.7.1 and still the issue exists. Please let us know when this will be fixed. This is one of the major issue as reports are getting overwritten after the execution.

---

<div class="post-metadata">

**Author:** ![Gerard\_van\_der\_Winke](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerard_van_der_winke/32/22419_2.png) [@Gerard\_van\_der\_Winke](https://forum.katalon.com/u/Gerard_van_der_Winke)\
**Post date:** [September 17, 2018, 11:10am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/12 "2018-09-17T11:10:02Z")

</div>

You can temporary work with a workaround I described in:

> **[Jenkins cant find Junit reports](http://forum.katalon.com/discussion/7327/jenkins-cant-find-junit-reports)**
>
> Can anybody tell me the correct path to give Jenkins on windows to find the Junit\_report.xml file generated after a test suite is executed?

---

<div class="post-metadata">

**Author:** ![Sunil\_Kumar\_A](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Sunil\_Kumar\_A](https://forum.katalon.com/u/Sunil_Kumar_A)\
**Post date:** [September 21, 2018, 9:39am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/13 "2018-09-21T09:39:04Z")

</div>

> Gerard van der Winkel said:
> 
> You can temporary work with a workaround I described in:  
> [Jenkins cant find Junit reports - Archive - Katalon Community](http://forum.katalon.com/discussion/7327/jenkins-cant-find-junit-reports)

I can not try this as Im using katalon docker image for running the test suite collection. This image by default uses -reportfolder option while triggering test cases.

Please let me know if we have any other workaround ? As this issue is getting very serious. With out this we are completely blocked on our pipeline.

---

<div class="post-metadata">

**Author:** ![Gerard\_van\_der\_Winke](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerard_van_der_winke/32/22419_2.png) [@Gerard\_van\_der\_Winke](https://forum.katalon.com/u/Gerard_van_der_Winke)\
**Post date:** [September 21, 2018, 11:24am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/14 "2018-09-21T11:24:41Z")

</div>

even with Katalon docker image, you can “workaround” the issue in a same manner.  
The Reports were correctly placed separately in separate subfolders under the Katalon Projects Report folder.  
The problem happens when these reports are copied incorrectly into one Reports folder (resulting in overwrites due to duplicate subfolder names).  
In Katalon docker image setup you are simply running a script too (as I understand it from the video I have seen on Katalon docker image), where you can add too a personal copy command to it after running Katalon to copy the subfolders correctly into your destination while keeping the subfolder structure intact, instead of trying to store all reports in one folder (as Katalon does).

---

<div class="post-metadata">

**Author:** ![Swaminathan\_Nandakum](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@Swaminathan\_Nandakum](https://forum.katalon.com/u/Swaminathan_Nandakum)\
**Post date:** [September 21, 2018, 5:39pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/15 "2018-09-21T17:39:31Z")

</div>

Gerard,  
IMHO, What you are saying is not quite correct. Since it pulls down the docker image every time, there is no way to modify the script which it is running. I am trying to get around the problem by having a test case called “logWorkaround” which simply copies the entire reports folder to a new folder which is timestamped. I add this at the end of every test suite, so all the reports for that suite get copied. This might result in additional logs but it is a small price to pay for a few extra bytes as long as all the logs are available.  
Best,  
Nanda

---

<div class="post-metadata">

**Author:** ![Gerard\_van\_der\_Winke](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerard_van_der_winke/32/22419_2.png) [@Gerard\_van\_der\_Winke](https://forum.katalon.com/u/Gerard_van_der_Winke)\
**Post date:** [September 24, 2018, 9:10am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/16 "2018-09-24T09:10:54Z")

</div>

Hi Nanda,  
I do not have enough info on how you are using Katalon Docker Image in your Automation process . But maybe using docker cp may be an option for you ?  
[http://obrown.io/2016/02/20/docker-build.html](http://obrown.io/2016/02/20/docker-build.html "Link: http://obrown.io/2016/02/20/docker-build.html")

---

<div class="post-metadata">

**Author:** ![Swaminathan\_Nandakum](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@Swaminathan\_Nandakum](https://forum.katalon.com/u/Swaminathan_Nandakum)\
**Post date:** [September 25, 2018, 10:22pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/17 "2018-09-25T22:22:24Z")

</div>

Hi Gerard,  
I am using Katalon Docker as follows:  
docker run -v “/home/circleci/project/Katalon”:/katalon/katalon/source:ro -v “/home/circleci/project/report”:/katalon/katalon/report -e KATALON\_OPTS=’-browserType=“Chrome (headless)” -retry=0 -statusDelay=150 -reportName=“Reports” -testSuiteCollectionPath=“Test Suites/Executable Suites/All/SuperSet/CircleCI/AllTests” ’ katalonstudio/katalon:latest

docker cp might work although it is sometime since I have used it. Will investigate later when time permits.

Best,  
Nanda

---

<div class="post-metadata">

**Author:** ![Christian\_R](https://avatars.discourse-cdn.com/v4/letter/c/c5a1d2/32.png) [@Christian\_R](https://forum.katalon.com/u/Christian_R)\
**Post date:** [September 27, 2018, 7:06pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/18 "2018-09-27T19:06:26Z")

</div>

Hi Gerard,

I am also running in to this issue with the same cirumstances as Nanda. While there might be workarounds such as docker cp, the underlying bug does not (from here) look like a very difficult issue to fix.

If the bug turns out to be very difficult to resolve then any docker-script related workaround can be fixed by the Katalon Studio team as well, since they are the one that publishes the docker image.

best regards,  
Christian.

---

<div class="post-metadata">

**Author:** ![Steve\_Seypt1](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Steve\_Seypt1](https://forum.katalon.com/u/Steve_Seypt1)\
**Post date:** [October 16, 2018, 3:17pm UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/19 "2018-10-16T15:17:04Z")

</div>

> Gerard van der Winkel said:
> 
> even with Katalon docker image, you can “workaround” the issue in a same manner.  
> The Reports were correctly placed separately in separate subfolders under the Katalon Projects Report folder…

As Gerard suggested, the separate subfolders under the Katalon Projects Report is fine.

Here is my workaround:

> <https://github.com/katalon-studio/katalon-studio/issues/41#issuecomment-430275065>
>
> !\[report\_overwrite\](https://user-images.githubusercontent.com/25978374/45873134-…5652e600-bdaf-11e8-93ab-995f125b7170.png)
> 
> If a test suite collection has multiple suites, reports are getting overwritten when executing the test cases using docker run command. This is serious bug and this image can not be used until it gets fixed.
> 
> Issue is seen in both sequential and parallel execute of the test suite collection.

---

<div class="post-metadata">

**Author:** ![Gerard\_van\_der\_Winke](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gerard_van_der_winke/32/22419_2.png) [@Gerard\_van\_der\_Winke](https://forum.katalon.com/u/Gerard_van_der_Winke)\
**Post date:** [October 17, 2018, 10:33am UTC](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196/20 "2018-10-17T10:33:31Z")

</div>

> Steve Seypt said:
> 
> As Gerard suggested, the separate subfolders under the Katalon Projects Report is fine.
> 
> Here is my workaround:
> 
> [BUG : Reports are getting overwritten while using this docker image · Issue #41 · katalon-studio/katalon-studio · GitHub](https://github.com/katalon-studio/docker-images/issues/26#issuecomment-430275065)

Regarding your other comment on Github:

> This might need a bit more refactoring. I’m now facing another problem. `eval` will exit 1 if the collection has any failed test. Because of that `cp -r` is not executed… still no reports 🙂

One solution may be:  
In your shell script start with

set +e

and after executing Katalon use the following to remember Katalon’s Exit code:

katalonRC=$?

and after your other commands you can exit with Katalon’s Exit code with:

exit $katalonRC

BTW on Linux Im using “rsync -auv” instead of cp command.

[Next page](https://forum.katalon.com/t/why-lose-some-suite-report-when-execute-suite-collection-in-console-mode/11196.md?page=2)
