Geeks Talk

Prepare for your Next Interview




passing strings to Command line Arguments

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


Go Back   Geeks Talk > Software Testing > WinRunner

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-16-2008
Junior Member
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ashwin anand is on a distinguished road
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
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Software Testing > WinRunner


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 03:08 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved