且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将数据从一个webtest传递到另一个?

更新时间:2022-10-25 14:07:16

您使用的是编码网络测试还是仅使用录制的网络测试?你是如何添加"子请求"的?  您是否右键单击父请求并选择"插入呼叫到Web测试..."? 


http://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/6c4cc9a7-d4fb -4999-a9de-05d955fe86ea


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..."? 

http://social.msdn.microsoft.com/Forums/en-US/vstswebtest/thread/6c4cc9a7-d4fb-4999-a9de-05d955fe86ea