Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Test Reports failed to generate


#1

Hi Tobias,

We are using the latest test rail version. When a report is generated it is not and it shows report is generating continuously.

Error in the system log is below:

2015-11-05

08:17:08	[ValidationException] Field Report is not a valid report.

Details:
File: C:\inetpub\wwwroot\testrail\sys\helpers\ex.php
Line: 25
Status Code: 500
Host: end-hq-psc
Uri: /testrail/index.php?/reports/ajax_check_status (POST)

Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
PHP: 5.4.24
Server: Windows NT 6.2 build 9200 (Unknown Windows version Standard Edition) i586

report_id: 107
_token: iJaU3WMVTm1N4s0HpG4J
_version: 5.0.2.3372

Trace:
at ex::raise (ex.php:25)
at ex::raise (controller.php:241)
at Controller->_prepare_invoke (controller.php:133)
at Controller->_invoke_web (controller.php:117)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)


#2

Hello Venkata,

Thanks for your posting. If the reports aren’t generated you likely haven’t activated TestRail’s background task yet. The background task is responsible for computing TestRail’s reports as well as processing email notifications and other tasks.

You can verify the status of the background task under Administration > Overview. You can learn more about activating the background task here:

http://docs.gurock.com/testrail-admin/howto-background-task

You can also clear the email queue before activating the background task via the little link on the administration overview page, next to the queue background task’s status (this prevents any queued emails to be processed, which could be hundreds of emails or more).

The message you see in the log just means that TestRail tried to get the current status for a report on the Reports tab and found that the report hasn’t been generated so far and the message itself can be ignored.

Cheers,
Tobias


#3

Hi there,

Getting the same issue after upgrade.

Background task is running.

Error is:

[ValidationException] Field Report is not a valid report.

Details:
File: C:\inetpub\wwwroot\testrail\sys\helpers\ex.php
Line: 25
Status Code: 500
Host: testrail.ie.aon.bz
Uri: /testrail/index.php?/reports/ajax_check_status (POST)

Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
PHP: 5.6.16
Server: Windows NT 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) i586

report_id: 205
_token: h7wb9lFoMLBj9YYIjqJl
_version: 5.3.0.3603

Trace:
at ex::raise (controller.php:244)
at Controller->_prepare_invoke (controller.php:136)
at Controller->_invoke_web (controller.php:120)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)

We have restarted the service and still getting the same issue.

Thanks,

Ivor


#4

Hi Ivor,

Please make sure the background task is really running (and triggered every few minutes) and you can check the status on Administration > Overview. For large reports, it might also be necessary to increase the memory limit of PHP and this is uses a very low default in most cases:

http://docs.gurock.com/testrail-faq/system-memory-limit

I hope this helps!

Cheers,
Tobias