The 6sense QA team validates platform behavior by storing expected API or UI results separately from results observed during automated test runs. Write a PostgreSQL query that compares the expected and actual result rows for every 6sense test case.
PASS, FAIL, or NOT_RUN. Treat two NULL result values as equal.test_case_id ascending.| Column | Type | Description |
|---|---|---|
| test_case_idPK | INT | Unique test case identifier |
| test_name | VARCHAR(150) | Name of the QA test case |
| Column | Type | Description |
|---|---|---|
| test_case_id | INT | Referenced test case |
| result_keyPK | VARCHAR(80) | Assertion or response field name |
| expected_value | VARCHAR(255) | Value expected by the test |
| Column | Type | Description |
|---|---|---|
| test_case_id | INT | Referenced test case |
| result_keyPK | VARCHAR(80) | Observed assertion or response field name |
| actual_value | VARCHAR(255) | Value observed during test execution |