@Entity public class TestScenario extends AbstractUUIDEntity implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION_COLUMN |
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 |
getConfigChangeSetDescription()
Get config change set description for current scenario
|
String |
getConfigChangeSetName()
Get config change set name for a current scenario
|
String |
getDescription()
Returns the description of the test scenario.
|
String |
getDir()
Returns the directory of the test scenario.
|
String |
getName()
Returns the name of the test scenario.
|
String |
getOutputDir() |
List<List<String>> |
getPerformanceTestResults()
Returns the performance results data section
|
Status |
getStatus()
Returns the status of the test scenario.
|
List<String> |
getSummaryGraphs()
Returns a List of Paths referencing the summary graphs
|
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 |
setConfigChangeSetDescription(String configChangeSetDescription)
Set config change set description for current scenario
|
void |
setConfigChangeSetName(String configChangeSetName)
Set config change set name for current scenario
|
void |
setDescription(String description)
Sets the test scenario description.
|
void |
setDir(String dir)
Sets the test scenario directory.
|
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 |
setOutputDir(String outputDir) |
void |
setPerformanceTestResults(List<List<String>> performanceTestResults)
Set the PerformanceTest results data
|
void |
setStatus(Status status)
Sets the test scenario status.
|
void |
setSummaryGraphs(List<String> summaryGraphs)
Set the performance summary graphs list
|
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 DESCRIPTION_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 String getOutputDir()
public void setOutputDir(String outputDir)
public String getDescription()
public void setDescription(String description)
description - test scenario descriptionpublic String getDir()
public void setDir(String dir)
dir - test scenario directorypublic 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 String getConfigChangeSetName()
public void setConfigChangeSetName(String configChangeSetName)
configChangeSetName - config change set namepublic String getConfigChangeSetDescription()
public void setConfigChangeSetDescription(String configChangeSetDescription)
configChangeSetDescription - config change set descriptionpublic 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 listpublic List<List<String>> getPerformanceTestResults()
public void setPerformanceTestResults(List<List<String>> performanceTestResults)
performanceTestResults - List of List of string containing the performance datapublic List<String> getSummaryGraphs()
public void setSummaryGraphs(List<String> summaryGraphs)
summaryGraphs - List of Paths referencing the graphsCopyright © 2019 WSO2. All rights reserved.