Skip to content

dorin7bogdan/ADM-TFS-Extension

 
 

Repository files navigation

UFT One Azure DevOps extension

Enables you to run UFT One tests as a build in an Azure DevOps build process. This extension includes 6 tasks.

Table of contents

  1. Integration with UFT One
  2. Configuration
  3. Extension functionality
  4. Resources

Integration with UFT One

In a build step, run UFT One tests stored in the local file system or on an ALM server.
• When running test stored in the local file system, you can also run mobile tests. In addition, Parallel execution is available for mobile and web tests.
• When running tests from ALM Lab Management, you can also include a build step that prepares the test environment before running the tests.
After the build is complete, you can view comprehensive test results.

Configuration

Prerequisites

  • UFT One (version >=14.00)
  • Powershell (version >=5.1)
  • JRE installed (required only if use the "UFT One ALM Lab Environment Preparation" task)

Setup

  1. From Visual Studio Marketplace: Install the UFT One Azure DevOps extension for the relevant organization
  2. On our GitHub: Navigate to a specific release (latest: 24.2.0)
  3. From Azure DevOps: Navigate to agent pools and set up an agent (interactive or run as a service)
  4. On your agent machine:
    4.1. Download the resources provided by a specific release (UFT.zip & unpack.ps1)
    4.2. Run the unpack.ps1 script
For extension version >=2.0.0:
  1. From Azure Portal: Have available a Resource Group, a Storage Account and a Container (for storing report artifacts)
  2. On your agent machine: 6.1. Install [Azure Powershell] azure-powershell
    6.2. Connect to Azure Portal
    6.3. To access the artifacts (HTML report, archive or both), change the container's access level to blob

Extension Functionality

UFT One File System Run
  • When running tests, you can choose to upload the test result information generated by UFT One to an Azure Storage location. To support uploading UFT One test results to Azure Storage, perform the following steps:
    • Define the following pipeline variables:
      • RESOURCE GROUP - The name of the Resource Group
      • STORAGE_ACCOUNT - The name of the Storage Account you created for this purpose.
      • CONTAINER - The name of the Container
    • In the pipeline steps that runs your UFT One tests, specify that you want the UFT One results uploaded to storage and choose the artifacts to be uploaded
  • Use this task to run tests located in your file system by specifying the tests' names, folders that contain tests, or an MTBX file (code sample below).
<Mtbx>
    <Test name="Test-Name-11" path="Test-Path-1">
    </Test>
    <Test name="Test-Name-2" path="Test-Path-2">
    </Test>
</Mtbx>
  • More information is available here
UFT One ALM Run
  • Use this task to run tests located on an ALM server, to which you can connect using SSO or a username and password.
  • More information is available here
UFT One ALM Lab Management Run
  • Use this task to run ALM server-side functional test sets.
  • More information is available here
UFT One ALM Lab Environment Preparation
  • Use this task to assign values to AUT Environment Configurations located in ALM.
  • More information is available here
UFT One Parallel Test Run
  • Use this task to to trigger a parallel testing task to run GUI Web or GUI Mobile tests in parallel from Azure DevOps Server (formerly known as TFS).
  • More information is available here
Get Digital Lab Resources
  • Use this task to configure a task that retrieves device and application information from Digital Lab (formerly UFT Mobile).
  • More information is available here

Additional Resources

For assistance or more information on configuring and using this extension, please consult the following resources:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 64.6%
  • C# 31.0%
  • JavaScript 4.4%