06-10-2012, 10:12 PM
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
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.
Below code is equal to SwfWindow("FormName").SwfObject("grid") code of QTP.
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:
But thows an error, when I type bracket in front of item, example below
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.
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
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)
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
Code:
SwfWindow("FormName").SwfObject("grid").Object.DataRows.item(0)
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.