new TestCase(name)
Test case data structure.
Contains full information and history about test case.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string | Test name. |
- Source:
Properties:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
name |
string | Test name. |
||
status |
string |
<optional> |
NOT_STARTED | Test status. |
skipChunk |
string |
<optional> <nullable> |
null | Name of currently skipped chunk. |
screenshots |
Array.<string> |
<optional> |
[] | List of test screenshot paths. |
videos |
Array.<string> |
<optional> |
[] | List of test video paths. |
errors |
Array.<string> |
<optional> |
[] | List of test errors. |
rawInfo |
Array.<string> |
<optional> |
[] | List of additional test details. |
testParams |
object |
<optional> |
{} | Dict of test parameters. |
Methods
-
addChunk(chunkName)
-
Adds chunk.
Parameters:
Name Type Description chunkNamestring Name of chunk.
- Source:
-
addDetails(info)
-
Adds additional information.
Parameters:
Name Type Description infostring Additional information.
- Source:
-
addError(err)
-
Adds error to test case.
Parameters:
Name Type Description errError Test error.
- Source:
-
addPassedChunkId(chunkId)
-
Adds passed chunk id.
Parameters:
Name Type Description chunkIdstring Chunk id.
- Source:
-
addPassedChunkIds(chunkIds)
-
Adds passed chunk ids.
Parameters:
Name Type Description chunkIdsarray.<string> Chunk ids.
- Source:
-
addScreenshot(imagePath)
-
Adds screenshot.
Parameters:
Name Type Description imagePathstring Path to saved screenshot.
- Source:
-
addVideo(videoPath)
-
Adds video.
Parameters:
Name Type Description videoPathstring Path to saved video.
- Source:
-
end(status)
-
Ends test case.
Parameters:
Name Type Description statusstring Test case status.
- Source:
-
reset()
-
Resets test case info.
- Source:
-
start()
-
Starts test case.
- Source: