hi Resending because got a spam notification works fine for me Sample script (change the location in the script to your HTML file) cid-1bd02fe33f80b8ac.office.live.com/self.aspx/Public/jmeter/RegexTest/RegexTest.jmx
Jmeter version 2.4 r961953 Java 1.5 Regex used - <span\s*class="x6">([^<]*)</ span> See if the sample script works for you , if not then you might need to check the versions you are running.. regards deepak On Tue, Oct 26, 2010 at 2:21 PM, Michele Mase' <[email protected]> wrote: > > The string is > <span class="x6">1819</span> > so the walue is 1819 > > On Tue, Oct 26, 2010 at 9:39 PM, Deepak Shetty <[email protected]> wrote: > > can you upload that HTML anywhere and send us a link? > > > > regards > > deepak > > > > On Tue, Oct 26, 2010 at 12:22 PM, Michele Mase' > > <[email protected]>wrote: > > > >> a) yes > >> In order to avoid other steps, i wrote the exact response in a html page, > >> hit it with an http request (get page.html) > >> post process it with the regex. extractor I've explained in the first mail. > >> The value that should be extracted (a value between 1 and 6 decimal > >> digits), it will be used to do another get http > >> i.e. > >> get 123.html where 123 is the value extracted. > >> c) > >> I've seen only dummy or null values :( > >> > >> On Tue, Oct 26, 2010 at 5:48 PM, Deepak Shetty <[email protected]> wrote: > >> > Hi > >> > just a couple of things to check > >> > a. The snippet of HTML you posted is from the view results tree response? > >> > (and not from a tool like firebug) - this matters because in the DOM > >> spaces > >> > get converted into a single one or maybe you have ' instead of " . In > >> your > >> > exact value you have omitted the = > >> > b. You have attached the regex as a child to the sampler that is > >> generating > >> > the above response > >> > c. Felix's regex should work. > >> > > >> > regards > >> > deepak > >> > > >> > On Tue, Oct 26, 2010 at 8:03 AM, Michele Mase' <[email protected] > >> >wrote: > >> > > >> >> Even > >> >> <span class\"x6\">1819</span> that is the "exact" value > >> >> returns > >> >> "dummy" > >> >> > >> >> On Tue, Oct 26, 2010 at 4:31 PM, Felix Frank <[email protected]> wrote: > >> >> > >> >> > http://jakarta.apache.org/oro/demo.html says this should work, so I'm > >> at > >> >> > a loss. > >> >> > > >> >> > Are you sure you're using the variable correctly? Have you inserted a > >> >> > Debug Sampler? > >> >> > > >> >> > On 10/26/2010 04:04 PM, Michele Mase' wrote: > >> >> > > <span class=\"x6\">[0-9]{1,6}</span> > >> >> > > >> >> > --------------------------------------------------------------------- > >> >> > To unsubscribe, e-mail: [email protected] > >> >> > For additional commands, e-mail: [email protected] > >> >> > > >> >> > > >> >> > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [email protected] > >> For additional commands, e-mail: [email protected] > >> > >> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

