After a lot of trials and fails I found out a way to view passed , failed Jmeter Samplers in Jenkins
which is to Extract the result report to a .csv file
I did this by doing the following :
1- Add a View Results Tree listener to my test plan
2- I run the Jmeter in a NON GUI mode within Jenkins by including below command in the post build Action:
sh jmeter.sh -Jjmeter.save.saveservice.output_format=csv -Jjmeter.save.saveservice.timestamp_format=yyyy/MM/dd -n -t /path to the test plan/TestPlan.jmx -l test1.csv
After building the project there will be a performance report displaying all the samplers in my .jmx file with the failed ones colored in Red
Note:
If you want to include the .CSV file in the notification Email aftre the project build you have to choose Which fields to be included in the output report and this is done by pressing Configure in the (Show Results In Tree) listener
and choose what fields to be included in the file
JMETER_HOME\jmeter.bat -J jmeter.save.saveservice.output_format=xml -n -t JMETER_HOME\<testplan>.jmx -l JMETER_HOME\<your-JTL>.jtl
. This will execute the test in NON-GUI mode. Once the test is done, launch JMeter and add your choice of listener and map the JTL to view the results. To view the success/failed assertion, addAssertion Listener
to see the results. Let me know if this helps. – NaveenKumar Namachivayam