TestModeller.io - MicroFocus UFT Tutorial

Welcome to the TestModeller.io Microfocus UFT tutorial !

In this tutorial we'll be covering how to get started with TestModeller.io for MicroFocus UFT.

This is aimed for first-time users along with users who have an existing MicroFocus UFT automation framework using the UFT object repository.

1. How it works

TestModeller.io is a browser-based solution that enables users to:

  • Model a system under test as BPMN-style flowcharts.
  • Automatically generate test cases from the model, optimising testing for time and risk.
  • Define test data at the model-level and generate data at the same time as test cases.
  • Define test automation, automatically executing tests generated in The VIP Test Modeller.
  • Analyse test results and manage existing artefacts, with visual dashboards and a file management system that introduces traceability between test assets.

This quick start guide provides an overview for new users to get started with creating automation for a UFT based automation framework to quickly start creating models and associated automation.

For MicroFocus UFT this means creating models which automatically generate visual basic code which can be directly plugged into your UFT framework.

TestModeller.io a modelling tool which creates the perfect set of tests into a wide array of test case management systems, and automation frameworks. Along with overlaying the right test data to support your testing.

This section is by no means comprehensive and intended as a quick start guide. If you wish to learn more about modelling we recommend you review our knowledge base along with our video tutorials for a comprehensive guide to creating models and test automation.

The goal is to equip the reader with the working knowledge needed to get started with creating UFT test automation to test their own systems and integrate into their own automation frameworks. With TestModeller.io, this means automatically generating complete automated test suites from models that are quick to build and easy to maintain.

2. Prerequisites

Install Prerequisites

Here we'll be installing all the prerequisites you need to get started with test automation in UFT through TestModeller.io.

  1. Create a free TestModeller.io account
  2. A valid installation of MicroFocus UFT One
  3. If you have an existing UFT automation framework which you want to integrate it must be using the object repository to track UI elements.
  4. You can download the object repository we use in this tutorial from here.
3. Import object repository

Import UFT Object Repository

Here we'll be importing your UFT object repository for consumption in TestModeller.io.

4. Build a model

Build a Model

Start creating an automation model of the system under test.

If you'd like to learn more about building models we recommend reviewing our knowledge base articles on creating models here.
5. Generate UFT automation scripts

Generate Automation

Generate associated VB scripts for your model.

Generate Coverage Focused Tests

Test cases are equivalent to paths through the model of a system under test. They are generated automatically from a model, with or without test data and test automation associated with them. Coverage techniques are also available to generate the smallest set of test cases needed to test given features with a required level of rigour.

  1. To generate test cases, navigate to the Generate tab of the menu and click “Generate”
  2. TestModeller.io will provide status updates as the tests are generated.
  3. To browse the generated tests, click “Tests” in the Generate tab of the menu. This will open the Test Cases side bar, displaying any created tests.
  4. Clicking on a test will highlight the path through a model’s logic which that test reflects.
Test Coverage

The tests generated by TestModeller.io are the optimal set of tests to maximise coverage across the model. You can learn more about test coverage and how to edit coverage settings within TestModeller.io at our knowledge base here.

Export Test Automation Code

Once you have created a model with overlaid automation, and a test suite containing associated paths, you are ready to create automation scripts for the framework being consumed, in this case visual basic code to be integrated into your UFT project.

  1. Click the execute button in the test path side bar.
  2. Select the automation server you have configured. If you are using our Partner or Cloud workspace you can use our 'Community Server' which is already configured for your workspace.
    Note: The community server is a shared instance and may get busy at peak times. You may want to create your own automation server for a faster experience. Documentation is available here for creating your own server.
  3. Select the job 'Create Tests' from the dialog window.
  4. Select the code template to use. In this case we will use 'UFT'.
  5. Once the job is complete there will be an option to download 'Result.zip'. This contains associated data spreadsheets, log files and most importantly the generated automation code.
6. Execute tests

Executing Tests

Now you've generated your visual basic automation scripts for UFT, let's import them into UFT and run them.

7. Create custom code snippets (Advanced)

Create Custom Code Snippets

TestModeller.io is built with flexibility in mind. You'll often want to embed your own custom code or make calls to external libraries in your UFT scripts. To facilitate that you can customise and create your own code snippet actions which can be overlaid on the model.