You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by krath2009 <ps...@gmail.com> on 2013/08/13 07:37:33 UTC

Form elements are not passed over to server as POST parameters

In Jmeter, I am trying to send form data on a web app. But the form elements
are not passed over to server as POST parameters. Instead the Hash value is
sent. This is making it difficult to parameterize our tests. Any ideas how
to get around it?




--
View this message in context: http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Form elements are not passed over to server as POST parameters

Posted by Krishna <ps...@gmail.com>.
Great, thanks! Will try to do that.


On Wed, Aug 14, 2013 at 4:45 PM, Flavio Cysne <fl...@gmail.com> wrote:

> There's a workaround, like we say in Brazil, a "gambiarra". ;)
>
> Although I don't know the complexity of that code, you could get the code
> that convert all parameters into a hash and:
> 1. Create a java library to do that and expose it as a JMeter function
> 2. Use it in a BSF Sampler or BSF PreProcessor with Javascript as Language
>
>
> 2013/8/14 Krishna <ps...@gmail.com>
>
> > Yes, I have checked and that is exactly what's happening. Would be great
> if
> > there's a workaround.
> > Thanks.
> >
> >
> > On Wed, Aug 14, 2013 at 2:04 PM, Flavio Cysne <fl...@gmail.com>
> > wrote:
> >
> > > Maybe your form is meant to send this hash. A javascript code somewhere
> > in
> > > your page may rewrite form parameters and use a hash instead of plain
> > > values.
> > >
> > > Can you confirm this?
> > >
> > >
> > > 2013/8/13 krath2009 <ps...@gmail.com>
> > >
> > > > Yes, I have tried. All it shows is the hash parameter value.
> > > >
> > > > I know JavaScript is being used to a great extent on the form.
> However
> > I
> > > am
> > > > not sure what's causing me not to view the values that I have entered
> > in
> > > > the
> > > > HTML form.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > >
> >
> http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832p5717837.html
> > > > Sent from the JMeter - User mailing list archive at Nabble.com.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > > For additional commands, e-mail: user-help@jmeter.apache.org
> > > >
> > > >
> > >
> >
>

Re: Form elements are not passed over to server as POST parameters

Posted by Flavio Cysne <fl...@gmail.com>.
There's a workaround, like we say in Brazil, a "gambiarra". ;)

Although I don't know the complexity of that code, you could get the code
that convert all parameters into a hash and:
1. Create a java library to do that and expose it as a JMeter function
2. Use it in a BSF Sampler or BSF PreProcessor with Javascript as Language


2013/8/14 Krishna <ps...@gmail.com>

> Yes, I have checked and that is exactly what's happening. Would be great if
> there's a workaround.
> Thanks.
>
>
> On Wed, Aug 14, 2013 at 2:04 PM, Flavio Cysne <fl...@gmail.com>
> wrote:
>
> > Maybe your form is meant to send this hash. A javascript code somewhere
> in
> > your page may rewrite form parameters and use a hash instead of plain
> > values.
> >
> > Can you confirm this?
> >
> >
> > 2013/8/13 krath2009 <ps...@gmail.com>
> >
> > > Yes, I have tried. All it shows is the hash parameter value.
> > >
> > > I know JavaScript is being used to a great extent on the form. However
> I
> > am
> > > not sure what's causing me not to view the values that I have entered
> in
> > > the
> > > HTML form.
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832p5717837.html
> > > Sent from the JMeter - User mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > > For additional commands, e-mail: user-help@jmeter.apache.org
> > >
> > >
> >
>

Re: Form elements are not passed over to server as POST parameters

Posted by Krishna <ps...@gmail.com>.
Yes, I have checked and that is exactly what's happening. Would be great if
there's a workaround.
Thanks.


On Wed, Aug 14, 2013 at 2:04 PM, Flavio Cysne <fl...@gmail.com> wrote:

> Maybe your form is meant to send this hash. A javascript code somewhere in
> your page may rewrite form parameters and use a hash instead of plain
> values.
>
> Can you confirm this?
>
>
> 2013/8/13 krath2009 <ps...@gmail.com>
>
> > Yes, I have tried. All it shows is the hash parameter value.
> >
> > I know JavaScript is being used to a great extent on the form. However I
> am
> > not sure what's causing me not to view the values that I have entered in
> > the
> > HTML form.
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832p5717837.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> > For additional commands, e-mail: user-help@jmeter.apache.org
> >
> >
>

Re: Form elements are not passed over to server as POST parameters

Posted by Flavio Cysne <fl...@gmail.com>.
Maybe your form is meant to send this hash. A javascript code somewhere in
your page may rewrite form parameters and use a hash instead of plain
values.

Can you confirm this?


2013/8/13 krath2009 <ps...@gmail.com>

> Yes, I have tried. All it shows is the hash parameter value.
>
> I know JavaScript is being used to a great extent on the form. However I am
> not sure what's causing me not to view the values that I have entered in
> the
> HTML form.
>
>
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832p5717837.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Re: Form elements are not passed over to server as POST parameters

Posted by krath2009 <ps...@gmail.com>.
Yes, I have tried. All it shows is the hash parameter value.

I know JavaScript is being used to a great extent on the form. However I am
not sure what's causing me not to view the values that I have entered in the
HTML form.






--
View this message in context: http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832p5717837.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: Form elements are not passed over to server as POST parameters

Posted by Flavio Cysne <fl...@gmail.com>.
Did you try using the Raw Body tab in HTTP Request sampler?


2013/8/13 krath2009 <ps...@gmail.com>

> In Jmeter, I am trying to send form data on a web app. But the form
> elements
> are not passed over to server as POST parameters. Instead the Hash value is
> sent. This is making it difficult to parameterize our tests. Any ideas how
> to get around it?
>
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Form-elements-are-not-passed-over-to-server-as-POST-parameters-tp5717832.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>