Search code examples
testingsshdb2fitnessedbfit

Execute External commands Fitnesse/DBFit from within a Test page


I would like to execute external commands in my test from Fitnesse/DBFit from within a Test page.

For example, as part of a Unit Test:

  1. run a remote ssh command towards host ABC and copy a file with win cp command
  2. run a DB2 load command to import the data in the database from the file
  3. run a stored procedure
  4. verify results

May anyone advice regarding step 1) ?


Solution

  • There's been a few implementations of a CommandLineFixture - google commandlinefixture and you'll find them.