Unanswered question

How to generate a custom Report included requests response times?

Hello,

The option customReportContents doesn't work. The result files (pdf or html) does not contain request response times (only the pages reponse time and the transactions response time).

For information, the last report generated through the GUI contain request response time.

This is my command line:

  • |
  • $HOME/neoload/bin/NeoLoadCmd \
    -project /builds/continuous.deployment/perf-tests/neoload_controller/$Project_Name/$Project_Name.nlp \
    -launch $Scenario_Name \
    -testResultName $Report_Name_2 \
    -description "${Var_Date}: Test de performance du prjet: ${Project_Name}, la version: ${Version}, Pipeline: ${PipelineID}" \
    -report /builds/continuous.deployment/perf-tests/neoload_controller/result/$Report_Name_2.html,/builds/continuous.deployment/perf-tests/neoload_controller/result/$Report_Name_2.pdf,/builds/continuous.deployment/perf-tests/neoload_controller/result/$Report_Name_2.xml \
    -customReportContents \
    -exportRaw /builds/continuous.deployment/perf-tests/neoload_controller/result/$Report_Name_2.csv \
    -exitCodeFailIgnore \
    -noGU

    Thanks

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

I was not able to reproduce your issue. What is your NeoLoad version?

Also if you run the test from command line i.e outside of Jenkins are you still able to reproduce?

You said that you manually generated the report including request through the NeoLoad GUI. Could you confirm that your Job is running with the same user i.e $HOME is the user home from which you manually started the GUI?

 

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Hi Nouredine,

My Neoload Version is 7.6

I use Gitlab to run the test.

It's not the same user, the GUI is used in another machine.
I just copied the Neoload project in the Gitlab repos and I launched the test via pipeline.

Nouredine will be able to correct me but i assume these settings are held in the user profile of the machine where the test was run, you may need to copy that config file over to the gitlab agent machine where Neoload is installed.

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Hello Neil,

If you talk about the controller_user.properties, I copied the file on the gitlab agent machine and I changed the follwong lines but it doesn't work:

First version:

[Report]
location=APIMissionnementPieceJointe\\reports\\report-Oct-11-11_20.html
format=HTML
project=APIMissionnementPieceJointe
launch=true

Modified version:
[Report]
location=/neoload_controller/APIMissionnementPieceJointe/reports/report-Oct-11-11_20.html
format=HTML
project=APIMissionnementPieceJointe
launch=true

Help please ?

The original path is relative to the project, the modified one is the fully qualified path. Try...

location=APIMissionnementPieceJointe/reports/report-Oct-11-11_20.html

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Hello Neil,

I tried booth, but it doesn't work:

  • the absolute Pathnames : /builds/continuous.deployment/perf-tests/neoload_controller/APIMissionnementPieceJointe/reports/report-Oct-11-11_20.html
  • the relative Pathnames : APIMissionnementPieceJointe/reports/report-Oct-11-11_20.html

Is there another file to edit ?

Thanks

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Neil,

Ok thanks.

For information, when I delete the old report and generate a new one via the GUI, the request box stay checked. I think that Neoload retrieve the configuration from another place...

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

When you manually generate your report through the GUI do you publish your project to Gitlab right after?

I think some information are stored in the project itself too.

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Hello Nouredine,
First I generate a report with the GUI by ticking the "request" box. The report is saved with the disired request response times in "APIMissonnementPieceJointe/reports/report-Oct-11-11_20.pdf".
Then I copy the entire NEOLOAD project into GITLAB.
I also copy the controller_user.properties file to have the 90 percentile times instead of the 99 percentile.
When I run a new test via GITLAB (with the -customReportContents option), the generated report contain the 90 percentile times. However, the response times for requests are not displayed. I only have the response times of the pages and the transactions.

jaouher C.
jaouher C.

jaouher C.

Level
1
109 / 750
points

Hello,
Have you had a chance to reproduce my problem?
Let me know if you have questions.
Thanks