cancel
Showing results for 
Search instead for 
Did you mean: 

How do I refactor expected responses

Highlighted
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
Highlighted
Community Manager

Re: How do I refactor expected responses

 

 

Hi Nseibert1,

 

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

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: How do I refactor expected responses

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" 

Highlighted
Community Hero

Re: How do I refactor expected responses

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.
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors