How to make the load testing data driven

12 posts, 0 answers
  1. Maria
    Maria avatar
    19 posts
    Member since:
    Aug 2012

    Posted 29 Oct 2012 Link to this post

    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.
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 29 Oct 2012 Link to this post

    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
  3. Maria
    Maria avatar
    19 posts
    Member since:
    Aug 2012

    Posted 29 Oct 2012 Link to this post

    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.
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 02 Nov 2012 Link to this post

    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
  5. Wayne
    Wayne avatar
    3 posts
    Member since:
    Apr 2010

    Posted 09 Oct 2013 Link to this post

    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?
  6. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 14 Oct 2013 Link to this post

    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!
  7. Wayne
    Wayne avatar
    3 posts
    Member since:
    Apr 2010

    Posted 22 Oct 2013 Link to this post

    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.
  8. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 22 Oct 2013 Link to this post

    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!
  9. Wayne
    Wayne avatar
    3 posts
    Member since:
    Apr 2010

    Posted 23 Oct 2013 Link to this post

    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. 
  10. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 23 Oct 2013 Link to this post

    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!
  11. Sudhee
    Sudhee avatar
    3 posts
    Member since:
    Jun 2015

    Posted 11 Apr in reply to Boyan Boev Link to this post

    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

     

  12. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 14 Apr Link to this post

    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!
Back to Top