On 21/08/2009, mimimi9 <nidhsek@yahoo.com> wrote:
>
> I got the token value now.
>
> my form looks like below:::
>
> <form name="loginForm" method="post"
> action="/loginAction.do;jsessionid=3RSkKTtc27hV2gXBRMdTlTwB2c7GtFNx8yd0brP6rbpXbGjhGGRF!755407031"><input
> name="org.apache.struts.taglib.html.TOKEN"
> value="45f009f9f09558814fdcd04cf34a30ac" type="hidden">
>
> <input name="userName" value="" type="text">
> <input name="password" value="" type="password">
> <input id="loginBtn" src="/images/temp/login.gif" alt="Log
> In" type="image">
> </form>
>
> I pass the following in the parameters. Am I missing anything? do I have to
> pass jsession id in the path? how do I get this value?
>
> path: /loginAction.do
That is not the full path, you need the ;jessionid part as well.
Either use another RE to extract that, or try using:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTTP_URL_Re-writing_Modifier
> then in the parameters with the request:
>
> userName
> password
>
> org.apache.struts.taglib.html.TOKEN
>
>
>
>
>
> sebb-2-2 wrote:
> >
> > On 21/08/2009, mimimi9 <nidhsek@yahoo.com> wrote:
> >>
> >> org\.apache\.struts\.taglib\.html\.TOKEN[^=]*"?([\da-f]+)
> >>
> >> I removed the extra dot. still it gets
> >> org.apache.struts.taglib.html.TOKEN=e
> >>
> >
> > This is not possible with the sample data you provided; there is no
> > 'e' in the token.
> >
> > What template are you using?
> >
> >>
> >> sebb-2-2 wrote:
> >> >
> >> > On 21/08/2009, mimimi9 <nidhsek@yahoo.com> wrote:
> >> >>
> >> >> org\.apache\.struts\.taglib\.html\.TOKEN.[^=]*"?([\da-f]+)
> >> >>
> >> >>
> >> >> the above one doesn't gets the token value. it just prints 'e'
> >> >> thanks.
> >> >
> >> > Because you did not do the replacement correctly, it should be:
> >> >
> >> > org\.apache\.struts\.taglib\.html\.TOKEN[^=]*"?([\da-f]+)
> >> >
> >> >>
> >> >>
> >> >> sebb-2-2 wrote:
> >> >> >
> >> >> > On 21/08/2009, mimimi9 <nidhsek@yahoo.com> wrote:
> >> >> >>
> >> >> >> org\.apache\.struts\.taglib\.html\.TOKEN.*?="?([\da-f]+)
> >> >> >
> >> >> > .*?= uses expensive back-tracking; use [^=]* instead.
> >> >> >
> >> >> >>
> >> org.apache.struts.taglib.html.TOKEN=a4609d5816aad7a1869dcddbf9c71147
> >> >> >>
> >> >> >
> >> >> > But it works OK in the demo app:
> >> >> >
> >> >> > http://jakarta.apache.org/oro/demo.html
> >> >> >
> >> >> > I suggest you add a Debug Sampler and View Results Tree Listener
> >> to
> >> >> > see what is happening.
> >> >> >
> >> >> >>
> >> >> >> Andre Arnold wrote:
> >> >> >> >
> >> >> >> > mimimi9 schrieb:
> >> >> >> >> thanks for the reply Deepak. I know, that's what
the problem.
> >> I
> >> >> >> viewed
> >> >> >> >> the
> >> >> >> >> html source of home page. That is different from
what is
> >> being
> >> >> passed
> >> >> >> in
> >> >> >> >> the
> >> >> >> >> POST of login target request. I need to find
out a way to
> >> send
> >> >> the
> >> >> >> same
> >> >> >> >> token.
> >> >> >> >>
> >> >> >> > ds like your regex pattern is wrong (it doesn't extract
what
> >> you
> >> >> >> expect).
> >> >> >> >
> >> >> >> > You could post a sample of your token and the regex.
> >> >> >> >
> >> >> >> > andré
> >> >> >> >
> >> >> >> >
> >> >> ---------------------------------------------------------------------
> >> >> >> > To unsubscribe, e-mail:
> >> jmeter-user-unsubscribe@jakarta.apache.org
> >> >> >> > For additional commands, e-mail:
> >> >> jmeter-user-help@jakarta.apache.org
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> View this message in context:
> >> >> >>
> >> http://www.nabble.com/Any-help-appreciated-tp25072809p25079033.html
> >> >> >>
> >> >> >> Sent from the JMeter - User mailing list archive at Nabble.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
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >> --
> >> >>
> >> >> View this message in context:
> >> >> http://www.nabble.com/Any-help-appreciated-tp25072809p25079253.html
> >> >>
> >> >> Sent from the JMeter - User mailing list archive at Nabble.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
> >> >
> >> >
> >> >
> >>
> >> --
> >>
> >> View this message in context:
> >> http://www.nabble.com/Any-help-appreciated-tp25072809p25080155.html
> >>
> >> Sent from the JMeter - User mailing list archive at Nabble.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
> >
> >
> >
>
> --
>
> View this message in context: http://www.nabble.com/Any-help-appreciated-tp25072809p25080873.html
>
> Sent from the JMeter - User mailing list archive at Nabble.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
|