This is a migrated thread and some comments may be shown as answers.

How to make the load testing data driven

11 Answers 253 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 29 Oct 2012, 07:18 PM
I'd like to be able to drive my load test logins from an Excel spreadsheet. According to the link below, I should be able to do that.

http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/load-testing/designing-load-tests/load-modifying/load-data-driving.aspx


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

Sort by
0
Stoich
Telerik team
answered on 29 Oct 2012, 08:15 PM
Hello Maria,

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,

Stoich
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Maria
Top achievements
Rank 1
answered on 29 Oct 2012, 08:59 PM
I did the databind and ran the automated test (not the load test) just fine. My issue was with the Load Test. When I select the http post for the login page, I don't see the user name and password fields in "Bind Unique User Info" section.

BTW - How do you add items to the "Bind Unique User Info" section?

Thanks.
0
Stoich
Telerik team
answered on 02 Nov 2012, 09:44 AM
Hi Maria,
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.
But as you can see from my example - those are not always easy to find. As you can see in my example - the words "user" and "password" are in there but they're buried in a larger string. So it comes down to knowing your app and searching. I hope this helps.

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
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Wayne
Top achievements
Rank 1
answered on 09 Oct 2013, 02:28 PM
Hi Stoich,
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?
0
Boyan Boev
Telerik team
answered on 14 Oct 2013, 08:18 AM
Hi Wayne,

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.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Wayne
Top achievements
Rank 1
answered on 22 Oct 2013, 08:01 AM
Hi Boyan,
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.
0
Cody
Telerik team
answered on 22 Oct 2013, 05:35 PM
Hello Wayne,

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.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Wayne
Top achievements
Rank 1
answered on 23 Oct 2013, 10:26 AM
Thanks, guys.
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. 
0
Cody
Telerik team
answered on 23 Oct 2013, 02:04 PM
Hi Wayne,

That's great news! Thank you for the update. I look forward to hearing real results from your load testing efforts.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Sudhee
Top achievements
Rank 1
answered on 11 Apr 2016, 08:43 PM

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

 

0
Boyan Boev
Telerik team
answered on 14 Apr 2016, 10:29 AM
Hi Maria,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Maria
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Maria
Top achievements
Rank 1
Wayne
Top achievements
Rank 1
Boyan Boev
Telerik team
Cody
Telerik team
Sudhee
Top achievements
Rank 1
Share this question
or