xpath - Jmeter while controller doesn't seem to evaluate variables as numbers -


i writing jmeter script keeps loading data until table reaches specified size. have while loop, in have 1 http sampler loads data, http sampler xpath post-processor check table size (they call 2 different apis). reference variable of xpath post processor currentsize , have user defined variable maxsize, using ${currentsize} < ${maxsize} condition while loop creates infinite loop.

thinking maybe problem output of xpath string, i've tried doing various things in beanshell coerce number, i'm beanshell noob, haven't been successful either. can guide me how jmeter recognize variable number? (preferably decimal, if have round int, can live that.)

thanks!

i think using __javascript(parseint()) should suffice check condition.

e.g.

${__javascript(parseint(${time_elapsed_string}) < parseint(${duration}))}


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -