Is there an option for us to customize and group the test scenarios in the statics section of the Karate Gatling Report?

对着背影说爱祢 提交于 2021-02-05 06:51:29

问题


In the statics section of the Gatling report, the tests are grouped based on paths. However in our case the API URI + path is same and the functional flow will be differentiated based on the header values and the request method is POST. So in this case even if I test four different scenarios/flows, all the tests will be grouped as a single, since the path is same. Is there any option for us to group the statistics section based on scenarios/something else?

Is there any option for us to group the tests based on these scenarios? The expectation is something similar to this. The below one is a screen shot from a gatling.io page. It seems to be a web based application


回答1:


Talk about timing. Here's the issue I raised a few hours back: https://github.com/intuit/karate/issues/526

So yes, this is a gap we are planning to address. Counting on you for beta-testing.

EDIT: Available since version 0.9.0 - this works by specifying a nameResolver: first put a header in your transaction and use a nameResolver to use this to group the transactions:

protocol.nameResolver = (req, ctx) => req.getHeader("karate-name") 

refer the docs: https://github.com/intuit/karate/tree/master/karate-gatling#nameresolver




回答2:


This enhancement is now done on Karate-Gatling on the release 0.9.0.RC2 version. The statistical analysis will now display the results based on each business flows. So now onward you can have separate analysis for each business flow. This is the way the result will looks like in the new release

You can also do a detailed analysis of percentiles, deviations of each business flow separately.



来源:https://stackoverflow.com/questions/52296135/is-there-an-option-for-us-to-customize-and-group-the-test-scenarios-in-the-stati

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!