You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Kerrod Wells <k....@cqu.edu.au> on 2007/11/30 02:37:12 UTC
POST data issues
Hi,
Sorry if this has been covered previous as I've only just joined the
list, and I'm very much new to Jmeter.
I have a test plan that has been imported from Badboy that does a simple
sign on, sign off test to our peoplesoft system (via https). When I
first run the test in Jmeter, it doesn't sign on correctly, and I see
the following in the Request tab (for the POST step)
POST data:
cmdlogin&languageCdENG&timezoneOffset-600&useridPS&pwd****
If I then click around, but not change anything in the POST step and
rerun the test it signs on correctly and gives the following in the
Request tab
POST data:
cmd=login&languageCd=ENG&timezoneOffset=-600&userid=PS&pwd=****
For some reason the first time its run (an any time after if I don't
click in the POST step) it won't put '=' in the POST data. Soon as click
in the POST step, and rerun the '=' appears.
Help. :)
Thanks
Kerrod
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: POST data issues
Posted by Kerrod Wells <k....@cqu.edu.au>.
Hi,
Jmeter version 2.3 and Badboy version 2.0.17.
Thanks
Kerrod
-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com]
Sent: Friday, 30 November 2007 11:58 AM
To: JMeter Users List
Subject: Re: POST data issues
Which version of JMeter?
I suspect this may be a mismatch between Badboy and JMeter; perhaps some
properties are not being set up.
Can you send me the original file generated by Badboy (privately)?
Edit any sensitive data first - using a text editor, not JMeter.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: POST data issues
Posted by sebb <se...@gmail.com>.
On 30/11/2007, Kerrod Wells <k....@cqu.edu.au> wrote:
> Hi,
>
> Further investigation of the jmx file (before and after clicking around
> it POST step) shows that it changes considerably over what was exported
> from badboy.
>
> Some quick examples
>
> <testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument">
The above difference does not matter, JMeter just uses an alias
> <property name="HTTPArgument.always_encode">true</property>
> <property name="HTTPArgument.encoded_value">login</property>
> <property name="Argument.value">login</property>
> <property name="Argument.name">cmd</property>
> <property name="HTTPArgument.encoded_name">cmd</property>
> </testelement>
>
> Vs
>
> <elementProp name="" elementType="HTTPArgument">
See above
> <stringProp name="HTTPArgument.always_encode">true</stringProp>
> <stringProp name="HTTPArgument.encoded_value">login</stringProp>
> <stringProp name="Argument.value">login</stringProp>
> <stringProp name="Argument.name">cmd</stringProp>
> <stringProp name="HTTPArgument.encoded_name">cmd</stringProp>
The next two items are critical, as they control the equals behaviour:
> <stringProp name="Argument.metadata">=</stringProp>
> <boolProp name="HTTPArgument.use_equals">true</boolProp>
> </elementProp>
>
> Is this more likely to be an issues with what is being exported from
> Badboy?
Definitely, given the info above.
> Once the jmx file has been updated and saved, it works each time its
> loaded into Jmeter.
Good, that just confirms it.
> Thanks
>
> Kerrod
>
> ---------------------------------------------------------------------
> 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: POST data issues
Posted by Kerrod Wells <k....@cqu.edu.au>.
Hi,
Further investigation of the jmx file (before and after clicking around
it POST step) shows that it changes considerably over what was exported
from badboy.
Some quick examples
<testelement class="org.apache.jmeter.protocol.http.util.HTTPArgument">
<property name="HTTPArgument.always_encode">true</property>
<property name="HTTPArgument.encoded_value">login</property>
<property name="Argument.value">login</property>
<property name="Argument.name">cmd</property>
<property name="HTTPArgument.encoded_name">cmd</property>
</testelement>
Vs
<elementProp name="" elementType="HTTPArgument">
<stringProp name="HTTPArgument.always_encode">true</stringProp>
<stringProp name="HTTPArgument.encoded_value">login</stringProp>
<stringProp name="Argument.value">login</stringProp>
<stringProp name="Argument.name">cmd</stringProp>
<stringProp name="HTTPArgument.encoded_name">cmd</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
<boolProp name="HTTPArgument.use_equals">true</boolProp>
</elementProp>
Is this more likely to be an issues with what is being exported from
Badboy?
Once the jmx file has been updated and saved, it works each time its
loaded into Jmeter.
Thanks
Kerrod
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: POST data issues
Posted by sebb <se...@gmail.com>.
Which version of JMeter?
I suspect this may be a mismatch between Badboy and JMeter; perhaps
some properties are not being set up.
Can you send me the original file generated by Badboy (privately)?
Edit any sensitive data first - using a text editor, not JMeter.
On 30/11/2007, Kerrod Wells <k....@cqu.edu.au> wrote:
> Hi,
>
> Sorry if this has been covered previous as I've only just joined the
> list, and I'm very much new to Jmeter.
>
> I have a test plan that has been imported from Badboy that does a simple
> sign on, sign off test to our peoplesoft system (via https). When I
> first run the test in Jmeter, it doesn't sign on correctly, and I see
> the following in the Request tab (for the POST step)
>
> POST data:
> cmdlogin&languageCdENG&timezoneOffset-600&useridPS&pwd****
>
> If I then click around, but not change anything in the POST step and
> rerun the test it signs on correctly and gives the following in the
> Request tab
>
> POST data:
> cmd=login&languageCd=ENG&timezoneOffset=-600&userid=PS&pwd=****
>
> For some reason the first time its run (an any time after if I don't
> click in the POST step) it won't put '=' in the POST data. Soon as click
> in the POST step, and rerun the '=' appears.
>
> Help. :)
>
> Thanks
>
> Kerrod
>
> ---------------------------------------------------------------------
> 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