Class

TestbenchData

TestbenchData(data, currentGroupopt, currentCaseopt)

Class to store all data related to the testbench and functions to use it
Constructor

# new TestbenchData(data, currentGroupopt, currentCaseopt)

Parameters:
Name Type Attributes Description
data Object Javascript object of the test data
currentGroup number <optional>
Current group index in the test
currentCase number <optional>
Current case index in the group

View Source testbench.js, line 46

Classes

TestbenchData

Methods

# caseNext()

Validate and go to the next case

View Source testbench.js, line 123

# casePrev()

Validate and go to the previous case

View Source testbench.js, line 133

# goToFirstValidGroup()

Finds and switches to the first non empty group to start the test from

View Source testbench.js, line 148

# groupNext()

Validate and go to the next group. Skips over empty groups

View Source testbench.js, line 84

# groupPrev()

Validate and go to the previous group. Skips over empty groups

View Source testbench.js, line 104

# isCaseValid()

Checks whether given case-group pair exists in the test

View Source testbench.js, line 56

# setCase(groupIndex, caseIndex)

Validate and set case and group in the test
Parameters:
Name Type Description
groupIndex number Group index to set
caseIndex number Case index to set

View Source testbench.js, line 69