cancel
Showing results for 
Search instead for 
Did you mean: 

Distinguish default properties from passed parameters with Run TestCase

Highlighted
Super Contributor

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
"Ignorance more frequently begets confidence than does knowledge"
2 REPLIES 2
Highlighted

Re: Distinguish default properties from passed parameters with Run TestCase

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


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Super Contributor

Re: Distinguish default properties from passed parameters with Run TestCase

Thanks!
"Ignorance more frequently begets confidence than does knowledge"