However, I am unable to see the User Name and Password from the dynamic targets of my Login page. All I've got was the _viewstate and the _eventvalidation. What did I miss?
Thanks.
11 Answers, 1 is accepted
you have to databind the test first. Otherwise the necessary field won't even appear when you're examining the separate HTTP requests (screenshot 1).
From there you have to go through the HTTP requests that make up the test and find where the user/pass are being sent. It can be difficult to find them if your test has lots of request. Try recording the Login sequence only so that there are fewer requests to go through (again remember to databind it first). Also, the user/pass queries will not necessarily be called "username" and "password".
I hope this help. Let me know how it goes.
Regards,
the Telerik team
Vote now
BTW - How do you add items to the "Bind Unique User Info" section?
Thanks.
you might have to go through some tedious exploration until you find what you're looking for.
I recorded a login Load test against our website (www.telerik.com). I found the request that sends the user/password but it took some digging. I started out at the first transaction and went through no fewer than 58 requests until I got to the one I was looking for. And it was far from obvious that it was the right one:
http://screencast.com/t/Db0DtHiN5
You state:
I don't see the user name and password fields in "Bind Unique User Info" section.
I will talk to our engineers and discuss some sort of search functionality. You usecase got me thinking that this is going to be a useful edition.
Let me know if you need additional assistance.
All the best,
Stoich
the Telerik team
Vote now
I'm sorry for some necroposting here :)
Does the R1 has the ability to get a data driven variable value into an URL during the load test? and what about cookies?
For example, we need to navigate our app thought an authorization service. Sine we don't have an option just to process the dynamic variables, cookies as in the LoadRunner is there a solution in Test Studio?
No, you cannot data bind the URL in this version. We will definitely add this functionality in our future releases.
Regarding the cookies, please elaborate a bit more on our scenario. Give us as much detailed information as you can. Do you want to pass a variable via cookies in our LoadRunner?
Hope to hear from you soon.
Boyan Boev
Telerik
I'm sorry being a bit slow with the response. Yes, that correct. Our .Net site is using third-party component for user authentication.
Please see attached steps of our load testing script.
1. User is redirected to auth page where after form POST is peformed he gets a sessionId in redirect URL as a parameter
2. Then sessionId is processed by another service which is returning some cookies with another sessionId
3. User is redirected to the main website where those cookies are being check for validness.
Please see attached pictures of the load test.
So are we going to have dynamic cookie support in R2? This is REALLY important for us.
A Test Studio Load Test will accept and process cookies just like a real browser. It does not blindly echo back the cookie value that was originally recorded when the user profile was first created. The sequence you have shown in your screen shots should work perfectly find as expected.
Are you experiencing any problems with this authentication process while running your load test? If so we'll need details about this including complete Fiddler traces demonstrating the problem. I recommend you open a support ticket so we can communicate confidentially about the details of the problem. Unlike forum posts, only you and us in technical support can view the content of support tickets.
Cody
Telerik
I've upgraded to the latest version and now it's working fine.
Actually all versions up tp 911 had a bug - asp.net sessions and cookies weren't refreshed (checked with fiddler durign the load test) and now it's working fine.
That's great news! Thank you for the update. I look forward to hearing real results from your load testing efforts.
Cody
Telerik
Hi Boyan
Can you explain how can I pass variable via cookies. In my application the data is send via cookies (its a search page). I want to make it data driven so each user have unique value in cookies.
Thanks
Sudhee
Thank you for contacting us.
What exactly do you want to be data driven, the search string or the logged user which enter the search text?
I have two suggestions here:
1. If we detect the search string as a post request you can data driven this request. See here how.
2. You can create your own custom cookie.
Let me know if that helps.
Regards,
Boyan Boev
Telerik