Best Practices for Acceptance Testing in Java

We have a program in which we would like to accept acceptance tests.
Input is an XML file with various "tasks."
The result is another XML file with the results.

What would be the best practice for automating acceptance testing?
We will probably have to store pairs of input and output files, run the program on the inputs, and compare the result with the provided outputs.
Ant good for this task?
If acceptance tests cover all angular cases or are checked only that the functionality generally works.
Any other java acceptance test tips would be appreciated.

+4
source share
2 answers

Some general tips

  • Make sure non-technical people, such as customers or business analysts, understand the tests.
  • Strive to organize your test sets well. Perhaps you could arrange them for every function or functionality. Also try to separate tests for corner cases from "normal" tests.

I think XMLUnit can distinguish XML files http://xmlunit.sourceforge.net/

+1
source

I think DDSteps will be very useful for this.

+2
source

Source: https://habr.com/ru/post/1336600/


All Articles