Execute External Command not working correctly [message #891776] |
Mon, 25 June 2012 17:07  |
Eclipse User |
|
|
|
Hi,
I was trying to run simple perl file by using "ub_app_executeExternalCommand". My perl has the following usage:
copy_file.pl file
If copy_files is able to copy the file successfully, it will return 0. Otherwise, it will return -1.
The parameters I was using for my test case were the following:
COMMAND: "C:\\scripts\\copy_file.pl" "={DEFAULT_PATH}"
where DEFAULT_PATH=C:\\Training Programs\\myProg\\eclipse\\plugins\\log.txt
EXPECTED_EXIT_CODE: 0
BOOLEAN: true
TIMEOUT_IN_MILLISECS: 10000
When I ran my testcase, executeExternalCommand failed. According the properties on the Functional Test Execution, the Error Details of "ub_app_executeExternalCommand" says that the Actual Value is 1.
After trying to find an answer to my problem, I found that if I modify the name of "Training Programs" directory to "Training_Programs" and of course changing my DEFAULT_PATH variable, Jubula is able to successfully complete the test case.
So my question would be: Is Jubula able to distinguish spaces in paths or did I make a mistake in my first attempt?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04315 seconds