What languages does UFT support for coding?
Question ID: 108048

I saw somewhere that UFT supports VBScript, JavaScript, Visual Basic and Visual C++, but when I try to code in anything other than VBScript, I get errors.

Marked as spam
Posted by (Questions: 386, Answers: 64)
Asked on December 27, 2017 8:19 pm
Answers (1)
Private answer

I'm not sure where you saw that UFT supports JavaScript, Visual Basic and Visual C++, but the UFT IDE for GUI tests only supports VBScript. See [this link][1] for info.

API Tests support custom code written in C#. See [this link][2] for more info.

The only way you would be able to use other languages in GUI tests would be to compile a .dll then reference the functions in the .dll [using the Extern.Declare method][3].

[1]: https://admhelp.microfocus.com/uft/en/latest/UFT_Help/Content/User_Guide/z_Ch_ProgTestDocsEditor.htm
[2]: https://admhelp.microfocus.com/uft/en/latest/UFT_Help/Content/User_Guide/task_new_activity_c.htm?Highlight=dll#hp-minitoc-item-4
[3]: https://admhelp.microfocus.com/uft/en/latest/UFT_Help/Subsystems/FunctionReference/Subsystems/OMRHelp/OMRHelp.htm#OV_Supp_Util/Utility_Extern.htm

Marked as spam
Posted by (Questions: 16, Answers: 807)
Answered on December 27, 2017 8:19 pm
That's good to know. We'll try the .dlls with Extern.Declare.
( at December 27, 2017 8:20 pm)

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top