如何使用Visual Studio web Test添加脚本代码 [英] How to add script code with Visual Studio web Test
本文介绍了如何使用Visual Studio web Test添加脚本代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想执行一些代码(比如C#或Powershell但不是javascript)作为我网络测试中的一个步骤。
I want to execute some code (like C# or Powershell but not javascript) as one of the steps in my web test.
任何人都可以告诉我它是否可能?
Can anybody please tell me if it even possible?
我可以看到生成代码的选项,但它会创建一个新的CS文件共。如果我修改CS文件,然后添加一些新步骤,那么CS文件&网页测试步骤不同步。
I can see a option to generate the code but it creates a new CS file altogether. If I modify the CS file followed by adding some new steps then CS file & web test steps are out of sync.
Atul
Atul
atul sureka
atul sureka
推荐答案
将C#代码放入插件或自定义验证和提取规则中。请参阅
https://msdn.microsoft.com/en-us/library/ee923683.aspx 及其引用的网页。
问候
Adrian
这篇关于如何使用Visual Studio web Test添加脚本代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文