You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/references/schemas/config.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,28 +10,28 @@ Field | Type | Description | Default
10
10
defaultCommand | string | Optional. Default command to run when no command is specified.<br/><br/>Accepted values: `runTests`, `runCoverage` |
11
11
input | One of<br/>- string<br/>- array of strings | Optional. Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files. | `.`
12
12
output | string | Optional. Path of the of the file or directory in which to store the output of Doc Detective commands. If a file path is specified, the output is written to that file. If a file of that name already exists, Doc Detective creates appends an integer to the result file name. If a directory path is specified, the output file name is dependent on the command being run. | `.`
13
-
recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files. | `true`
13
+
recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specificaions and source files. | `true`
14
14
relativePathBase | string | Optional. Whether paths should be interpreted as relative to the current working directory (`cwd`) or to the file in which they're specified (`file`).<br/><br/>Accepted values: `cwd`, `file` | `cwd`
15
15
envVariables | string | Optional. Path to a `.env` file to load before performing a Doc Detective operation. |
16
16
runTests | object | Optional. Options for running tests. When running tests, values set here override general configuration options. |
17
17
runTests.input | One of<br/>- string<br/>- array of strings | Optional. Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files. |
18
18
runTests.output | string | Optional. Path of the of the file or directory in which to store the output of Doc Detective commands. If a file path is specified, the output is written to that file. If a file of that name already exists, Doc Detective creates appends an integer to the result file name. If a directory path is specified, the output file name is dependent on the command being run. | `.`
19
19
runTests.setup | One of<br/>- string<br/>- array of strings | Optional. Path(s) to test specifications to perform before those specified by `input`. Useful for setting up testing environments. |
20
20
runTests.cleanup | One of<br/>- string<br/>- array of strings | Optional. Path(s) to test specifications to perform after those specified by `input`. Useful for cleaning up testing environments. |
21
-
runTests.recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files. |
21
+
runTests.recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specificaions and source files. |
22
22
runTests.detectSteps | boolean | Optional. Whether or not to detect steps in input files based on markup regex. | `false`
runTests.downloadDirectory | string | Optional. Path of the directory in which to store downloaded files. | `.`
25
25
runTests.contexts | array of object([context](/docs/references/schemas/context)) | Optional. Application/platform sets to run tests in. If no contexts are specified but a context is required by one or more tests, Doc Detective attempts to identify a supported context in the current environment and run tests against it. | ``[{"app":{"name":"firefox","options":{"width":1200,"height":800,"headless":true}},"platforms":["linux","mac","windows"]}]``
26
-
runCoverage | object | Optional. Options for performing test coverage analysis on documentation source files. When performing coverage analysis, values set here override general configuration options. |
26
+
runCoverage | object | Optional. Options for performing test coverage analysis on documentation source files. When performing coveration analysis, values set here override general configuration options. |
27
27
runCoverage.input | One of<br/>- string<br/>- array of strings | Optional. Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files. |
28
28
runCoverage.output | string | Optional. Path of the of the file or directory in which to store the output of Doc Detective commands. If a file path is specified, the output is written to that file. If a file of that name already exists, Doc Detective creates appends an integer to the result file name. If a directory path is specified, the output file name is dependent on the command being run. | `.`
29
-
runCoverage.recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files. |
29
+
runCoverage.recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specificaions and source files. |
30
30
runCoverage.markup | array of strings | Optional. Markup types to include when performing this operation. If no markup types are specified, the operation includes all markup types as defined in `fileTypes`. | ``["onscreenText","emphasis","image","hyperlink","codeInline","codeBlock","interaction"]``
31
-
suggestTests | object | Optional. Options for suggesting tests based on documentation source files. When suggesting tests, values set here override general configuration options. |
31
+
suggestTests | object | Optional. Options for suggesting tests based on documentation source files. When suggesting tests, values set here override general condiguration options. |
32
32
suggestTests.input | One of<br/>- string<br/>- array of strings | Optional. Path(s) to test specifications and documentation source files. May be paths to specific files or to directories to scan for files. |
33
33
suggestTests.output | string | Optional. Path of the of the file or directory in which to store the output of Doc Detective commands. If a file path is specified, the output is written to that file. If a file of that name already exists, Doc Detective creates appends an integer to the result file name. If a directory path is specified, the output file name is dependent on the command being run. | `.`
34
-
suggestTests.recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specifications and source files. |
34
+
suggestTests.recursive | boolean | Optional. If `true` searches `input`, `setup`, and `cleanup` paths recursively for test specificaions and source files. |
35
35
suggestTests.markup | array of strings | Optional. Markup types to include when performing this operation. If no markup types are specified, the operation includes all markup types as defined in `fileTypes`. | ``["onscreenText","emphasis","image","hyperlink","codeInline","codeBlock","interaction"]``
36
36
fileTypes | array of objects | Optional. Information on supported file types and how to parse the markup within them. | []
37
37
fileTypes.name | string | Optional. Name of the file type. |
Copy file name to clipboardExpand all lines: docs/references/schemas/find.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ selector | string | Required. Selector that uniquely identifies the element. |
14
14
timeout | integer | Optional. Max duration in milliseconds to wait for the element to exist. | `5000`
15
15
matchText | string | Optional. Text that the element should contain. If the element doesn't contain the text, the step fails. Accepts both strings an regular expressions. To use a regular expression, the expression should start and end with a `/`. For example, `/search/`. |
16
16
moveTo | [object Object] | Optional. Move to the element. If the element isn't visible, it's scrolled into view. Only runs the if the test is being recorded. | `false`
17
-
click | boolean | Optional. Click the element. | `false`
17
+
click | One of<br/>- boolean<br/>- object | Optional. Click the element. |
18
18
typeKeys | One of<br/>- string<br/>- object | Optional. Type keys after finding the element. Either a string or an object with a `keys` field as defined in [`typeKeys`](typeKeys). To type in the element, make the element active with the `click` parameter. |
19
19
setVariables | array of objects | Optional. Extract environment variables from the element's text. | ``[]``
20
20
setVariables.name | string | Required. Name of the environment variable to set. |
@@ -41,6 +41,16 @@ setVariables.regex | string | Required. Regex to extract the environment variab
Copy file name to clipboardExpand all lines: docs/references/schemas/httpRequest.md
+67-2Lines changed: 67 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,9 @@ Field | Type | Description | Default
9
9
:-- | :-- | :-- | :--
10
10
id | string | Optional. ID of the step. | Generated UUID
11
11
description | string | Optional. Description of the step. |
12
-
action | string | Required. Action to perform. |
13
-
url | string | Required. URL for the HTTP request. |
12
+
action | string | Required. Aciton to perform. |
13
+
url | string | Optional. URL for the HTTP request. |
14
+
openApi | undefined | Optional. undefined |
14
15
statusCodes | array of integers | Optional. Accepted status codes. If the specified URL returns a code other than what is specified here, the action fails. | ``[200]``
15
16
method | string | Optional. Method of the HTTP request<br/><br/>Accepted values: `get`, `put`, `post`, `patch`, `delete` | `get`
16
17
timeout | integer | Optional. Timeout for the HTTP request, in milliseconds. | `60000`
@@ -121,3 +122,67 @@ envsFromResponseData.jqFilter | string | Required. jq filter to apply to the re
id | string | Optional. ID of the step. | Generated UUID
11
+
description | string | Optional. Description of the step. |
12
+
action | string | Required. The action to perform. |
13
+
language | string | Required. Language of the code to run. If not specified, the code is run in the shell.<br/><br/>Accepted values: `python`, `bash`, `javascript` |
14
+
code | string | Required. Code to run. |
15
+
args | array of strings | Optional. Arguments for the command. | ``[]``
16
+
workingDirectory | string | Optional. Working directory for the command. | `.`
17
+
exitCodes | array of integers | Optional. Expected exit codes of the command. If the command's actual exit code isn't in this list, the step fails. | ``[0]``
18
+
output | string | Optional. Content expected in the command's output. If the expected content can't be found in the command's output (either stdout or stderr), the step fails. Supports strings and regular expressions. To use a regular expression, the string must start and end with a forward slash, like in `/^hello-world.*/`. |
19
+
savePath | string | Optional. File path to save the command's output, relative to `saveDirectory`. |
20
+
saveDirectory | string | Optional. Directory to save the command's output. If the directory doesn't exist, creates the directory. If not specified, the directory is your media directory. |
21
+
maxVariation | integer | Optional. Allowed variation in percentage of text different between the current output and previously saved output. If the difference between the current output and the previous output is greater than `maxVariation`, the step fails. If output doesn't exist at `savePath`, this value is ignored. | `0`
22
+
overwrite | string | Optional. If `true`, overwrites the existing output at `savePath` if it exists.
23
+
If `byVariation`, overwrites the existing output at `savePath` if the difference between the new output and the existing output is greater than `maxVariation`.<br/><br/>Accepted values: `true`, `false`, `byVariation` | `false`
24
+
timeout | integer | Optional. Max time in milliseconds the command is allowed to run. If the command runs longer than this, the step fails. | `60000`
25
+
setVariables | array of objects | Optional. Extract environment variables from the command's output. | ``[]``
26
+
setVariables.name | string | Required. Name of the environment variable to set. |
27
+
setVariables.regex | string | Required. Regex to extract the environment variable from the command's output. |
28
+
outputs | object | Optional. Outputs from step processes and user-defined expressions. Use the `outputs` object to reference outputs in subsequent steps. If a user-defined output matches the key for a step-defined output, the user-defined output takes precedence. |
29
+
outputs.stdout | string | Optional. Standard output of the command. |
30
+
outputs.stderr | string | Optional. Standard error of the command. |
31
+
outputs.exitCode | integer | Optional. Exit code of the command. |
Copy file name to clipboardExpand all lines: docs/references/schemas/saveScreenshot.md
+44-1Lines changed: 44 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,12 @@ description | string | Optional. Description of the step. |
12
12
action | string | Required. The action to perform. |
13
13
path | string | Optional. File path of the PNG file, relative to `directory`. If not specified, the file name is the ID of the step. |
14
14
directory | string | Optional. Directory of the PNG file. If the directory doesn't exist, creates the directory. |
15
-
maxVariation | number | Optional. Allowed variation in percentage of pixels between the new screenshot and the existing screenshot at `path`. If the difference between the new screenshot and the existing screenshot is greater than `maxVariation`, the step fails. If a screenshot doesn't exist at `path`, the system ignores this value. | `5`
15
+
maxVariation | number | Optional. Allowed variation in percentage of pixels between the new screenshot and the exisitng screenshot at `path`. If the difference between the new screenshot and the existing screenshot is greater than `maxVariation`, the step fails. If a screenshot doesn't exist at `path`, this value is ignored. | `5`
16
16
overwrite | string | Optional. If `true`, overwrites the existing screenshot at `path` if it exists.
17
17
If `byVariation`, overwrites the existing screenshot at `path` if the difference between the new screenshot and the existing screenshot is greater than `maxVariation`.<br/><br/>Accepted values: `true`, `false`, `byVariation` | `false`
18
+
crop | object | Optional. Crops the screenshot. |
19
+
crop.selector | string | Required. Selector of the element to crop the image to. |
20
+
crop.padding | One of<br/>- number<br/>- object | Optional. undefined |
18
21
19
22
## Examples
20
23
@@ -48,3 +51,43 @@ If `byVariation`, overwrites the existing screenshot at `path` if the difference
0 commit comments