Spaces treated as delimiters in parameterized RUN commands
QA Run 4.7.4 appears to treat spaces as delimiters in parameterized RUN commands. Best way to illustrate this behavior is with a simple example:
Run ("ChildScript", "Hello World")
myVar = cmdline(2)
The result of running the parent script is a single message box with a main message of "Hello". The "World" portion is treated as an entirely different parameter, instead of the string being kept together. This is also replicable by passing predefined variables instead of literal strings.
FYI - This was reported to Compuware last week (11/21/01) and acknowledged as being replicable on their end. I'll post an update when I get some official resolution from them.
Re: Spaces treated as delimiters in parameterized RUN commands
Issue resolved. When passing parameters with the RUN command, strings with spaces must be encapsulated by both double and single quotes. The following snippet shows the correct syntax:
run("myChildScript", "'Hello World'")