qacafe - ip test solutions
Knowledge Base > Basic Configuration > How do I generate a log file of the test run?

How do I generate a log file of the test run?

By default, test suites run with the command-line using the buddy test harness send their log messages to standard output (stdout). There are different ways you can capture the same log messages to a separate log file:

  • Pipe the output to the program 'tee':
  •    # buddy -trace -pt | tee -i log.txt
    

  • Use the 'script' command:
  •    # script
       Script started, file is typescript
       # buddy -trace -pt
       # exit
       Script done, file is typescript
    

Note that the BuddyWeb add-on for CDRouter automatically organizes results for each test run with separate capture files and logs for each test case.