性能测试 CODEARTS PERFTEST-修改事务:请求参数

时间:2024-04-10 11:26:42

请求参数

表2 请求Body参数

参数

是否必选

参数类型

描述

id

Integer

事务ID

最小值:0

最大值:2147483647

project_id

Integer

工程ID

最小值:0

最大值:2147483647

name

String

事务名称

最小长度:1

最大长度:42

temp_type

Integer

事务类型

最小值:0

最大值:2147483647

description

String

描述信息

最小长度:0

最大长度:1024

for_loop_params

Array of objects

旧版本逻辑控制器字段,当前已未使用

数组长度:0 - 1024

enable_pre

Boolean

是否启用预置事务,当前版本已未使用

contents

Array of TempContentInfo objects

事务脚本信息

数组长度:0 - 1024

表3 TempContentInfo

参数

是否必选

参数类型

描述

content_id

Integer

报文id或者事务ID或者插件ID

最小值:0

最大值:2147483647

content

Array of Content objects

内容

数组长度:0 - 1000

index

Integer

索引

最小值:0

最大值:2147483647

data

Object

数据指令内容

data_type

Integer

数据指令类型(0:默认请求卡片;1:数据指令;201:循环指令;202:条件指令;301:集合点;203:vu百分比控制器;204:吞吐量控制器;302:插件请求)

最小值:0

最大值:2147483647

表4 Content

参数

是否必选

参数类型

描述

content_type

Integer

用例卡片类型(1:思考时间;2:报文;3:检查点;4:变量提取)

最小值:0

最大值:2147483647

content

ContentInfo object

内容

表5 ContentInfo

参数

是否必选

参数类型

描述

body_type

Integer

body类型(0:字符串;1:form-data格式;3:x-www-form-urlencoded格式)

最小值:0

最大值:2147483647

bodys

Array of objects

bodys

check_end_length

Object

TCP/UDP协议返回数据长度

check_end_str

Object

TCP/UDP协议返回结束符

check_end_type

Object

TCP/UDP协议返回结束类型,1:返回数据长度;2:结束符

connect_timeout

Integer

超时时间

最小值:0

最大值:2147483647

connect_type

Integer

连接设置,当前版本已未使用

最小值:0

最大值:2147483647

headers

Array of ContentHeader objects

请求头

数组长度:0 - 1024

http_version

String

HTTP版本

最小长度:0

最大长度:1024

method

String

HTTP方法

最小长度:0

最大长度:1024

name

String

用例名称

最小长度:0

最大长度:1024

protocol_type

Integer

协议类型(1:HTTP;2:HTTPS;3:TCP;4:UDP;7:HLS/RTMP;9:WebSocket;10:HTTP-FLV)

最小值:0

最大值:2147483647

return_timeout

Integer

响应超时

最小值:0

最大值:2147483647

return_timeout_param

String

响应超时参数

最小长度:0

最大长度:40960

url

String

请求地址

最小长度:0

最大长度:40960

rtmp_url

String

rtmp地址

最小长度:0

最大长度:40960

flv_url

String

flv地址

最小长度:0

最大长度:40960

bitrate_type

Integer

分辨率策略

最小值:0

最大值:128

duration

Integer

持续时间

最小值:0

最大值:2147483647

retry_delay

Integer

HLS重试延迟时间

最小值:0

最大值:2147483647

retry_time

Integer

HLS重试次数

最小值:0

最大值:2147483647

表6 ContentHeader

参数

是否必选

参数类型

描述

key

String

最小长度:0

最大长度:40960

value

String

最小长度:0

最大长度:40960

support.huaweicloud.com/api-cpts/UpdateTemp.html