The Metrics I’m getting by above queries is “no. of test suite execution per day”
SELECT
UNIX_TIMESTAMP(execution_date) as time_sec,
count(no_total_test) as value,
testsuite_name as metric
FROM
TestSuiteData
WHERE
$__timeFilter(execution_date)
GROUP BY 1, 3
ORDER BY 1
and
SELECT
UNIX_TIMESTAMP(execution_date) as time_sec,
count(no_test_failed) as value,
testsuite_name as metric
FROM
TestSuiteData
WHERE
$__timeFilter(execution_date)
GROUP BY 1, 3
ORDER BY 1
e.g. ActiveDirectory executed 10 times, next is double of that, next one is triple of that
it’s completely a random graphs.
My Goal is to achive…
-
One comman graph which will represent all test suite health over period of time i.e. test suite wise % failures, passing for time series.
-
Individual test suite test data for given time series i.e. total test, test passed, test failed and test skipped
e.g. JDBC suite I want to show how over period of time the results look like.
My DB is
create table TestSuiteData1 (
testsuite_name VARCHAR(400) NOT NULL,
no_total_test INT NOT NULL,
no_test_passed INT NOT NULL,
no_test_failed INT NOT NULL,
no_test_skipped INT NOT NULL,
execution_date DATE
);
And the Data that I added is
INSERT INTO `TestSuiteData1` VALUES
('ActiveDirectory',800,750,38,12,'2018-02-19'),
('AzureAD',500,500,0,0,'2018-02-19'),
('JDBC',43,43,0,0,'2018-02-19'),
('OpenLDAP',78,0,78,0,'2018-02-19'),
('ActiveDirectory',800,0,0,800,'2018-02-20'),
('AzureAD',534,0,0,0,'2018-02-20'),
('JDBC',4,0,0,0,'2018-02-20'),
('OpenLDAP',78,0,23,0,'2018-02-20'),
('ActiveDirectory',8,750,38,12,'2018-02-21'),
('AzureAD',5,54,456,34,'2018-02-21'),
('JDBC',4,43,5,56,'2018-02-21'),
('OpenLDAP',78,0,23,0,'2018-02-21');
Is it possible to do something as below, so that I could get all data to form 1st graph
SELECT
UNIX_TIMESTAMP(execution_date) as time_sec,
count(no_total_test) as value,
count(no_test_passed) as value,
count(no_test_failed) as value,
count(no_test_skipped) as value,
testsuite_name as metric
FROM
TestSuiteData1
WHERE
$__timeFilter(execution_date)
GROUP BY 1, 6
ORDER BY 1