title: null object error when calling code from script assertion - soapui (creating test Runner in script assertion)
body: <p>In a soapui groovy script test step I've this.</p>
  
  <pre><code>context.setProperty("searchA", new searchA());
  class searchA{
  
      def testRunner
      def searchA(testRunner){
          this.testRunner=testRunner
          }
  
      def search(a,b){
  
          def search_TestCase = testRunner.testCase.testSuite.getTestCaseByName("Search")
            search_TestCase.setPropertyValue("ABC", a)
            search_TestCase.setPropertyValue("DEF", b)
            search_TestCase.run(new com.eviware.soapui.support.types.StringToObjectMap(), false)
  
          }
      }
  </code></pre>
  
  <p>and in an assertion script in a different test suite I am calling the above code like this.</p>
  
  <pre><code>scripts = messageExchange.modelItem.testStep.testCase.testSuite.project.testSuites["Test"]
  scripts.testCases["Lib123"].testSteps["TestLib123"].run(context.getTestRunner(),context)
  context.searchA.search("value1","value2")
  </code></pre>
  
  <p>but this gives me error <code>"can not get property testCase on null object".</code> whats wrong here?</p>