How to validate first 15 characters of a string in Diff Tool

ParasofttoudayaParasofttoudaya Posts: 195
edited December 2017 in SOAtest

I have extracted the header using "Header Text Data Bank", in that environment specific values are there.

So i used diff tool to validate against my expected string. On failure used ignore differences, now anything that comes in header is passing the test case.

Any suggestions?

Note: In that response header text 1st 15 characters are fixed, others are ignorable

Comments

  • benken_parasoftbenken_parasoft Posts: 463 ✭✭✭

    The Diff tool's text differ has an option to use regular expressions in the control source. Look for "Regular Expression" on the Options tab. This way your control source could contain the 15 characters you expect followed by .* (or something).

  • It did worked Ben,Thanks.

    I did tried, but i didn't check the "regular expression" option.

Sign In or Register to comment.