Support for function libraries in LRC test scripts?

Idea ID 2767237

Support for function libraries in LRC test scripts?

0 Votes

This requirement was mentioned to me by a prospect who is considering moving to LRC from on-premise LoadRunner.

They make extensive use of global function libraries in their VuGen scripts, and these are maintained centrally on a sharepoint that is accessible to all LGs at runtime.

There is a concern that moving to LRC would mean having to include the global function libraries as local ones in each test script that is uploaded to LRC. This would lose the benefit of having global libraries - if one function has to change, you would have to revisit each LRC test asset that makes use of it.

Do we have a suggestion for this, or is it an enhancement that could be considered for LRC? 

 

Tags (2)
4 Comments
Micro Focus Expert
Micro Focus Expert

Hi Ray,

The 'Data Files' capability is a good fit.

Data file is very useful to manage common header/implementation files or parameter files. https://admhelp.microfocus.com/srl/en/2020.02/Content/Storm/Data-Files.htm

Basically, data file associated with script will be extracted into the script folder at runtime. 

Regards,

Wei Sun

 

Micro Focus Expert
Micro Focus Expert

That's great, thanks @sunbruce ! I had missed that.

Just a suggestion, it might be good to add some use case examples to the online help, as "Data Files" could be mistaken for just meaning test data only?

A couple of questions:

a) is any change required to the test scripts? For example, in Web HTTP, is it enough to just have #include <globalfuncs>.h in the test script, where <globalfuncs.h> is one of the files included in the zipped datafile associated with the test?

b) is this restricted to certain types of test scripts, or can function libraries for Gatling, JMeter scripts etc be referenced the same way?

Thanks!
Ray

Micro Focus Expert
Micro Focus Expert

Hi Ray,

For the 'globalfuncs.h' example, yes. No specific change is required in script. Data file will be extracted into script folder.

All test scripts (including JMeter, Gatling) in LRC support the capability. 

Regards,

Wei Sun

 

Micro Focus Expert
Micro Focus Expert
Status changed to: Already Offered
 
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.