存储控制/对象信息 [英] storing control/object information

查看:85
本文介绍了存储控制/对象信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在编写基于VSTS的测试框架。 我来自QTP世界。 在QTP中,我们有对象存储库,它将对象标识信息保存在对象存储库中。 当使用CUIT时,它将所有控制搜索
标准存储在每个控件的一个类的类中。 我在论坛中看到了将控件/对象信息存储在XML文件中的人的参考。


我正在寻找人们存储对象/控件识别信息的不同方式的示例包括可能的平面文件,XML文件,数据库表和列等的示例以及您正在使用的代码示例
检索数据并使用它对UI中的对象进行操作。 / p>

我一直在寻找一些例子,但到目前为止,除了参考人们正在使用或计划使用的内容之外,我还没有找到任何其他内容。


谢谢


 


杰夫


 


 

解决方案

UI测试文件相当于Object存储库。我们建议您以UI Test文件格式存储对象。使用Visual Studio 2010 Feature Pack 2,我们还启用了UI测试文件的图形编辑。


http://msdn.microsoft.com/en-us/library/gg269469.aspx


Hi,

I am hand coding a test framework based on VSTS.  I come from the QTP world.  In QTP we have the object repository which holds object identification information in an object repository.  When using CUIT it stores all of the control search criteria in classes wiith one class for each control.  I have seen reference in the forum to people storing the control/object information in an XML file.

I am looking for examples of the different ways that people have stored the object/control identification information including samples if possible of the flat file, XML file, DB table and columns etc. as well as an example of the code that you are using retrieve the to data and use it operate on an object in a UI.

I've been looking for some examples but so far I haven't really found anything other than references to what people are using or planning on using.

Thanks

 

Jeff

 

 

解决方案

The UI Test file is the equivalent of the Object repository. We recommend that you store objects in the UI Test file format. With Visual Studio 2010 Feature Pack 2, we have enable graphical editing of the UI test file also.

http://msdn.microsoft.com/en-us/library/gg269469.aspx


这篇关于存储控制/对象信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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