Forum Discussion

rburrowes's avatar
rburrowes
Occasional Visitor
6 years ago

Project (and Test Suite) level Setup & TearDown Scripts not running

  1. Created a REST Project
  2. Created some Test Suites
  3. Created various Test Cases
  4. Created many Test Steps
  5. Test Steps include
    1. REST API calls 
    2. Groovy Scripts
    3. Script Assertions
  6. Executing from Project, Test Suite, Test Case & Test Step is no problem
  7. Added a simple Setup Script to the Project
    1. log.info "Setup"
  8. No output is seen in the TestSuite Log

I have the same behaviour for TearDown Scripts.

I have tried at the Test Suite level, and again no response.

I have executed the scripts using the green play button on the various editors but still no output and no response.

 

Can someone explain why or where I can look to debug what is happening with this script?

Is there any config to be set?

Any help would be greatly appreciated.

2 Replies

  • Try adjusting syntax of your code as follows:

     

    log.info("something")

     

    after you hit play (green arrow) you can see output in 'script log' (accessible through button at the bottom of screen)

     

    Hope it'll help

  • JHunt's avatar
    JHunt
    Community Hero

    Your syntax is fine, but don't look at the TestSuite Log.

     

    As mentioned already, you should look for your log entries in the Script Log along the bottom of the main SoapUI window. Or in your SoapUI install folder, the bin/soapui.log.