You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Per Ekman <mr...@hotmail.com> on 2006/04/03 14:18:14 UTC

Not possible to use variables in request path in build 20060403

I'm facing a problem that I can't use a variable in my request path when 
running build 20060403. Below is a sample from my test result. I'm using 
${LocationHeader} in my request path, which has a value received from a 
regexp extraction. With the latest build, it doesn't use that value, however 
it works with the 20060315 build





<httpSample t="0" lt="0" ts="1144064011194" s="false"....... rc="Non HTTP 
response code" rm="Non HTTP response message" tn="TC101_1_1/TC115_1_1 1-1" 
dt="text">
  <assertionResult>
    <failure>true</failure>
    <error>false</error>
    <failureMessage>Test failed, code expected to match 
/200/</failureMessage>
  </assertionResult>
  <assertionResult>
    <failure>true</failure>
    <error>false</error>
    <failureMessage>Test failed, message expected to match 
/OK/</failureMessage>
  </assertionResult>
  <assertionResult>
    <failure>true</failure>
    <error>false</error>
  </assertionResult>
  <responseData class="java.lang.String">java.io.IOException: Stream 
closed&#x0D;
	at 
java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)&#x0D;
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)&#x0D;
	at java.io.BufferedInputStream.read(BufferedInputStream.java:313)&#x0D;
	at java.io.FilterInputStream.read(FilterInputStream.java:90)&#x0D;
	at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:224)&#x0D;
	at 
org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)&#x0D;
	at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:554)&#x0D;
	at 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:543)&#x0D;
	at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)&#x0D;
	at java.lang.Thread.run(Thread.java:595)&#x0D;
</responseData>
  <cookies class="java.lang.String"></cookies>
  <method class="java.lang.String">GET</method>
  <queryString class="java.lang.String"></queryString>
  <url>http://130.100.11.111:1111/${LocationHeader1}</url>
</httpSample>

_________________________________________________________________
Nyhet! Hotmail direkt i din Mobil! http://mobile.msn.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Not possible to use variables in request path in build 20060403

Posted by sebb <se...@gmail.com>.
I've discovered the problem with jmeter-t hanging; it was a deadlock
between two classes.
Not sure why it only happened for that case. Anyway it is now fixed.

But I cannot reproduce your problem.

S.
On 03/04/06, sebb <se...@gmail.com> wrote:
> I've just done a test, and it works fine for me ...
> ... so long as I don't use the jmeter-t.bat file. Something is not
> working when I drop the jmx file on it. However if I start JMeter and
> create a test plan, or load an existing one, or run it in non-GUI,
> then it works fine.
>
> Can you send me details of your test plan? Either privately, or create
> a Bugzilla issue and attach sample test plan and jmeter.log output.
> Remove any sensitive data first.
>
> S.
> On 03/04/06, sebb <se...@gmail.com> wrote:
> > Thanks for the report.
> >
> > I'll take a look at that as soon as I can - I was not aware that
> > anything had changed in that area.
> >
> > S
> > On 03/04/06, Per Ekman <mr...@hotmail.com> wrote:
> > > I'm facing a problem that I can't use a variable in my request path when
> > > running build 20060403. Below is a sample from my test result. I'm using
> > > ${LocationHeader} in my request path, which has a value received from a
> > > regexp extraction. With the latest build, it doesn't use that value, however
> > > it works with the 20060315 build
> > >
> > >
> > >
> > >
> > >
> > > <httpSample t="0" lt="0" ts="1144064011194" s="false"....... rc="Non HTTP
> > > response code" rm="Non HTTP response message" tn="TC101_1_1/TC115_1_1 1-1"
> > > dt="text">
> > >  <assertionResult>
> > >    <failure>true</failure>
> > >    <error>false</error>
> > >    <failureMessage>Test failed, code expected to match
> > > /200/</failureMessage>
> > >  </assertionResult>
> > >  <assertionResult>
> > >    <failure>true</failure>
> > >    <error>false</error>
> > >    <failureMessage>Test failed, message expected to match
> > > /OK/</failureMessage>
> > >  </assertionResult>
> > >  <assertionResult>
> > >    <failure>true</failure>
> > >    <error>false</error>
> > >  </assertionResult>
> > >  <responseData class="java.lang.String">java.io.IOException: Stream
> > > closed
> > >        at
> > > java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
> > >        at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
> > >        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
> > >        at java.io.FilterInputStream.read(FilterInputStream.java:90)
> > >        at
> > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:224)
> > >        at
> > > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
> > >        at
> > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:554)
> > >        at
> > > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:543)
> > >        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> > >        at java.lang.Thread.run(Thread.java:595)
> > > </responseData>
> > >  <cookies class="java.lang.String"></cookies>
> > >  <method class="java.lang.String">GET</method>
> > >  <queryString class="java.lang.String"></queryString>
> > >  <url>http://130.100.11.111:1111/${LocationHeader1}</url>
> > > </httpSample>
> > >
> > > _________________________________________________________________
> > > Nyhet! Hotmail direkt i din Mobil! http://mobile.msn.com/
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Not possible to use variables in request path in build 20060403

Posted by sebb <se...@gmail.com>.
I've just done a test, and it works fine for me ...
... so long as I don't use the jmeter-t.bat file. Something is not
working when I drop the jmx file on it. However if I start JMeter and
create a test plan, or load an existing one, or run it in non-GUI,
then it works fine.

Can you send me details of your test plan? Either privately, or create
a Bugzilla issue and attach sample test plan and jmeter.log output.
Remove any sensitive data first.

S.
On 03/04/06, sebb <se...@gmail.com> wrote:
> Thanks for the report.
>
> I'll take a look at that as soon as I can - I was not aware that
> anything had changed in that area.
>
> S
> On 03/04/06, Per Ekman <mr...@hotmail.com> wrote:
> > I'm facing a problem that I can't use a variable in my request path when
> > running build 20060403. Below is a sample from my test result. I'm using
> > ${LocationHeader} in my request path, which has a value received from a
> > regexp extraction. With the latest build, it doesn't use that value, however
> > it works with the 20060315 build
> >
> >
> >
> >
> >
> > <httpSample t="0" lt="0" ts="1144064011194" s="false"....... rc="Non HTTP
> > response code" rm="Non HTTP response message" tn="TC101_1_1/TC115_1_1 1-1"
> > dt="text">
> >  <assertionResult>
> >    <failure>true</failure>
> >    <error>false</error>
> >    <failureMessage>Test failed, code expected to match
> > /200/</failureMessage>
> >  </assertionResult>
> >  <assertionResult>
> >    <failure>true</failure>
> >    <error>false</error>
> >    <failureMessage>Test failed, message expected to match
> > /OK/</failureMessage>
> >  </assertionResult>
> >  <assertionResult>
> >    <failure>true</failure>
> >    <error>false</error>
> >  </assertionResult>
> >  <responseData class="java.lang.String">java.io.IOException: Stream
> > closed
> >        at
> > java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
> >        at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
> >        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
> >        at java.io.FilterInputStream.read(FilterInputStream.java:90)
> >        at
> > org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:224)
> >        at
> > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
> >        at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:554)
> >        at
> > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:543)
> >        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
> >        at java.lang.Thread.run(Thread.java:595)
> > </responseData>
> >  <cookies class="java.lang.String"></cookies>
> >  <method class="java.lang.String">GET</method>
> >  <queryString class="java.lang.String"></queryString>
> >  <url>http://130.100.11.111:1111/${LocationHeader1}</url>
> > </httpSample>
> >
> > _________________________________________________________________
> > Nyhet! Hotmail direkt i din Mobil! http://mobile.msn.com/
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Not possible to use variables in request path in build 20060403

Posted by sebb <se...@gmail.com>.
Thanks for the report.

I'll take a look at that as soon as I can - I was not aware that
anything had changed in that area.

S
On 03/04/06, Per Ekman <mr...@hotmail.com> wrote:
> I'm facing a problem that I can't use a variable in my request path when
> running build 20060403. Below is a sample from my test result. I'm using
> ${LocationHeader} in my request path, which has a value received from a
> regexp extraction. With the latest build, it doesn't use that value, however
> it works with the 20060315 build
>
>
>
>
>
> <httpSample t="0" lt="0" ts="1144064011194" s="false"....... rc="Non HTTP
> response code" rm="Non HTTP response message" tn="TC101_1_1/TC115_1_1 1-1"
> dt="text">
>  <assertionResult>
>    <failure>true</failure>
>    <error>false</error>
>    <failureMessage>Test failed, code expected to match
> /200/</failureMessage>
>  </assertionResult>
>  <assertionResult>
>    <failure>true</failure>
>    <error>false</error>
>    <failureMessage>Test failed, message expected to match
> /OK/</failureMessage>
>  </assertionResult>
>  <assertionResult>
>    <failure>true</failure>
>    <error>false</error>
>  </assertionResult>
>  <responseData class="java.lang.String">java.io.IOException: Stream
> closed
>        at
> java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
>        at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
>        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
>        at java.io.FilterInputStream.read(FilterInputStream.java:90)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.readResponse(HTTPSampler.java:224)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:424)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:554)
>        at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:543)
>        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247)
>        at java.lang.Thread.run(Thread.java:595)
> </responseData>
>  <cookies class="java.lang.String"></cookies>
>  <method class="java.lang.String">GET</method>
>  <queryString class="java.lang.String"></queryString>
>  <url>http://130.100.11.111:1111/${LocationHeader1}</url>
> </httpSample>
>
> _________________________________________________________________
> Nyhet! Hotmail direkt i din Mobil! http://mobile.msn.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org