Forum Discussion

vthomeschoolmom's avatar
vthomeschoolmom
Super Contributor
14 years ago

request

I loved the video on Data Driven Testing. Ever given thought to making one on Object Driven Testing?  I am trying to figure out a way to crack a nut, and having a clear understanding of the what and why of ODT would be helpful. The help file is not bad. But the video on DDT took me from the help file to Ahhhaaa! 



The other thing that would be nice is if the samples had comments within or an accompanying document that explains what is being done and why.

6 Replies

  • That tutorial was very helpful. I can really envision making use of this to create reusable components in an object oriented sort of way.



    One challenge I face is that I have some tests I want to create in which I have a set of relational data. I want to store that data at a point in the test, operate on the AUT and then compare the stored data to the expected results after the performed actions. I cannot use table checkpoints becase

    1. The grids and data stores we use are not supported.

    2. I need to control which fields in the data store are compared to what.



    What would you expert folk recommend using for a data store? I could use DDT data tables. I suppose I could create classes of the stores structures and instantiate and populate them in code. (I am assuming you can do that though I have not gotten that far in the tutorials yet.)



    Does anyone have opinion on how they would do this?



    You guys are very helpful. I appreciate it.


  • Hi,


    You can use the following approach:


    1. Create a class and add the needed methods and properties to it.

    2. Create an object based on this class and fill its fields with the baseline data. That is, you will use this object as a template.

    3. Create another object and fill its fields with the current data that you need to verify.

    4. Compare each property of the real object with the corresponding property of the template object.