I am creating a script in LoadRunner desktop version (VuGen > Truclient). The script packs into ZIP and loads into LoadRunner Cloud to perform performance test. I also load needed text files used as attachments to forms. It loads them into Data Files.

My question is: how to change the path in the script to the file to download, those files in File Data that I also linked to this script used as attachments to the form?

(In a nutshell: I mean, a desktop version of the path alternative, as you know, starting with C:.........). Or another way that allows me to execute the script.

New contributor
Michał Wasilewski is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

The file is copied to the script directory during execution and you can retrieve the full path by executing TC.scriptDir/ + "fileName"

| improve this answer | |
  • 1
    Great this method works. Thank you for your help. – Michał Wasilewski 2 days ago
  • Please consider marking my answer as accepted and upvoting it. – Buzzy 2 days ago

Your Answer

Michał Wasilewski is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.