@Entity public class TestScenario extends AbstractUUIDEntity implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_COLUMN
Column names of the table.
|
static String |
POST_SCRIPT_STATUS_COLUMN |
static String |
PRE_SCRIPT_STATUS_COLUMN |
static String |
STATUS_COLUMN |
static String |
TEST_PLAN_COLUMN |
static String |
TEST_SCENARIO_TABLE
Test plan table name.
|
ID_COLUMN| Constructor and Description |
|---|
TestScenario() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestCase(TestCase testCase)
Adds a test case to the test case list.
|
String |
getName()
Returns the name of the test scenario.
|
Status |
getStatus()
Returns the status of the test scenario.
|
List<TestCase> |
getTestCases()
Returns the associated test cases list.
|
TestPlan |
getTestPlan()
Returns the test plan associated with this test scenario.
|
boolean |
isPostScriptSuccessful()
Checks if post script is successful.
|
boolean |
isPreScriptSuccessful()
Checks if pre script is successful.
|
void |
setIsPostScriptSuccessful(boolean isPostScriptSuccessful)
Sets the status of the post script execution.
|
void |
setIsPreScriptSuccessful(boolean isPreScriptSuccessful)
Sets the status of the pre script execution.
|
void |
setName(String name)
Sets the test scenario name.
|
void |
setStatus(Status status)
Sets the test scenario status.
|
void |
setTestCases(List<TestCase> testCases)
Sets the associated test cases list.
|
void |
setTestPlan(TestPlan testPlan)
Sets the test plan associated with this test scenario.
|
String |
toString() |
generateUUID, getCreatedTimestamp, getId, getModifiedTimestamp, setCreatedTimestamp, setId, setModifiedTimestamppublic static final String TEST_SCENARIO_TABLE
public static final String NAME_COLUMN
public static final String STATUS_COLUMN
public static final String PRE_SCRIPT_STATUS_COLUMN
public static final String POST_SCRIPT_STATUS_COLUMN
public static final String TEST_PLAN_COLUMN
public String getName()
public void setName(String name)
name - test scenario namepublic Status getStatus()
public void setStatus(Status status)
status - test scenario statuspublic boolean isPreScriptSuccessful()
true if the pre script is successful, false otherwisepublic void setIsPreScriptSuccessful(boolean isPreScriptSuccessful)
isPreScriptSuccessful - Status of pre script executionpublic boolean isPostScriptSuccessful()
true if the post script is successful, false otherwisepublic void setIsPostScriptSuccessful(boolean isPostScriptSuccessful)
isPostScriptSuccessful - Status of the post script executionpublic TestPlan getTestPlan()
public void setTestPlan(TestPlan testPlan)
testPlan - test plan associated with this test scenariopublic List<TestCase> getTestCases()
public void setTestCases(List<TestCase> testCases)
testCases - associated test cases listpublic void addTestCase(TestCase testCase)
testCase - test case to be added to the listCopyright © 2018 WSO2. All rights reserved.