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

Data Driven Test using XML

2 Answers 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
QA
Top achievements
Rank 1
QA asked on 04 Apr 2011, 02:54 PM
Hello,

Maybe I didnt look enough but I couldnt locate info on how to do a data driven test. Maybe my test does not require it and there is another way.

Here is the test condition.

I open a broswer, load my application. I click on "Load File"... which opens up a Windows "Open" window, where you can navigate to your C: drive and select a folder, then select an XML file that contains that data that will display my chart.

I am able to capture all the way to the point that I click on "Load File". How do i make my test use the xml file for continuing testing.

Do I add it to Data Source? Then what? How do I connect it to my test step itself.

Thanks,
QA.

2 Answers, 1 is accepted

Sort by
0
Accepted
Cody
Telerik team
answered on 05 Apr 2011, 04:27 PM
Hello QA,

From your description I don't think a data driven test will help. A Data Driven test is meant for a test that will execute multiple times in a row but use a different set of input data (such as different logons or different product names) that are entered into the same input fields of the application.

What you're describing sounds like the standard File Upload dialog. Normally the tool will automatically record a "Handle File Upload dialog" at the moment you click OK/Save on the Open dialog you describe (after you've already selected the file to be uploaded).

If this doesn't happen automatically you can do it manually yourself. On the ribbon bar click "Handlers". Then click Upload Dialog. That will add a "Handle File Upload dialog" test step to your test script. Next adjust the properties to point to the .XML file you want to select and be operated on by your web application.

That should do it for you. I hope I've answered your questions. Let us know if you still need assistance with this.

Regards,
Cody
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
QA
Top achievements
Rank 1
answered on 05 Apr 2011, 05:18 PM
Got it! I stumbled on it yesterday thanks!

I have had to open a ticket though because when I click on the load file button (that  leads to the upload dialog) it returns an error message saying "Outside bounds of browser window".

Ticket ID: 410755

QA.
Tags
General Discussions
Asked by
QA
Top achievements
Rank 1
Answers by
Cody
Telerik team
QA
Top achievements
Rank 1
Share this question
or