Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
16 years ago

Distinguish default properties from passed parameters with Run TestCase

Hi -

I have a test case with several properties defined. When I call this with Run TestCase, is there a way to tell if the property value was passed in or is the default value? Eg. if my test case has properties One, Two, Three and I call it passing in a value for property One, can the called test case tell that property One's value was passed in from the Run TestCase step?

Thanks,
Michael

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    You could do it in setup script. Every TestCase have setup script and teardown script. You can find them at the bottom of TestSteps tab. So, basically if one test case is called from another test case and does passing arguments via properties, you can log property values before starting test case or set some starting values, etc. Results you can look at script log tab or save it somewhere.

    Hope this helps, let me know,

    robert