Creating ObjectRepository item through VBScript - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Creating ObjectRepository item through VBScript (/Thread-Creating-ObjectRepository-item-through-VBScript) |
Creating ObjectRepository item through VBScript - LogicaLInsanity - 01-24-2012 Hey all, I'm a QTP noob and am wondering how I might be able to do the following: There is a web table in my OR used for my test but the amount of "records" or "rows" in the table dynamically changes based on information retreieved from the database. I need to write a function that will populate the object repository dynamically. I'm thinking that I can right a for loop that goes from 1 to "Select Count(Row_ID) FROM table" and creates a web element to check for in the web table, for the amount of rows counted in the database. In other words, if the database table has 12 rows, then the object repository should include 12 rows for the web table. What sort of command, if one exists, can be used to create the rows in the Object Repository web table? Thanks, any help is appreciated. |