|
各位大侠,我在设计测试场景的时候遇到以下两个问题,请教:(我录制了两个交易:login+操作A+logout;login+操作B+logout)
1. 单独运行两个交易,每个交易thread设为5,无任何错误,但混合运行,一支交易thread为3,一支为2,则会有部分登录失败
问:Jmeter的线程会存在冲突么,如果两支交易混合总线程虽然设置为5,但是否其实不是完全独立呢
2. 运行顺序,例如我设置脚本运行5分钟,期望是login1次-->操作A循环到接近5分钟-->logout运行1次后结束(类似于loadrunner的运行场景),但实际结果是login运行一次-->操作A运行一次-->logout运行一次-->操作A循环到5分钟结束
问:如何才能按照我期望的结果运行
附:我的test plan树
Test plan
------------HTTP Cookie Manager
------------Thread Group A
--------------------------------Once only controller login
-----------------------------------------------Transaction Controller login
-----------------------------------------------------------Samples of login
--------------------------------Transaction Controller A
------------------------------------------------Samples of A
--------------------------------Once only controller logout
-----------------------------------------------Transaction Controller logout
-----------------------------------------------------------Samples of logout
------------Thread Group B
--------------------------------Once only controller login
-----------------------------------------------Transaction Controller login
-----------------------------------------------------------Samples of login
--------------------------------Transaction Controller B
------------------------------------------------Samples of B
--------------------------------Once only controller logout
-----------------------------------------------Transaction Controller logout
-----------------------------------------------------------Samples of logout |
|