56 lines
2.5 KiB
Markdown
56 lines
2.5 KiB
Markdown
<<<<<<< HEAD
|
|
CREATE SEQUENCE test_results_id_seq;
|
|
CREATE TABLE test_results (
|
|
id bigint NOT NULL DEFAULT nextval('test_results_seq') PRIMARY KEY,
|
|
test_name varchar(255) DEFAULT NULL,
|
|
test_class varchar(255) DEFAULT NULL,
|
|
test_method varchar(255) DEFAULT NULL,
|
|
test_path varchar(255) DEFAULT NULL,
|
|
test_type varchar(32) DEFAULT NULL,
|
|
test_timestamp timestamptz NOT NULL DEFAULT now(),
|
|
test_retry BOOLEAN DEFAULT FALSE,
|
|
origin varchar(255) DEFAULT NULL,
|
|
failed BOOLEAN DEFAULT FALSE,
|
|
failed_message varchar(2047) DEFAULT NULL,
|
|
screenshot_url varchar(255) DEFAULT NULL,
|
|
weblog_url varchar(255) DEFAULT NULL,
|
|
);
|
|
ALTER SEQUENCE test_results_id_seq OWNED BY test_results.id;
|
|
|
|
=======
|
|
|
|
> > > > > > > b023d8910c89d80573499890a958c0df649849e1
|
|
|
|
# Tables
|
|
|
|
PG Database Tables Mapped Out
|
|
|
|
<<<<<<< HEAD
|
|
|
|
## `test_results`
|
|
|
|
| id | test_name | test_class | test_method | test_path | test_type | test_timestamp | test_retry | origin | failed | failed_message | screenshot_url | weblog_url |
|
|
| int | string | string | string | string | string | timestamp | boolean | string | boolean | string | string | string |
|
|
| 1 | My Test | My Test Class | My Failing Test Method | My Test Class Path | API | Date.now() | false | Test Suite A | true | Some Failure Messsage | screenshotUrl | weblogUrl |
|
|
=======
|
|
Table `test_results`
|
|
| id | test_name | test_class | test_method | test_path | test_type | test_timestamp | test_retry | origin | failed | failed_message | screenshot_url | weblog_url |
|
|
|-----|-----------|------------|-------------|---------------------|---------------|----------------|------------|--------------|---------|------------------------|---------------------|--------------------|
|
|
| int | string | string | string | string | string | timestamp | boolean | string | boolean | string | string | string |
|
|
| 1 | My Test | My Class | My Method | /path/to/test_class | API/UI/MOBILE | Date.now() | false | Test Suite A | true | I am a test that fails | https://example.com | http://example.com |
|
|
|
|
> > > > > > > b023d8910c89d80573499890a958c0df649849e1
|
|
|
|
- id Automatically Generated
|
|
- test_name\* Name of test
|
|
- test_class\* Name of class
|
|
- test_method Name of failed method if failed else null
|
|
- test_path Path to test class
|
|
- test_type API/UI/Mobile
|
|
- test_timestamp UTC Timestamp
|
|
- test_retry Should test remedy failed tests
|
|
- origin Test Suite test belongs to
|
|
- failed Indicates if the test failed or not
|
|
- failed_message Failure Message of test or null
|
|
- screenshot_url Screenshot of failure
|
|
- weblog_url Log from the web console
|