Changes for page Thrash Testing

Last modified by Ray Kiddy on 2009/11/04 13:00

From version 4.1
edited by Ray Kiddy
on 2009/11/03 11:51
Change comment: adding info on necessary parameters
To version 2.1
edited by Ray Kiddy
on 2009/11/03 11:43
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,6 @@
1 1  One can test EOF operations in concurrent threads using the "thrash" test built into Wonder. One uses ant to execute the tests.
2 2  
3 -See [[ERXThrashTest.java>>http://wonder.svn.sourceforge.net/viewvc/wonder/trunk/Wonder/Frameworks/Core/ERExtensions/Tests/Sources/er/extensions/eof/ERXThrashTest.java?view=markup]] in the Wonder sources. One can define inner classes in that class. The "SimpleFetchTest" and "SimpleInsertTest" classes are examples. The thrash test will take a "scheme" that can be specified by the user and execute that scheme.
3 +See [[ERXThrashTest.java>>http://wonder.svn.sourceforge.net/viewvc/wonder/trunk/Wonder/Frameworks/Core/ERExtensions/Tests/Sources/er/extensions/eof/ERXEOAccessUtilitiesTest.java?view=markup]] in the Wonder sources. One can define inner classes in that class. The "SimpleFetchTest" and "SimpleInsertTest" classes are examples. The thrash test will take a "scheme" that can be specified by the user and execute that scheme.
4 4  
5 5  {{code}}
6 6  
... ... @@ -28,16 +28,3 @@
28 28  ant thrash -Dthrash.scheme=scheme:SimpleInsertTest::0-50,5-100,15-100,20-100
29 29  
30 30  {{/code}}
31 -
32 -The tests rely on a few things. Values need to be set in the /Library/wobuild.properties file:
33 -
34 -{{code}}
35 -
36 -wonder.test.thrash.adaptor=MySQL
37 -wonder.test.thrash.url=jdbc:mysql://localhost/wotesting
38 -wonder.test.thrash.user=ray
39 -wonder.test.thrash.pwd=zekretword
40 -
41 -{{/code}}
42 -
43 -The "SimpleFetchTest" and "SimpleInsertTest" inner classes will load the "BusinessModel" in the ERExtensions framework, based on the defined adaptor. For example, with the information above, the "MySQLBusinessModel.eomodeld" will be loaded by the tests and they rely on that model being available.