Custom report, deleted Testcases - Klaros Test Management - Forum - Klaros-Testmanagement
Custom report, deleted Testcases
Fabian Tietz, geändert vor 11 Jahren.
Custom report, deleted Testcases
Youngling Beiträge: 9 Beitrittsdatum: 09.08.13 Neueste Beiträge
Hi,
It seems, that Testcases, which are deleted from the web UI (which is possible, when they have not been executed).
still appear in the query. Is it possible to extend the Query, to suppress deleted TC, when querying all testcases
from the DB?
Regards,
Fabian.
It seems, that Testcases, which are deleted from the web UI (which is possible, when they have not been executed).
still appear in the query. Is it possible to extend the Query, to suppress deleted TC, when querying all testcases
from the DB?
Regards,
Fabian.
Torsten Stolpmann, geändert vor 11 Jahren.
RE: Custom report, deleted Testcases
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Fabian,
yes you may use the enabled column/isEnabled() method in the IKlarosNamedEntity interface for this. The documentation is a bit vague about its purpose.
Hope this helps,
Torsten
yes you may use the enabled column/isEnabled() method in the IKlarosNamedEntity interface for this. The documentation is a bit vague about its purpose.
Hope this helps,
Torsten
Fabian Tietz, geändert vor 11 Jahren.
RE: Custom report, deleted Testcases
Youngling Beiträge: 9 Beitrittsdatum: 09.08.13 Neueste Beiträge
Hi,
Hmm, unfortunately TestCase is not derived from NamedEntity and therefore has no isEnabled Method.
Going via TestResults is also not a good idea, since it is not possible ti distinguish between new Testcases, that have
no results yet and deleted Testcases.
Maybe we are just taking the wrong approach. Basically we are not working with TestSuits, only plain Testcases, which are executed
against specific SUTs.
Another Question:
Is it possible, to access the testcase Category from the API, if Testcases are organized in Categories from the WebUI?
Is it possible to retrieve the current State "draft", "approved",.... via API?
Regards Fabian,
Hmm, unfortunately TestCase is not derived from NamedEntity and therefore has no isEnabled Method.
Going via TestResults is also not a good idea, since it is not possible ti distinguish between new Testcases, that have
no results yet and deleted Testcases.
Maybe we are just taking the wrong approach. Basically we are not working with TestSuits, only plain Testcases, which are executed
against specific SUTs.
Another Question:
Is it possible, to access the testcase Category from the API, if Testcases are organized in Categories from the WebUI?
Is it possible to retrieve the current State "draft", "approved",.... via API?
Regards Fabian,
Torsten Stolpmann, geändert vor 11 Jahren.
RE: Custom report, deleted Testcases (Antwort)
Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Fabian,
Please have a look again at http://www.klaros-testmanagement.com/files/doc/html/User-Manual.Appendix.API.html#class-de.verit.klaros.core.model.KlarosTestCase - there you see the methods inherited from both IKlarosRevision and its sub-classed interface IKlarosNamedEntity (containing the isEnabled() method).
Sure you can also directly use this in a query like:
If this is your setup I see nothing wrong with your approach.
Yes, category information is available with version 3.8.3 ([KLAROS-1976]) which is out now. Look for KlarosTestCase.getCategories() and also KlarosConfiguration.getTestCaseCategoryTrees() for the reverse relation.
Look for getState() in KlarosTestCase. Heads up - this is not directly available on the query level, as there are indirections taken to the state model to retrieve this.
Hope this helps,
Torsten
Hmm, unfortunately TestCase is not derived from NamedEntity and therefore has no isEnabled Method.
Please have a look again at http://www.klaros-testmanagement.com/files/doc/html/User-Manual.Appendix.API.html#class-de.verit.klaros.core.model.KlarosTestCase - there you see the methods inherited from both IKlarosRevision and its sub-classed interface IKlarosNamedEntity (containing the isEnabled() method).
Sure you can also directly use this in a query like:
select t from KlarosTestCase t where t.enabled = true |
Going via TestResults is also not a good idea, since it is not possible ti distinguish between new Testcases, that have
no results yet and deleted Testcases. Maybe we are just taking the wrong approach. Basically we are not working with TestSuits, only plain Testcases, which are executed
against specific SUTs.
no results yet and deleted Testcases. Maybe we are just taking the wrong approach. Basically we are not working with TestSuits, only plain Testcases, which are executed
against specific SUTs.
If this is your setup I see nothing wrong with your approach.
Is it possible, to access the testcase Category from the API, if Testcases are organized in Categories from the WebUI?
Yes, category information is available with version 3.8.3 ([KLAROS-1976]) which is out now. Look for KlarosTestCase.getCategories() and also KlarosConfiguration.getTestCaseCategoryTrees() for the reverse relation.
Is it possible to retrieve the current State "draft", "approved",.... via API?
Look for getState() in KlarosTestCase. Heads up - this is not directly available on the query level, as there are indirections taken to the state model to retrieve this.
Hope this helps,
Torsten