Quality Center 11 / QTP - 无法查看和修改 xml 资源
我正在使用 QC/QTP 11。我在 QTP 中创建了一个环境变量,并将文件导出/保存到 QC,因此它是一个外部变量。这保存在QC的资源区中。但是,当我转到 QC> 测试资源> 资源查看器获取 xml 文件时,我收到消息“资产查看器不支持此资产类型”。这是没有意义的,因为资产类型之一是“环境变量”。我想要做的是在需要时修改变量。这样做的主要目的是为 URL 提供一个全局变量。我们有多个测试环境,需要能够在一个地方更改它,以更新我们将在测试实验室中运行的所有测试。
I'm using QC/QTP 11. I've creating an environment variable in QTP and exported/saved the file to QC so it is an external variable. This is saved in the resource area of QC. However when I go to QC>Test Resources>Resource Viewer for the xml file I get the message "The asset viewer does not support this asset type". This does not make sense as one of the Asset Types is "Environment Variable". What I want to be able to do is amend the variable when required. The main purpose for this is to have a global variable for a url. We have several test environments and need the ability to change this in one place to update all the tests we will run in the test lab.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以在一个中心位置更改此设置:XML 文件。
但是,不幸的是,价值数十亿美元的软件 QC 无法显示甚至无法让您在 QTP 内编辑 XML -- < strong>你必须下载它,编辑下载的副本(使用记事本或其他工具),然后再次上传。
在QTP中,更改对于上传后打开的所有测试都是可见的。
如果您使用版本控制,则必须签出、下载、编辑、保存、上传、签入 XML 以使更改全局生效。
Yes, you can change this in one central location: The XML file.
However, the multi-zillion-dollar software QC unfortunately is unable to display or even let you edit the XML from within QTP -- you have to download it, edit the downloaded copy (with notepad, or whatever), and upload it again.
In QTP, the change is visible for all tests opened after the upload.
If you are using version control, you must check-out, download, edit, save, upload, check-in the XML to make the change effective globally.