|Problems using executeExternalCommand [message #1265601]
||Thu, 06 March 2014 04:55
| Anders Forsell
Registered: July 2009
I want to automatically compare two Excel files to verify the output during regression testing.
1. I have created a TC which uses the "ub_appExecuteExternalCommand" . The TC takes two parameters "EXCEL_FILE_1 [String]" and "EXCEL_FILE_2 [String]".
2. The command that I specify for the ub_appExecuteExternalCommand is:
"D:/Program Files/ExcelCompare-0.3.1/bin/excel_cmp.cmd" "=EXCEL_FILE_1" "=EXCEL_FILE_2"
3. The expected exit code is set to 0
4. Then I run the TC with values:
EXCEL_FILE_1 = D:/test/A.xls
EXCEL_FILE_2 = D:/test/B.xls
=> Even though A.xls and B.xls differs the result is OK according to Jubula
If I run the command on the command-line and then check "echo %ERRORLEVEL%", it shows "1", i.e. the exit code is 1.
The only workaround for this is to include everything in the .cmd file and not use parameters to the execute external command, but that is not the solution we want.
Any idea how to solve this?
Powered by FUDForum
. Page generated in 0.01558 seconds