api - Testing async POST requests that go into queue to be processed with JMeter -



api - Testing async POST requests that go into queue to be processed with JMeter -

using jmeter attempting load test async post requests. 1 time request gets made, mongodb documents gets set worker farm queue processed. not want thread move forwards until queue gets processed. there way wait status of complete.

my thread steps this.

log in create event (post) add video event (post) process event (async post) "this request puts video in queue processing, can on event , see status of video "status" : "encoding" or "status" : "ready"." watch video (get) delete event (delete)

i tried adding while controller in thread maintain checking event status , move out if status ready didn't seem work loops 3 times , did nothing, may using wrong though.

this while controller looks like.

while controller w/ status ${__javascript(${status}!="ready")} event status http header manager json path extractor status - $.status constant timer - 1000

has had similar problem async calls? or through out ideas on how around this?

thanks

thread grouping 1 beanshell sampler - props.put("finish", "false"); http1 http2 .... loop and/or delay (get on event , see status of video "status" : "encoding" or "status" : "ready".") if controller - "${status}"=="ready" beanshell sampler - props.put("finish", "true");

while controller - ${__beanshell( props.get("finish") != null || props.get("finish")=="true" )} watch video (get) delete event (delete)

hope help.

api testing asynchronous jmeter

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -