Parameterising cells in WebTable when using QTP OR
As you probably know, I am normally a great fan of DP, however I now have a constraint that I have to use the OR. Therefore I was wondering if anybody has workaround for the following problem which is easily solved by DP!!
I have a webtable which I have added to the OR. I now wish to get data from the cells, and therefore need to know the row and column for the required table. With a DP .vbs file I was able to use the following;
oCustomerTable = "name:=Customers"
colCustomerData = 1
rowCustomerFirstName = 1
rowCustomerSecondName = 2
therefore in my code;
strFirstName = ...WebTable(oCustomerTable).GetCellData(rowCustome rFirstName,colCustomerData)
strSecondName = ...WebTable(oCustomerTable).GetCellData(rowCustome rSecondName,colCustomerData)
Can I store the row and column values in the OR? I really do not want to hardcode these values into the scripts!
Re: Parameterising cells in WebTable when using QT
You will have to. You can keep it in file that is shared/common VBS file. But you should not use the OR. But said that you can still use the OR if you want to (i would not prefer that).