简体   繁体   中英

How to add a descriptive object to object repository in UFT?

在UFT中,如果我通过手动指定各种micclass和值通过代码创建描述性对象,那么可以将该对象添加到现有对象存储库(* .tsr)中吗?

Descriptive Object is nothing but creating the object manually via code ie making an object( not recording it or adding via object spy ) and assigning it properties.

The same thing can be done in Object repository by using the Define New Test Object option. In the Object Repository Manager (or Object Repository) window from menu bar select Object->Define New Test Object and then select the all the properties than you want to assign to that object.

Please go through the below link for reference:

http://www.c-sharpcorner.com/UploadFile/9dc5d3/1/

No you can not. But you can add an object to the object repository by accessing Resources>> Object Spy>> Pointing hand>> Click on the object need to be added>> click add to repository(on top in object spy window). After adding you can just drag the object in to your script and it will generate the correct hierarchy.

UFT ver 12.02

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM