You can call find from any TestObject.
您可以从任何TestObject 来调用 find方法。
This method prints all of the properties of a test object (TestObject).
这种方法打印出测试对象(TestObject)的所有属性。
Most likely, you normally interact with a TestObject by using the object map.
很可能的是,您通常会利用这个对象图与TestObject产生相互作用。
The search can be either global or limited to children of a parent TestObject.
这个搜索要么是整体的要么局限于一个父testobject的子对象。
If you want to search a specific object, then simply invoke find on that TestObject.
如果您想要搜索一个特殊的对象,那么您可以简单地调用TestObject上的查明程序。
The second example shown in Listing 6 requires that you pass in the actual TestObject.
列表6中显示的第二个例子要求您传递实际的TestObject。
By using it, you avoid having to record actions to add the TestObject to the Object Map.
通过使用它,您可以避免不得不记录动作以向对象地图(对象地图(Object map))中添加testobject对象。
Using that wizard, you then specify the TestObject and the baseline data for subsequent runs to test against.
利用这个向导,您就可以为以后测试对比的运行详细指定TestObject和数据。
You can use this dialog to see how to use find to locate the buttons in the dialog and to get a TestObject for each control.
您可以使用该对话框来观察如何使用find方法在对话框中定位按钮,以及为每个控件获得一个TestObject。
The search is based on name and value pairs representing properties of the TestObject or TestObjects that you are looking for.
这种搜索是基于一对代表TestObject或者您要查找的testobjects属性的名称和值基础上的。
Many dialogs include a Cancel button, so you first need to find the dialog TestObject that contains the correct Cancel button.
许多对话框中包含一个Cancel按钮,所以您首先需要找到包含正确的Cancel按钮的对话框testobject。
Now that you know how to use the find method, you can identify the browser and application instances by using a TestObject reference.
既然您已经了解了如何使用查找程序,那么您可以通过利用一个TestObject参考来确定这个浏览器和应用软件实例。
Although the specified TestObject does not have to be from the Test object Map, it must be the same object consistently for the results to be meaningful.
尽管这个具体的TestObject并不一定要来自TestObjectMap,但是它必须是与有意义的结果一致的同一个对象。
Therefore, it's a good habit to use a waitForExistence method when you open a browser. One way to do this is to use a Wait for Selected TestObject verification point
因此,当您打开一个浏览器时使用waitForExistence 程序是很好的办法。
NOTE: as we go to press, the just-released version of Rational Functional Tester 6.1 has a dynamic object search capability built into a TestObject method called find .
注意:在本文发表时,RationalFunctionalTester 6.1的新发行版本将动态搜索功能内置到了名为find的TestObject方法中。
For every TestObject in a generated test script, a corresponding object exists in the application that you recorded against, and that object now also exists in the test object Map.
对于产生测试脚本中的每个TestObject,一个相应的对象存在于这个您所记录的相应的应用软件中,并且这个对象同时也存在于Test Object map中。
Because the dialog is a high-level object, you can start your TestObject search by defining the RootTestObject. After you have done that, you can use the find method to locate the dialog TestObject.
因为对话框是高级对象,所以您可以通过定义RootTestObject来开始TestObject搜索。
Because the dialog is a high-level object, you can start your TestObject search by defining the RootTestObject. After you have done that, you can use the find method to locate the dialog TestObject.
因为对话框是高级对象,所以您可以通过定义RootTestObject来开始TestObject搜索。
应用推荐