External sql command executed without effect [message #1180838] |
Mon, 11 November 2013 02:30  |
Eclipse User |
|
|
|
Hi,
I'm using a external command to clean up the database after changing values via GUI-Test. This is done by using 'ub_app_executeExternalCommand' with following parameters:
COMMAND [String]: "C:\\Coding\\Tools\\jisql-2.0.11\\update.cmd"
or COMMAND [String]: "C:\\Coding\\Tools\\jisql-2.0.11\\update.bat"
or COMMAND [String]: C:\\Coding\\Tools\\jisql-2.0.11\\update.cmd
or COMMAND [String]: C:\\Coding\\Tools\\jisql-2.0.11\\update.bat
EXPECTED_EXIT_CODE [Integer]: 1
LOCAL [Boolean]: true
TIMEOUT_IN_MILLISECS [Integer]: 10000
The script 'update.cmd':
java -classpath lib/jisql-2.0.11.jar;lib/jopt-simple-3.2.jar;lib/javacsv.jar;C:/Coding/Workspace/Deva2_Libs/ojdbc14.jar com.xigole.util.sql.Jisql -user franz -password hiho -driver oraclethin -cstring jdbc:oracle:thin:@myhost:1521:mysid -c ; -query "UPDATE VERSUCH.pre_achdat SET F_NUTZ=2,SUPPLIER_ID=2,POSIT=2 WHERE NUMMER=119;"
The script seems to be executed successfully via Jubula, since exit code = 1, but won't have any affect in the database. Observing the execution of the testscript doesn't show any popup of the command window, which is done when execting the cmd-file directly. Doing this, changes will be applied to the database pretty well.
OS: Windows 7 prof
DB: Oracle 11g 10.2.0.3.0
eclipse: Kepler 20130614-0229
Jubula PlugIns: Jubula Functional Testing 2.1.1.201309020759
Jubula Launch Support for Java / Swing 2.1.1.201309020759
I would be happy if someone would give me a hint to get this working.
|
|
|
|
|
Re: External sql command executed without effect [message #1198124 is a reply to message #1187683] |
Wed, 20 November 2013 01:47  |
Eclipse User |
|
|
|
Hi,
The local parameter is the LOCAL [Boolean]: true one. It specifies whether the command should be executed on the ITE machine or the agent machine - which in your case is the same one. I'm a bit stumped at the moment as to what the problem could be. Does the AUT require a restart after resetting the database perhaps?
Best regards,
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.03625 seconds