Prepare for your Next Interview
This is a discussion on passing strings to Command line Arguments within the WinRunner forums, part of the Software Testing category; Hi, i am using winrunner to execute a TCL script. here i use the command "dos_system" for the same. Along with the file name to be executed i need to ...
|
|||
|
passing strings to Command line Arguments
Hi,
i am using winrunner to execute a TCL script. here i use the command "dos_system" for the same. Along with the file name to be executed i need to pass an argument to the TCL script (for eg: c:\abc.tcl xy). The issue lies when i need to pass a string with spaces. the variable or command i need to pass to the "dos_system" is as below : cmd= "tclsh "tclScript&" "&PublisherIP&" "&RemoteAccess&" "&RemotePassword&" ""\""&serviceName"\""; where tclscript,PublisherIP,RemoteAccess,RemotePassword and serviceName are variables. hence finally the value of "cmd" as below : (tclsh C:\\Test\\TclScripts\\checklog.tcl 10.77.28.17 root asdf \"Extended Manager\"") i need "Extended Manager" as a single string...when i pass the above thru command prompt it outputs the service name as "Extended" instead of "Extended Manager"... is there any workaround for this through winrunner. thanks in advace Ashwin |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| trouble running rational robot script via .bat/command line | Mandata | Rational Robot | 1 | 02-15-2008 07:38 AM |
| Is there any Limit in command line arguments | norman | Oracle | 1 | 10-15-2007 05:41 AM |
| Running QTP from command line | sanitha | QTP | 1 | 06-05-2007 03:34 PM |
| diff between parameter passing by reference and passing by value | nettyamraghu | Oracle Apps | 3 | 04-25-2007 05:33 AM |
| Oracle Command Line question | suji | Oracle | 1 | 01-03-2007 07:22 AM |