I am evaluating Test Complete 8 for automated testing of a Flex application and trying to write a test that will select a row in a table (Flex Data Grid; not the Advanced Data Grid) that has a particular value in one of the columns. I am new to Test Complete and Flex so forgive any ignorance on my part.
I have found that Test Complete only recognizes an entire row as an object rather than a cell (not sure if this is a limitation of my application or of Test Complete or maybe it is just how it is). The caption property on one of the row objects is 'Row 1 of 18 Project Name 60000 row import Description Creation Date August 26, 2010 2:14:15 PM Last Update August 26, 2010 2:55:14 PM Shared false Owner me'. I was hoping to be able to use 'Find Object' but it only works if nothing changes (row, date, etc) which defeats the purpose.
Question 1: Can I use regular expressions in the 'value' field when specifying the property and value for 'Find Object'? Other recommendations for achieving the goal?
Secondly, I have found that I cannot use the Spy and select the very first row of my table. To get at the first row, I select the whole table and then set the index to 0 to see the values of the first row. I mention this because I think it might be related to the following problem. When I use the Find Object and get everything to match, then tell it to click, it clicks one row beyond the caption specified. So, for example, if the caption contains "Row 1 of 18", the find Object succeeds and it clicks what is Row 2 of 18.
Question 2: Is this a bug? Is there a workaround such as adjusting the coordinates up a bit on the click?
I may have gotten hung up on some of the specific issues I am running so I will try again....
Has anyone out there successfully used TestComplete to test a Flex DataGrid or the Flex Advanced DataGrid? If so, are you able to verify the contents of a cell (e.g. Row 5, Column 2 has value "Sarah"). Is this possible?