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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.