Ask a Question

How do I refactor expected responses

nseibert1
New Contributor

How do I refactor expected responses

refector seems to have the ability to update interface settings and also the xpath for assertions, but seems to leave out updating the assertion header which contains references to the previous namespace

3 REPLIES 3
TanyaYatskovska
SmartBear Alumni (Retired)

 

 

Hi Nseibert1,

 

Could you please explain in detail the actual and the expected behavior of the refactoring feature?

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



See attached for a screen capture \ illustration.  The Refactor operation updates 

 

  1. Request Headers
  2. XPath Match - Expression 

But it does not update the headers in the "Expected Result" 

The reason is that the expected content being treated as String / text. Where as in the other cases, it is namespace.

Simple workaround could be to edit in your favourite editor, search and replace. Note that have a backup before doing so.


Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: