如何在VSTS Web测试中上传Word文档(docx)?

编程入门 行业动态 更新时间:2024-10-13 14:26:22
本文介绍了如何在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)?

本文发布于:2023-11-16 14:37:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1605175.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上传   文档   如何在   测试中   VSTS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!