51Testing软件测试论坛

标题: 接口混合场景性能测试 [打印本页]

作者: yangzhenyu    时间: 2019-8-15 15:33
标题: 接口混合场景性能测试

1、增加字符串长度
2、设置关联
3、请求第一个接口
4、请求第二个接口,并把第一个接口返回的值赋值添加到第二个接口的请求路径里面
web_set_max_html_param_len("9999");//增加字符长度

                                        web_reg_save_param("call",
                                                                   "Notfound=warning",
                                                                   "LB=\"callIdentifier\": \"",//转义一个引号并转义
                                                                   "RB=\"}",
                                                                   "Ord=1",
                                                                   LAST);
                                        web_custom_request("callIdentifier",
                                                                           "URL=http://192.168.229.128:8081/v1/scep/OnePartyCall",
                                                                           "Method=POST",
                                                                           "Mode=Http",
                                                                           LAST);
                                web_custom_request("callIdentifier2",
                                                                   "URL=http://192.168.229.128:8081/v1/scep/callevents/notifications/callsessions/{call}",
                                                                   "Method=POST",
                                                                   "Mode=Http",
                                                                   LAST);






欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2