Answered question

Jenkins job

I would like to have the jenkins job failed when the error rate is higher than 0%.
Till now I didn't find how to do it. There was a topic found here in the community but was not explaining how to do.

Thanks in advance

Salvatore D.
Salvatore D.

Salvatore D.

Level
0
17 / 100
points
Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

First of all you will need an SLA in your Neoload project measuring the Error Rate %. As part of your Neoload run in Jenkins, use the command line arguments to produce the JUnit SLA report. Use the Jenkins JUnit action parse the test result and return a pass/fall based on the content

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

christophe M.
christophe M.

christophe M.

Level
4
5000 / 5000
points
Team

Dear Salvatore,

You should add a SLA in the NeoLoad project. You can add SLAs on specific transactions, or on a global status like global Error rate.
See the SLA documentation: https://www.neotys.com/documents/doc/neoload/latest/en/ht...

Then, if a SLA fails, the Jenkins will be automatically flagged as 'instable' because NeoLoad will generate a JUNIT report with failed tests.

Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team