0

Test Plan or referenceThis is my first time working with Jmeter. I have 2 questions over here

1.While trying to execute methods ctx.getCurrentSampler() and ctx.getPreviousSampler() in Beanshell PreProcessor, its returning me same request for both the methods.

  1. Arguments arguments = ctx.getCurrentSampler().getArguments();

log.info("count of argument= " +arguments.getArgumentCount()); ==> returns me 0

Though log.info("Current Sampler "+ctx.getCurrentSampler()); returns me the request, not sure why the count returns 0.

FYI: I am passing requests using a csv file

Can someone help me to figure out if I am missing anything over here

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
NewTechie
  • 3
  • 3
  • Can you show your test plan? – Ori Marko Feb 28 '18 at 06:02
  • @user7294900 I have updated description with the screenshot of test plan. I tried to move beanshell processor at Test Plan level, thread group level and HTTP Request level as well. Still it returns same results – NewTechie Feb 28 '18 at 13:34

0 Answers0