Highlighted
Absent Member.
Absent Member.
163 views

Dynamically How to associate Usercode (C#) which is stored in QC in UFT API editor?

We would like to develop of couple of common methods in c# and would like to use in UFT API editor. Could you please let me know how to associate c# file into Usercode folder of the API test script dynamically using code.

 

Thanks,

Jay

Tags (1)
0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi there,

Currently, there is no built-in option for this. Since C# is compiled language, having a shared .cs code file through multiple tests will be kind of cumbersome because this means that if you want all tests that are using such code, to use the latest version of it, you'll need to recompile all of them.

In my opinion, it would be easier to build a .dll with all your shared methods/functions and place it in a shared location (or even deploy it into the GAC of each of your client machines) that you can reference from your API tests solutions.

Regards,

Alvaro.

Absent Member.
Absent Member.

Yes that is one of the option I thought. It would be good if we atleast assosicate dll during run time. Is there any option for that without deploying into 50 machines in our environment.

0 Likes
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.