|
本人只用过loadrunner做过单个接口的性能测试,现在要做两个接口的混合场景性能测试,接口分别名为TvChannel和TvProgram,场景是:1、先请求TvChannel,返回200个频道信息,如:
{ "channelId":"101317", "channelName":"天津卫视高清", "channelCode":"7", "hasOrder":"0", "tsId":"13", "serviceId":"22420", "isHighTv":"1", "isRecord":"1" } , { "channelId":"72203453", "channelName":"天津影视高清", "channelCode":"423", "hasOrder":"0", "tsId":"16", "serviceId":"22423", "isHighTv":"1", "isRecord":"2" } .....
2、再请求TvProgram,TvProgram接口需要调用第一个接口返回的channelId
请教各位大牛,这个脚本怎么写?
|
|