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

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️Please mark my answer as a solution if it was helpful
Highlighted
Super Contributor

Re: Distinguish default properties from passed parameters with Run TestCase

Thanks!
"Ignorance more frequently begets confidence than does knowledge"
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to change request body before sending it to the server for the TechCorner tag!


Scripts created in June:
- A script to generate a request body based on data from Datasource
- A script to go through all response nodes and check the value of the required field
- A Dispatching script to get responses based on the values in Request Body
- A script to add a new tag and assign it to all TestCases in a TestSuite
Top Kudoed Authors