Menu

Compare but with sections to ignore...

Help
2007-12-06
2013-04-25
  • Paul Pelletier

    Paul Pelletier - 2007-12-06

    Hi!

    Part of the tests I do is that I compare the result of a call with an expected result which is stored in a file. The tricky part is that sections in the expected results are not relevant to the test (such as the current date) and should be ignored. What I'd like to have is a compare tag which would compare 2 strings but one of them could contain keywords to specify sections to ignored in the comparison.

    Does anyone know of anything that would provide this behavior?

    Any help would be appreciated!
    Thanks
    Paul

     
    • Christian Hargraves

      Hi Paul,

      Please submit to the appropriate plug-in forum or at least mention the plug-in you are asking. The quick is answer is you could use XPath or Regular expressions.

       

Log in to post a comment.