Toothless Respected Contributor.
Respected Contributor.

How to store run result into a variable in UFT API Test%3F

I'm using String concatenate standard activity to concat two strings and I want to store the result into a variable.


The above line prints the result of concatenation. But how can I store the above value into a variable so that I can reuse it if needed? ( I want to store it into a variable rather than into default file standard activity)


Tags (2)
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: How to store run result into a variable in UFT API Test%3F


Can you share more informaiton? What will be the porpuse of this variable?

The line of code you shared does not give us a lot of information, can you share the full code?

Maybe below information can help you https://admhelp.microfocus.com/uft/en/14.51/UFT_Help/Content/User_Guide/ref_API_events_GetVariableNames_method.htm


The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.