Description
object httptest.update(object/array **webScenarios**)
This method allows to update existing web scenarios.
参数
(object/array)
要更新的Web场景属性。
(object/array)
Web scenario properties to be updated.
The property must be defined for each web scenario, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.
Additionally to the , the method accepts the following parameters.
Parameter | Type | Description |
---|---|---|
steps | array | Scenario steps to replace existing steps. |
返回值
Return values
Enabling a web scenario
Enable a web scenario, that is, set its status to “0”.
示例
启用Web方案
启用Web方案,即将其状态设置为“0”。
Request:
{
"jsonrpc": "2.0",
"httptestids": [
"5"
]
},
}
参考
来源
CHttpTest::update() in frontends/php/include/classes/api/services/CHttpTest.php.