kc_aravind

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-04-09
08:00
194 views
how to query in sql to find the planned no of test cases vs executed?
1 Reply
alexanderk

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-04-09
15:25
It depends on what is meant by 'planned' and executed.
I assume that 'planned' are those tests that are included in test set, but have status 'NO RUN', and the rest of the tests are those that were executed and therefore have certain status.
So sql query should be something like:
SELECT
"test_set"."CY_CYCLE" AS "name",
"test_instance"."TC_STATUS" AS "status",
count("test_instance"."TC_STATUS") AS "Count"
FROM
CYCLE "test_set"
INNER JOIN TESTCYCL "test_instance" ON "test_set"."CY_CYCLE_ID" = "test_instance"."TC_CYCLE_ID"
GROUP BY
"test_set"."CY_CYCLE",
"test_instance"."TC_STATUS"
This will show you how many test instatces in what test set with wgat status.
Hope that will help you