Taking the random data in Data Driven Test

4 posts, 0 answers
  1. Avinash
    Avinash avatar
    13 posts
    Member since:
    Dec 2012

    Posted 15 Jan 2013 Link to this post

    I have created data driven test case with XML, in my XML file i have multiple rows when i execute this test case it was executing the test n times (equal to the no of rows in XML) but i want this test case to execute only once by taking one set of data randomly from XML File for each time.
     can you help me on the same?



  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 15 Jan 2013 Link to this post

    Hello Avinash,

    Yes this is possible.

    Please check out this article in order to learn how to achieve this functionality. 

    There is a video at the bottom of the article also.

    Let me know if you need additional help.

    All the best,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Avinash
    Avinash avatar
    13 posts
    Member since:
    Dec 2012

    Posted 17 Jan 2013 Link to this post

    Thanks for the help Boyan, It worked for me. According to the article we don't need to add a Data Source to the test because we are simply accessing Excel file through the code.
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1072 posts

    Posted 18 Jan 2013 Link to this post

    Hello Avinash,

    I am happy to hear it worked for you.

    Should you have any additional questions please do not hesitate to contact us.

    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