Highlighted
PatrickD Contributor.
Contributor.
59 views

Truclient Global Function library support Stormrunner on premise LG

Jump to solution

I would love to see support for Global Function libraries in the Truclient protocol for on-premise loadgenerators. Either by supporting in a way it was designed for, allow the on-premise LG to use a Global Function library from a network share.

Another option might be even better is to add it to the "data files" section of Stormrunner in some way. Upload the Function library there and if Stormrunner detects a Global Function library is used in a script it will check if a file with that name exists in the data files section.

Is there any chance this will be added to Stormrunner? It will save a lot of maintenance time of local function libraries in scripts.

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: Truclient Global Function library support Stormrunner on premise LG

Jump to solution

And, regarding "local function libraries in scripts", you can use the 'Data Files' capability.

You can upload your local function libraries to SRL as data files and associate them with your TruClient scripts. When local function libraries referenced by your scripts need to updated, you can easily upload an updated data file.

During test execution, associated data files will be downloaded & extracted into script folder.

When compressing your local function libraries, dont't forget to keep the folder structure.

The compresed data file should have a folder named as "Libraries" which includes your local function libraries. For example:  funclibs.zip

──Libraries

   ---    mylib.xml
   ---    nagivation.xml

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

Re: Truclient Global Function library support Stormrunner on premise LG

Jump to solution

Hi Patrick,

If the global function library is accessible from your on-premise load generator machines, it should work.

Did you encounter some specific errors?

Assume that you have a TruClient script: "TC1". You imported a global function library "mylib" into the script to use some function defined in it. And, the 'mylib' itself is hosted on a shared network drive. For example: z:\perftests\funclibs\mylib.xml.

When running TC1 in SRL, test execution should run well if mylib.xml is accessible from the on-premise load generators.

Regards,

Wei Sun

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Truclient Global Function library support Stormrunner on premise LG

Jump to solution

And, regarding "local function libraries in scripts", you can use the 'Data Files' capability.

You can upload your local function libraries to SRL as data files and associate them with your TruClient scripts. When local function libraries referenced by your scripts need to updated, you can easily upload an updated data file.

During test execution, associated data files will be downloaded & extracted into script folder.

When compressing your local function libraries, dont't forget to keep the folder structure.

The compresed data file should have a folder named as "Libraries" which includes your local function libraries. For example:  funclibs.zip

──Libraries

   ---    mylib.xml
   ---    nagivation.xml

0 Likes
PatrickD Contributor.
Contributor.

Re: Truclient Global Function library support Stormrunner on premise LG

Jump to solution

Hi Bruce,

 

Thanks for your replies. I will be testing the local function libraries functionality as you described.

Regards,

Patrick

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.