Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to recognize table row and column
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
I am testing a delete functionality. I have to delete one user among several users from the UI and verify it at the back end.

i think i have to use a script to delete the user whoever comes in the first and first column because if i script selecting particular user, i cannot re run that script second time. Because the user would already be deleted in first set of run and QTP will not find the user second time and will fail the script. So how can i script in this scenario ?? Please help...Sad
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Can you please explain it further? I did not understand it quite well. Sorry.
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
You can get the 1st user run time (instead of passing the value from data table) and store it (If you need the deleted data in further verification). Then delete the 1st user and continue the rest.
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
You can use the ChildObjectItem method on the table and get the object in cell(1,1)
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Code:
rCount=Browser().Page().WebTable().RowCount
for i=1 to rCount
    fname=Browser().Page().WebTable().GetCellData(i, 1)
'' Now you have the name stored in fname. Using this run your code to delete the user and iterate..
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation UFT doesn't recognize object in SAP at first, but recognize it after i click debug CedricMab 3 6,777 02-06-2017, 07:09 PM
Last Post: nguyen4685
  Searching for and selecting row in Datawindow zsl0009 0 2,839 08-04-2015, 01:02 AM
Last Post: zsl0009
  QTP is not identifying table with column names property but its identifing with index Anuradha B 1 3,037 02-12-2015, 04:00 PM
Last Post: Kirill
  to count the number of used rows in a particular column sujaravi123 3 11,217 06-12-2013, 03:17 PM
Last Post: sujaravi123
  data sheet row count rushil 2 7,693 12-07-2012, 03:10 AM
Last Post: rushil

Forum Jump:


Users browsing this thread: 1 Guest(s)