UFT API How to Save a QC/ALM Resource using OTA
In a previous post I showed you how to download a QC resource from QTP. Since then I’ve gotten a few request for how to do the same with HP’s Service Test 11.20. Unlike QTP — Service Test does not have an activity like QCUtility that allow you to tap into OTA. But like QTP you can call the OTA API directly. The only difference between the two is that QTP uses VBScript and the ST uses C#. (FYI this functionality is now available in the latest version of UFT API)
How to configure UFT API to use OTA
The first thing you need to do to get OTA to work with ST is to add a reference to it in your script.
- In ST click on the Test>Add Reference menu option
- In the Add Reference Dialog click on the COM tab
-
Find and click on ‘OTA COM Type Library’ then click on the Select and OK buttons

OTA Code to Download a QC Resource
Once you have a reference to OTA in your script the next step is to write some custom code.
- In Service Test under the Toolbox/Miscellaneous folder grab a Custom Code activity and drag it onto the main canvas area.
- Click on the Custom Code activity and under its property sheet click on the events icon
- For the Event ExecuteEvent select “Create a default handler..”
- Under your CodeActivity#_OnExecuteEvent add the following code
- When you run your script, the resource file should download to your local directory
Joe Colantonio is the founder of TestGuild, an industry-leading platform for automation testing and software testing tools. With over 25 years of hands-on experience, he has worked with top enterprise companies, helped develop early test automation tools and frameworks, and runs the largest online automation testing conference, Automation Guild.
Joe is also the author of Automation Awesomeness: 260 Actionable Affirmations To Improve Your QA & Automation Testing Skills and the host of the TestGuild podcast, which he has released weekly since 2014, making it the longest-running podcast dedicated to automation testing. Over the years, he has interviewed top thought leaders in DevOps, AI-driven test automation, and software quality, shaping the conversation in the industry.
With a reach of over 400,000 across his YouTube channel, LinkedIn, email list, and other social channels, Joe’s insights impact thousands of testers and engineers worldwide.
He has worked with some of the top companies in software testing and automation, including Tricentis, Keysight, Applitools, and BrowserStack, as sponsors and partners, helping them connect with the right audience in the automation testing space.
Follow him on LinkedIn or check out more at TestGuild.com.
Related Posts
If you’re still writing Playwright scripts by hand in 2026, you’re solving yesterday’s problem. I talked to Karim Jouini, CEO […]
The Bottom Line for 2026: After 25+ years in QA and interviewing over 580 automation experts on the TestGuild podcast, […]
Mailinator How to Test Email and SMS Workflows (Product Spotlight) Mailinator is a disposable inbox platform built for developers and […]
Look, I’ve been doing test automation for over 25 years. I’ve heard the predictions. “Manual testing is dead.” “AI will […]



