Class: TestCase

testing~ TestCase


new TestCase(name)

Test case data structure.

Contains full information and history about test case.

Parameters:
Name Type Description
name string

Test name.

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.

Source:

Methods


addChunk(chunkName)

Adds chunk.

Parameters:
Name Type Description
chunkName string

Name of chunk.

Source:

addDetails(info)

Adds additional information.

Parameters:
Name Type Description
info string

Additional information.

Source:

addError(err)

Adds error to test case.

Parameters:
Name Type Description
err Error

Test error.

Source:

addPassedChunkId(chunkId)

Adds passed chunk id.

Parameters:
Name Type Description
chunkId string

Chunk id.

Source:

addPassedChunkIds(chunkIds)

Adds passed chunk ids.

Parameters:
Name Type Description
chunkIds array.<string>

Chunk ids.

Source:

addScreenshot(imagePath)

Adds screenshot.

Parameters:
Name Type Description
imagePath string

Path to saved screenshot.

Source:

addVideo(videoPath)

Adds video.

Parameters:
Name Type Description
videoPath string

Path to saved video.

Source:

end(status)

Ends test case.

Parameters:
Name Type Description
status string

Test case status.

Source:

reset()

Resets test case info.

Source:

start()

Starts test case.

Source: