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,
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.
I see that it is not recording the clicking on the "New" button. I will look into this further and get back to you.
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 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
As the attachment is greater than 200KB, I could add to this ticket. I uploaded it to an FTP site ,details of which are as below
Username: TASamples
Password: iNepbHYX
Site: ftp://TASamples:iNepbHYX@fts.aveva.com
The toolbar item in question is simulated as "New" toolbar item which does act as a button as well has a drop down arrow key to select an child item.
With TA add-in 10.3 version free we cannot reccord user actions clicking on the NEW button and or on clicking of the DropDown Arrow key.
Thanks,