Yes, you can run external commands from within the setup tag using the include tag, which points to a file. In that file, you can either put regular SQL or shell scripts, something like this:
<setup>
...<include file="myscript.sql" />
</setup>
within the included file, you can put sql statements directly, or if you need to invoke a script, prefix the call with a ! char.
Take a look at the user guide for more details.
-sujit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to run external commands from the setup of a test suite?
I currently have scripts for creating and populating a database that I would like to call from within the setup of the test suite.
Hi Sean,
Yes, you can run external commands from within the setup tag using the include tag, which points to a file. In that file, you can either put regular SQL or shell scripts, something like this:
<setup>
...<include file="myscript.sql" />
</setup>
within the included file, you can put sql statements directly, or if you need to invoke a script, prefix the call with a ! char.
Take a look at the user guide for more details.
-sujit