Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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

Options
Parasofttoudaya
Parasofttoudaya Posts: 232 ✭✭
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_parasoft
    benken_parasoft Posts: 1,230 ✭✭✭
    Options

    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).

  • Parasofttoudaya
    Parasofttoudaya Posts: 232 ✭✭
    Options

    It did worked Ben,Thanks.

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