首页 文章

关于jmeter结果中显示的线数

提问于
浏览
0

scenario :有一些页面[示例主页,关于我们,联系我们等],但要访问这些页面用户必须首先登录系统,如果用户输入错误的用户名和密码,系统将提醒警报 . 所以测试这个条件我已经使用了csv配置,以便我可以测试这个场景超过1个用户可以说4.在用户详细信息csv我列出了4个用户凭据[即用户名,密码]其中1个凭据是错误的 . 我故意用错误的凭证来验证天气系统是否正在恢复正常警报 .

我的测试用例如 -

测试用例 - 线程组[我直接添加csv配置线程组聚合报告列表] -----

login controller -  http login sampler [ i added assertion under login sampler and 2 listerns under login sampler , view result tree , assertion result] + 

            browse controller - http about us sampler-[ i added 1 listerns under login sampler , view result tree ]

运行测试用例后

在线程组中,我没有设置thread = 4并运行测试用例 .

我发现系统检测到错误的用户名密码尝试通过在登录采样器下的视图结果树列表器中以红色指示它 . 但在关于我们的结果树中,列表的线程数显示为4并且也在http关于我们的采样器页面中的聚合控制器没有显示4个线程

so what i want to know that . out of the 4 threads one thread has already stopped in the login page because its credentials was wrong and without login one can not proceed to inner pages like about us ,contact us etc,then why 4 threads are showing in the about us sampler view result tree and in aggregate result . it should show 3 as 3 threads provided the valid credentials to proceed

1 回答

  • 0

    也许您忘记在“线程组”选项中的“采样器”错误之后设置要执行的操作 . 默认为继续,请尝试使用 Stop Thread .

相关问题