Skip to content

Test writers

Alberto Martín López edited this page Jun 1, 2020 · 3 revisions

Table of contents

  1. The purpose of a Writer
  2. IWriter
  3. IWriter instances
    1. RESTAssuredWriter

The purpose of a Writer

A test writer transforms a set of abstract test cases into a set of concrete test cases, ready to be executed. RESTest currently supports the generation of JUnit test cases using the REST Assured framework, but other languages and frameworks could be supported.

IWriter

You can create a new writer to use another framework for the execution of tests. You have to implement the IWriter interface, which has only one method:

  • void write(Collection<TestCase> testCases). From a collection of abstract test cases, the method converts them into executable code, for example, a Java class.

IWriter instances

WIP

RESTAssuredWriter

WIP