Forum Discussion

nseibert1's avatar
nseibert1
New Contributor
8 years ago

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

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

     

     

    Hi Nseibert1,

     

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

    • nseibert1's avatar
      nseibert1
      New Contributor

      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" 

      • nmrao's avatar
        nmrao
        Champion Level 3
        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.