如何将数据从一个webtest传递到另一个? [英] How to pass data from one webtest to another?
问题描述
我有一个网络测试,它正在执行50%的场景操作。在那之后,我打电话给另一个webtest做其余的事情。我在这里面临的问题是 - 我必须将guid从第一次网络测试传递到第二次网络测试,但无法从子网络测试中访问价值
。
我创建了 主webtest中的上下文参数,并将值赋给此参数,然后尝试从子参数访问它。即使在我设置了继承web测试设置= true之后它也无法正常工作。
在这种情况下我可以做什么来访问第二个Web测试中的值?
谢谢和问候,Sajeev。
您使用的是编码网络测试还是仅使用录制的网络测试?你是如何添加"子请求"的? 您是否右键单击父请求并选择"插入呼叫到Web测试..."?
Hi,
I have a web test which is doing 50% operations of a scenario. After that I am calling another webtest to do the rest. The problem I am facing here is - I have to pass a guid from the first web test to second web test, but unable to access the value from the child webtest.
I created a context parameter in the master webtest and assigned the value to this parameter and then tried to access it from the child one. It was not working even after i set inherit web test settings = true.
What can i do in this scenario to access the values from the first web test in the second one?
Thanks and Regards, Sajeev.
Are you using coded webtest or just a recorded webtest? How did you add the "child request"? Did you right click in the parent request and select "Insert Call To Webtest..."?
这篇关于如何将数据从一个webtest传递到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!