Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange Behaviour of SwfTable
#1
Not Solved
Hi to all,
in past days, I did automated test on a SwtTable.

For this object I used standard funciont as RowCount, ColumnCount, ActivateCell or GetCellData.

Today all these functions not work.

I had to replace:

Code:
rowCount = SwfWindow("myApp").SwfTable(dataGridView).RowCount

with

Code:
rowCount = SwfWindow("myApp").SwfTable(dataGridView).GetROProperty("RowCount")




Code:
clmnCount = SwfWindow("myApp").SwfTable(dataGridView).ColumnCount

with

Code:
clmnCount = SwfWindow("myApp").SwfTable(dataGridView).GetROProperty("ColumnCount")




Code:
str = SwfWindow("myApp").SwfTable(dataGridView).GetCellData(r, c)

with 

Code:
str = SwfWindow("myApp").SwfTable(dataGridView).Object.Rows.Item(Cint(row)).Cells.Item(c).Value


Why?
With Spy Object, the Object is equals, it not changed.

Thanks.
Reply
#2
Not Solved
The problem is still present.

This is my object with Spy Object.
   

And this my code
SwfTable("dataGridView1").SelectRow®

The code returns me "Unexpected error", why?

SelectRow is an operation of this object.

Must I review all my automated test cases?

Thanks
Reply
#3
Not Solved
Temporarily,
I found this solution:

Code:
SwfWindow("muApp").SwfTable("dataGridView1").Object.Rows.Item(r).Selected = True


But, while SelectRow shows to user the select row in DataGrid with the automatic scrolling of the same, the above code does not perform automatic scrolling.

Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Strange form, cant get it marvson 0 1,456 05-12-2016, 07:35 PM
Last Post: marvson
  SwfTable and RowCount: Unspecified Error robertosalemi 0 1,916 12-14-2015, 04:05 PM
Last Post: robertosalemi
  Why do I see strange signs by the line numbers? sqadri 2 2,972 04-05-2012, 04:36 AM
Last Post: sqadri
  Strange Behaviour of QTP PrabhatN 0 2,230 02-01-2011, 12:11 PM
Last Post: PrabhatN
Question Strange Behaviour of DataTable A.Saini 0 1,904 10-01-2010, 03:41 PM
Last Post: A.Saini

Forum Jump:


Users browsing this thread: 1 Guest(s)