天天看點

QTP HELP - Dynamic Management of Object Repositories

Dynamic Management of Object Repositories

QuickTest now has a new RepositoriesCollection reserved object that you can use to programmatically manage the set of object repositories that are associated with an action during a run session.

At the beginning of a run session, the RepositoriesCollection object contains the same set of object repository files as the Associated Repository Files tab of the Action Properties dialog box. The operations you perform on the RepositoriesCollection object affect only the run-time copy of the collection.

You can use the RepositoriesCollection object to associate or disassociate shared object repositories with an action during a run session or change the priority order of the objects in the list.

For more information, see RepositoriesCollection Object.

對象庫的動态管理

QuickTest現在有一個新的RepositoriesCollection保留的對象,您可以使用以程式設計方式管理運作會議期間采取行動的對象庫 的設定。

在運作會話的開始,RepositoriesCollection對象包含相同的對象庫檔案的行動屬性對話框中進行相關的庫檔案頁籤設定。RepositoriesCollection對象執行的操作隻影響運作時的副本集合。

您可以使用RepositoriesCollection對象關聯或解除與動作的共享對象庫運作會話期間或更改清單中的對象的優先順序。

欲了解更多資訊,請參閱RepositoriesCollection對象。

繼續閱讀