Hi,
I am facing a weird problem with Infragistics Ultrastatusbar. I am using QTP version 10 and Net advantage version 2010.2 and corresponding test advantage.
I have a windows forms application with Ultrastatusbar. This has 7 panels and first of the panels(at index 0) contains status information. When Idle this status reads Ready. I can do many operations using this application and these operations could be invoked by clicking corresponding menu items. when I select any operation from the menus, the text in the first panel(0th index) is changed from "Ready" to corresponding operation name. I can see this text updated in the UI, but when I try to get this text in QTP, I always get the text "Ready" rather than the text updated.
Following are the ways I tried to get the text
SwfWindow(..).SwfStatusBar(.).Object.Panels.GetItem(0).Text
SwfWindow(..).SwfStatusBar(.).GetNAProperty("Panels[0].Text")
I tried using .NET Windows forms spy and captured the object when the status bar text is updated. Interestingly, the property grid shows the text for the corresponding Panel as "Ready" even though the text is not ready as it is seen in the UI.
Please help me out in resolving this issue and get the latest value from Status bar.
Thanks,
Satish
Hello VLS,
If you need any additional assistance don’t hesitate to ask.
Regards
I try to reproduce your issue using UltraStatusBar with few panels, but everything seems to work properly. Could you please tell us what is your current version of NetAdvantage, TestAdvantage, QTP. Do you have any installed service release and patches and which exactly.
Will be very helpfull if you send us small sample that reproduce your issue. I`ll be glad to research it for you.
Let me know if you have any questions.
Hi Michael,
When i try the same solution with my application on for Panel[0] it provides the value as "Ready", but when i try with the Panel[1-4] where it holds the user name; env etc. it returns blank.
Please let us know for any other options.
VLS
Hi michael,
Thanks for the reply. It worked perfectly.
Honestly I am not entirely sure why it's not working, possibly it's the PanelStyle. Have you tried getting the DisplayText?