I am getting almost random, or at least unexpected, values for a parameter sent 
with an HTTP Request sampler.  I am trying to pass a page number as a parameter 
to a GET request to signify the page of the result set to display on a Web 
page.  Here is the specific case:
 
-- HTTP Request HTTPClient sampler with a parameter "PageNum" set to a variable 
incremented by 1 using the __intSum function.  This is a child of a While 
controller.  I've tried it with the ${__intSum(${pagenum},1,pagenum)} function 
as the parameter value in the HTTP Request, as well as a simple variable such 
as ${pagenum} which is incremented in the While controller condition field.  
 
-- The expected first value for the PageNum parameter is 2, whereas the first 
time through the While loop, the actual value is 3 or 5 or some seemingly 
random value.
 
-- At first i thought it could be a scoping issue where the PageNum variable 
was being updated outside the While controller or an variable initialization 
problem, but after more investigation it didn't seem to be the case.
 
-- Finally, I set the parameter value to a fixed value of 2 (for example) ... 
AND EVEN SO, the first time through the While loop the parameter is passed with 
the GET request as some random number (i.e., not "2").  The second time through 
the while loop, it does get set to the correct value of "2".
 
Any thoughts?  Thanks!

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/[email protected]/topic.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to