简体   繁体   English

Visual Studio 2012 Ultimate Edition记录网络测试

[英]Visual Studio 2012 Ultimate edition recording a web test

In Visual Studio 2012 Ultimate edition, while recording a web test in IE 11, in the code generated, I see the request generated for each resource on the web page except the video file present in the web page. 在Visual Studio 2012 Ultimate版中,在IE 11中记录Web测试时,在生成的代码中,我看到为网页上每个资源(网页中存在的视频文件除外)生成的请求。 I can view the video file in IE 11 when I browse to the URL, but in the code generated while recording, I do not see the request that downloads the video (.mp4) file. 当我浏览到URL时,可以在IE 11中查看视频文件,但是在录制时生成的代码中,看不到下载视频(.mp4)文件的请求。 Is there any way to record that and include that request too in the code generated? 有什么方法可以记录该请求并将该请求也包含在生成的代码中?

Thanks, Indu 谢谢印度

Many files (such as CSS, Javascript, images and videos etc) are normally not explicitly included in the recorded test. 许多文件(例如CSS,Javascript,图像和视频等)通常未明确包含在记录的测试中。 These files, or more accurately the requests to get them, are termed "dependent requests". 这些文件,或更准确地说是获取这些文件的请求,被称为“从属请求”。 Many dependent requests are detected by Visual Studio when it runs the web test by processing the responses. 当Visual Studio通过处理响应运行Web测试时,会检测到许多相关请求。 The Parse dependent requests property of the request (in the .webtest file) can be changed to false to prevent the detection of dependent requests. 可以将Parse dependent requestsParse dependent requests属性(在.webtest文件中)更改为false以防止检测到从属请求。

For your test I would expect the test to detect the video at run time of the test and so download it. 对于您的测试,我希望测试能够在测试运行时检测到视频,因此可以下载它。 If that does not happen then the request can be added explicitly via the context (right click) menu command Add dependent request . 如果这种情况没有发生,则可以通过上下文(右键单击)菜单命令“ Add dependent request显式Add dependent request

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio 2012 Ultimate中配置负载测试 - Configure Load test in Visual Studio 2012 ultimate 无法从Visual Studio 2012 Ultimate Edition运行SpecFlow方案 - Unable to run a SpecFlow scenario from Visual Studio 2012 Ultimate Edition 如何在Visual Studio 2012最终版本中自动测试Web性能和负载测试项目 - How to test automatically Web Performance and Load Test Project in Visual Studio 2012 ultimate version Visual Studio 2012 Ultimate中的反汇编 - Disassembly in Visual Studio 2012 Ultimate 放大Visual Studio 2012终极版 - Zooming in Visual studio 2012 ultimate 在Visual Studio Professional Edition 2012中未打开“发布网站”对话框 - Publish Web Site Dialog is not opening in Visual studio Professional edition 2012 在Visual Studio 2012中进行单元测试Web表单 - Unit test Web Forms in Visual Studio 2012 Blend 4是否可以与Visual Studio Ultimate 2012一起使用 - Will the Blend 4 will work with the Visual Studio Ultimate 2012 Visual Studio 2012 Ultimate中的反汇编窗口未显示 - Disassembly window in Visual Studio 2012 Ultimate is not showing Visual Studio 2012 Ultimate中没有任何JavaScript项目 - No javascript project enlisted in visual studio 2012 ultimate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM