This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom Logging to a Data File Using Loadrunner cloud-based load generators

When using  an ON-PREMISE Controller with ON-PREMISE Load Generators, it is occasionally necessary to include some custom logging code in the Vugen script that writes some test application specific data to a data file that is usually stored on the local storage location on the load generator system, such as on the load generator's C drive. What is the recommended way of doing this type of custom logging to a data file when using the cloud-based load generator systems that are a part of the Loadrunner cloud environment?  Is there a way to have this custom logging data written to a SINGLE location no matter how many cloud-based load generators are running the same Vugen script?

  • 0  

    I suggest you look into the 'data files' option in LoadRunner Cloud, please check this page on the help center:  https://admhelp.microfocus.com/lrc/en/2022.06/Content/Storm/Data-Files.htm#mt-item-0

    Another option is to deploy VTS Server in an environment that is accessible for the Cloud LGs. 

    I suggest you explore the data files solution first.  

  • 0 in reply to   

    I understand the concept of providing data files to a script for parameter values. My question is really about generating custom log files based on information that the Vugen scripts capture DURING the load test. Therefore, these log files contain information that CANNOT be defined before the Vugen script is executed in the Loadrunner cloud.

    Since the Vugen scripts that create the custom log files may be different depending on which Load Generator the Vugen script is executing on, the question of HOW or IF these custom data files can be accessed AFTER the load test is finished is what I need to know.

    It may not even be possible  or feasible depending on what storage restrictions exist for any Vugen script on the cloud-based load generator system on which it is executed.

  • 0 in reply to 

    If the custom data can be incuded in Vuser log file, one option is to write them via lr_xxxxxx functions (for example: lr_output_message) and enable the "Collect Vuser logs from cloud-based load generators" option in load test. After test run, the Vuser log files can be downloaded from LRC. (each Vuser has a separare log file)