Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetTOProperties count
#10
Not Solved
hi Supputuri,

I did not get any reply from you. I have used Mouse coridicates to locate the button and click particular button on toolbar, but if i run in different computer with bigger or small screen test will break. Do you have any recomendation, do you have any better way to handle this kind of tests?

I have run in to another problem, hope you will be able to help me out.
I have result displayed in grid and QTP is identifying the grid as a generic object (SwfObject:grid) and not really a toolbar (Swfgrid)
How can i get the value out of the grid --> rows --> cell and compare? Please find the first attachment, I would like to get the grid, I would like to get Time4 column, 2nd row, cell value and compare with expected result.

As shown in second attachment, Dot Net Spy shows properties of the row, but I can not find the values displayed in that row cell.

As shown in thrid attachment, I typed
Code:
SwfWindow("FormName").SwfObject("grid").Object.DataRows.
varous
options as displayed in screen shot is displayed.

when I use Test Complete, (another automaiton tool) obect spy of Test complete shows the Row values. Below is the code to access data row, cell values in Test Complete.
Code:
Aliases["System"]["FormName"]["Host"]["Browser"]["Base"]["Main"]["WinFormsObject"]("viewManager")["WinFormsObject"]("StandardView")["WinFormsObject"]("gridPanel")["WinFormsObject"]("grid")["DataRows"]["Item"](0)["Cells"]["Item"](0)
Below code is equal to SwfWindow("FormName").SwfObject("grid") code of QTP.
Code:
"Aliases["System"]["FormName"]["Host"]["Browser"]["Base"]["Main"]["WinFormsObject"]("viewManager")["WinFormsObject"]("StandardView")["WinFormsObject"]("gridPanel")["WinFormsObject"]("grid")"

and Datarows is common in QTP and Testcomplete.

Test complete recognizes it as ("grid")["DataRows"]["Item"](0)["Cells"]["Item"](0) but QTP does not.

In QTP I can access as shown in 3rd attachment:
Code:
SwfWindow("FormName").SwfObject("grid").Object.DataRows.item
But thows an error, when I type bracket in front of item, example below
Code:
SwfWindow("FormName").SwfObject("grid").Object.DataRows.item(0)
Error will be thrown.

Please help me, I am running out of time. Is it possible for you use team viewer to access my machine and help me or I request that any one of your team member to help me.


Attached Files Image(s)
           
Reply


Messages In This Thread
GetTOProperties count - by Steve.Govinakovi - 06-05-2012, 06:13 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-05-2012, 07:14 PM
RE: GetTOProperties count - by supputuri - 06-05-2012, 09:33 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-06-2012, 05:19 AM
RE: GetTOProperties count - by supputuri - 06-06-2012, 10:14 AM
RE: GetTOProperties count - by Steve.Govinakovi - 06-06-2012, 06:03 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-07-2012, 04:56 PM
RE: GetTOProperties count - by supputuri - 06-07-2012, 06:38 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-08-2012, 08:04 PM
RE: GetTOProperties count - by Steve.Govinakovi - 06-10-2012, 10:12 PM
RE: GetTOProperties count - by Anamika sinha - 04-15-2014, 05:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Diff. between page checkpoint link count and childobj count anemuday 0 2,251 07-20-2008, 10:11 PM
Last Post: anemuday
  Using GetTOProperties & Count function Akhila 1 3,705 07-07-2008, 11:44 AM
Last Post: surya_7mar

Forum Jump:


Users browsing this thread: 1 Guest(s)