Environment: Visual Studio 2005 SP1, Test Advantage 8.3, controls are from .NET Advantage 8.3.
When clicking on the drop down arrow on the control which in a cell of a grid, it is properly recognized as:
GrdItemListTable2().Click(AtList( _ AtCell( _ AtRow(AtLocation("AddRow")), _ AtColumn(AtText("GL Account"))), _ AtLocation("DROPDOWN")))
However, when clicking on a value in the drop down it's only recorded as:
Click(AtCell(AtRow("ID", "Auto"), AtColumn(AtText("ID"))))
Which generates an error: Name 'Click' is not declared. I'm assuming this is because there is no object recognized? Any idea how to work around this, or what I might be doing wrong?
You are right, there is something wrong with the way clicking on the DropDown is getting recorded. There is no TestOIbject in the second click action. It should record something like this:
UltraDropDown1Table().Click(AtCell(AtRow("ID", "Auto"), AtColumn(AtText("ID"))))
Can you check if there is a TestObject in your Script Explorer named "UltraDropDown1Table" if not try adding it to the Object map. (use the "Time Delayed" selection method)
Also try recording again on a fresh RFT project as the test object should be added automatically just like any other test object.
Please let me know if you still have issues
That object definitely isn't in my object map in script explorer nor the test object map window.
I tried adding the test object using the time delayed selection method directly from the script explorer. When the countdown finishes, the "Select an Object" window closes leaving me with the "Progress Indicator" window that comes up before the "Select an Object" window opens. I have to end task on the javaw.exe process to get this window closed and return control to Visual Studio so I can keep working (after ok'ing the error dialog that ending this task causes that tells me "Rational.Test.Ft.TargetGoneException ftc2").
I also tried adding the test object from the Test Object Map window, with similar results. In this case, when the countdown completes the window closes leaving me with the "Private Test Object Map" taskbar entry but the window cannot be restored. The only way to get rid of it is to end task on javaw.exe again.
Both of these results seem to indicate a major problem detecting the presence of any object at all.
Test Object Inspector does show an entry "DropDownManager+DropDownForm" with a ChildClass of Infragistics.Win.UltraWinGrid.ComboDropDownControl, but nothing next to "Name:". The properties for this entry show the product name as Infragistics2.Win.UltraWinGrid, version 8.3.20083.2039.
Can you check with the application developer if the drop down is created at run time and if a name is assigned to the control. The Control name is used for object recognition and having the name property not set might be the reason behind this issue.
One of our devs tried putting a name on it, but it's still not showing a name in object inspector at run-time and exhibits the same behavior when I try to record it (no object is recongnized).
Talking through this revealed the fact that the drop down being used in this cell of the grid is not the default grid combo, but rather is a customized infragistics control (a separate combo control embedded in the grid). We're doing this because the customized control contains features that the default grid combo doesn't.
We're wondering if this is why it's not being recognized, since we're not using the default grid combo.
Thank you for the detail. I think we are getting closer to solve this issue. The TestAdvantage proxies are build to work with customized infragistics control. you may have to update the rftcust file located in the customization folder of RFT. If you can send me a sample application that uses this custom combo I'should be able to provide a solution much quicker. Can your dev create this sample application?