Rational® Functional Tester V6.1 Rational® Functional Tester V6.1 Overview and Preparing to test This presentation will provide an overview of scripting with Rational Functional Tester version 6.1 and will describe the steps necessary to prepare for testing. Agenda Agenda Course Content Source code Organization Test Objects About Functional Test Scripts User-action commands in the Functional Test script Verification point commands in the Functional Test script Script Assets Verification Point in detail Command line Recording and playback Enablement of applications Java™ class loading Miscellaneous - Starting Applications Under Functional Test, Exception handling, Logging, Datapools, CallScript The agenda is to cover the primary topics related to testing in the order listed here. Functional Tester Components and Process Boundaries Functional Tester Components and Process Boundaries Rational_ft servers RtxIvSys.dll rational_ft.jar Inspector Config/Enabler GUI Recorder VP Editor/Comparator Object Map Editor VS.Net RtxIvSys.dll Rtxftnet.dll Ebony package Eclipse RtxIvSys.dll rational_ft.jar Ivory package Java scripts RtxIvSys.dll Rational_ft.jar VB.Net scripts RtxIvSys.dll Rtxftnet.dll Rational_ft.exe Netscape/Mozilla RtxIvSys.dll Rational_ft.jar RtxNSDomainXX.dll RtxNSEnabler.dll Internet Explorer RtxIvSys.dll Rational_ft.jar RtxIEDomain.dll RtxIEEnabler.dll Java RtxIvSys.dll Rational_ft.jar Rtxivboot.dll Rational_ft_bootstrap.jar Net/Win/ActiveX RtxIvSys.dll Rtxftnet.dll Netscape4 RtxIvSys.dll Rational_ft.jar RtxNS4Domain.dll Rational Functional Tester components and process boundaries are separated in this diagram to show functional groupings of components. Components in red show basic functions and Graphical User Interfaces, components in blue show VB.NET processes, and components in green show HTML browser and native Windows® processes. Essentials of IBM Rational Functional TesterModule 1: Preparing to Test Essentials of IBM Rational Functional Tester Module 1: Preparing to Test This module will provide an overview of the steps necessary in order to prepare your test using Rational Functional Tester version 6.1. Module 1 Module 1 Objectives: Preparing to Test. The following topics are covered in this module: Introducing IBM Rational Functional Tester, VB.NET Scripting user interface Opening and creating Rational Test projects Configuring applications for testing Enabling environments for testing Upon completion of this module, you will be able to: Identify the main elements of the IBM Functional Tester user interface Prepare to test by Opening an existing or creating a new Functional Test project Configuring your applications for testing Enabling your environments for testing Access IBM Functional Tester Help The objective of this module is to describe the steps necessary in preparing to test. This module will introduce you to the VB.NET scripting user interface, opening and creating Rational test projects, configuring applications for testing, and enabling environments. Starting IBM Rational Functional Tester Starting IBM Rational Functional Tester To start IBM Rational Functional Tester, click: Start > Programs > IBM Rational Software Development Platform > Functional Tester 6.1 > VB.NET Scripting IBM Rational Functional Tester opens to the Start Page. From the Rational Functional Tester start page, you will be able to start a test by following the steps above. Note the different windows and resources available to you on the start page: Projects, Online Resources, My Profiles, Dynamic Help, and others. Preparing to test Preparing to test Once you have opened IBM Rational Functional Tester, you can prepare to test. You can: Open an existing project or create a new Functional Test project Configure your applications for testing Enable your environments for testing After opening IBM Rational Functional Tester, you can open an existing project or create a new Functional Test project, configure your applications for testing, and enable your environments for testing. The functional test project The Test Project stores Functional Tester application test assets, including: Scripts Object maps Verification point baseline files Script templates Datapools The functional test project A Functional Test project is a collection of related test assets, including scripts, object maps, verification point baseline files, script templates, and test datapools. You must create a Functional Test project before you can record scripts. Test logs are stored in the same folder as the project folder, in a separate logs folder. Opening a functional test project Opening a functional test project To open an existing Functional Test project from the Start screen, you can click on its name the list of existing projects. Or, you can click Open Project to browse for an existing project. Projects have a .sln extension To open an existing Functional Test project from the Start screen, click on the name of the project from the list of existing projects. Alternatively, you can click Open Project to browse for an existing project. Functional Tester user interface Functional Tester user interface When a project is open, the Solution Explorer displays the contents of the project. Properties of the project display in the Properties window. Functional Tester toolbars display. Project Test Logs Test Scripts When a project is open, the Solution Explorer displays the contents of the project. Properties of the project display in the Properties window. Functional Tester toolbars display. The project, test logs, and test scripts are highlighted here. Opening an existing test script Opening an existing test script Solution Explorer Script Explorer Test Datapool Script Editor Functional Test Toolbar Familiarize yourself with the Rational Functional Tester application. The toolbar, script explorers, test datapools, and other features are highlighted above. Opening an existing test log Opening an existing test log This window displays the playback result of the script. Rational Functional Tester will indicate failures, warnings, and other important information and status here. Creating a new Functional Test Project Creating a new Functional Test Project To create a new project: on the Start page click Open Project Provide name, location After creation: project name is on the Existing Project list contents display in the Solution Explorer To create a new project, on the Start page click Open Project. Type in a Name for the Project and Browse for a Location. Once a project is created, the project name appears on the Existing Project list and the contents are displayed in the Solution Explorer. Configuring applications for test Configuring applications for test Before you can test, you must specify which applications you want to test. Click Configure > Configure Applications for Testing You will be prompted to choose whether the application is Java, HTML, or an executable or batch file. Then you will be prompted to Browse for the application. Before you can test, you must specify which applications you want to test. This configuration allows you to set certain application settings so they can be invoked from the script directly without opening the application itself. The name entered for the application here must match the name in the script when invoking the application. You will be prompted to choose whether the application is Java, HTML, an executable file, or a batch file. Then you will be prompted to Browse for the application. Enable environments for testing Enable environments for testing You may need to enable environments for testing. If necessary, enable: Web Browsers -- provides name, path, and other information needed to access and use your browsers. By default, Internet Explorer is enabled. Java Environments – provides path, run, and compile commands needed to access and use your JREs. Functional Tester enables a default JRE. Eclipse Platforms – enables various Eclipse environments for testing “automatically” Enabling environments for testing allows you to enable HTML browsers, Java environments, and Eclipse platforms in the Rational Functional Tester tests. Enable environments for testing (cont.) Enable environments for testing (cont.) To enable additional environments, click Configure > Enable Environments for Testing. Select the appropriate tab. Add environments to the list and then enable them. For example, this window allows you to enable a Java environment for your test. To enable additional environments, follow the steps listed here, or consult the dynamic help for more information. Trademarks