Forum Discussion
scottroutesmart
1 year agoContributor
I have tried to work with that method also, but haven't been successful. The suggestions that TC gives doesn't offer the Parameters or Variables to be appended to Project.TestItems.Current.Name
When I try use something along those lines, it throws an Exception during runtime for either parameters or variables if you try to setup similar to this...
"Project.TestItems.Current.Name.Parameters.StationNumber"
Apparently, the Current.Name method doesn't extend to also allow for the use of the test's Parameters or Variables...
Marsha_R
Champion Level 3
1 year agoThe examples under Get Test Case Name will show you how to get the name. Then you can do something like this or whatever you need.
MyNewVariable = aqTestCase.CurrentTestCase.Name + "- " + MyParameterName