Menu

Running external commands from setup

sean
2005-09-21
2013-04-25
  • sean

    sean - 2005-09-21

    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.

     
    • Sujit Pal

      Sujit Pal - 2005-12-17

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.