1

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.

1 Answer 1

1

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

2
  • 1
    Great this method works. Thank you for your help. Commented Jun 30, 2020 at 7:22
  • Please consider marking my answer as accepted and upvoting it.
    – Buzzy
    Commented Jun 30, 2020 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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