如何在VSTS Web测试中上传Word文档(docx)? [英] How to upload Word document (docx) in VSTS web Test?

查看:74
本文介绍了如何在VSTS Web测试中上传Word文档(docx)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,


我在vsts中上传word文档时遇到问题,未捕获相关请求以及我们能够使用fiddler捕获请求的地方。


我们在VSTS中构建和使用的小提琴请求,但在验证时仍然无法正确上传word文档到应用程序。


请让我知道是否有任何特殊录音选项或任何标题需要在请求中添加。


提前致谢!

解决方案

嗨RamLT,


Welcome到MSDN论坛。


如果你想在验证时正确上传word文档,请先将Word文档上传到项目中。



解决方案资源管理器,右键单击项目,选择添加 - >
现有项目 ...然后找到您的word文档并添加它。


接下来,右键单击
解决方案资源管理器中的word文件,然后选择属性。在属性面板中,选中"复制到输出目录"。项目。请首选"始终复制"因为数据文件大部分都是
很小,所以复制它们没有太大的时间或空间。


然后,
在".testsettings"文件中启用部署




您可以参考以下博客来上传文件在网络测试中:


如何在Web测试中上传文件。


VSTS 2010功能:文件上传记录/播放
正常工作。


问候,


Judyzh


Dear All,

I am facing issue while uploading word document in vsts and relevant request not captured and where we are able to capture the request using fiddler.

The fiddler request we constructed and used in VSTS but still upload word document not properly uploading to application while verify.

Please let me know is there any special recording option or any header need to add in the request.

Thanks in advance!

解决方案

Hi RamLT,

Welcome to the MSDN forum.

If you want to upload word document properly while verify, please upload the Word document to the project first.

In Solution Explorer, right-click on the project, select Add -> Existing Item… and then find your word document and add it.

Next, right-click on the word file in Solution Explorer and select Properties. In the properties panel check the "Copy to output directory" item. Please prefer "Copy always" because the data files have mostly been small and so copying them takes no significant time or space.

Then, Enable deployment in ".testsettings" file.

You could refer to the following blogs to uploading files in web test:

How to upload a file in a Web test.

VSTS 2010 Feature: File Upload record/playback just works.

Regards,

Judyzh


这篇关于如何在VSTS Web测试中上传Word文档(docx)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆