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

2 posts, 0 answers
  1. Amit kumar
    Amit kumar avatar
    1 posts
    Member since:
    Aug 2014

    Posted 23 Aug 2014 Link to this post


    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.

    Amit Singh
  2. Boyan Boev
    Boyan Boev avatar
    1025 posts

    Posted 27 Aug 2014 Link to this post

    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.

    Boyan Boev
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top