Changes for page Thrash Testing
Last modified by Ray Kiddy on 2009/11/04 13:00
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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>>url:http://wonder.svn.sourceforge.net/viewvc/wonder/trunk/Wonder/Frameworks/Core/ERExtensions/Tests/Sources/er/extensions/eof/ERXThrashTest.java?view=markup||shape="rect"]] 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 ... ... @@ -12,6 +12,14 @@ 12 12 13 13 There is a target defined in ant which will run a pre-defined set of schemes. 14 14 15 +One can pass in a string parameter to the tests. This can, of course, be used for any purpose. For example, the SimpleInsertTest inner class can use a subclass of EOEditingContext instead of using EOEditingContext itself. Thus, the same test as above can be run using ERXEC with this command: 16 + 17 +{{code}} 18 + 19 +scheme:SimpleInsertTest:er.extensions.eof.ERXEC:0-5,5-10,15-10,20-10 20 + 21 +{{/code}} 22 + 15 15 This set of commands will compile the tests (the ERXThrashTest class compilation is conditional on having "include.tests=true" defined in the ant build of the ERExtensions project) and run the thrash tests: 16 16 17 17 {{code}} ... ... @@ -29,7 +29,7 @@ 29 29 30 30 {{/code}} 31 31 32 -The tests rely on a few things. Values need to be set in the /Library/wobuild.properties file: 40 +The tests rely on a few things. Values need to be set in the ~~/Library/wobuild.properties file: 33 33 34 34 {{code}} 35 35