Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run a VCX based form for testing.
Message
 
À
23/06/2004 19:31:17
Anthony Testi
Fabtrol Systems Inc.
Eugene, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00916676
Message ID:
00917462
Vues:
14
Hi Anthony,

Many forms reference objects that are part of the application. What I've done in the past is add a menu option to the application that opens a simple form where I would type the name of the form I want to run, and have a cmd button that calls the DoForm() function. It's always worked.

That way I'm calling the form to be tested with the right environment set up around it.

Have fun!

Alex


>I was thinking ( yes sometime I do that <g> ) that I could create a VCX based form and do something like the follow to test it:
>
>
>do StartMM
>do SetX
>? DOForm( [My_Form] )
>
>
>No luck during the init of the form ( well one of it’s controls ) there is a call to goApp. and because goAPP has not been instantiated the form falls over and dies an ugly death.
>
>Am I limited to testing by having to do a DO MAIN and selecting the appropriate menu choice etc?
>
>Before I go and figure out what needs to be done to get the goAPP to be instantiated for testing is there some ‘approved’ way to do Form Unit testing?
>
>Anthony
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform