Your script helped us to moved to the next step, but still cant login to the service with username and password,
but see the below observations. 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). Also I had to change the protocol to https with port 8443 as that's what running in our development machines. But during the service validate (inside second random controller) it FAILS, when I checked the response it gives the following <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> <cas:authenticationFailure code='INVALID_TICKET'> ticket '${ServiceTicket}' not recognized </cas:authenticationFailure> </cas:serviceResponse> This clearly says the the regular expression extractor has not extracted the ticket properly. After the invokation of the second request with all the username and password,it sends back the ticket as part of the response header as follows Location: http://localhost:8080/uPortal/Login?ticket=ST-13-0qUdJ6rV9scbdguEMCU Then I changed the regular expression extractor look into the header instead of the body. but still it does not seem pick the ticket. Am I missing something here, I have attached the modified script. we are using cas 3.03 integrated with uPortal 2.5.1. Also I modified the script to have view results tree to observe the request and response details. http://www.nabble.com/user-files/236003/simpleCasLoginTest2.jmx simpleCasLoginTest2.jmx 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 <[EMAIL PROTECTED]> 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 >> [email protected] >> 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 [email protected] http://tp.its.yale.edu/mailman/listinfo/cas
