QTP Object Repository and scenarios - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: QTP Object Repository and scenarios (/Thread-QTP-Object-Repository-and-scenarios) |
QTP Object Repository and scenarios - Baba - 06-25-2008 Hi, 1) I need a code for loading OR (Object repository) at run time. The code, RepositoriesCollection.Add and RepositoriesCollection.Remove, please confiorm whether this is a valid code. 2) I have large amount of input data, such as Text Boxes, Radio buttons, select buttons with large amount of data. If i am using data table, i have to use again and again in the script. Is there any way you can use at one time? Thanks and Regards, Vinod RE: QTP Object Repository and scenarios - blanchedsouza - 06-27-2008 "2) I have large amount of input data, such as Text Boxes, Radio buttons, select buttons with large amount of data. If i am using data table, i have to use again and again in the script. Is there any way you can use at one time?" For your second question, can you illustrate little bit more? why do you need to load and remove repository again and again? if you are asking about .tsr file, then you can associate it with your script from option Resources > Associate Repositories click on "+" button to select path and repository and move all available actions from left side to right side i.e. associated actions. If your version is 9.1 or higher...you can associate multiple repositories. i.e. tsr files. RE: QTP Object Repository and scenarios - Baba - 06-30-2008 Hi blanchedsouza, My question was:- " In a form page there are lot of Input data such as Edit, Push button, Radio button, and other forms which has the same style of data, such as First Name, Last Name, Address 1, Adress 2 etc. So instead of calling the large data from the data table, is there any way to call. After examining the issue, in my view its better to go for Regular Expressions, since we are using the same style of data. We are not validating the data but checking the functionlaty of the form" Please correct me if i am wrong. Regards, Baba |