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?
Hi,
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
Regards,
Ammar
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?
We did some testing this morning, and created the test app using the default, uncustomized infragistics grid and combo. I have the same recognition problem with this test app. We figure if we can get recognition going with this test app, it should also work for out customized controls.
You can obtain a copy of the installer and source from our FTP server. Its located in the /outbound/ directory. I've attached the login credentials to this reply in a password protected .zip file. The password is my e-mail address, which you should have on file.
I opened the ftp location and found 3 zip file and one exe. Which file do I need to install to get the sample application?
Thanks for looking into this, I definitely appreciate it and will keep an eye out for the fix. Unfortunately we require some of the features in the control we used that the suggested control doesn't have, so we won't be able to use the workaround.
I can workaround it in the scripts by keyboarding for now until a fix is available.
Thanks again!
The sample application helped a lot in finding the source of the issue you are experiencing. I noticed that you are using an UltraCombo control as embedded editor for the Grid Cell.
This best way to get this same type of functionality is to use an UltraDropDwon control (full name Infragistics.Win.UltraWinGrid.UltraDropDown) then attach the control to the grid column using its ValueList Property: Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout Dim mDDown As New Infragistics.Win.UltraWinGrid.UltraDropDown mDDown.DataSource = mCombo.DataSource mDDown.DisplayMember = "Name" mDDown.ValueMember = "ID" e.Layout.Bands(0).Columns(3).ValueList = mDDown
End Sub
Using this approach, you should be able to record and replay fine on the dropdown.
Having said that, using a Combo control is not wrong and I have created a Development ID on your behalf to determine why this is not working properly. Once the issue is fixed you will receive a notification from us with a link to download the fix. If you want to check the status the Development ID please call our developer support and use this case # TFS15953
At this point the best option is to update the application to use the DropDown control as this will meet the best practices and also get you going without waiting for the fix in TestAdvantage.
Sorry for the confusion, the login I gave you directs you to the wrong folder.
Instead, use:
login: ogtsftp
pass: gtsa55ist
If you open the /outbound/ directory, you should see the two .zip files, one containing the setup.exe for the sample app and the other containing the source.