I have DB as below
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
);
I want to draw table as below. If “no_test_failed” colounm value is ‘0’ I want that colounm should green else red.
I have data something like below
INSERT INTO
TestSuiteData1
VALUES
(‘AD’,800,750,38,12,‘2018-02-19’),
(‘AWS’,500,500,0,0,‘2018-02-19’),
(‘JDBC’,43,43,0,0,‘2018-02-19’),
(‘OpenLDAP’,78,0,78,0,‘2018-02-19’),
(‘AD’,800,0,0,800,‘2018-02-20’),
(‘AWS’,534,0,0,0,‘2018-02-20’),
(‘JDBC’,4,0,0,0,‘2018-02-20’),
(‘OpenLDAP’,78,0,23,0,‘2018-02-20’),
(‘AD’,8,750,38,12,‘2018-02-21’),
(‘AWS’,5,54,456,34,‘2018-02-21’),
(‘JDBC’,4,43,5,56,‘2018-02-21’),
(‘OpenLDAP’,78,0,23,0,‘2018-02-21’);