Description:
During automation of Rogue Wave Stingray Objective Grid (Visual C++) controls, users may see that the application controls cannot be inspected/captured using Desktop UI blocks in LEAPWORK.
LEAPWORK can help users to automate Visual C++ applications with Rogue Wave Stingray Objective Grid (C++) controls, however, this requires that the application that needs to be tested must be compiled with Debug information.
The Release configurations of the Objective Grid library usually do not have the debug information required to allow LEAPWORK to identify elements. So, if a user is about to test a Release configuration of a Visual C++ application with Objective Grid (C++) controls, the application developer would be required to rebuild the Objective Grid library to generate the necessary debug information.
Resolution:
This can be followed using the steps outlined below:
Note: These steps need to be only followed for the case of testing Objective Grid (C++) controls in Release configurations of Visual C++ applications. Testing Debug configurations do not require the following setup.
- From the Start menu, launch Rogue Wave | Stingray Studio <version> | Objective Grid | Grid Build Wizard. Follow the instructions in the installation wizard to customize the Objective Grid library to your requirements.
Upon completing the necessary steps, the wizard will generate a makefile for creating the Objective Grid library.
- Inside of the <Stingray Studio>\Src\Grid\BkEndMak folder, locate the makefile named bldbackNN.mak, where NN denotes the Microsoft Visual Studio version used to develop the tested application. For example, the makefile to be utilized with Visual Studio 2010 (v. 10.0) is mak.
- Open the makefile in a text editor.
- Locate all the lines containing the below text:
RELDBG_CPP=/D "NDEBUG" /O1
Replace them with the below text:
RELDBG_CPP=/D "NDEBUG" /O1 /Zi /Fd<Path_Name>.pdb
The /Zi parameter would instruct the compiler to create debug information for the ObjectiveGrid library in Release configurations.
The /Fd parameter specifies the name of the .pdb file to create.
- Locate the line containing the below text:
LINK32_DEBUG_FLAG=
Replace it with:
LINK32_DEBUG_FLAG=/debug
- Save the recent changes made to the
- Proceed to rebuild the Objective Grid library using the modified makefile.
Once the application has been rebuilt, LEAPWORK should be able to inspect and capture elements in the application.
Comments
0 comments
Please sign in to leave a comment.