Forum Discussion

dkmb's avatar
dkmb
New Contributor
9 years ago

do tear down scripts work when testrunner is run on the command line?

I have reports that are being generated in the teardown scripts of my test suite and the test cases. The reports are generated if I launch Test Runner from Soap UI or if I run it manually. I have tried to run it with -aifR and still nothing any ideas?

 

This is the tear down script for my testcases 

2015-12-23_1113.png 

6 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    There is no testRunner variable available in TestSuite's teardown script. Only runner, context, testSuite, log vairables are available.
    You should be able to find them on the top of tear down script editor.
    • dkmb's avatar
      dkmb
      New Contributor

      Sorry this code is for what is in the test cases. The code works. I would just like to know why it does not work when  I run the project on the command line

       

      • nmrao's avatar
        nmrao
        Champion Level 3

        Can you please provide more details:

         

        • what are you trying to achieve?
        • what are steps in your test case?
        • the command that you are using from command  line?
        • did not get, "it does not work"? deails will help including logs.