如何手动在UItest中添加或修改对象,以及如何在运行时重新定义对象? [英] How can I add or modify object in UItest manually , and how to reganize object in runtime ?
问题描述
大家好,
1.任何人都知道怎么办 在UItest中手动添加或修改对象? 和 如何在运行时重新定义对象?无论如何?
我非常感激。
嗨首先要知道对象的定义
步骤执行
1使用代码UI测试构建器进行编辑,并放置交叉头发控件以了解定义。 / p>
2当您知道对象定义然后在UIMap.cs或UIMap.Designer.cs中添加或修改定义时,记录控件并知道定义
示例
我记录了登录窗口并传递了凭证并添加了Assert方法并生成了代码。从UIMap.Designer.cs复制UIMap.cs中的函数,并使用资源文件复制函数和自定义凭据。并从TEst
中调用
函数
Hi all,
1.Can anybody know how to add or modify object in UItest manully? and how to reganize object in runtime ? any way?
I appreciate that so much.
Hi First of all know the defination of the object
Step Perform
1 Edit with the code UI test builder and place the Cross hair control to know the defination .
2 Record the control and know the defination when you will know the object defination then add or modify the defination in UIMap.cs or UIMap.Designer.cs
Example
I Recorded the Login windows and pass the credentilas and add a Assert method and generate the Code . From UIMap.Designer.cs copy the Function in UIMap.cs and parametarized the Function with custom credentials using Resource file. and call the Function from the TEst
这篇关于如何手动在UItest中添加或修改对象,以及如何在运行时重新定义对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!