Contents
Component IDETestFramework
comment:This the framework for XP Tests
One Test is one Klass derived from IDE::TestCase
computing test:
1. overwrite the method "startTest" to initialize test context
2. all test method have pattern "test*". They will be invoked in
alphabeticall order.
3. One test fail are registered if an error is droped.
The testing will be not stoped be errors.
You can also use method "stopTesting" for explizit stop the testing
4. See Component IDETest for example tests.
5. Use IDE::TestBrowser to run and see test results.
Classes
Classes Hierarchy
Class IDE::TestBrowser
superclasses:
IDE::Browser
Instprocs:
- dropAllTests {selected}
- dropSelectedTests {selected}
- errorBrowser {}
- initTestCases {classes}
- initTestCasesList {}
- inspectFailed {}
- retryTests {}
- runAllTests {}
- runSelectedTests {}
- runTests {toTest}
- selectErrorCase {error}
- selectFailedMethod {method}
- setErrorCasesList {}
- setErrorMethodsList {}
- specificInit {}
Procs:
- newBrowser {}
Class IDE::TestCase
subclasses:
IDE::ConfigMapTestNoGUI
IDE::BasePersistenceTest
IDE::EventsGUI
IDE::TEventHandling
IDE::TParser
IDE::ExampleTest
IDE::DBVCUtils
IDE::TDevelopUtils
IDE::TImportingSource
IDE::TSourceManaging
IDE::TObjectBrowser
IDE::TPersistence
IDE::TComponentBrowser
IDE::TCore
comment:Derive all your test from this Class
Base functionality
Testing Interface
runAllTests
Creating Test
overwrite methods:
startTest
endTest
to make you test kontext
All your test method must begin with test*
and they are running in alphabetical order
Instprocs:
- assert {test comment}
- endTest {}
- getFailedMessageForMethods {method}
- getFailedMethods {}
- getTestDir {}
- getTestMethods {}
- hardAssert {test}
- init {}
- resetErrors {}
- runAllTests {}
- startTest {}
- stopTesting {}
Procs:
- getMethodCallFromClass {class}
- Helper method to generate tests
- getMethodCallFromObject {object}
- Helper method to generate tests