Skip to main content

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba

Hi

Rumba scripts can be launched from a command line, the executable is vsp.exe which is located in "\\System\\ScriptEngine" folder the Rumba application folder.

Here is a copy of the help of the various parameters:

   Command Line Options

   The Script Player command line options are as follows.

   Syntax : VSP.exe [-n -d -p -v -e -s -i] [filename.csf]

   Option

    Description

   -n

    Opens the RUMBA Script Player in a normal window size. If the option is omitted,

    the RUMBA Script Player is opened minimized

   -d

     Opens the RUMBA Script Player in Debug mode. The RUMBA Script Player's window

     will be in normal size. If a 'filename.csf' is specified, it will be executed

   -p

     Opens the RUMBA Script Player in Animate mode. The RUMBA Script Player's window

     will be in normal size. If a 'filename.csf' is specified, it will be executed

    -v

     Variable predefinition

    -e

     Sets the active emulation (can be:Telnet, 3270, 5250)

    -s

     Sets the active session

    -i

     Sets the active InstanceName. When using long instance names, include the name within quotes (").

So for example if you have a macro with the following

   Sub Main

    Msgbox MyParameters

   End Sub

then you can pass your parameters at launch time using

8

   -vMyParameterers="Hello;World"

between the vsp.exe and the patch and macro filename

e.g.

C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -vMyParameters="HellWorld;Tom" C:\\temp\\MyScript.csf

U8sing the above you can pass strings and numbers in one string parameter and parse that string casting the Int or Lng number or using multiple comma separated variable names and assignments after the -v option.

e.g.

-vMyString="Hello",MyInt=5

Note: I have not tested the other documented parameters, but the -v one works. Should you encounter an issue with one of the other parameters, please contact support and have a service incident raised.

Hope that helps,

Tom


Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba

Hi

Rumba scripts can be launched from a command line, the executable is vsp.exe which is located in "\\System\\ScriptEngine" folder the Rumba application folder.

Here is a copy of the help of the various parameters:

   Command Line Options

   The Script Player command line options are as follows.

   Syntax : VSP.exe [-n -d -p -v -e -s -i] [filename.csf]

   Option

    Description

   -n

    Opens the RUMBA Script Player in a normal window size. If the option is omitted,

    the RUMBA Script Player is opened minimized

   -d

     Opens the RUMBA Script Player in Debug mode. The RUMBA Script Player's window

     will be in normal size. If a 'filename.csf' is specified, it will be executed

   -p

     Opens the RUMBA Script Player in Animate mode. The RUMBA Script Player's window

     will be in normal size. If a 'filename.csf' is specified, it will be executed

    -v

     Variable predefinition

    -e

     Sets the active emulation (can be:Telnet, 3270, 5250)

    -s

     Sets the active session

    -i

     Sets the active InstanceName. When using long instance names, include the name within quotes (").

So for example if you have a macro with the following

   Sub Main

    Msgbox MyParameters

   End Sub

then you can pass your parameters at launch time using

8

   -vMyParameterers="Hello;World"

between the vsp.exe and the patch and macro filename

e.g.

C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -vMyParameters="HellWorld;Tom" C:\\temp\\MyScript.csf

U8sing the above you can pass strings and numbers in one string parameter and parse that string casting the Int or Lng number or using multiple comma separated variable names and assignments after the -v option.

e.g.

-vMyString="Hello",MyInt=5

Note: I have not tested the other documented parameters, but the -v one works. Should you encounter an issue with one of the other parameters, please contact support and have a service incident raised.

Hope that helps,

Tom


Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba

Hi

Rumba scripts can be launched from a command line, the executable is vsp.exe which is located in "\\System\\ScriptEngine" folder the Rumba application folder.

Here is a copy of the help of the various parameters:

   Command Line Options

   The Script Player command line options are as follows.

   Syntax : VSP.exe [-n -d -p -v -e -s -i] [filename.csf]

   Option

    Description

   -n

    Opens the RUMBA Script Player in a normal window size. If the option is omitted,

    the RUMBA Script Player is opened minimized

   -d

     Opens the RUMBA Script Player in Debug mode. The RUMBA Script Player's window

     will be in normal size. If a 'filename.csf' is specified, it will be executed

   -p

     Opens the RUMBA Script Player in Animate mode. The RUMBA Script Player's window

     will be in normal size. If a 'filename.csf' is specified, it will be executed

    -v

     Variable predefinition

    -e

     Sets the active emulation (can be:Telnet, 3270, 5250)

    -s

     Sets the active session

    -i

     Sets the active InstanceName. When using long instance names, include the name within quotes (").

So for example if you have a macro with the following

   Sub Main

    Msgbox MyParameters

   End Sub

then you can pass your parameters at launch time using

8

   -vMyParameterers="Hello;World"

between the vsp.exe and the patch and macro filename

e.g.

C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -vMyParameters="HellWorld;Tom" C:\\temp\\MyScript.csf

U8sing the above you can pass strings and numbers in one string parameter and parse that string casting the Int or Lng number or using multiple comma separated variable names and assignments after the -v option.

e.g.

-vMyString="Hello",MyInt=5

Note: I have not tested the other documented parameters, but the -v one works. Should you encounter an issue with one of the other parameters, please contact support and have a service incident raised.

Hope that helps,

Tom


Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hello Tom,

I tried using what you wrote above in the cmd

C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine>vsp.exe -d C:\\Users\\DIRSORA\\Desktop\\OP og Edop 1.16 kun intg.csf

however i keep getting the same message: " C.\\program was not recognized as an internal or external command, program or a batchfile.

do you have any thoughts about why this is happening?

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi besafe

try the following, don't forget the double quotes on the path to launch vsp.exe

"C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine\\vsp.exe" C:\\Users\\DIRSORA\\Desktop\\OP og Edop 1.16 kun intg.csf

Note I'm assuming the name of your script is

OP og Edop 1.16 kun intg.csf

Regards,
Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi besafe

try the following, don't forget the double quotes on the path to launch vsp.exe

"C:\\Program Files (x86)\\Micro Focus\\RUMBA\\system\\ScriptEngine\\vsp.exe" C:\\Users\\DIRSORA\\Desktop\\OP og Edop 1.16 kun intg.csf

Note I'm assuming the name of your script is

OP og Edop 1.16 kun intg.csf

Regards,
Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Greetings Tom,
Would you be kind to help how to extract the arguments that are passed in with -v and use them in the script?

If I pass in -vMyString="Test" I am unable to access it.
I added Dim MyString As String to create it, but the -v option does not seem to set it.

Thanks

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi Owen,

I just tested again, and it looks like adding the Dim on the parameter name (MyString) is what is causing your problem. Remove the Dim statement and try again. I have a feeling that Dim statement is re-initialising the variable and overwriting what you are passing in.

Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi Owen,

I just tested again, and it looks like adding the Dim on the parameter name (MyString) is what is causing your problem. Remove the Dim statement and try again. I have a feeling that Dim statement is re-initialising the variable and overwriting what you are passing in.

Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi Owen,

I just tested again, and it looks like adding the Dim on the parameter name (MyString) is what is causing your problem. Remove the Dim statement and try again. I have a feeling that Dim statement is re-initialising the variable and overwriting what you are passing in.

Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Thanks, having the Dim was over writing it. What gets returned is the int 0
FileAppend MyString & " CLI STUFF"
Output file has the following - 0 CLI STUFF

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Thanks, having the Dim was over writing it. What gets returned is the int 0
FileAppend MyString & " CLI STUFF"
Output file has the following - 0 CLI STUFF

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba

This is the code:

Sub Main
    DlgStart
    DlgItemType VarType(MyString) & MyString
    DlgItemAsk "Confirm Policy number :" , MyString,1, 9
    DlgInquire
    DlgGetItemValue 1 , MyString
    DlgEnd
End Sub

 

.\\vsp.exe  -vMyString="Test" C:\\Source\\Proto.CSF

This returns the following:

3 for the Var type and 0 as the result. So for some reason, it is thinking MyString is a long variable.


Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Thanks for helping me with the Dim, that was killing me at first. I figured out the rest!

Running vsp.exe from power shell seems to convert all -v options to Long variables. When you running it from cmd, everything works fine.

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Thanks for helping me with the Dim, that was killing me at first. I figured out the rest!

Running vsp.exe from power shell seems to convert all -v options to Long variables. When you running it from cmd, everything works fine.

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Thanks for helping me with the Dim, that was killing me at first. I figured out the rest!

Running vsp.exe from power shell seems to convert all -v options to Long variables. When you running it from cmd, everything works fine.

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi Owen,

interesting that Power Shell is doing a number on the-v parameter, I guess you should maybe try running the command in a batch file if you need to execute from Power Shell.

Thanks for pointing this out, I'm certain it will save other some head scratching down the line.

Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
Hi Owen,

interesting that Power Shell is doing a number on the-v parameter, I guess you should maybe try running the command in a batch file if you need to execute from Power Shell.

Thanks for pointing this out, I'm certain it will save other some head scratching down the line.

Tom

Can anyone please guide me how to run a rumba script from cmd line or a batch file,and how to pass arguments to the script using these methods


#Rumba
I am using RedwoodHQ, an automation Framework, to drive this testing. I am able to execute them using cmd without issues from Redwood. I already integrated my tests to confirm this. Just odd that powershell would cause grief.
Thanks again!