Timeline for Jmeter get requests failing to exit for existing response
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 25, 2022 at 1:20 | comment | added | user2201789 |
i tweaked jsonpath expression to $..valid_model_list[?(@.model_name =~ /.*Model-Corpus-JMeter2-0001-v1-8k/i)] and while condition to ${__jexl3("${model_name_matchNr}" != "1",)} the result is good. I need to change the jsonpath expression to use variable, as in previous POST request, variable was used. what is the correct syntax to replace Model-Corpus-JMeter2-0001-v1-8k to Model-Test-${variable}-${counter}-v1-8k ?
|
|
Feb 24, 2022 at 16:32 | comment | added | user2201789 | there is an error java.lang.NumberFormatException: For input string: "${model_name_matchNr}" | |
Feb 24, 2022 at 14:53 | comment | added | Dmitri T |
In that case ${__jexl3("${__V(model_name_${__intSum(${model_name_matchNr},-1,)})}" != "${modelnameresult}",)} , more information: Here’s What to Do to Combine Multiple JMeter Variables
|
|
Feb 24, 2022 at 14:46 | comment | added | user2201789 | right, seems I get the result I wanted when set the json extractor match no. to -1, all model_name returned but the specific one has model_name_xx numbering append behind, can I just find a way by modifying the while condition to match it? ${__jexl3("${model_name}" <= maybe this part | |
Feb 24, 2022 at 14:41 | comment | added | Dmitri T |
Theoretically ${__jexl3("${model_name_18}" != "${modelnameresult}",)} , however I repeat, there might be a better way to wait until the desired value is in the response
|
|
Feb 24, 2022 at 14:36 | comment | added | user2201789 | model_name_18=Model-Corpus-JMeter2-0001-v1-8k is captured in debug sampler. what should be the while condition to handle it? | |
Feb 24, 2022 at 12:26 | comment | added | user2201789 | I have tried both , same failed result. ${__jexl3("${model_name}" != "${modelnameresult}",)} and ${__jexl3("${model_name}" != "$modelnameresult",)} | |
Feb 24, 2022 at 12:14 | comment | added | user2201789 | Why regular expression should be used in this case? | |
Feb 24, 2022 at 10:58 | history | answered | Dmitri T | CC BY-SA 4.0 |