Hi all,
In our company Infra QA team recorded the menu selection action with QTP: click Transaction from main menu, then click Buy menu item. But it failed while the replay in QTP. The QTP did click the Transaction menu but not the Buy menu item.
Here are the codes from expert view mode:
SwfWindow("XXX Desktop 8.0.0").SwfToolbar("_XXXForm_Toolbars_Dock_Area").DropdownToolbarTool "newMainMenu","&Transactions"
wait 3
SwfWindow("XXX Desktop 8.0.0").SwfToolbar("_XXXForm_Toolbars_Dock_Area").ClickMenuTool "newMainMenu,&Transactions","Buy|XXX.XXX.Forms.ScreenDataSet.ScreenLauncher,XXX.Forms.ScreenDataSet|Buy"
The Error message as below:
IG : The specified Tool [&Transactions,Buy|XXX.XXX.Forms.ScreenDataSet.ScreenLauncher,XXX.XXX.Forms.ScreenDataSet|Buy] does not exist.
Question: Any one have any ideas how to select the menu item, thanks.
Hey,
dwei did you get your problem resolved, coincidently I am working on automation of same application you have worked (as shown in first screenshot). As we are using this product in our system.
So your input will be very helpful for me.
You can write to me on davparveen@gmail.com
Thanks,
Parveen
Hello dwei,
You may send an email to support@infragistics.com and you can address it to me (Asma).
Hi Asma,
Sorry the delay, our devs still in building the sample application. Could you please send me your E-mail box and i will send you the application ASAP when i get the it .
Many thanks,
dwei.
Can you please send me a sample? Please ask your developers to create a sample so that I can run that sample on my end and reproduce the issue.
Just to be clear, if you put a break point on the step that fails, the menu tool for the statement that fails is visible? If it is not visible, then it is likely a failing of the step before it. Also, as an FYI, the Tools of the ToolbarsManager are not controls, neither is the ToolbarsManager itself, the only actual controls, are the DockAreas where the Toolbars are placed on.
To possibly expedite the resolution for you, as you seem to have a simple enough sample, perhaps you should contact our developer support directly and they can look at the sample and figure out what I am missing by not having your sample in front of me.