Data Driven and Looping Combo

4 posts, 0 answers
  1. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 12 Jun 2013 Link to this post

    Hi, I've this Silverlight scenario:

    To input the the items of an user in a comment box. My sample excel file is like this:

    User ID Item 1 Item 2 Item 3
    ================================
    12 Table Chair
    34 Jar Knife Fruits
    45 Dog

    For a user's iteration, Data has to be entered and a button has to be clicked to record the data.
    Ex: For user 12's run: Data-->Click (To be iterated 2 times); For user 34's run, it has to be iterated thrice, and so on.

    I've tried a lot, still cant figure out how can I iterate or loop this scenario. I think it is a combo of looping and data driven. Since the no. of items owned by user is not constant, I'm a lot confused. Please help me out.

    Thanks !
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 12 Jun 2013 Link to this post

    Hi Aswin,

    Thank you for contacting us.

    You should change slightly the structure of your Excel file:

    User ID     Data
    ============
    12   Table
    12    Chair
    34   Jar
    34   Knife
    34       Fruits

    Now the user with ID 12 will be added 2 times with its data, user ID with 34 will be added 3 times with its data.

    Here is a demonstration video.

    Let me know if this helps. 
     

    Regards,
    Boyan Boev
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
  3. Aswin
    Aswin avatar
    18 posts
    Member since:
    Feb 2013

    Posted 13 Jun 2013 Link to this post

    Thanks Boyan for the Reply. But I'm afraid I cannot modify the Excel as you said. There are several other data in the Excel file.

    In your demo video User ID is also serves as an Input. Since I'm working on Silverlight, I could explain more I think so. 

    In my case, User ID's will be listed. Upon clicking each ID, it will be opening a frame in Silverlight site. I have to process several things inside the frame, and there will be a comment box in the corner where I need to put my data. And then close the frame (i.e. User ID). So I can process only one ID at a time. After finishing that, the other frame (i,e other User ID starts).

    Hope I explained good. Forgive me I cannot disclose more details.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 17 Jun 2013 Link to this post

    Hi Aswin,

    I am not sure I understand you correctly. Even there is a frame you can open it the same way as in the video an insert the data after that.

    A Jing video demonstrating the issue may also help us to better understand what is happening. 

    If you continue to have difficulty, we'll need to reproduce the issue locally in order to investigate what is happening and find a workable solution for you. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace using FiddlerCap and send it to us in a zip file.

    Hope to hear from you soon.  

    Regards,
    Boyan Boev
    Telerik
    Free summer webinars on advanced web automation tactics hosted by Jim Holmes & Adam Goucher.
    Reserve your seat today!
Back to Top