org.aludratest.hpalm
Interface TestCaseIdResolver
- All Known Implementing Classes:
- DefaultTestCaseIdResolver
public interface TestCaseIdResolver
Interface for services being able to retrieve the HP ALM test ID for a given AludraTest test case. The HP ALM connector needs
such a service to be present and being able to return an HP ALM test ID for running test cases. If the service is not able to
return an HP ALM test ID for a given test case, the test case run is not logged to HP ALM.
The AludraTest HP ALM connector ships with a default implementation; have a look at
DefaultTestCaseIdResolver. If all of your test classes obey to the expected pattern of this
default implementation, there is no need to implement an own resolver. Otherwise, you will have to implement this interface and
register your implementation via the aludraservice.properties configuration file.
- Author:
- falbrech
|
Method Summary |
Long |
getHpAlmTestConfigId(org.aludratest.scheduler.node.RunnerLeaf testCase)
Returns the HP ALM Configuration ID to use for the given runner leaf. |
Long |
getHpAlmTestId(org.aludratest.scheduler.node.RunnerLeaf testCase)
Returns the HP ALM test ID to assign the given runner leaf to. |
ROLE
static final String ROLE
getHpAlmTestId
Long getHpAlmTestId(org.aludratest.scheduler.node.RunnerLeaf testCase)
- Returns the HP ALM test ID to assign the given runner leaf to. A return value of
null indicates that such an
ID could not be determined. In this case, a warning is logged, and the test case execution is not logged to HP ALM.
- Parameters:
testCase - Runner leaf representing the test case execution.
- Returns:
- The HP ALM test ID to assign the test case execution to, or
null if no ID could be determined.
getHpAlmTestConfigId
Long getHpAlmTestConfigId(org.aludratest.scheduler.node.RunnerLeaf testCase)
- Returns the HP ALM Configuration ID to use for the given runner leaf. Unlike
getHpAlmTestId(RunnerLeaf), a
null return value does not skip the logging for this leaf, but assigns the run result to the whole test
instead of a test configuration.
- Parameters:
testCase - Runner leaf representing the test case execution.
- Returns:
- The HP ALM configuration ID to assign the given runner leaf to, or
null to assign it to the test.
Copyright © 2015 aludratest.org. All rights reserved.