Loop trough XML like with local data

5 posts, 0 answers
  1. Jurij
    Jurij avatar
    54 posts
    Member since:
    Sep 2013

    Posted 24 Aug 2015 Link to this post

    Hi,

    I'm trying to figure out if there is a possibility to use data in XML in the way it is used if I would set local data in the test case. For example I would set two rows in local data and when I would run this test case, both data would be used in itterations. Could I achieve something like this using XML?

    I'll try to write down the test case:

    1. login

    2. select first value from dropdown (data driven test step)

    3. check if the value has been selected

    Local data setup:

    indexValue

    1

    2

     

    How could I write this using XML? With code only or is it possible with XML structure?

    BR, Jurij

  2. Jurij
    Jurij avatar
    54 posts
    Member since:
    Sep 2013

    Posted 24 Aug 2015 in reply to Jurij Link to this post

    One more thing. If I data bind XML to a test case and set inherit parent data source for child test step, this doesn't work. Whereas this works if I have local data set in parent test case.

    Is this normal?

    BR, Jurij

  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 27 Aug 2015 Link to this post

    Hi Jurii,

    The XML databinding works in the same way as the other databinding types.

    Please check out this article.

    Regarding InheritParentDataSrouce you should type the name of the column manually, click the brackets and the Set button.

    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!
  4. Jurij
    Jurij avatar
    54 posts
    Member since:
    Sep 2013

    Posted 27 Aug 2015 in reply to Boyan Boev Link to this post

    Already solved the problem, but never the less thanks for pointing me to the solution.

    BR, Jurij

  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 28 Aug 2015 Link to this post

    Hello Jurii,

    Glad to hear that.

    If you need further assistance please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top