Forum Discussion

gid_216's avatar
gid_216
Frequent Contributor
13 years ago

Data Driven Testing

Hi,



While adding the scripts to test set as test item im project test management page, it asks for the arguments, if the routine we added require any argument. can I make this data driven with different data sets as we can give a single dataset to the routine, even if we make it run for more than once. If i can, then how?



Thanks,



Deepak

3 Replies


  • Hi Deepak,


     


    If you can pass different data to the routine, it will work with it despite the place where the routine is called.


    Maybe, I don't quite understand your task, could you please describe it in detail?


     

  • gid_216's avatar
    gid_216
    Frequent Contributor
    I am running script units by adding them to project in test items section. There is a column to provide parameters for a parameterized unit. How can I provide more than one data set there. For e.g.

    My unit take X and Y two parameter. In that column, only one set of X,Y is there.

    My requirement is for multipleiteration, I want to provide multiple set of X, Y.





    Thanks,



    Deepak

  • Hi Deepak,


     


    You will need to create an individual test item for each routine with unique parameters. To my mind, that's inconvenient. You'd better create one test item that will call the main function where you can use the DDT feature to obtain different data set to pass it to your function.