Forum Discussion

Fred_Cohen's avatar
Fred_Cohen
New Contributor
16 years ago

#TestCase# Property Scope

Can anybody explain what the scope of #Testcase# properties are when the test case is being called by a "Run TestCase" step?

The problem I'm having is that a testcase that works fine by itself doesn't work when it's called by another testcase via a "Run Testcase" step.

I've done this before with other testcases -- but this one uses a lot of #TestCase# properties and it appears those may be overridden by the testcase calling it.   

Is this working properly? Or is there a way to ensure that the #TestCase# scope doesn't change?
  • Hi!

    hmm.. soapUI sets all testcase properties of the target testcase as specified in the runtestcase window, even empty ones.. which will wipe out any testcase property values in the target testcase.. Maybe we should change this so only properties with values get set and empty ones ignored?

    regards!

    /Ole
    eviware.com
  • Fred_Cohen's avatar
    Fred_Cohen
    New Contributor
    I think what I'd like to see is a flag to set priority of TestCase properties between the called and caller.  Probably either way it works it's going to cause confusion.
  • Hi!

    ok.. i've added an "Ignore Empty Properties" setting that you can select to not copy empty property values.. coming in nightly build, let me know how it works!

    regards,

    /Ole
    eviware.com