I would like to know, how can we make use stingray library add-in for testing applications which are developed using MFC & stingray library and statically linked while compiling.
I have followed the procedure given in Help of winrunner/QTP for applications with stingray and statically compiled application. For this we need to compile the application using StgAgentLib.lib & StgAgentLib.h & function ReleaseWRVC(). But when we compile we are getting compilation errors.
Could anyone help how to avoid these errors and make the stingray tools available for testing. <font color="red"> </font> <font color="red"> </font>
Maybe try RogueWave and see if they have anything to suggest. I have been using TestComplete with Stingray MFC apps for a while now and find it to be good, although some of the Stingray controls are not well supported. In this case I either avoid them and/or use alternate interfaces for testing. Any of the unsupported controls still acknowledge keyboard and mouse input as a simple MFC CWnd object, which can provide a (weak) workaround.
Thanks for your reply. To be stright forward our products have stingray (objective grid.net) used along with MFC. When i open the application i am not able to identify the tree control, developed using SECTreeCtrl (not able to expand/collapse) using test complete/Silk/Winrunner/QTP. If you know by any means how i can expand/collpase this type of tree view, please let me know. However i am now using SysKeys to expand/collpase the tree control.
You could try compiling your application as a TestComplete open application, which will expose a far greater number of objects to TestComplete than a closed application. Check the TestComplete on-line help, or post a query in the TestComplete forum for details on how to do this.
Firstly you need to ensure that you are using the correct StgAgentLib version combination for the ObjectiveGrid and Toolkit. I seem to remember it required a license for Objective Grid & Toolkit to be available, but Mercury provided us with a version of the agent lib to allow just Objective Grid.
Secondly you need to ensure that the #Includes go in the code which runs at application launch and the ReleaseWRVC in the application close code.
You also need to set the test mode of QTP to reflect the static linked app.
We did every thing what you said. we were not successful becuase we need to have stgagentlib.lib & stgagentlib.h file which are statically linked to MFC. These things are to be provided by Mercury. But i am unable to reach the technical support till now.
The librarys provided by installation or winrunner/QTP for statically linking are not correct.