Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a script to run through all the application mod
Message
 
 
To
28/06/2006 08:48:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01132096
Message ID:
01132459
Views:
24
>>Thanks a lot, this is very helpful. I'll try to write some tests tomorrow for our business classes and our forms, which are classes as well.
>
>You're welcome.
>
>Thanks for mentioning Martin's article in UT Magazine (http://www.utmag.com/wconnect/wc.dll?9,7,10,826). It looks really good.
>
>Chris

Hi Chirs,

I've created two test classes for two of my classes from aLetters.vcx When I tried to run tests, I got lots of errors on the first test (perhaps because this class is supposed to be on the form and can not be instantiated on its own).

I also found, that it can not work with relative paths, may be because the current directory is changed somewhere. I have FoxUnit on c drive and my project is also on C with Libs, progs, etc. directories. My path is:

PROGS, FORMS, LIBS, MENUS, DATA, OTHER, REPORTS, INCLUDE, HELP, GRAPHICS, \MMORTALS\COMMON30\UTILS, \MMORTALS\COMMON30\INCLUDE, \MMORTALS\COMMON30\LIBS, \MMORTALS\COMMON30\PROGS, \MMORTALS\COMMON30\GRAPHICS, \MMVISCOLLECT\DEVUTILS;\MMVISCOLLECT\TESTS;D:\STONEFIELD\SDT;D:\STONEFIELD\SDT\SOURCE;C:\FOXUNIT

and newobject('myClass','myLib.vcx') produces an error with file not found...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform