>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.