Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unit Test: Loading a record w/o input screen?
Message
De
25/01/2005 10:30:05
 
 
À
25/01/2005 02:42:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00980137
Message ID:
00980404
Vues:
20
>>I'm trying to retrofit unit tests onto my codebase, and I've stumbled across something I'm not sure how to resolve. Within the program, a business object adds a new record, and later saves it when done, and I can test that easily. I can't easily test what's in between - the user entering data and textboxes updating their controlsources.
>>
>>What's the best/easiest way to get test data into a record? Given that the number of fields adds up quickly, rather than using a function with umpteen parameters, I started looking at a parameter object. That only seems to move the problem down one level of abstraction - how do I fill in the parameter object values?
>
>Scatter name thisform.objRecord memo
>
>should help. Then in your test form, you'd bind controlsources to thisform.objRecord.FieldName and use scatter-gather name.

I'm looking for a way to automagically load the data other than hand keying it into a form. The idea is to automate the test completely, and possibly use it to do automated data entry.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform