Data Driven Loop

6 posts, 0 answers
  1. Godfred
    Godfred avatar
    3 posts
    Member since:
    Jan 2013

    Posted 12 Feb 2013 Link to this post

    Hello,

    Am creating a test which will insert records into a web portal using data provided in an excel file. Here is the sequence :
    1. log in to the application
    2. Search for the record
    3. Click on update
    loop
    4. Insert record
    end loop

    End.Test
    If runs alright on the first loop using the first record in the excel file. The problem is if it loops the second time, it uses the 1st record in the excel file which has already been inserted.
    I want it to use the next record each time it loops

    kindly asist pls
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 13 Feb 2013 Link to this post

    Hello Godfred,

    This is an expected behavior. Test Studio will use the second row of the excel file on the second test iteration. During the first iteration the "loop" will take only the first row.

    To achieve this please put the "insert record" step in a separate test and add it in the parent test as Test as step. Now on a single iteration of the parent test the test as step will execute as many times as rows in the excel file.

    I recorded a short video with demonstrates it.

    Let me know if this helps.

    Regards,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Godfred
    Godfred avatar
    3 posts
    Member since:
    Jan 2013

    Posted 15 Feb 2013 Link to this post

    It worked. hanks a lot
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 15 Feb 2013 Link to this post

    Hi Godfred,

    Glad to hear it!

    If you have any further questions please do not hesitate to contact us. 
     

    All the best,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Godfred
    Godfred avatar
    3 posts
    Member since:
    Jan 2013

    Posted 22 Feb 2013 Link to this post

    Hello,

    Am binding a radio buttons with two options Yes/No. The column has a value of 1/0. Value of 1 sets the radio button to Yes but a value of 0 does not select any option.

    Pls assist

    Regards 
  6. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 25 Feb 2013 Link to this post

    Hi Godfred,

    I am sorry you are experiencing this issue.

    In order to help you best please provide more detailed information.

    1. What kind of application do you test ( HTML, Silverlight, WPF)?

    2. Please send us the execution log.

    3. Send us a screen shot of the DOM tree.

    4. Please record a short video to show us the issue you are experiencing. Jing is great for this.

    5. Send us the test project and give us a direct access to the application so we can reproduce the issue on our side and give you a working solution.

    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. 

    Thanks for helping us advise you.
     

    Greetings,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top