Hello,
I am trying to load test a set of .net services using JMeter, the test plan
contains the following steps
1. Login
- Extract and store the authentication token for subsequent use
2. Make a call to get the list of master items (each has multiple
properties like ID, Type, GroupIdentifier, etc;)
3. Use an xpath to get a list of item nodes (the 'return entire XPATH
fragement instead of text content?' option is checked) --> this is assigned
to a variable named 'alist'
- Place a foreach with the input variable as 'alist' and an output
variable (say 'a')
1. Inside the foreach use another xpath extractor to get the ID by
applying it on 'a'
2. Make a call to get the details using the ID variable
3. Use an xpath extractor to get the GroupIdentifier or Type by
applying it on 'a'
4. Make a call to get the details of the Group or the Type
The issue I am facing is that when I make a call to return (say) 5 items in
step 2, the for loop runs for 5 times but the variables that are being
evaluated using the xpath extractors inside the foreach are not replaced
with the evaluation result.
Run 2 through 5 work fine with values extracted from item 1 through 4.
Basically the first extraction call inside the for loop misses to work and
the loop correctly evaluates from the 2nd round.
I have the test plan and the debug sampler in place but could not figure
out why this is the case.
All help is appreciated.
Thanks,
~Vikas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]