Hi I agree with Deeepak,and I would like to add few points your questions.
1.whether it is able to generate unique while you are doing scripting? ans: If it is able to generate unique values. 2.whether you are able to see in corresponding response what you had sent request ? 3.Next how the see response ? ans:After adding the View results,you should run the script once.Click on the View Results Tree,there you see Sample results,Request and response? 4.Check you Response what you are exactly getting it not 5.If you are getting it, Then check with your Regular exp and if you wish to check it ? again go View results Tree at the bottom you can find Text Drop down Box scroll it you find Reg Exp Tester. keep your Reg exp in this tester for your corresponding response then what every the regular expression you had given it will display the corresponding matches (seams how instances ) For Example you had told that 3 instances you need to capture if the reg exp is correct mean it is going to display Reg Exp for this CAT1ID: CAT([0-9])ID For the 1st it should be Match no:1 Reg Exp for this CAT1ID: CAT([0-9])ID For the 2nd it should be Match no:2 Reg Exp for this CAT1ID: CAT([0-9])ID For the 3rd it should be Match no:3 If you apply for above basic logic in the script you get as I hope. Thanks Govardhan On Sat, Nov 1, 2014 at 2:57 AM, Deepak Shetty <[email protected]> wrote: > Hi > variables are not shared between threads. So if you have two threads > executing the exact same thing , running the same regex , you can store > both of them under the same reference name (the value will be different and > wont get overwritten ) and the later part of the script will get the > appropriate value for its thread. > As such you dont need to do what you are planning (unless I am > misinterpreting your question) > > regards > deepak > > On Fri, Oct 31, 2014 at 1:47 PM, BOLB (Bohdan L Bodnar) <[email protected]> > wrote: > > > I've a problem I can't find an answer to; I'm hoping someone more > > knowledgeable than I can give me a pointer or two. Here is the > background: > > > > I'm running a script in jmeter 2.9 that currently has one "user" (i.e., > > thread). The script makes an API call that returns a numeric value that > is > > stored in a (reference name) identity by the Regular Expression > Extractor; > > currently, the name is hardcoded to "CAT1ID". The value of this identity > > (i.e., ${CAT1ID}) is used in a later portion of the script. For a > single > > modeled user, the script works exactly as intended. I wish to increase > the > > number of users (i.e., threads) and have unique identities associated > with > > each user. For example, if I have three threads, I'd like to have > CAT1ID, > > CAT2ID, and CAT3ID and I wish to later pass the values of these > identities > > to other portions of the script. I'm requesting help with the following: > > > > 1). How should the reference name identifier be written? I tried > > CAT${__threadNum()}ID but I'm not certain this is working correctly. > > 2). How should I reference this identifier in subsequent calls? > > > > Thank you very much, > > > > Bohdan Bodnar > > > > >
