CAS with JMeter
iztok
iztok.kucan at gmail.com
Wed Sep 13 22:22:47 EDT 2006
> When I ran the script it complained about missing _eventId, hence I included
> that as a parameter (in addition I included _currentStateId=viewLoginForm as
> well).
ok...
> Also I had to change the protocol to https with port 8443 as that's what
> running in our development machines.
sure...
> <cas:authenticationFailure code='INVALID_TICKET'>
> ticket '***${ServiceTicket}***' not recognized
> This clearly says the the regular expression extractor has not extracted the
> ticket properly.
i think that is a good bet at this point.
> Location:
> http://localhost:8080/uPortal/Login?ticket=ST-13-0qUdJ6rV9scbdguEMCU
ok, that is good. it means you logged in and have a service ticket.
now all you have to do is extract the ticket and use it.
BTW, i think it is also possible to get jmeter to follow redirects, so
that might be an option as the [successful] login response is a 302.
>
> Then I changed the regular expression extractor look into the header instead
> of the body.
> but still it does not seem pick the ticket.
dont know. you will have to do some work to figure it out. from
memory, but default, the jmeter regex doobie looks at the whole
response, so headers and body.
> I have attached the modified script.
sorry, i dont have the setup or the time to look at this right now.
>
> we are using cas 3.03 integrated with uPortal 2.5.1.
we were using cas 303 and later 304 on weblogic 9.1
good luck.
iztok
>
> iztok wrote:
> >
> > there are no problems load testing with jmeter.
> >
> > use regular expressions to extract the value into the variable. this
> > is described in the jmeter help.
> >
> > then pass the variable as a post parameter.
> >
> > i have attached the test. this was used successfully with cas 303 and 304
> >
> > iztok
> >
> >
> >
> >
> >
> > On 9/13/06, tom tom <j_lalith at yahoo.com> wrote:
> >>
> >>
> >> We have integrated uPortal 2.5.1 and CAS 3.03.
> >>
> >> We are using JMeter 2.2 to do the load testing. Even though we
> >> passparameters like username,password and service.
> >>
> >> It does not seem to work.
> >>
> >> Has any one tried out this.
> >>
> >> Should we pass some more parameters like (which is in the CAS login page)
> >> <input type="hidden" name="lt"
> >> value="F5466104-A8BC-3141-0F01-695926862676"
> >> />
> >>
> >> If so how can we give this as a parameter to the JMeter as this is a
> >> dynamic
> >> field.
> >>
> >> Thanks,
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/CAS-with-JMeter-tf2262934.html#a6278896
> >> Sent from the CAS Users forum at Nabble.com.
> >>
> >> _______________________________________________
> >> Yale CAS mailing list
> >> cas at tp.its.yale.edu
> >> http://tp.its.yale.edu/mailman/listinfo/cas
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/CAS-with-JMeter-tf2262934.html#a6298254
> Sent from the CAS Users forum at Nabble.com.
>
> _______________________________________________
> Yale CAS mailing list
> cas at tp.its.yale.edu
> http://tp.its.yale.edu/mailman/listinfo/cas
>
More information about the cas
mailing list