Highlighted
Absent Member.
Absent Member.
155 views

How to script "uploading a file"

I have a step in the scripting where I upload an image file (.jpeg) to an web site, that image file is located on my hard drive (at 😧 drive).

The script runs without any error while running with VuGen locally. But I wanted to know what changes should I need to do before transferring the script to the Performance Center ? Performance Center doesn't have any "D:" drive concept.

Should I put that image file (.jpeg) at any special place or any other technique I need to follow for executing the script ?
0 Likes
3 Replies
Highlighted
Absent Member.
Absent Member.

Re: How to script "uploading a file"

You need to upload the file to the load generators that you will be using in test run and change the path accordingly.
Path local to that load generator.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to script "uploading a file"

You need to open your script and go to File > Add Files to Script in your Vugen. Now browse and select your file. Once the file is added, the name of the file will be reflected on the left pane of your Vugen and also the file will get added to your script folder. Once this is done, you simply have to specify the name of the file in your upload action like test.jpeg. You can remove the absolute path of the jpeg from your script as this method will access your script folder only.

When you do it in the above method, it helps you avoid the exercise of copying the files to your loadgenerators before each run etc. This way the file will be part of your script folder and hence will be travelling along with your script.

Hope this helps

Thanks
Prashanth T
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How to script "uploading a file"

Hi,

I don't have an answer for your Performance Center question but I am interested in the first part of your post.

I have been unable to script the file upload in VuGen. I tried a few protocols but have not been able to make it work.

Can you help?

Thanks.
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.