Create Build Plan with Unified Functional Testing
UFT Task for is plugin for Atlassian Bamboo CI plugin to integrate HP Unified Functional Testing (UFT) execution from Bamboo. It runs HP UFT tests, parses result in Bamboo and links tests with JIRA issues.
What it does:
- Trigger hp UFT Tests / Test Frameworks
- Parse UFT Test results
- Create test results in bamboo
- Create test result summary in bamboo
- Attach results summary artifacts
- Create JIRA bug for failed tests
- Create test result links to JIRA issues
- Add run comments to JIRA issues
- Add test execution duration to JIRA Issue in custom field
- Add labels passed / failed to JIRA issues
To include HP UFT in continous integration setup you need to :
1. Store your UFT Frameworks or tests in source code repository
2. Create Bamboo plan to checkout the tests and execute them
How to create plan in Bamboo to run UFT tests stored in source code repository:
You need two tasks:
- Add source checkout task to checkout your UFT test scripts from source code repository
- Add UFT Task
- Provide driver script path ( relative to checkout folder)
- Cscript.exe path on agent
- Check option to generate results to generate reports in selected path
- Select UFT version
- Select JIRA options
For example:
I have checked in my UFT test to bitbucket. My test name is "DEMO-1 Test login"
[ Example ]
Create New Plan:
- Select project
- Provide Plan Name
- Provide Plan Description
- Select Source Code Repository [ I will select Bitbucket as i have checked in my test to bitbucke
- Click on Configure Plan
- Provide repository details and choose repository with UFT test
- Click on Configure Plan
- You will find source checkout task already added as below
This task will download fresh copy of UFT test from source repository to the execution machine (Agent) whenever build is triggered.Nest step is to configure UFT Task to execute the downloaded test and link the generated results with JIRA
- Click on Add Task
- Select UFT Task from Task List
- Provide task description
- Provide test name as per test / master script in source repository.
- Select "Run UFT Script / Framework" checkbox to execute the scripts.
NOTE: You may add Command task or HP task to run the UFT scripts. Just uncheck the checkbox "Run UFT Script / Framework" and the plugin will not run the UFT tests. You must add execution task above this task. Any UFT results generated will still be parsed by this plugin.
- Provide Script.exe path as per your execution machine (Agent). Usually it is "C:\Windows\SysWOW64\Cscript.exe" for 64 bit machine. SysWOW64 is 64 bit related folder.
- Leave checkbox to specify result folder as unchecked. Check it only when you need results in specified folder
- Select UFT result version.
UFT Task as Test Runner and Parser:
- Select options to perform action in JIRA for UFT test results. UFT test case much have JIRA issue id separated by space. I my case DEMO-1 is JIRA issue id.
- Click on save
- Select checkbox to enable plan
ACN 612 521 301 ABN 96612521301 All rights reserved.