7

I've written an Integration program that produces files from a source set of data and converts it to a target data file. These files contain field/record information that must be validated by our clients using their validation methods.

I plan to create numerous test cases and expect to receive information on how well the data validated so I can tweak my program.

I want to create a test case that I know will not pass their validation, however I need to know if their validation methods are picking up basics such as the file structure and layout.

I am trying to prevent the situation if all my test cases pass, but later on the files were not in the correct format the client needed.

Do you feel this is a good idea and would I get any valid information from it?

asked Aug 31, 2011 at 22:53

1 Answer 1

10

Yes

that's not a bogus test case, it's a valid test for expected exceptions

answered Aug 31, 2011 at 23:02
2
  • 3
    Negative test cases are just as good as positive ones. Does it break the way we expect.... Commented Sep 1, 2011 at 0:40
  • 1
    Or perhaps more accurately "does it work they way we intended instead of breaking?"? Commented Sep 1, 2011 at 8:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.