Am 01.02.2015 um 18:23 schrieb Erez Naim:

Hi,

I am running a Jmeter script which does this logic:

Thread Group

        While controller (condition)

                  http sampler request (for requested api with GET)

JSON Path extractor (to extract my desired data, this data will be checked in the while loop )

                       Cookie manager

                       Cache manager

                       Response Assertion (200)

                       Constant Timer (100 milliseconds)

As I ran the test it is working but I get 94% of failures due to many times the sampler is called through the loop till the JSON is really there and being calculated.

How can I make it logically better by not getting those errors , as you can see it here in the table below.

It is not failure it is part of the test I expect it to fail the first while loop.

I didn't get, what you wanted to do and what failed.

You have a condition, which fails, since the content on which you base your condition will be filled by the sampler-request, or extractor onside the while loop?

Then you could setup a variable before the condition, use it as a guard to not check the real condition and change that guard variable inside the controller.

The image was stripped.

Regards
 Felix

Thanks!

Erez Naim | QA Lead | LinkedIn <http://www.linkedin.com/profile/view?id=34323263>vCard <http://www.theneura.com/vCards/gilad.vcf>Twitter <http://twitter.com/#%21/giladmeiri/>

cid:[email protected]

EL AL 2 Street | Herzliya
mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura

website <http://www.theneura.com/> |blog <http://www.startupbitz.com/> |twitter <https://twitter.com/intent/user?screen_name=theneura> |map <http://goo.gl/maps/ZRkg5>


Reply via email to