Putting the split function in the condition field of the If Controller seems to work best. If any of you have a better suggestion let me know.
   thanks,
         Tim

Tim Hepner wrote:
I'm using jmeter 2.1.1. What is the best way to call a function when that is all you need to do. My jmeter script navigates through tabs on a page. On the 1st request to the page I use a regular expression extractor to extract the name a link for each tab separated by a comma. Then inside a foreach loop I use the __split function to separate the name and link. I then navigate to each tab using the link and make an assertion using the name. Currently I have an extra http request just to use the __split function. Is there a way I can call the __split function without making an http request? Here's what the plan looks like.

Http Sampler
   Regular Expression Extractor (Extract tab names and links)
For Each Loop (Iterate through tabs)
Http Sampler (used to call the __split function to split name and link)
   Http Sampler (Navigate to tab)
      Response Assertion  (Assertion based on tab name)

   thanks,
      Tim


--
Tim Hepner
CSC Contractor
Fleet Numerical Meteorology and Oceanography Center
831.656.4673



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

Reply via email to