goooch
29th January 2004, 10:21
Hi, All!
Does anybody use XP Metodology such as unit testing in BAAN?
What are the results?
Thanks

maxbel
2nd February 2004, 17:26
We are not using XP practices complete. but we have:

some emulation of exceptions
unit testing framework


the last is in early stage of implementation.

It works for simple cases, but database handling is not implemented fully because of hi complexity of our structures.

Now we thinking about it

~Vamsi
2nd February 2004, 19:49
For those wondering what this is about:

eXtreme Programming (http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=extreme+programming)

goooch
12th February 2004, 08:39
Thanks.

To maxbel:
What is the base concept you are thinking
1. Include some test code in scripts?
2. Use OLE, AFS, dll_load?
3. Maybe use Database procedures, functions

The main problem with me is any solution to have all kind of tests (unit test is preferable) in BAAN to be automated.

But you are right beginning with simple tests. Thank you. So I'll think too :)

maxbel
12th February 2004, 09:17
unit test framework is represented by two tables : tests and tests categories.

there is a test dll in which all tested dlls are enumerated:


|
|@created
| Max Belugin Mon Jul 21 13:50:45 UTC+0400 2003
function extern allTests(){
LIB(tfzztdllalltst)
LIB(tfzzzdll000m00)
LIB(tfzzzdll000m01)
LIB(tfzzzdll039m01)
} |allTests


each dll has an external function named testBundle, which fills tables with test descriptions. there are macros for easily form this function for example:


#include "itfzzttest"
startTests
| test category
TCAT("Common", "Utilities")
| Individual tests
test(pos.strt)
test(startsWith)
test(rub2str)
TCAT_END
endTests
...
|
|@created
| Max Belugin 19.01.2004 16:40:20
function extern testStartsWith(){
testEqu(startsWith("123456", "123"), true)
testEqu(startsWith("1", "1"), true)
testEqu(startsWith("123", ""), true)
} |testStartsWith

we also thinking about testing sessions using function server

maxbel
12th February 2004, 09:24
there is some encludes and dlls from this task.


sorry, comments are mainly russian and oriented to our Javadoc analog:
http://belugin.newmail.ru/baanide

goooch
24th February 2004, 15:01
Thank you, maxbel