Highlighted
Honored Contributor.
Honored Contributor.
1061 views

File Upload in SAP GUI Protocol

Hello,

I have sceanrio where i need to upload the file. I have added the file path and i have uploaded the files to same path in all loadgenerator which i am using for testin. Everything is working fine, no issue.

But my questions, how can i upload the file directly to script? I have done this in the past, but unable to recall the function which is used to browse and upload the files directly to script.

 

Please advise.

0 Likes
3 Replies
Highlighted
Super Contributor.
Super Contributor.

Re: File Upload in SAP GUI Protocol

Is what you are looking for Right-clicking the Extra Files in VUGen (left-side) > Add Files, perhaps?

HP Support

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: File Upload in SAP GUI Protocol

Hello,

In my script, sapgui_set_text is recorded as below.  With below code, i need to place the file in specific folder on LG as mentioned below

    sapgui_set_text("P_XFILE","C:\\\\Users\\\\perftest\\\Desktop\\\\{p_FileName}","usr/ctxtP_XFILE");

But how can i add the files directlty to the script? Which function should i use?

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: File Upload in SAP GUI Protocol

Any suggestion?

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.