IBM® Rational® Functional Tester projects can be associated with IBM® Rational® TestManager, and automated Rational Functional Tester scripts can be played back from the test management tool.
Note:
Rational TestManager has been replaced by IBM® Rational® Quality Manager, but this article will be helpful to those who are still using the older TestManager software.
After running the functional testing scripts, you can view from Rational TestManager rather than going back to Rational Functional Tester again. You also gain the advantage of the report generation capability of TestManager to generate the reports about the script's execution. Also, functional test scripts can be played back on a remote computer from Rational TestManager. (This support was withdrawn for Rational Functional Tester Version 8.2 but restored in Version 8.2.0.1).
- IBM Rational Functional Tester Version 8.2.0.1
- Rational TestManager Version 7.0.2
- TestManager Agent Version 7.0.1.0 (required only for remote use)
- Java Runtime Engine (JRE) Version 1.6
Running Rational Functional Tester scripts from Rational TestManager requires basic knowledge of both tools and this specific knowledge:
- How to create a TestManager project
- How to create a test plan in TestManager
- How to create test case in TestManager
- How to create Rational Functional Tester projects and scripts
- How to associate Rational Functional Test projects and scripts with TestManager projects
Machine configuration if you run scripts remotely
For remote execution, you will need minimum two machines. The master machine is where you trigger the execution of Rational Functional Tester scripts, and the client is the machine where the script actually runs. This is required only for remote execution. We should have one master machine and one or more client machines.
Master machine
- Rational Functional Tester
- Rational TestManager
- JRE 1.6
Client machine
- Rational Functional Tester
- TestManager Agent
- JRE 1.6
Integration setup for Rational Functional Tester and Rational TestManager
The detailed description that follows is for setting up the environment on a master machine and a client machine of the scripts.
Master machine setup
- Install Rational TestManager.
- Install Rational Functional Tester.
- Create a shared TestManager project named
TM_P1. Give the Uniform Naming Convention (UNC) path, or the shared network path, for the project location, while creating a project. For example:
\\<computer name>\shared\TM_Proj - Create a test plan called
TP1and a test caseTC1. - Create a Rational Functional Tester project,
RFT_P1, and associate it with the TestManager project,TM_P1. - Record a script called
S1, and build it. - Associate the TestManager test case, TC1, with that Rational Functional Tester script, S1.
- Select Manage > compute lists and add the client machine's name.
Important:
Make sure that the client machine is accessible from the master machine.
Client machine setup
- Install the TestManager Agent.
- Install Rational Functional Tester.
- Start the TestManager Agent.
- Start Rational Functional Tester Agent by following these steps:
- Open the command prompt and go to the Agent Controller's bin directory: ...\...\IBM\IBMIMShared\plugins\org.eclipse.tptp.platform.ac.win_ia32_4.4.300.v201006031900\agent_controller\bin
- Type
SetConfigto run the SetConfig.bat file.
- Follow these prompts in SetConfig for directions:
- Prompt 1: Specify the fully qualified java.exe path. This should be set to the JRE installed with the IBM test product. For example:
C:\Program Files\IBM\Java50\jdk\jre\bin\java.exe - Prompt 2: Set the network access mode. For example, Use ALL allows any host.
- Prompt 3: Set security as enabled or not. For example, Use FALSE does not enable security.
- Use the default values on all the rest of the prompts.
- Prompt 1: Specify the fully qualified java.exe path. This should be set to the JRE installed with the IBM test product. For example:
- Now start the Rational Functional Tester Agent Controller by typing
ACServer.exe.
Note:
For non-admin mode scenarios, you need to do this setup in administrator mode and then log in as a non-admin user who has most of the privileges that the administrator does.
Three different integration options
There are different ways to execute Rational Functional Tester scripts from Rational TestManager.
Note:
All three of these scenarios can be executed in non-admin mode, too.
1. Local execution of Rational Functional Tester script through Rational TestManager
- On the master machine, launch TestManager and Rational Functional Tester.
- Open the TestManager test case, TC1, that is associated with Rational Functional Tester script, S1.
- From the test case drop-down menu, select Run to start executing the Rational Functional Tester script (you will see the Playback monitor).
- You can check the log for results.
2. Remote execution of a Rational Functional Tester script through Rational TestManager
- On the master machine, launch TestManager and Rational Functional Tester.
- Open the TestManager test case, TC1, that is associated with Rational Functional Tester script, S1.
- From the test case drop-down menu, select Run.
- In the Run Test Case wizard, change the computer name as the client machine name.
- Execution of Rational Functional Tester script will start on the client machine, and the Playback monitor will appear.
You can check results on the master machine after the script has run.
3. Remote execution of scripts on multiple client machines
Here, you would have one master machine and multiple client machines.
- Add all of the client machines' names in the computer list.
- Open the TestManager test case, TC1, that is associated with Rational Functional Tester script, S1.
- From the test case drop-down menu, select Run.
- In the Run Test Case wizard, select your different computer names as client machine names.
- Execution of Rational Functional Tester script will start on the client machines, and the Playback monitor will come up.
The log on the master machine will show after the script has run.
Hands-on experience for Option 2
Begin by launching the Rational Administrator tool that installs with Rational TestManager.
- From the Projects drop-down menu (see Figure 1), and select the New Projects option.
Figure 1. Creating a new project
- Type
TM_P1as the name of the project as and browse to provide a UNC path as the location:
\\<Computer name>\Shared\TM_Proj
Figure 2. Project creation for TestManager
- Click Next > Next > Finish.
- In the Configure Project wizard, click the Create button.
Figure 3. Project configuration
- Select the type of the database to create for the test datastore, and click Next.
Figure 4. Choose the type of test database to create
- Give the UNC path for the datastore, and then click Next > Next > Finish.
Figure 5. Datastore path
You will get a confirmation message like the one shown in Figure 6 when the datastore has been successfully created.
Figure 6. Datastore confirmation message
- From the project drop-down menu, select the Connect option.
Figure 7. Connect project
- Launch Rational Functional Tester.
- Create a Rational Functional Tester project with
RFT_P1as the name (see Figure 8). - Give the UNC path as the project location.
- Also check the Associate the project with current Rational TestManager Project check box and then click Finish.
Figure 8. Create a Rational Functional Tester project
- Record a Rational Functional Tester script called
S1in the classicsJavaA application.
Figure 9. Functional Test project explorer
- Now launch IBM Rational TestManager, select Tools > Manage > Computers (Figure 10), and then click the New button.
Figure 10. Add a client computer
- Give the network name of the client machine, and click the Ping button to check the access. When the ping succeeds, click Apply and then OK.
Figure 11. Enter the name of the client machine
The client machine is now added to the master machine.
Figure 12. Computer list
- From the drop-down menu of Test Plan, select New Test Plan.
Figure 13. Create new test plan
- Type
TP1as the name of the test plan, and click OK.
Figure 14. Test plan configuration
- Under Test Plans, double-click TP1 to open the test plan.
Figure 15. Open the test plan
Insert a test case and associate the test case with the test script
- From the drop-down menu of test plan, select the Insert Test Case Folder option to start adding a test case.
Figure 16. Insert Test Case Folder
- Name the Test Case folder
TC_Folder, and click OK.
Figure 17. Create a test case folder
- From the drop-down menu of the test case folder, select Insert Test Case.
Figure 18. Insert a test case
- Name the test case
TC1, and click the Implementation tab.
Figure 19. Enter the name of the test case
- Click the Select button and select the associated Rational Functional Tester project name, RFT_P1.
Figure 20. Associate the test case with the Rational Functional Tester script
- Select the functional test script name, S1, which you need to associate with the TC1 test case, and click OK.
Figure 21. Select the functional test script
Now the functional test script, S1, is associated with the TestManager test case, TC1.
- Select TC1 and then select Run to execute the test case from the test case drop-down menu.
Figure 22. Select and run the test case
- Select the test case that you want to run, change the computer name to the name of the client machine (see Figure 23), and click OK.
Figure 23. Execution of the test case
Script execution will start on the client machine, and the result will display on the master machine in the log (Figure 24), which shows Event Type, Result, Date and Time, Failure Result, and Computer Name.
Figure 24. Log
From the Rational TestManager log (Figure 25), you can also view the Rational Functional Tester script and verification points by right-clicking to select the options from the drop-down menu.
Figure 25. View script and verification points
If either of these errors occur, you can resolve it easily yourself.
Playback monitor is not appearing in the client machine but log shows script pass.
Solution:
Make sure that JRE is properly enabled for Rational TestManager and Rational Functional Tester.
RTagentd: fatal system initialization error: [5.3.8.43] server: bind error (10048), Invalid argument (shown in Figure 26).
Figure 26. Test Agent error notice
Solution:
- Select Run and start services.msc.
- Check the status of the IBM Rational Test Agent Service.
- Stop the IBM Rational Test Agent Service.
- From the Start menu, start IBM Rational Test Agent.
- Restart the Test Agent Service.
Learn
- Visit the Rational Functional Tester area on developerWorks for introductory to in-depth information. For detailed instructions, check the Introduction to IBM Rational Functional Tester 8.2.01 Information Center.
- You'll find the instructions for Rational Functional Tester scripts and Rational TestManager helpful, too. See the next section for TestManager download and installation instructions.
- Check the Rational Quality Manager page on IBM® developerWorks® for links to product documentation, articles, tutorials, courses, downloads, and other useful areas. Also, explore the Rational Quality Manager Information Center for technical details and browse the IBM Quality Management page to learn more about what is available.
- Visit the Rational software area on developerWorks for technical resources and best practices for all Rational Software Delivery Platform products.
- Stay current with developerWorks technical events and webcasts focused on a variety of IBM products and IT industry topics.
- Attend a free developerWorks Live! briefing to get up-to-speed quickly on IBM products and tools, as well as IT industry trends.
- Watch developerWorks on-demand demos, ranging from product installation and setup demos for beginners to advanced functionality for experienced developers.
- Improve your skills. Check the Rational training and certification catalog, which includes many types of courses on a wide range of topics. You can take some of them anywhere, any time, and many of the "Getting Started" ones are free.
Get products and technologies
- Try Rational Functional Tester free (requires registration).
- Download IBM Rational TestManager Version 7.0.2.
- Download the free trial version of Rational Quality Manager.
- Evaluate IBM software in the way that suits you best: Download it for a trial, try it online, use it in a cloud environment, or spend a few hours in the SOA Sandbox learning how to implement service-oriented architecture efficiently.
Discuss
- Get involved in the developerWorks Functional and GUI Testing discussion forum where you can discuss and ask questions about Rational Functional Tester and general testing topics.
- Share your knowledge and help others who use Rational software by writing a developerWorks article. You'll get worldwide exposure, RSS syndication, a byline and a bio, and the benefit of professional editing and production on the developerWorks Rational website.
- Follow Rational software on Facebook and Twitter (@ibmrational), and add your comments and requests.
- Ask and answer questions and increase your expertise when you get involved in the Rational forums, cafés, and wikis.
- Connect with others who share your interests by joining the developerWorks community and responding to the developer-driven blogs.

Pragati Maheshwari, a B.E. (CSE) graduate, is a software engineer who works with the IBM Rational Functional Tester testing team in India. She joined IBM India Software Labs in September 2006 and has contributed to quality improvement in the testing tools. She has also worked on Rational Quality Management and Rational Team Concert software.




