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

How to bind only single method out of all the tests with excel?

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amit kumar
Top achievements
Rank 1
Amit kumar asked on 23 Aug 2014, 12:14 PM
Hello,

I am using the data driven testing feature of Telerik Test Studio VS plugin. I have bind an excel file to my WPF test, but the problem is it binds itself to all of the test methods because of this all the tests run them number of times equal to the number of rows in excel file. I just want to bind only one method to this excel file and not other test, so that only the method that has been bind run the number of times equal to the number of times of rows in excel file. 

Is that possible or I have to use the code way by creating a connection over this file and interating a loop over it?

Please suggest in this.

Regards,
Amit Singh

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 27 Aug 2014, 11:18 AM
Hi Amit,

Thank you for contacting us.

Data Driven Testing is a testing methodology in which the same sequence of test steps are performed repeatedly using a data source to drive the input values of those steps and/or the values to expect when performing verification steps. This is expected behavior.

If you want to execute only one step several times (via databinding) just put this step in a test as step and bind this test.

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Amit kumar
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or