0
votes

I have a Jmeter test plan that I use to test some apis with http request.

On VSTS, my team has set up Test Cases so I need to Run automated tests from test plans to validate restJson values as shown in part 6 of the previous documentation link

I already made a simple build definition that successfully builds my Jmeter test plan. The problem is that I don't know what to add to my build definition to publish the results from jmeter on VSTS so I can visualize wich service executed correctly as shown in the "view results tree" section shown in Jmeter test plan

Note: I know I can execute jmeter test plan .jmx from the Load Test tab on vsts but I'm not testing performance, I just need to verify that each api responds with a specific status code and response data as shown in Jmeter test plan. The problem is that I can not associate an automated test to run a test case if I'm using the Load test.

This answer suggest to export the results from jmeter to xml and then create a script to transform the xml in a proper Xunit result file then used to publish test results but this seems a little complicated.

I was also thinking that maybe there is a way to export my jmeter file to a junit test in java/maven that I can use to build and publish my results lateron vsts but I don't know if this is possible.

1

1 Answers

0
votes

Yes, you can also to convert the JMeter result to Junit result, and then publish the JUnit test to VSTS.

And there are multiple ways to convert JMeter result to Junit result. Below are some options: