Forum Discussion

roryLIT's avatar
roryLIT
Contributor
13 years ago

Reference values in assertion names

I have a Properties step at the start of my testcase called postFNOLValidations. Stored here is the FirstName property with the value "George". I've also created an assertion on a response xml in the same testcase that validates the FirstName element contains the value "George" so the content of the assertion is "<RoleName xsi:type="soapenc:string">${postFNOLValidations#FirstName}</RoleName>" so it is referencing the value in the properties step for FirstName. Is it possible for the assertion name to reference this value also (currently only works in the content of the assertion), so it would be something like First Name = ${postFNOLValidations#FirstName} ???

3 Replies

  • Hi,

    For clarification you want the assertion name to be dynamic, i.e for it to be a property in which the value can be changed?

    Also, why is this needed? Seems like this is something specific to what you are trying to do.
  • Yea it would be dynamic

    I thought it could be beneficial if you have all your values you want to assert in the one place (properties step) and save you having to update your assertion names all the time. The assertion names will stay the same and update if you change the value for a property

    What do you think?
  • Hi,

    We will keep this feature request in mind for future releases.



    Thanks.