Klaros Custom Reports retrieve corresponding TestStep for TestStepResult - Klaros Test Management - Forum - Klaros-Testmanagement
Klaros Custom Reports retrieve corresponding TestStep for TestStepResult
Fabian Tietz, geändert vor 11 Jahren.
Klaros Custom Reports retrieve corresponding TestStep for TestStepResult
Youngling Beiträge: 9 Beitrittsdatum: 09.08.13 Neueste Beiträge
For a custom report, i need the Action/ExpectedResult/Precondition/Postcondition
for the teststep belonging to a failed TestStepResult. What ts the preferred way to retrieve that,
since the TestStepResult has no getTestStep Method?
Is there any documentation for the database backend?
for the teststep belonging to a failed TestStepResult. What ts the preferred way to retrieve that,
since the TestStepResult has no getTestStep Method?
Is there any documentation for the database backend?
Torsten Stolpmann, geändert vor 11 Jahren.
RE: Klaros Custom Reports retrieve corresponding TestStep for TestStepResul
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Fabian,
you may this information at the test case which is referenced by the test case step result (KlarosTestCaseStepResult.getTestCase()) using the same index as in the step result list (KlarosTestCase.getTestCaseSteps().getAction() etc.).
I opened an enhancement issue (KLAROS-1924) to make this information directly available at the KlarosTestCaseStepResult object, as the current method is indeed too cumbersome .
We do not document database structures as they have and will change over time. We support the API instead.
Hope this helps,
Torsten
you may this information at the test case which is referenced by the test case step result (KlarosTestCaseStepResult.getTestCase()) using the same index as in the step result list (KlarosTestCase.getTestCaseSteps().getAction() etc.).
I opened an enhancement issue (KLAROS-1924) to make this information directly available at the KlarosTestCaseStepResult object, as the current method is indeed too cumbersome .
We do not document database structures as they have and will change over time. We support the API instead.
Hope this helps,
Torsten
Fabian Tietz, geändert vor 11 Jahren.
RE: Klaros Custom Reports retrieve corresponding TestStep for TestStepResul
Youngling Beiträge: 9 Beitrittsdatum: 09.08.13 Neueste Beiträge
By DB Structure, i was referring to the areas which can be queried by using "context.executeQuery" from the scripting API, not internal database structure. It would be nice to get an overview on possible select statements here.
For the record (in case someone else needs this):
Accessing TestStepContent works by using:
<ui:repeat value="#{tcr.getStepResults().toArray()}" var="tsr" >
....
<p:text value="#{tcr.getTestCase().getTestCaseSteps().get(ptcr.getStepResults().indexOf(tsr)).getAction()}" />
....
(tcr==TestCaseResult)
For the record (in case someone else needs this):
Accessing TestStepContent works by using:
<ui:repeat value="#{tcr.getStepResults().toArray()}" var="tsr" >
....
<p:text value="#{tcr.getTestCase().getTestCaseSteps().get(ptcr.getStepResults().indexOf(tsr)).getAction()}" />
....
(tcr==TestCaseResult)
Torsten Stolpmann, geändert vor 11 Jahren.
RE: Klaros Custom Reports retrieve corresponding TestStep for TestStepResul (Antwort)
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Fabian,
the Model API lists the available entities for KlarosContext.executeQuery().
Technically this is a slightly modified subset of the Hibernate Query Language (HQL), which may help if you are familiar with its concepts.
Regards,
Torsten
the Model API lists the available entities for KlarosContext.executeQuery().
Technically this is a slightly modified subset of the Hibernate Query Language (HQL), which may help if you are familiar with its concepts.
Regards,
Torsten
Torsten Stolpmann, geändert vor 11 Jahren.
RE: Klaros Custom Reports retrieve corresponding TestStep for TestStepResul
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Fabian,
The enhancement request KLAROS-1924 is now implemented towards the upcoming Klaros-Testmanagement 3.8.1 release.
Thanks for pointing this out!
Regards,
Torsten
The enhancement request KLAROS-1924 is now implemented towards the upcoming Klaros-Testmanagement 3.8.1 release.
Thanks for pointing this out!
Regards,
Torsten