Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run a VCX based form for testing.
Message
De
24/06/2004 09:55:13
 
 
À
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:
00916816
Vues:
7
>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?

I suppose you'll have to wait to hear from Kevin for an official answer, but I've seen lots of framework code that checks to see whether goapp exists, presumably so that what you're trying will work. I don't know where you're seeing it fall over and die, but will inserting the same defensive coding work, or is the called functionality important to what you are testing?

Chris.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform