Highlighted
liorde Honored Contributor.
Honored Contributor.
257 views

Invoke vbs file with parameters, from UFT

Hello friends.
Is it possible to invoke a VBS file that has to recieve a parameter ?

Example : 
\\drppw-apdirect\QC_REP\qc\CRM_4\CRM_Phase2\tests\Automation\Users_Project\Designer\file_monitor.vbs \\drppw-apdirect\QC_REP\qc\CRM_4\CRM_Phase2\tests\Automation\Users_Project\Designer\LogFile_Compare_12_06_2018.txt
This is the path I use in the Start->Run edit box. This is how it works. How would I invoke this via UDT please?


Thank-you.

 

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

Re: Invoke vbs file with parameters, from UFT

Hello,

I think that to complete this task, you should use ExecuteFile or LoadFunctionLibrary Methods, however i'm not sure is those methods will work with parameters.

Regards,

0 Likes
liorde Honored Contributor.
Honored Contributor.

Re: Invoke vbs file with parameters, from UFT

Thank-you  Joaquin_FT

I will check it out.

 

0 Likes
Knowledge Partner
Knowledge Partner

Re: Invoke vbs file with parameters, from UFT

You can pass parameters to a vbs file when you execute it via the command line using cscript.exe

Mark Smith.

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.