Testing with Rational® ClearCase®
As you develop your HCL OneTest™ UI test scripts and the supporting files that accompany those scripts, you can use Rational® ClearCase® as your software configuration management system to maintain an auditable and repeatable history of your organization's test assets.
Using Rational® ClearCase® allows you to share projects, scripts, script templates, test datasets, and object maps across the testing team. You can manage changes in test assets stored in the HCL OneTest™ UI project and in software system development from requirements to release.
HCL OneTest™ UI works with Rational® ClearCase®. Rational® ClearCase® must be purchased separately. You must install Rational® ClearCase® to use the HCL OneTest™ UI Rational® ClearCase® integration.
If you are using a version of Rational® ClearCase® earlier than this version, you must update the Rational® ClearCase® type managers to recognize HCL OneTest™ UI test object map files on Windows® systems.
HCL OneTest™ UI works in a Rational® ClearCase® view enabled for Unified Change Management (UCM) if the view was created as part of a single-stream UCM project. HCL OneTest™ UI does not work in views that are part of multistream UCM projects.
Here is a scenario of how to use HCL OneTest™ UI and Rational® ClearCase® to manage test assets:
- Check out a test script in HCL OneTest™ UI. Rational® ClearCase® checks out the script and all supporting HCL OneTest™ UI files if you check them out from HCL OneTest™ UI.
- Edit a checked out copy of the script or any of the supporting files using HCL OneTest™ UI.
- Check in a test script in HCL OneTest™ UI to create a new version of the script. Rational® ClearCase® stores the version permanently in the VOB and checks in all supporting HCL OneTest™ UI files.
HCL OneTest™ UI, Eclipse Integration, compiles the project when an element changes. If you are using a dynamic view, automatic compilation can be time consuming, depending on the size of the project. To disable this feature, click and clear the Perform build automatically on resource modification check box. HCL OneTest™ UI, Microsoft Visual Studio .NET Integration, does not automatically compile the project when an element changes.
You can use the HCL OneTest™ UI integration with Rational® ClearCase® to perform these tasks:
- Perform Rational® ClearCase® tasks from the Functional Test Projects view for HCL OneTest™ UI, Eclipse Integration or from the Solution Explorer for HCL OneTest™ UI, Microsoft Visual Studio .NET Integration.
- Create a HCL OneTest™ UI project and add it to source control from HCL OneTest™ UI.
- Add an existing HCL OneTest™ UI project to source control after you create it in a Rational® ClearCase® view.
- Add a HCL OneTest™ UI script to source control.
- Remove a HCL OneTest™ UI script from source control.
- Check out a HCL OneTest™ UI script from source control.
- Check in a HCL OneTest™ UI script
to create a new version of the script with changes.
A merge operation occurs during checkin if another user has checked in the same file. To merge is the process of combining the contents of two or more files into a single new file. The first user to check in the file creates a new version. The second user to check in the file is required to merge. If Rational® ClearCase® can manage combining the multiple edits to the file, the changes are merged into a new version of the file automatically. If the edits conflict or cannot be resolved, users must resolve the conflicts. Rational® ClearCase® starts the Diff Merge tool, in which you can view the differences and merge two or more files, if necessary.
- Restore the previous version of a script.
- Refresh the local, snapshot view with the most current copy of a script. This operation is necessary only with snapshot views.
- List all scripts and files checked out in the current view.
- Compare differences between the current script and its immediate predecessor.
- Manage the supporting files for each script easily when you add a script to source control, check in or check out a script, or get the latest version of a script, all the supporting HCL OneTest™ UI files for that script are managed.
- View a history of the changes made to a script.