JMeter - Why once only controller runs more than once

前端 未结 6 1121
情深已故
情深已故 2021-02-04 09:08

I added two request one for login to store the session id and another request to check the load test which requires session id.

I made login request as once only, by ad

6条回答
  •  再見小時候
    2021-02-04 09:21

    • Once per thread : put it under Once Only Controller
    • Once when test start : put it under setUp Thread Group
    • Once when test end you can put it under tearDown Thread Group
    • Once in all test put under If Controller with
    ${__groovy(${__threadNum} == 1 && vars.getIteration() == 1)}
    

提交回复
热议问题