Issue Details (XML | Word | Printable)

Key: RIO-182
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dennis Reedy
Reporter: Dennis Reedy
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Rio

Externalize test configuration, allowing RIo infrastructure to be started by test framework

Created: 06/May/09 03:52 PM   Updated: 23/Jun/09 04:49 PM
Return to search
Issue 102 of 281 issue(s)
Component/s: Test
Affects Version/s: 4.0 M2
Fix Version/s: 4.0 M3

Time Tracking:
Not Specified


 Description  « Hide
Test case configuration and options should optionally reside in an external configuration file, allowing the starting of rio infrastructure services to be done by the test framework, as well as the deployment of opstrings to be done for the test case

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dennis Reedy made changes - 06/May/09 03:52 PM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Dennis Reedy added a comment - 06/May/09 04:45 PM
test configuration file will be determined by checked the org.rioproject.test.config system property. The configuration file will be written as a Groovy configuration file, and read using Groovy's ConfigSlurper. The infomration in the test case's configuration may contain:

groups: Discovery management groups to use
locators: Lookup locator strings (if any)
numCybernodes: The number of cybernodes to start (using discovery attributes provided)
numMonitors: The number of monitors to start (using discovery attributes provided)
numLookups: The number of lookup services to start (using discovery attributes provided)
opstring: The opstring to use
autoDeploy: Whether to automatically deploy the delcared opstring
testManager: The TestManager to create for the test case. If provided, the TestManager must extend the default TestManager. If not provided, and instance of: org.rioproject.test.TestManager(true) is created

Each test case is scoped by the testcase's classname, sans the package name. For example: org.rioproject.test.deploy.SimpleDeployTest is references in the test configuration file as:

SimpleDeployTest { ... }


Dennis Reedy made changes - 23/Jun/09 04:48 PM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Dennis Reedy made changes - 23/Jun/09 04:49 PM
Status Resolved [ 5 ] Closed [ 6 ]