Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue related to multiple checkout
#1
Solved: 11 Years, 4 Months ago Exclamation 
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
Reply
#2
Solved: 11 Years, 4 Months ago
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.
Reply
#3
Solved: 11 Years, 4 Months ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP system related issue Bharathi Kanagarajan 1 2,096 09-12-2015, 11:28 PM
Last Post: ADITI1992
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,293 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  Help needed on understanding the Properties and Methods related to a ActiveX control. DhivaM 2 3,915 05-21-2012, 07:48 PM
Last Post: DhivaM
  Word Related Automation nitin537 0 2,290 12-03-2011, 01:18 AM
Last Post: nitin537
  QTP AOM related Question - need solution prodipto_dutta 6 9,417 05-04-2011, 05:31 PM
Last Post: prodipto_dutta

Forum Jump:


Users browsing this thread: 2 Guest(s)