IDEA.TestExecutive 10.6.21-alpha.0.18
iDEA TestExecutive
Explicit test method registration
Create a fresh resource owner for each manager. Register stable database keys with typed method groups; the C# method can then be renamed without changing a script.
public sealed class FixtureMethods : TestMethodResourceContainer, IExplicitTestMethods
{
public const string MeasureVoltageName = "MeasureVoltage";
public IEnumerable<TestMethodRegistration> GetTestMethodRegistrations()
{
yield return new TestMethodRegistration(MeasureVoltageName, ReadVoltage);
}
private StepExecutionResult ReadVoltage(StepExecutionInput input)
{
// Read current SerialCode, VariableManager and ServiceManager from this owner.
return StepExecutionResult.CreatePassedResult(SerialCode);
}
}
TestManager manager = TestManager.Create(nest);
manager.RegisterTestMethods(new FixtureMethods());
For custom main methods, replace the old new TestManager(nest, typeof(CustomMethods)) with TestManager.Create(nest, new CustomMethods()). A main owner replaces the built-in set, as before. Derive from TestMethodsBase and override GetTestMethodRegistrations to include the base registrations plus your custom mappings. Virtual operations such as Delay still bind to overrides.
In the application service, replace CreateTestManagers(count, typeof(CustomMethods)) with CreateExplicitTestManagers(count, nest => new CustomMethods()). Without a factory, the service creates a new TestMethodsBase per nest.
Names use ordinal, case-sensitive comparison. Null owners/callbacks, blank keys, empty packages, null registrations and duplicate keys within one package are rejected. The catalog validates and enumerates the complete package before adding anything. Registering the same owner twice fails. Different owners may register the same key: TakeFirstMethod keeps the first registration by default; selecting last-match mode keeps the last. This policy also applies when mixing explicit and legacy packages.
The catalog retains each owner and callback for the manager's lifetime. Resource initialization reaches all registered owners before every new run, so callbacks should read the owner's current resources rather than capture an initial serial or variable manager. Callers must create separate owners for separate managers and keep callbacks bound to that manager's resources. Shared device access remains sequential.
RegisteredMethodNames exposes stable catalog keys for metadata consumers. Explicit runnables have no MethodInfo; use Run for execution and Owner for resource identity. Package descriptors and their existing metadata format remain supported. No database names or schemas change.
The Type constructor, RegisterTestMethodPackage, reflection catalog registration APIs and reflected RunnableTestMethod constructor remain available with warning-only obsolete guidance. They deliberately use the legacy reflection path, including discovery of inherited/public operations. Explicit registration never falls back to discovery for missing names; the runner retains its MethodNotFound result.
Both paths report the underlying device exception rather than a reflection wrapper. A null operation result fails with The test method returned no result. Report suppression still hides details and omits the step from saved results. Parameters, retry rules, cancellation and timing remain in the existing runner.
Showing the top 20 packages that depend on IDEA.TestExecutive.
| Packages | Downloads |
|---|---|
|
IDEA.TestExecutive.App
Package Description
|
56 |
|
IDEA.UI.PrismTestApp
Package Description
|
55 |
|
IDEA.TestExecutive.App
Package Description
|
52 |
|
IDEA.TestExecutive.App
Package Description
|
50 |
|
IDEA.UI.PrismTestApp
Package Description
|
49 |
|
IDEA.UI.PrismTestApp
Package Description
|
48 |
|
IDEA.TestExecutive.App
Package Description
|
48 |
|
IDEA.UI.PrismTestApp
Package Description
|
47 |
|
IDEA.TestExecutive.App
Package Description
|
47 |
|
IDEA.UI.PrismTestApp
Package Description
|
46 |
.NET 10.0
- IDEA.TestRuns.DB (>= 10.6.21-alpha.0.18)
- IDEA.TestExecutive.Core (>= 10.6.21-alpha.0.18)
- ini-parser-netstandard (>= 2.5.3)