Quality Center / ALM Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Find a component from a folder in Component modules through OTA

Highlighted
Occasional Contributor

Find a component from a folder in Component modules through OTA

Hi All,

 

I want to find a component from a path . for ex like in test plan and Test lab we have a method called FindTest and FindTestInstnace.Like wise do we have for components referred OTA reference library but it is not helping me.

 

Appreciate your help in advance.

1 REPLY
Honored Contributor

Re: Find a component from a folder in Component modules through OTA

"Find" methods don't exist for Components in the OTA API. You will have to do it the "long" way by navigating through the ComponentFolderFactory object and using the FolderByPath method. That will give you a ComponentFolder object pointing to the Component Folder for the path you specified. Then you can get the ComponentFactory for that ComponentFolder object and use the Filter and NewList methods/properties to get the specific Component.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

(Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.)