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 |
Classes
Methods
# goToFirstValidGroup()
Finds and switches to the first non empty group to start the test from
# groupNext()
Validate and go to the next group.
Skips over empty groups
# groupPrev()
Validate and go to the previous group.
Skips over empty groups
# isCaseValid()
Checks whether given case-group pair exists in the test
# 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 |