After reading this you should be able to create and run a simple "Hello World" test within Rational Integration Tester.
Rational® Integration Tester (RIT) supports testing of various domains and technologies and you'll find most blogs cover testing one or more of these technologies with RIT. This series of blog entries is ignoring all of that. By focusing on a very simple one-line test it hopes to help the reader understand some of the basic building blocks of the product set.
My development environment is Red Hat Enterprise Linux Workstation 6.5.
Although some details are Linux- specific they are easily applied across the other supported platforms.
Download Rational Integration Tester (RIT)
To create a simple hello world test and show the most basic of functionality we need only use Rational® Integration Tester.
- Download Rational Integration Tester. I used RIT 8.6.0
The install mechanism for Rational® Integration Tester is IBM Installation Manager. One place it can be downloaded from is:
After its installation
- Start Installation Manager and select File > Preferences.
- On the Repositories preferences page, click Add Repository and select the repository.config file from your downloaded Installation Manager repository. Click OK.
- Click Install. Installation Manager will prompt to install using the repositories
Create a RIT Project
- cd /opt/IBM/RationalIntegrationTester/
- On the welcome screen, click New Project, then click Finish.
There are 6 perspectives of a project that are presented to the user.
For the purposes of this article we'll be only looking at Architecture School, Test Factory & Test Lab
- 1 - Architecture School is the perspective where you describe the system to be tested. The Logical View is, obviously, a logical view of the system under test. In non-trivial development shops there is usually 3 physical representations of the logic system, used by different teams: Development, Test & Production. The Physical View is where the definitions of all the parts of the physical instances. The glue that binds the Logical entities to a set of physical entities is called an Environment, so you could imagine a group setting up to 3 environments for their testing.
- 4 - Test Factory is where test suites and tests are designed.
- 5 - Test Lab is where tests are executed. The tester can either run tests "locally", under RIT, or on a remote machine. A tester wouldn't normally execute all tests just in the context of his workstation - they would typically deploy them to be run on other machines - I'll talk about this in a later article.
Create an Environment
You'll see from the title bar that no "environment" has been selected (or in fact created) yet...
...so let's create one now. An environment doesn't really make much sense in the context of this little test, as the test requires no knowledge about any physical systems, but we need one anyway....
- Project > Create New Environment
- Name = env1
- Click OK twice
Create a Service Component
Tests have to be associated with an element under test. To achieve that in the simplest way, we can just create a dummy Service Component.
- Select the Architecture School perspective (F7). You are now presented with the palette of the Logical View.
- General > Service Component
- Name = SC1
- Click OK
This results in a dummy Service Component SC1 appearing on the Logical View palette.
Create the "Hello World" Test
- Select Test Steps.
- Then add a Log step.
- Double click Log action to set its properties
- Output Message = Hello World
- Click OK
- File > Save (Ctrl-S)
Run the Test within RIT
- Select the Test Lab Perspective (F11).
- Right click on "test1".
- Click Run.
You have now run a simple "Hello World" Test within Rational® Integration Tester.
- The Task Monitor shows a record of the successfully completed test.
- The Console shows the output from the test.