Hi ,
We have a toolbar which has the following types of toolbar items
1) Toolbar menu option with child items which can selected by clicking on the drop down arrow
2) Toolbar menu option without any child items
what we have observed is TA is unable to reccord on toolbar item 1 but able to reccord on toolbaritem2.
I have attached a screenshot with Toolbar object and QTP statements in it..
Any ideas why TA is behaving this way ?
Thanks
Vijay
Vijay,
Could you tell me what version of TestAdvantage you are using and what build? Also, what version and build of QTP are you using? Have you confirmed that the application that you are testing is built with the same version of NetAdvantage as that of TestAdvantage?
I would also like to ask you if you would run the same test using the WinToolbarsBasicFeature.exe found in the Samples folder in Shared Documets? Could you see if that works for you?
Thank you,
Have you been able to resolve this issue?
I ran your sample and I was able to record and replay successfully In QTP. Here is the script that resulted:
SwfWindow("Test Form").Dialog("#32770").WinButton("OK").ClickSwfWindow("Test Form").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").PerformToolAction tbmgrRibbonTab, tbmgrDropDown, "Test Ribbon:Test Group", "New" SwfWindow("Test Form").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").PerformToolAction tbmgrRibbonTab, tbmgrClick, "Test Ribbon:Test Group", "New,Copy From " SwfWindow("Test Form").Dialog("#32770").WinButton("OK").ClickSwfWindow("Test Form").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").WindowAction "CLOSE"
Did you follow the steps that you need to do to adapt QTP to be able to use the version-free assemblies? The instructions can be found in the Version-Free folder in a text document called "Using Version-Free named assemblies.txt"
Let me know if you have further questions.
hi Michael,
There are couple of observations with this reccorded script
- It has not reccorded the Clicking on the NEW button but can reccord clicking on NEW drop down click . The script first line starts from clicking on Winbutton Click rather than clicking on NEW button
- When replaying the script it displays a message as "NEW " button is not enabled found.
Can you try the above and let me know the observations
I see that it is not recording the clicking on the "New" button. I will look into this further and get back to you.
I am going to have to reproduce this with a sample of my own. I will get back to you as soon as I have results from my testing.
Looking forward to the resolution Michael. This issue has blocked many of tests being developed , it would be very useful to understand the cause of this.
ThanksVijay
Hi Dave,
Thanks for the response. Is there any tentative date for this fix as this issue is marked as critical on our side ? and also Can I setup an alert to notify when the fix is released ?
Regarding the workaround, I did already try it out but it fails during the re-run. I can do a webex to show you the issue. Please suggest a convienient time.
Thanks,
Hello Vijay,
This is actually a known issue with 2010.3, and a resolution for the issue will be released shortly. In the meantime, you can record a dropdown action on the PopupMenuItem, and replace the "tbmgrDropDown" parameter value with "tbmrClick". It will then replay as desired.
hi Dave,
We need a solution to the TA 10.3 version as we are not sure when the dev team would upgrade to the 2011 volume 1 version. It would therefore useful to get a defect fix for TA10.3 version to get us going and resolve the immediate issue.
I reproduced your issue using my own sample and NetAdvantage 2010 Volume 3 and TestAdvantage 2010 Volume 3. Just to be thorough, I upgraded the sample to NetAdvantage 2011 Volume 1 and used TestAdvantage 2011 Volume 1. After doing that, the issue no longer occurred. It appears that the issue was resolved in the latest version, but the resolution was never backported to the older versions. I will talk to our Engineering department to see if there was a reason for this.