doc-detective-common 4.0.0-beta.0-dev.4 → 4.0.0-beta.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.c8rc.json +0 -8
- package/.mocharc.yml +0 -1
- package/icon.png +0 -0
- package/scripts/check-coverage-ratchet.cjs +0 -123
- package/scripts/createCjsWrapper.js +0 -25
- package/scripts/generateTypes.cjs +0 -54
- package/src/detectTests.ts +0 -660
- package/src/index.ts +0 -3
- package/src/schemas/build/checkLink_v2.schema.json +0 -81
- package/src/schemas/build/checkLink_v3.schema.json +0 -92
- package/src/schemas/build/click_v3.schema.json +0 -145
- package/src/schemas/build/config_v2.schema.json +0 -1079
- package/src/schemas/build/config_v3.schema.json +0 -696
- package/src/schemas/build/context_v2.schema.json +0 -135
- package/src/schemas/build/context_v3.schema.json +0 -229
- package/src/schemas/build/dragAndDrop_v3.schema.json +0 -189
- package/src/schemas/build/find_v2.schema.json +0 -168
- package/src/schemas/build/find_v3.schema.json +0 -214
- package/src/schemas/build/goTo_v2.schema.json +0 -63
- package/src/schemas/build/goTo_v3.schema.json +0 -257
- package/src/schemas/build/httpRequest_v2.schema.json +0 -321
- package/src/schemas/build/httpRequest_v3.schema.json +0 -439
- package/src/schemas/build/loadCookie_v3.schema.json +0 -138
- package/src/schemas/build/loadVariables_v3.schema.json +0 -10
- package/src/schemas/build/moveTo_v2.schema.json +0 -99
- package/src/schemas/build/openApi_v2.schema.json +0 -76
- package/src/schemas/build/openApi_v3.schema.json +0 -161
- package/src/schemas/build/record_v3.schema.json +0 -70
- package/src/schemas/build/report_v3.schema.json +0 -53
- package/src/schemas/build/resolvedTests_v3.schema.json +0 -238
- package/src/schemas/build/runCode_v2.schema.json +0 -201
- package/src/schemas/build/runCode_v3.schema.json +0 -138
- package/src/schemas/build/runShell_v2.schema.json +0 -189
- package/src/schemas/build/runShell_v3.schema.json +0 -156
- package/src/schemas/build/saveCookie_v3.schema.json +0 -149
- package/src/schemas/build/saveScreenshot_v2.schema.json +0 -150
- package/src/schemas/build/screenshot_v3.schema.json +0 -250
- package/src/schemas/build/setVariables_v2.schema.json +0 -39
- package/src/schemas/build/sourceIntegration_v3.schema.json +0 -51
- package/src/schemas/build/spec_v2.schema.json +0 -199
- package/src/schemas/build/spec_v3.schema.json +0 -213
- package/src/schemas/build/startRecording_v2.schema.json +0 -57
- package/src/schemas/build/step_v3.schema.json +0 -669
- package/src/schemas/build/stopRecord_v3.schema.json +0 -13
- package/src/schemas/build/stopRecording_v2.schema.json +0 -33
- package/src/schemas/build/test_v2.schema.json +0 -244
- package/src/schemas/build/test_v3.schema.json +0 -292
- package/src/schemas/build/typeKeys_v2.schema.json +0 -72
- package/src/schemas/build/type_v3.schema.json +0 -131
- package/src/schemas/build/wait_v2.schema.json +0 -42
- package/src/schemas/build/wait_v3.schema.json +0 -37
- package/src/schemas/dereferenceSchemas.cjs +0 -208
- package/src/schemas/index.ts +0 -6
- package/src/schemas/output_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/output_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/output_schemas/checkLink_v2.schema.json +0 -80
- package/src/schemas/output_schemas/checkLink_v3.schema.json +0 -145
- package/src/schemas/output_schemas/click_v1.schema.json +0 -60
- package/src/schemas/output_schemas/click_v3.schema.json +0 -252
- package/src/schemas/output_schemas/config_v2.schema.json +0 -2628
- package/src/schemas/output_schemas/config_v3.schema.json +0 -16470
- package/src/schemas/output_schemas/context_v2.schema.json +0 -134
- package/src/schemas/output_schemas/context_v3.schema.json +0 -374
- package/src/schemas/output_schemas/dragAndDrop_v3.schema.json +0 -496
- package/src/schemas/output_schemas/endRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/find_v1.schema.json +0 -171
- package/src/schemas/output_schemas/find_v2.schema.json +0 -184
- package/src/schemas/output_schemas/find_v3.schema.json +0 -1349
- package/src/schemas/output_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/output_schemas/goTo_v2.schema.json +0 -62
- package/src/schemas/output_schemas/goTo_v3.schema.json +0 -419
- package/src/schemas/output_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/output_schemas/httpRequest_v2.schema.json +0 -392
- package/src/schemas/output_schemas/httpRequest_v3.schema.json +0 -994
- package/src/schemas/output_schemas/loadCookie_v3.schema.json +0 -228
- package/src/schemas/output_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/output_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/output_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/output_schemas/moveTo_v2.schema.json +0 -98
- package/src/schemas/output_schemas/openApi_v2.schema.json +0 -75
- package/src/schemas/output_schemas/openApi_v3.schema.json +0 -162
- package/src/schemas/output_schemas/record_v3.schema.json +0 -101
- package/src/schemas/output_schemas/report_v3.schema.json +0 -16826
- package/src/schemas/output_schemas/resolvedTests_v3.schema.json +0 -33331
- package/src/schemas/output_schemas/runCode_v2.schema.json +0 -200
- package/src/schemas/output_schemas/runCode_v3.schema.json +0 -222
- package/src/schemas/output_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/output_schemas/runShell_v2.schema.json +0 -188
- package/src/schemas/output_schemas/runShell_v3.schema.json +0 -236
- package/src/schemas/output_schemas/saveCookie_v3.schema.json +0 -245
- package/src/schemas/output_schemas/saveScreenshot_v2.schema.json +0 -149
- package/src/schemas/output_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/output_schemas/screenshot_v3.schema.json +0 -681
- package/src/schemas/output_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/output_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/output_schemas/sourceIntegration_v3.schema.json +0 -50
- package/src/schemas/output_schemas/spec_v2.schema.json +0 -2301
- package/src/schemas/output_schemas/spec_v3.schema.json +0 -16630
- package/src/schemas/output_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/output_schemas/startRecording_v2.schema.json +0 -56
- package/src/schemas/output_schemas/step_v3.schema.json +0 -7317
- package/src/schemas/output_schemas/stopRecord_v3.schema.json +0 -12
- package/src/schemas/output_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/output_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/output_schemas/test_v2.schema.json +0 -1903
- package/src/schemas/output_schemas/test_v3.schema.json +0 -15863
- package/src/schemas/output_schemas/typeKeys_v2.schema.json +0 -71
- package/src/schemas/output_schemas/type_v1.schema.json +0 -62
- package/src/schemas/output_schemas/type_v3.schema.json +0 -244
- package/src/schemas/output_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/output_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/output_schemas/wait_v3.schema.json +0 -41
- package/src/schemas/schemas.json +0 -121331
- package/src/schemas/src_schemas/analytics_v1.schema.json +0 -585
- package/src/schemas/src_schemas/checkLink_v1.schema.json +0 -42
- package/src/schemas/src_schemas/checkLink_v2.schema.json +0 -65
- package/src/schemas/src_schemas/checkLink_v3.schema.json +0 -91
- package/src/schemas/src_schemas/click_v1.schema.json +0 -60
- package/src/schemas/src_schemas/click_v3.schema.json +0 -144
- package/src/schemas/src_schemas/config_v2.schema.json +0 -929
- package/src/schemas/src_schemas/config_v3.schema.json +0 -633
- package/src/schemas/src_schemas/context_v2.schema.json +0 -108
- package/src/schemas/src_schemas/context_v3.schema.json +0 -202
- package/src/schemas/src_schemas/dragAndDrop_v3.schema.json +0 -185
- package/src/schemas/src_schemas/find_v1.schema.json +0 -137
- package/src/schemas/src_schemas/find_v2.schema.json +0 -155
- package/src/schemas/src_schemas/find_v3.schema.json +0 -210
- package/src/schemas/src_schemas/goTo_v1.schema.json +0 -30
- package/src/schemas/src_schemas/goTo_v2.schema.json +0 -58
- package/src/schemas/src_schemas/goTo_v3.schema.json +0 -232
- package/src/schemas/src_schemas/httpRequest_v1.schema.json +0 -115
- package/src/schemas/src_schemas/httpRequest_v2.schema.json +0 -284
- package/src/schemas/src_schemas/httpRequest_v3.schema.json +0 -402
- package/src/schemas/src_schemas/loadCookie_v3.schema.json +0 -113
- package/src/schemas/src_schemas/loadVariables_v3.schema.json +0 -9
- package/src/schemas/src_schemas/matchText_v1.schema.json +0 -32
- package/src/schemas/src_schemas/moveMouse_v1.schema.json +0 -60
- package/src/schemas/src_schemas/moveTo_v2.schema.json +0 -89
- package/src/schemas/src_schemas/openApi_v2.schema.json +0 -64
- package/src/schemas/src_schemas/openApi_v3.schema.json +0 -161
- package/src/schemas/src_schemas/record_v3.schema.json +0 -69
- package/src/schemas/src_schemas/report_v3.schema.json +0 -52
- package/src/schemas/src_schemas/resolvedTests_v3.schema.json +0 -237
- package/src/schemas/src_schemas/runCode_v2.schema.json +0 -181
- package/src/schemas/src_schemas/runCode_v3.schema.json +0 -137
- package/src/schemas/src_schemas/runShell_v1.schema.json +0 -35
- package/src/schemas/src_schemas/runShell_v2.schema.json +0 -166
- package/src/schemas/src_schemas/runShell_v3.schema.json +0 -155
- package/src/schemas/src_schemas/saveCookie_v3.schema.json +0 -124
- package/src/schemas/src_schemas/saveScreenshot_v2.schema.json +0 -129
- package/src/schemas/src_schemas/screenshot_v1.schema.json +0 -48
- package/src/schemas/src_schemas/screenshot_v3.schema.json +0 -249
- package/src/schemas/src_schemas/scroll_v1.schema.json +0 -50
- package/src/schemas/src_schemas/setVariables_v2.schema.json +0 -38
- package/src/schemas/src_schemas/sourceIntegration_v3.schema.json +0 -45
- package/src/schemas/src_schemas/spec_v2.schema.json +0 -175
- package/src/schemas/src_schemas/spec_v3.schema.json +0 -212
- package/src/schemas/src_schemas/startRecording_v1.schema.json +0 -55
- package/src/schemas/src_schemas/startRecording_v2.schema.json +0 -54
- package/src/schemas/src_schemas/step_v3.schema.json +0 -632
- package/src/schemas/src_schemas/stopRecord_v3.schema.json +0 -9
- package/src/schemas/src_schemas/stopRecording_v1.schema.json +0 -20
- package/src/schemas/src_schemas/stopRecording_v2.schema.json +0 -32
- package/src/schemas/src_schemas/test_v2.schema.json +0 -200
- package/src/schemas/src_schemas/test_v3.schema.json +0 -268
- package/src/schemas/src_schemas/typeKeys_v2.schema.json +0 -63
- package/src/schemas/src_schemas/type_v1.schema.json +0 -62
- package/src/schemas/src_schemas/type_v3.schema.json +0 -118
- package/src/schemas/src_schemas/wait_v1.schema.json +0 -42
- package/src/schemas/src_schemas/wait_v2.schema.json +0 -41
- package/src/schemas/src_schemas/wait_v3.schema.json +0 -36
- package/src/types/generated/checkLink_v3.ts +0 -29
- package/src/types/generated/click_v3.ts +0 -17
- package/src/types/generated/config_v3.ts +0 -405
- package/src/types/generated/context_v3.ts +0 -112
- package/src/types/generated/dragAndDrop_v3.ts +0 -39
- package/src/types/generated/endRecord_v3.ts +0 -10
- package/src/types/generated/find_v3.ts +0 -17
- package/src/types/generated/goTo_v3.ts +0 -48
- package/src/types/generated/httpRequest_v3.ts +0 -17
- package/src/types/generated/loadCookie_v3.ts +0 -17
- package/src/types/generated/loadVariables_v3.ts +0 -10
- package/src/types/generated/openApi_v3.ts +0 -64
- package/src/types/generated/record_v3.ts +0 -34
- package/src/types/generated/report_v3.ts +0 -183
- package/src/types/generated/resolvedTests_v3.ts +0 -585
- package/src/types/generated/runCode_v3.ts +0 -59
- package/src/types/generated/runShell_v3.ts +0 -58
- package/src/types/generated/saveCookie_v3.ts +0 -17
- package/src/types/generated/screenshot_v3.ts +0 -76
- package/src/types/generated/sourceIntegration_v3.ts +0 -31
- package/src/types/generated/spec_v3.ts +0 -166
- package/src/types/generated/step_v3.ts +0 -1288
- package/src/types/generated/stopRecord_v3.ts +0 -10
- package/src/types/generated/test_v3.ts +0 -3048
- package/src/types/generated/type_v3.ts +0 -56
- package/src/types/generated/wait_v3.ts +0 -13
- package/src/validate.ts +0 -627
- package/tsconfig.json +0 -22
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title": "moveTo",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"description": "Move the mouse to a specific location.",
|
|
5
|
-
"properties": {
|
|
6
|
-
"id": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "ID of the step."
|
|
9
|
-
},
|
|
10
|
-
"description": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Description of the step."
|
|
13
|
-
},
|
|
14
|
-
"action": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"const": "moveTo",
|
|
17
|
-
"description": "The action to perform."
|
|
18
|
-
},
|
|
19
|
-
"selector": {
|
|
20
|
-
"description": "Selector for the element to move to.",
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"alignment": {
|
|
24
|
-
"description": "Alignment of the element to move to.",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"enum": ["top", "bottom", "left", "right", "center"],
|
|
27
|
-
"default": "center"
|
|
28
|
-
},
|
|
29
|
-
"offset": {
|
|
30
|
-
"description": "Offset from the element to move to.",
|
|
31
|
-
"type": "object",
|
|
32
|
-
"properties": {
|
|
33
|
-
"x": {
|
|
34
|
-
"description": "Offset from the element to move to in x direction. Negative values move left, positive values move right.",
|
|
35
|
-
"type": "number",
|
|
36
|
-
"default": 0
|
|
37
|
-
},
|
|
38
|
-
"y": {
|
|
39
|
-
"description": "Offset from the element to move to in y direction. Negative values move up, positive values move down.",
|
|
40
|
-
"type": "number",
|
|
41
|
-
"default": 0
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"default": {},
|
|
45
|
-
"additionalProperties": false
|
|
46
|
-
},
|
|
47
|
-
"duration": {
|
|
48
|
-
"description": "Duration of the move in milliseconds.",
|
|
49
|
-
"type": "number",
|
|
50
|
-
"minimum": 0,
|
|
51
|
-
"default": 500
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"dynamicDefaults": {
|
|
55
|
-
"id": "uuid"
|
|
56
|
-
},
|
|
57
|
-
"required": ["action", "selector"],
|
|
58
|
-
"additionalProperties": false,
|
|
59
|
-
"examples": [
|
|
60
|
-
{
|
|
61
|
-
"action": "moveTo",
|
|
62
|
-
"selector": "#searchInput"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"action": "moveTo",
|
|
66
|
-
"selector": "#searchInput",
|
|
67
|
-
"alignment": "left"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"action": "moveTo",
|
|
71
|
-
"selector": "#searchInput",
|
|
72
|
-
"alignment": "left",
|
|
73
|
-
"offset": {
|
|
74
|
-
"x": 10,
|
|
75
|
-
"y": 10
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"action": "moveTo",
|
|
80
|
-
"selector": "#searchInput",
|
|
81
|
-
"alignment": "left",
|
|
82
|
-
"offset": {
|
|
83
|
-
"x": 10,
|
|
84
|
-
"y": 10
|
|
85
|
-
},
|
|
86
|
-
"duration": 1000
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "openApi_v2.schema.json",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"title": "openApi",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"description": "OpenAPI definition and configuration.",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"properties": {
|
|
10
|
-
"name": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Name of the OpenAPI definition, as defined in your configuration."
|
|
13
|
-
},
|
|
14
|
-
"descriptionPath": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "URL or local path to the OpenAPI definition."
|
|
17
|
-
},
|
|
18
|
-
"operationId": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "ID of the operation to use for the request."
|
|
21
|
-
},
|
|
22
|
-
"server": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "Server to use for example requests. Only valid if `useExample` is `request` or `both`. If not specified but an example is used for the request, uses the first server defined in the OpenAPI definition."
|
|
25
|
-
},
|
|
26
|
-
"validateAgainstSchema": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "Validates the request and/or response against the schema in the OpenAPI definition. If the request or response doesn't match the schema, the step fails.",
|
|
29
|
-
"enum": ["request", "response", "both", "none"],
|
|
30
|
-
"default": "both"
|
|
31
|
-
},
|
|
32
|
-
"mockResponse": {
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"description": "If `true`, doesn't make the HTTP request, but instead uses the response example or schema from the OpenAPI definition as the response data. Useful for creating tests when an API isn't fully implemented yet. If `statusCode` isn't specified, uses the first defined response code."
|
|
35
|
-
},
|
|
36
|
-
"statusCode": {
|
|
37
|
-
"type": "integer",
|
|
38
|
-
"description": "Response code to use for validation, examples, and status code checking. If the response code doesn't match, the step fails. `statusCodes` overrides this value when specified."
|
|
39
|
-
},
|
|
40
|
-
"useExample": {
|
|
41
|
-
"type": ["string"],
|
|
42
|
-
"description": "Uses the example from the OpenAPI definition as the request and response data. If the request or response has multiple examples, specify `exampleKey`. If `statusCode` isn't specified, uses the first defined response code. `requestData`, `requestParams`, and `requestHeaders` override portions of request examples when specified. `responseData` overrides portions of response examples when specified.",
|
|
43
|
-
"enum": ["request", "response", "both", "none"],
|
|
44
|
-
"default": "none"
|
|
45
|
-
},
|
|
46
|
-
"exampleKey": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "Key of the example to use from the `examples` property in the OpenAPI definition. If an `examples` key isn't specified or isn't available for a given parameter or object, the `example` property value is used.",
|
|
49
|
-
"default": ""
|
|
50
|
-
},
|
|
51
|
-
"requestHeaders": {
|
|
52
|
-
"type": "object",
|
|
53
|
-
"description": "Request headers to add to the request. If specified in both a config and a step, the step value overrides the config value.",
|
|
54
|
-
"additionalProperties": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"examples":[
|
|
60
|
-
{
|
|
61
|
-
"descriptionPath": "https://petstore.swagger.io/v2/swagger.json"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$id": "openApi_v3.schema.json",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"title": "openApi",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"description": "OpenAPI description and configuration.",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"anyOf": [
|
|
10
|
-
{
|
|
11
|
-
"required": [
|
|
12
|
-
"descriptionPath"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"required": [
|
|
17
|
-
"operationId"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"properties": {
|
|
22
|
-
"name": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "Name of the OpenAPI description, as defined in your configuration."
|
|
25
|
-
},
|
|
26
|
-
"descriptionPath": {
|
|
27
|
-
"$ref": "#/components/schemas/descriptionPath"
|
|
28
|
-
},
|
|
29
|
-
"definition": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"readOnly": true,
|
|
32
|
-
"description": "OpenAPI definition object loaded from the `descriptionPath`. This is a resolved version of the OpenAPI description and should not be user-defined.",
|
|
33
|
-
"additionalProperties": true,
|
|
34
|
-
"title": "OpenAPI definition"
|
|
35
|
-
},
|
|
36
|
-
"operationId": {
|
|
37
|
-
"$ref": "#/components/schemas/operationId"
|
|
38
|
-
},
|
|
39
|
-
"server": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"description": "Server to use for example requests. Only valid if `useExample` is `request` or `both`. If not specified but an example is used for the request, uses the first server defined in the OpenAPI description."
|
|
42
|
-
},
|
|
43
|
-
"validateAgainstSchema": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"description": "Validates the request and/or response against the schema in the OpenAPI description. If the request or response doesn't match the schema, the step fails.",
|
|
46
|
-
"enum": [
|
|
47
|
-
"request",
|
|
48
|
-
"response",
|
|
49
|
-
"both",
|
|
50
|
-
"none"
|
|
51
|
-
],
|
|
52
|
-
"default": "both"
|
|
53
|
-
},
|
|
54
|
-
"mockResponse": {
|
|
55
|
-
"type": "boolean",
|
|
56
|
-
"description": "If `true`, doesn't make the HTTP request, but instead uses the response example or schema from the OpenAPI description as the response data. Useful for creating tests when an API isn't fully implemented yet. If `statusCode` isn't specified, uses the first defined response code."
|
|
57
|
-
},
|
|
58
|
-
"statusCode": {
|
|
59
|
-
"type": "integer",
|
|
60
|
-
"description": "Response code to use for validation, examples, and status code checking. If the response code doesn't match, the step fails. `statusCodes` overrides this value when specified."
|
|
61
|
-
},
|
|
62
|
-
"useExample": {
|
|
63
|
-
"type": [
|
|
64
|
-
"string"
|
|
65
|
-
],
|
|
66
|
-
"description": "Uses the example from the OpenAPI description as the request and response data. If the request or response has multiple examples, specify `exampleKey`. If `statusCode` isn't specified, uses the first defined response code. `requestData`, `requestParams`, and `requestHeaders` override portions of request examples when specified. `responseData` overrides portions of response examples when specified.",
|
|
67
|
-
"enum": [
|
|
68
|
-
"request",
|
|
69
|
-
"response",
|
|
70
|
-
"both",
|
|
71
|
-
"none"
|
|
72
|
-
],
|
|
73
|
-
"default": "none"
|
|
74
|
-
},
|
|
75
|
-
"exampleKey": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"description": "Key of the example to use from the `examples` property in the OpenAPI description. If an `examples` key isn't specified or isn't available for a given parameter or object, the `example` property value is used.",
|
|
78
|
-
"default": ""
|
|
79
|
-
},
|
|
80
|
-
"headers": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"description": "Request headers to add to requests. For example, to set `Authorization` headers for all requests from the specified OpenAPI document. If specified in both a config and a step, the step value overrides the config value.",
|
|
83
|
-
"additionalProperties": {
|
|
84
|
-
"type": "string"
|
|
85
|
-
},
|
|
86
|
-
"title": "OpenAPI request headers"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"components": {
|
|
90
|
-
"schemas": {
|
|
91
|
-
"operationId": {
|
|
92
|
-
"type": "string",
|
|
93
|
-
"description": "ID of the operation to use for the request."
|
|
94
|
-
},
|
|
95
|
-
"descriptionPath": {
|
|
96
|
-
"type": "string",
|
|
97
|
-
"description": "URL or local path to the OpenAPI description."
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"examples": [
|
|
102
|
-
{
|
|
103
|
-
"descriptionPath": "https://petstore.swagger.io/v2/swagger.json"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "Reqres",
|
|
107
|
-
"operationId": "getUserById"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
111
|
-
"operationId": "getUserById"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
115
|
-
"operationId": "createUser",
|
|
116
|
-
"useExample": "both"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
120
|
-
"operationId": "createUser",
|
|
121
|
-
"useExample": "both",
|
|
122
|
-
"exampleKey": "example1"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
126
|
-
"operationId": "createUser",
|
|
127
|
-
"useExample": "both",
|
|
128
|
-
"exampleKey": "example1",
|
|
129
|
-
"statusCode": 201
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
133
|
-
"operationId": "createUser",
|
|
134
|
-
"useExample": "both",
|
|
135
|
-
"exampleKey": "example1",
|
|
136
|
-
"statusCode": 201,
|
|
137
|
-
"validateAgainstSchema": "none"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
141
|
-
"operationId": "createUser",
|
|
142
|
-
"useExample": "both",
|
|
143
|
-
"exampleKey": "example1",
|
|
144
|
-
"statusCode": 201,
|
|
145
|
-
"validateAgainstSchema": "none",
|
|
146
|
-
"mockResponse": true
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"descriptionPath": "https://api.example.com/openapi.json",
|
|
150
|
-
"operationId": "createUser",
|
|
151
|
-
"useExample": "both",
|
|
152
|
-
"exampleKey": "example1",
|
|
153
|
-
"statusCode": 201,
|
|
154
|
-
"validateAgainstSchema": "none",
|
|
155
|
-
"mockResponse": true,
|
|
156
|
-
"headers": {
|
|
157
|
-
"Authorization": "Bearer 12345"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "record",
|
|
4
|
-
"description": "Start recording the current browser viewport. Must be followed by a `stopRecord` step. Only runs in Chrome browsers when they are visible. Supported extensions: [ '.mp4', '.webm', '.gif' ]",
|
|
5
|
-
"anyOf": [
|
|
6
|
-
{
|
|
7
|
-
"$ref": "#/components/schemas/string"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"$ref": "#/components/schemas/object"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"title": "Record (boolean)",
|
|
15
|
-
"description": "If `true`, records the current browser viewport. If `false`, doesn't record the current browser viewport."
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"components": {
|
|
19
|
-
"schemas": {
|
|
20
|
-
"string": {
|
|
21
|
-
"title": "Record (simple)",
|
|
22
|
-
"type": "string",
|
|
23
|
-
"description": "File path of the recording. Supports the `.mp4`, `.webm`, and `.gif` extensions. If not specified, the file name is the ID of the step, and the extension is `.mp4`.",
|
|
24
|
-
"pattern": "([A-Za-z0-9_-]*\\.(mp4|webm|gif)$|\\$[A-Za-z0-9_]+)",
|
|
25
|
-
"transform": [
|
|
26
|
-
"trim"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"object": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"properties": {
|
|
32
|
-
"path": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "File path of the recording. Supports the `.mp4`, `.webm`, and `.gif` extensions. If not specified, the file name is the ID of the step, and the extension is `.mp4`.",
|
|
35
|
-
"pattern": "([A-Za-z0-9_-]*\\.(mp4|webm|gif)$|\\$[A-Za-z0-9_]+)",
|
|
36
|
-
"transform": [
|
|
37
|
-
"trim"
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
"directory": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Directory of the file. If the directory doesn't exist, creates the directory.",
|
|
43
|
-
"transform": [
|
|
44
|
-
"trim"
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"overwrite": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "If `true`, overwrites the existing recording at `path` if it exists.",
|
|
50
|
-
"enum": [
|
|
51
|
-
"true",
|
|
52
|
-
"false"
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"title": "Record (detailed)"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"examples": [
|
|
61
|
-
true,
|
|
62
|
-
"results.mp4",
|
|
63
|
-
{
|
|
64
|
-
"path": "results.mp4",
|
|
65
|
-
"directory": "static/media",
|
|
66
|
-
"overwrite": "true"
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "report",
|
|
4
|
-
"type": "object",
|
|
5
|
-
"dynamicDefaults": {
|
|
6
|
-
"reportId": "uuid"
|
|
7
|
-
},
|
|
8
|
-
"properties": {
|
|
9
|
-
"reportId": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"description": "Unique identifier for the test specification."
|
|
12
|
-
},
|
|
13
|
-
"specs": {
|
|
14
|
-
"description": "Test specifications that were performed.",
|
|
15
|
-
"type": "array",
|
|
16
|
-
"minItems": 1,
|
|
17
|
-
"items": {
|
|
18
|
-
"anyOf": [
|
|
19
|
-
{
|
|
20
|
-
"$ref": "spec_v3.schema.json#"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"required": [
|
|
27
|
-
"specs"
|
|
28
|
-
],
|
|
29
|
-
"examples": [
|
|
30
|
-
{
|
|
31
|
-
"specs": [
|
|
32
|
-
{
|
|
33
|
-
"$ref": "spec_v3.schema.json#/examples/0"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"specs": [
|
|
39
|
-
{
|
|
40
|
-
"$ref": "spec_v3.schema.json#/examples/1"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"specs": [
|
|
46
|
-
{
|
|
47
|
-
"$ref": "spec_v3.schema.json#/examples/2"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
]
|
|
52
|
-
}
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "resolvedTests",
|
|
4
|
-
"description": "A collection of resolved tests ready to be performed.",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"dynamicDefaults": {
|
|
7
|
-
"resolvedTestsId": "uuid"
|
|
8
|
-
},
|
|
9
|
-
"properties": {
|
|
10
|
-
"resolvedTestsId": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Unique identifier for the resolved tests."
|
|
13
|
-
},
|
|
14
|
-
"config": {
|
|
15
|
-
"$ref": "config_v3.schema.json#"
|
|
16
|
-
},
|
|
17
|
-
"specs": {
|
|
18
|
-
"description": "Test specifications that were performed.",
|
|
19
|
-
"type": "array",
|
|
20
|
-
"minItems": 1,
|
|
21
|
-
"items": {
|
|
22
|
-
"anyOf": [
|
|
23
|
-
{
|
|
24
|
-
"$ref": "spec_v3.schema.json#"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"required": [
|
|
31
|
-
"specs"
|
|
32
|
-
],
|
|
33
|
-
"examples": [
|
|
34
|
-
{
|
|
35
|
-
"config": {
|
|
36
|
-
"input": [
|
|
37
|
-
"/home/hawkeyexl/Workspaces/resolver/dev/doc-content-yaml.md"
|
|
38
|
-
],
|
|
39
|
-
"logLevel": "debug",
|
|
40
|
-
"output": ".",
|
|
41
|
-
"recursive": true,
|
|
42
|
-
"relativePathBase": "file",
|
|
43
|
-
"detectSteps": true,
|
|
44
|
-
"fileTypes": [
|
|
45
|
-
{
|
|
46
|
-
"name": "markdown",
|
|
47
|
-
"extensions": [
|
|
48
|
-
"md",
|
|
49
|
-
"markdown",
|
|
50
|
-
"mdx"
|
|
51
|
-
],
|
|
52
|
-
"inlineStatements": {
|
|
53
|
-
"testStart": [
|
|
54
|
-
"{\\/\\*\\s*test\\s+?([\\s\\S]*?)\\s*\\*\\/}",
|
|
55
|
-
"<!--\\s*test\\s*([\\s\\S]*?)\\s*-->",
|
|
56
|
-
"\\[comment\\]:\\s+#\\s+\\(test\\s*(.*?)\\s*\\)",
|
|
57
|
-
"\\[comment\\]:\\s+#\\s+\\(test start\\s*(.*?)\\s*\\)"
|
|
58
|
-
],
|
|
59
|
-
"testEnd": [
|
|
60
|
-
"{\\/\\*\\s*test end\\s*\\*\\/}",
|
|
61
|
-
"<!--\\s*test end\\s*([\\s\\S]*?)\\s*-->",
|
|
62
|
-
"\\[comment\\]:\\s+#\\s+\\(test end\\)"
|
|
63
|
-
],
|
|
64
|
-
"ignoreStart": [
|
|
65
|
-
"{\\/\\*\\s*test ignore start\\s*\\*\\/}",
|
|
66
|
-
"<!--\\s*test ignore start\\s*-->"
|
|
67
|
-
],
|
|
68
|
-
"ignoreEnd": [
|
|
69
|
-
"{\\/\\*\\s*test ignore end\\s*\\*\\/}",
|
|
70
|
-
"<!--\\s*test ignore end\\s*-->"
|
|
71
|
-
],
|
|
72
|
-
"step": [
|
|
73
|
-
"{\\/\\*\\s*step\\s+?([\\s\\S]*?)\\s*\\*\\/}",
|
|
74
|
-
"<!--\\s*step\\s*([\\s\\S]*?)\\s*-->",
|
|
75
|
-
"\\[comment\\]:\\s+#\\s+\\(step\\s*(.*?)\\s*\\)"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
"markup": [
|
|
79
|
-
{
|
|
80
|
-
"name": "checkHyperlink",
|
|
81
|
-
"regex": [
|
|
82
|
-
"(?<!\\!)\\[[^\\]]+\\]\\(\\s*(https?:\\/\\/[^\\s)]+)(?:\\s+\"[^\"]*\")?\\s*\\)"
|
|
83
|
-
],
|
|
84
|
-
"actions": [
|
|
85
|
-
"checkLink"
|
|
86
|
-
]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "clickOnscreenText",
|
|
90
|
-
"regex": [
|
|
91
|
-
"\\b(?:[Cc]lick|[Tt]ap|[Ll]eft-click|[Cc]hoose|[Ss]elect|[Cc]heck)\\b\\s+\\*\\*((?:(?!\\*\\*).)+)\\*\\*"
|
|
92
|
-
],
|
|
93
|
-
"actions": [
|
|
94
|
-
"click"
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "findOnscreenText",
|
|
99
|
-
"regex": [
|
|
100
|
-
"\\*\\*((?:(?!\\*\\*).)+)\\*\\*"
|
|
101
|
-
],
|
|
102
|
-
"actions": [
|
|
103
|
-
"find"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"name": "goToUrl",
|
|
108
|
-
"regex": [
|
|
109
|
-
"\\b(?:[Gg]o\\s+to|[Oo]pen|[Nn]avigate\\s+to|[Vv]isit|[Aa]ccess|[Pp]roceed\\s+to|[Ll]aunch)\\b\\s+\\[[^\\]]+\\]\\(\\s*(https?:\\/\\/[^\\s)]+)(?:\\s+\"[^\"]*\")?\\s*\\)"
|
|
110
|
-
],
|
|
111
|
-
"actions": [
|
|
112
|
-
"goTo"
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"name": "screenshotImage",
|
|
117
|
-
"regex": [
|
|
118
|
-
"!\\[[^\\]]*\\]\\(\\s*([^\\s)]+)(?:\\s+\"[^\"]*\")?\\s*\\)\\s*\\{(?=[^}]*\\.screenshot)[^}]*\\}"
|
|
119
|
-
],
|
|
120
|
-
"actions": [
|
|
121
|
-
"screenshot"
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "typeText",
|
|
126
|
-
"regex": [
|
|
127
|
-
"\\b(?:press|enter|type)\\b\\s+\"([^\"]+)\""
|
|
128
|
-
],
|
|
129
|
-
"actions": [
|
|
130
|
-
"type"
|
|
131
|
-
]
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"name": "asciidoc",
|
|
137
|
-
"extensions": [
|
|
138
|
-
"adoc",
|
|
139
|
-
"asciidoc",
|
|
140
|
-
"asc"
|
|
141
|
-
],
|
|
142
|
-
"inlineStatements": {
|
|
143
|
-
"testStart": [
|
|
144
|
-
"\\/\\/\\s+\\(\\s*test\\s+([\\s\\S]*?)\\s*\\)"
|
|
145
|
-
],
|
|
146
|
-
"testEnd": [
|
|
147
|
-
"\\/\\/\\s+\\(\\s*test end\\s*\\)"
|
|
148
|
-
],
|
|
149
|
-
"ignoreStart": [
|
|
150
|
-
"\\/\\/\\s+\\(\\s*test ignore start\\s*\\)"
|
|
151
|
-
],
|
|
152
|
-
"ignoreEnd": [
|
|
153
|
-
"\\/\\/\\s+\\(\\s*test ignore end\\s*\\)"
|
|
154
|
-
],
|
|
155
|
-
"step": [
|
|
156
|
-
"\\/\\/\\s+\\(\\s*step\\s+([\\s\\S]*?)\\s*\\)"
|
|
157
|
-
]
|
|
158
|
-
},
|
|
159
|
-
"markup": []
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"name": "html",
|
|
163
|
-
"extensions": [
|
|
164
|
-
"html",
|
|
165
|
-
"htm"
|
|
166
|
-
],
|
|
167
|
-
"inlineStatements": {
|
|
168
|
-
"testStart": [
|
|
169
|
-
"<!--\\s*test\\s+?([\\s\\S]*?)\\s*-->"
|
|
170
|
-
],
|
|
171
|
-
"testEnd": [
|
|
172
|
-
"<!--\\s*test end\\s*([\\s\\S]*?)\\s*-->"
|
|
173
|
-
],
|
|
174
|
-
"ignoreStart": [
|
|
175
|
-
"<!--\\s*test ignore start\\s*-->"
|
|
176
|
-
],
|
|
177
|
-
"ignoreEnd": [
|
|
178
|
-
"<!--\\s*test ignore end\\s*-->"
|
|
179
|
-
],
|
|
180
|
-
"step": [
|
|
181
|
-
"<!--\\s*step\\s+?([\\s\\S]*?)\\s*-->"
|
|
182
|
-
]
|
|
183
|
-
},
|
|
184
|
-
"markup": []
|
|
185
|
-
}
|
|
186
|
-
],
|
|
187
|
-
"telemetry": {
|
|
188
|
-
"send": true
|
|
189
|
-
},
|
|
190
|
-
"configId": "3e467e5d-27cb-41f3-800f-aeb3c20dcb4c",
|
|
191
|
-
"environment": {
|
|
192
|
-
"arch": "x64",
|
|
193
|
-
"platform": "linux",
|
|
194
|
-
"workingDirectory": "/home/hawkeyexl/Workspaces/resolver"
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"specs": [
|
|
198
|
-
{
|
|
199
|
-
"specId": "cc656bba-132f-4f0f-b093-2cfbdd784f69",
|
|
200
|
-
"contentPath": "/home/hawkeyexl/Workspaces/resolver/dev/doc-content-yaml.md",
|
|
201
|
-
"tests": [
|
|
202
|
-
{
|
|
203
|
-
"testId": "doc-detective-docs",
|
|
204
|
-
"detectSteps": false,
|
|
205
|
-
"runOn": [],
|
|
206
|
-
"openApi": [],
|
|
207
|
-
"contexts": [
|
|
208
|
-
{
|
|
209
|
-
"steps": [
|
|
210
|
-
{
|
|
211
|
-
"checkLink": "https://doc-detective.com"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"checkLink": "https://doc-detective.com/docs/get-started/intro"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"goTo": "https://doc-detective.com/docs/get-started/actions/type"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"find": "Special keys"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"screenshot": "reference.png"
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"contextId": "eec1d123-7dfd-4362-b41a-942f36e0da5a"
|
|
227
|
-
}
|
|
228
|
-
]
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"runOn": [],
|
|
232
|
-
"openApi": []
|
|
233
|
-
}
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
]
|
|
237
|
-
}
|