public class Scenario extends AbstractModel
header, skipSign| Constructor and Description |
|---|
Scenario() |
Scenario(Scenario source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getAppId()
Get App ID.
|
String[] |
getConfigs()
Get Deprecated.
|
String |
getCreatedAt()
Get Create time.
|
String |
getCronId()
Get CronJob ID.
|
TestData[] |
getDatasets()
Get Test datasets.
|
String |
getDescription()
Get Scenario description.
|
DomainNameConfig |
getDomainNameConfig()
Get Domain name resolution configuration.
|
String |
getEncodedScripts()
Get Deprecated.
|
String[] |
getExtensions()
Get Deprecated.
|
Load |
getLoad()
Get Load configuration.
|
String |
getName()
Get Scenario name.
|
NotificationHook[] |
getNotificationHooks()
Get Notification event hooks.
|
String |
getOwner()
Get Creator name.
|
FileInfo[] |
getPlugins()
Get Extension plugin files.
|
String |
getProjectId()
Get Project ID.
|
String |
getProjectName()
Get Project name.
|
ProtocolInfo[] |
getProtocols()
Get Protocol files.
|
FileInfo[] |
getRequestFiles()
Get Request files.
|
String |
getScenarioId()
Get Scenario ID.
|
String |
getSLAId()
Get Deprecated.
|
SLAPolicy |
getSLAPolicy()
Get SLA policy.
|
Long |
getStatus()
Get Scenario status.
|
String |
getSubAccountUin()
Get Sub account uin.
|
ScriptInfo[] |
getTestScripts()
Get Test scripts.
|
String |
getType()
Get Type of scenario.
|
String |
getUin()
Get Uin.
|
String |
getUpdatedAt()
Get Update time.
|
void |
setAppId(Long AppId)
Set App ID.
|
void |
setConfigs(String[] Configs)
Set Deprecated.
|
void |
setCreatedAt(String CreatedAt)
Set Create time.
|
void |
setCronId(String CronId)
Set CronJob ID.
|
void |
setDatasets(TestData[] Datasets)
Set Test datasets.
|
void |
setDescription(String Description)
Set Scenario description.
|
void |
setDomainNameConfig(DomainNameConfig DomainNameConfig)
Set Domain name resolution configuration.
|
void |
setEncodedScripts(String EncodedScripts)
Set Deprecated.
|
void |
setExtensions(String[] Extensions)
Set Deprecated.
|
void |
setLoad(Load Load)
Set Load configuration.
|
void |
setName(String Name)
Set Scenario name.
|
void |
setNotificationHooks(NotificationHook[] NotificationHooks)
Set Notification event hooks.
|
void |
setOwner(String Owner)
Set Creator name.
|
void |
setPlugins(FileInfo[] Plugins)
Set Extension plugin files.
|
void |
setProjectId(String ProjectId)
Set Project ID.
|
void |
setProjectName(String ProjectName)
Set Project name.
|
void |
setProtocols(ProtocolInfo[] Protocols)
Set Protocol files.
|
void |
setRequestFiles(FileInfo[] RequestFiles)
Set Request files.
|
void |
setScenarioId(String ScenarioId)
Set Scenario ID.
|
void |
setSLAId(String SLAId)
Set Deprecated.
|
void |
setSLAPolicy(SLAPolicy SLAPolicy)
Set SLA policy.
|
void |
setStatus(Long Status)
Set Scenario status.
|
void |
setSubAccountUin(String SubAccountUin)
Set Sub account uin.
|
void |
setTestScripts(ScriptInfo[] TestScripts)
Set Test scripts.
|
void |
setType(String Type)
Set Type of scenario.
|
void |
setUin(String Uin)
Set Uin.
|
void |
setUpdatedAt(String UpdatedAt)
Set Update time.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Scenario()
public Scenario(Scenario source)
public String getScenarioId()
public void setScenarioId(String ScenarioId)
ScenarioId - Scenario ID.public String getName()
public void setName(String Name)
Name - Scenario name.public String getDescription()
public void setDescription(String Description)
Description - Scenario description.
Note: This field may return null, indicating that no valid value is found.public String getType()
public void setType(String Type)
Type - Type of scenario. Valid values: 'pts-http' represents the simple mode, 'pts-js' represents the script mode, 'pts-jmeter' represents the JMeter mode.
Note: This field may return null, indicating that no valid value is found.public Long getStatus()
public void setStatus(Long Status)
Status - Scenario status.
Note: This field may return null, indicating that no valid value is found.public Load getLoad()
public void setLoad(Load Load)
Load - Load configuration.
Note: This field may return null, indicating that no valid value is found.public String getEncodedScripts()
public void setEncodedScripts(String EncodedScripts)
EncodedScripts - Deprecated.
Note: This field may return null, indicating that no valid value is found.public String[] getConfigs()
public void setConfigs(String[] Configs)
Configs - Deprecated.
Note: This field may return null, indicating that no valid value is found.public String[] getExtensions()
public void setExtensions(String[] Extensions)
Extensions - Deprecated.
Note: This field may return null, indicating that no valid value is found.public TestData[] getDatasets()
public void setDatasets(TestData[] Datasets)
Datasets - Test datasets.
Note: This field may return null, indicating that no valid value is found.public String getSLAId()
public void setSLAId(String SLAId)
SLAId - Deprecated.
Note: This field may return null, indicating that no valid value is found.public String getCronId()
public void setCronId(String CronId)
CronId - CronJob ID.
Note: This field may return null, indicating that no valid value is found.public String getCreatedAt()
public void setCreatedAt(String CreatedAt)
CreatedAt - Create time.public String getUpdatedAt()
public void setUpdatedAt(String UpdatedAt)
UpdatedAt - Update time.public String getProjectId()
public void setProjectId(String ProjectId)
ProjectId - Project ID.
Note: This field may return null, indicating that no valid value is found.public Long getAppId()
public void setAppId(Long AppId)
AppId - App ID.
Note: This field may return null, indicating that no valid value is found.public String getUin()
public void setUin(String Uin)
Uin - Uin.
Note: This field may return null, indicating that no valid value is found.public String getSubAccountUin()
public void setSubAccountUin(String SubAccountUin)
SubAccountUin - Sub account uin.
Note: This field may return null, indicating that no valid value is found.public ScriptInfo[] getTestScripts()
public void setTestScripts(ScriptInfo[] TestScripts)
TestScripts - Test scripts.
Note: This field may return null, indicating that no valid value is found.public ProtocolInfo[] getProtocols()
public void setProtocols(ProtocolInfo[] Protocols)
Protocols - Protocol files.
Note: This field may return null, indicating that no valid value is found.public FileInfo[] getRequestFiles()
public void setRequestFiles(FileInfo[] RequestFiles)
RequestFiles - Request files.
Note: This field may return null, indicating that no valid value is found.public SLAPolicy getSLAPolicy()
public void setSLAPolicy(SLAPolicy SLAPolicy)
SLAPolicy - SLA policy.
Note: This field may return null, indicating that no valid value is found.public FileInfo[] getPlugins()
public void setPlugins(FileInfo[] Plugins)
Plugins - Extension plugin files.
Note: This field may return null, indicating that no valid value is found.public DomainNameConfig getDomainNameConfig()
public void setDomainNameConfig(DomainNameConfig DomainNameConfig)
DomainNameConfig - Domain name resolution configuration.
Note: This field may return null, indicating that no valid value is found.public NotificationHook[] getNotificationHooks()
public void setNotificationHooks(NotificationHook[] NotificationHooks)
NotificationHooks - Notification event hooks.
Note: This field may return null, indicating that no valid value is found.public String getOwner()
public void setOwner(String Owner)
Owner - Creator name.
Note: This field may return null, indicating that no valid value is found.public String getProjectName()
public void setProjectName(String ProjectName)
ProjectName - Project name.
Note: This field may return null, indicating that no valid value is found.Copyright © 2025. All rights reserved.