Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unit Test: Loading a record w/o input screen?
Message
From
25/01/2005 10:30:05
 
 
To
25/01/2005 02:42:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00980137
Message ID:
00980404
Views:
21
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform