Data Binding in Web Testing

5 posts, 2 answers
  1. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 28 Feb 2013 Link to this post

    Hi, I'm creating a test Scenario (Silverlight based website) as follows:

    There will be several elements listed in a page like below:

    Apple
    Orange
    Banana

    Each one of them will have ElementID as usual. My test has to click the first Element, i.e, Apple and have to perform some operations. After those operations that element will go away. Now Orange will be the first element. Then the test steps have to be repeated. After Orange has gone, same for Banana.

    In other words, I want to Data Drive "Target Element" in the Step. I have a list of target elements that has to be executed one by one.

    So please tell me how to data drive this scenario. Thanks !

  2. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 01 Mar 2013 Link to this post

    Hello Aswin,

    This sounds like a perfect scenario for a data-driven find expression. Please see this article(point 4) for more information on how to data drive the element find expression and let me know if you need further assistance.

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 03 Mar 2013 Link to this post

    That works perfectly ! Thanks a lot Plamen. I will be more grateful if these are available in Videos... And please provide the link if they already exists... :)

    And I would like to know about one more thing... I want the test to Freeze if any of the step Fails, But it is closing my browser now. So the data created in prev steps are not stored. So please help me to set that Test should Freeze and wait for my command IF any step Fails by chance... Thanks again...
  4. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 06 Mar 2013 Link to this post

    Hello Aswin,

    You can select "On All Errors" from the Auto-Pause options(see screenshot). When this option is checked, our Visual Debugger will pause the execution if a failure is detected. 

    Regards,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 06 Mar 2013 Link to this post

    That was very Helpful... Thanks a Lot !!!
Back to Top