Micro Focus QTP (UFT) Forums
Issue related to multiple checkout - 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: Issue related to multiple checkout (/Thread-Issue-related-to-multiple-checkout)



Issue related to multiple checkout - galstar - 10-04-2010

Hi ,

I am facing a problem related to checkpoints.
I have 2 rows in my website containing products and there corresponding price.I m using checkpoint to validate that te price is same as DB or not by using GetRo proprty.Now these rows are dynamic as par the entry in Excel sheet.
I there are 4 product in my sheet then 4 rows will populate.Now hoe to apply checkpoint for all rows as these r dynamic.For checkpoint i need corresponding objects in object repository.

I think i should use adding of objects in object repositort at run time.
But still not able to implement.
Please help me to come out from this problem.
Thanks,
Galstar


RE: Issue related to multiple checkout - Pallavii - 10-05-2010

As u r saying the table is dynamic, first get the row count of the table, and then apply the checkpoint for all the rows in iteration, using For loop.


RE: Issue related to multiple checkout - bfakruddin - 10-05-2010

Hi,

Adding the objects available in table to OR is not correct procedure, You have to add the table to OR... during run time get the row count and proceed with your requirement.

1. get the row count of the table dynamically
2. loop for all the rows with desired column on required product in your case
3. break the loop once you found the product in any row
4. Check your desired cell in that row with your validations

Descriptive way is helpful here to handle your requirement.