 | Level: Introductory Fiona Foster (ffoster@ca.ibm.com), Software Developer, IBM
27 Jan 2004 You can execute IBM Rational Test RealTime tests and view results from within TestManager. This tutorial gets you started.
IBM® Rational® Test RealTime is a great tool for component testing and runtime analysis across platforms. Integrating it with IBM Rational TestManager (on Microsoft Windows® installations only) enables you to manage test execution more easily and to view test and runtime analysis results through the TestManager test log. You can associate TestManager test inputs via test cases with Test RealTime test nodes and group nodes. This article takes you step by step through the process of enabling the integration, configuring the project, creating and running a test case, and viewing results. It also gives some troubleshooting pointers.
Editor's Note: This article is based on Version 2003.06.12.043.001 of Test RealTime and Version 2003.06.12 of TestManager.
Installing the programs and enabling the integration
For the integration to work properly, TestManager and Test RealTime must be installed on the same workstation. TestManager must be installed first; otherwise, Enable Rational Project TestManager Integration won't appear in the Test RealTime Tools menu.
Before you can use the two products together, you must enable the integration as follows:
- From the Windows Start menu, select Programs > Rational Software > Test RealTime > Tools > Enable Rational Project TestManager Integration.
- Click OK in the resulting dialog.

Note that you must not be running TestManager when you enable the integration.
Configuring the project
Before you can use the integration, you need to set some configuration properties in Rational Administrator.
Creating a new project
First you create a new project.
- Launch Rational Administrator by selecting Start > Programs > Rational Software > Rational Administrator.
- Create a new project by selecting File > New Project. The New Project - General window appears.

- Enter a name and a location for the project and click Next. (Note that the project location must be an empty directory; otherwise, a dialog box asking you to specify an empty directory will be displayed. Note also that if you want other users to be able to access the Rational project over the network, you must use a shared directory and specify the pathname in UNC format.) This opens the New Project - Security window.

- Click Next without specifying a password. This opens the New Project - Summary window.

- Make sure that "Configure Project Now" is checked and click Finish.
Creating a test asset
Now you need to create a test asset.
- In the Configure Project window, click Create under "Test Assets."

- You'll be prompted to select the type of datastore -- either SQL or Microsoft Access. Choose Microsoft Access and click Next.

- Specify the datastore path. By default this field contains the project location directory followed by a subdirectory called TestDatastore. You can accept the default or click Browse to select a different location.

- Keep the defaults in "Initialization Options" and click Next.

- You're then presented with a Test Datastore summary box that shows all the options you entered in the previous setup screens. Click Finish.

- The Test Datastore will then be created. Click OK in the resulting dialog.

- You'll be taken back to the Configure Project window, where the "Test Assets" field has been populated with the Test Datastore that you just created. Click OK and exit Rational Administrator.

Creating a test case
Now you'll create a test case in Rational TestManager and associate it with a Test RealTime project.
- Launch Rational TestManager by selecting Start > Programs > Rational Software > Rational TestManager.
- On the Rational Test Login screen, click OK. (You don't need to enter a password since you didn't specify one when you created the new project.)

- Once TestManager is open, expand Test Plans in the left pane.

- Right-click Test Plan 1 and select Open.

- In the left pane expand Iterations, and in the right pane highlight the folder Default.

- Right-click the folder Default and select Insert Test Case.

- In the New Test Case dialog on the General tab, enter a name for the test case. (In this example, I used "foo3.")

- Click the Implementation tab. Under "Automated implementation," click Select. From the list of available implementations, select Rational Test RealTime.

- To select the Test RealTime project, click the Browse button in the Rational Test RealTime Test Selection dialog and go to the location where the project is saved, then click Open. The Test RealTime Project field will be populated with the location and name of the Test RealTime project.
- Click Open again so that the Test Node/Group Node box is populated. Then expand ChainedList and highlight BasicTest.

- Click OK in the Test RealTime Test Selection dialog, then click OK again in the New Test Case dialog.
Running a test case
Now you'll run the test case you just created.
- In the right pane of the Rational TestManager window, right-click the name of the test case you just created (in this example, "foo3") and select Run.

- In the Run Test Cases dialog, click OK.

The test is then executed:
Viewing test results
Now you'll access the test results in the Test RealTime GUI through the TestManager test log.
At the end of test execution, you should see something like the following. This is the Test Case Results tab of the Test Log pane.

- In this pane, click the Details tab at the bottom.
- Right-click User Defined in the "Event Type" box and click Properties.
- In the resulting dialog, click the View Test RealTime Logs tab.

- Click Open. The Test RealTime GUI is then launched and graphical reports are displayed.
Troubleshooting
Here are some pointers on how to solve common problems:
- Once the test has finished executing, when I try to view the reports through the Detail tab, Test RealTime launches but no graphical results are shown.
When you select the Test RealTime project, it's important for you to also select a test node (as shown below). If you don't select a test node, the test will pass but no reports will be generated and no results will be loaded into Test RealTime.

- In configuring the test case properties, when I click Select under "Automated implementation," the General Data Store error is displayed.
There are two possible causes of this error:
- The TestRTConsoleAdapter.dll has been placed in Rational\Rational Test\tsea instead of ...\Rational\Rational Test.
- The wrong version of the TestRTConsoleAdapter.dll file has been installed. For example, in Test RealTime Version 2003.06.00, by default the 2003.06.00 file hasn't been replaced by the Test RealTime Version 2003.06.12 file.
- In configuring the test case properties, when I click Select under "Automated implementation," Rational Test RealTime doesn't show up in the list of available implementations.
When Test RealTime isn't available as an automated implementation, it means that the integration hasn't been enabled for the project. Enable the integration by going to the Windows Start menu and selecting Programs > Rational Software > Test RealTime > Tools > Enable Rational Project TestManager Integration. You'll see this dialog if the integration is successful:

Test RealTime should now be in the list when you click Select under "Automated implementation."
This problem can also occur if you tried to enable the integration while TestManager was running. You must not be running TestManager when you enable the integration.
Resources
About the author  | |  | Fiona Foster has worked for IBM Rational as a software developer since July 2000, first supporting the Rational Rose RealTime product and more recently supporting the Test RealTime product by writing tech notes and white papers and delivering training. She can be reached by e-mail. |
Rate this page
|  |