2021年4月29日星期四

Multipe If conditions not working in JMeter IF controller

I need to execute specific api only for dedicated users from CsvTestconfig file Test1 Test2 Test3 Test4 ... Test40

For example: API1 to be executed only by users (Test1, Test2, Test3, Test4) I have used below code in JMeter IF condition. but it is not working as expected. for single condition it works fine.

${__javaScript("${LOGINUSER}" == "Test1" || "${LOGINUSER}" == "Test2" || "${LOGINUSER}" == "Test3" || "${LOGINUSER}" == "Test4")}

API2 should be executed by all other users except users (Test20, Test22, Test30)

${__javaScript("${LOGINUSER}" != "Test20" || "${LOGINUSER}" != "Test22" || "${LOGINUSER}" != "Test30")}

Appreciate if anyone can help on this.

Thanks

https://stackoverflow.com/questions/67328058/multipe-if-conditions-not-working-in-jmeter-if-controller April 30, 2021 at 12:08PM

没有评论:

发表评论