This is a migrated thread and some comments may be shown as answers.

Loop trough XML like with local data

4 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jurij
Top achievements
Rank 2
Jurij asked on 24 Aug 2015, 11:40 AM

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

4 Answers, 1 is accepted

Sort by
0
Jurij
Top achievements
Rank 2
answered on 24 Aug 2015, 01:37 PM

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

0
Boyan Boev
Telerik team
answered on 27 Aug 2015, 07:53 AM
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!
0
Jurij
Top achievements
Rank 2
answered on 27 Aug 2015, 10:40 AM

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

BR, Jurij

0
Boyan Boev
Telerik team
answered on 28 Aug 2015, 10:50 AM
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!
Tags
General Discussions
Asked by
Jurij
Top achievements
Rank 2
Answers by
Jurij
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or