QuerySurge's end-to-end data testing solution provides testing of all legs in the ETL process, and the QuerySurge BI Tester data source feature extends the solution to the Business Intelligence layer. BI Tester for IBM Cognos Analytics allows QA team members to automate the process of retrieving data from Cognos reports and validating it against any supported data source. Users can use powerful SQL syntax to query the data query layer of reports, compare report data to data from upstream or downstream systems, create suites of multiple BI report tests, and schedule tests for execution according to BI system availability.
For an IBM Cognos Analytics connection, you will need the following information (check with a Cognos administrator or other knowledgeable resource in your organization):
- Server version
- Server hostname and port (default Cognos server port: 9300)
- Username and password
- Authentication Namespace (see section below on finding the namespace ID)
- Dispatcher Servlet path (default:
- Cognos SDK JAR files
Note: QuerySurge's BI Tester feature is licensed separately. Contact QuerySurge Sales for information.
Deploy Required Cognos SDK JAR Files
To establish connectivity with Cognos, you will need to extract several components from the Cognos Software Development Kit (SDK). Download the Cognos SDK version for your Cognos server, or obtain it from a Cognos-knowledgeable resource in your organization, and install the SDK. The following JAR files can be found in
<SDK install dir>/sdk/java/lib; copy them to your QuerySurge Agent driver folder,
<QS install dir>/agent/jdbc.
Note: Copy only the files listed above; do not include any other JAR files from the SDK installation. It is recommended that even for open-source libraries, that you use the libraries distributed with the SDK.
Find the Authentication Namespace
In order to find the correct Authentication Namespace for the desired Cognos user, a Cognos administrator or server administrator (depending on available permissions) can look it up in one of the following configuration views:
- Using the Cognos web interface (useful when Cognos server access is not available):
- Log in to Cognos as an administrator user
- Navigate to Manage -> People -> Accounts
- Mouse over the relevant namespace, click the menu button, and click Properties
- In the namespace properties pane, click the Advanced header
- In the Search Path field, note the value enclosed in the parenthesis and double quotes (for example, a Search Path of
CAMID("CorpDirectory")would yield a namespace ID of
- Using the IBM Cognos Configuration utility (useful when Cognos is installed on Windows servers):
- Connect to the Cognos server
- Launch IBM Cognos Configuration (see the Cognos documentation for OS-specific steps)
- In the Explorer tree, navigate to Local Configuration -> Security -> Authentication, and then the relevant namespace
- In the Resource Properties pane, note the listed Namespace ID
- In Cognos configuration files (useful on Linux servers or when GUI access to the Cognos server is not available):
- Connect to the Cognos server
- Open the file
<Cognos install dir>/configuration/cogstartup.xml
- Search in the file for the namespace name; it should appear in an element like
<crn:instance name="Corporate Directory" class="LDAP">
- Locate the “id” parameter below that element; it should appear in an element like
Connect to Cognos
- Log into QuerySurge as an Admin user. Navigate to the QuerySurge Admin view.
- To configure a Cognos Connection, launch the Connection Wizard. Select Configuration > Connection in the Admin view tree (at the left).
- Click on the Add button at the bottom left of the main panel to launch the Connection Wizard. Check the Advanced Mode checkbox. Click Next.
- Provide a name for your Connection. Then, select "BI Tester: Cognos" as the Data Source.
Note: The BI Tester JDBC driver is bundled with QuerySurge; install this driver on your Agent(s) from your QuerySurge Installer.
- Once you have selected your BI Tester Data Source, the Wizard will tell you what information you are likely to need in order to create your Connection. Once you have collected this information, you are ready to click Next.
- Provide the connection information to your Cognos server. This includes the server hostname, port (the default port will automatically populate), Dispatcher Path, Authentication Namespace, Cognos version, and login credentials. Required fields for your Connection Type are marked by an *. Click Next.
Note: QuerySurge only supports specific Cognos versions at this time. If your version does not appear in the dropdown, contact QuerySurge Support to see if there are any options.
- In the Advanced Mode, several additional options are available. Adjust these options as needed and click Next.
Max String Width: Maximum size of all "string" or "text" columns returned in a query on this connection. Values beyond this size will be truncated to fit. Defaults to 500 bytes.
Temporary Data Location: Whether data retrieved from Cognos should be processed in memory, or in a temporary file on disk. In Memory provides better performance, but requires enough Agent heap memory for the datasets to be queried through this connection. (See instructions for adjusting heap on Linux or Windows.) On Disk provides capacity for larger result sets at the expense of slower performance. Defaults to In Memory.
Protocol: When connecting to Cognos installations configured for SSL/TLS, select https to handle the encrypted traffic. Defaults to http.
- Click on the Test Connection button.
Note: You must have an Agent running with the driver deployed for this Connection deployed in order to test the Connection.
- Click the Save button to save the Connection.
- Congratulations! You’ve created a QuerySurge Connection. Again, make sure that you have deployed the driver for this Connection to all your QuerySurge Agents. (See Adding a JDBC Driver to your QuerySurge Agent for instructions.)