Package | Description |
---|---|
org.cornutum.tcases | |
org.cornutum.tcases.io | |
org.cornutum.tcases.openapi.io | |
org.cornutum.tcases.openapi.resolver |
Modifier and Type | Method and Description |
---|---|
SystemTestDef |
SystemTestDef.addFunctionTestDef(FunctionTestDef functionTestDef)
Adds a new function test definition.
|
SystemTestDef |
SystemTestDefBuilder.build()
Returns the current system test definition.
|
static SystemTestDef |
TcasesJson.getTests(InputStream projectStream)
Returns test case definitions for the
system input model , generator set and
base test definitions defined by the Project read from the given JSON document stream . |
static SystemTestDef |
TcasesIO.getTests(InputStream inputDefStream)
Returns new test case definitions for the given
system input definition , using the default generator. |
static SystemTestDef |
TcasesIO.getTests(InputStream inputDefStream,
InputStream genDefStream,
InputStream baseDefStream)
Returns test case definitions for the given
system input definition , using the given
generator set and base test definitions . |
static SystemTestDef |
TcasesIO.getTests(Project project)
Returns test case definitions for the
system input model ,
generator set and base test definitions defined by
the given Project . |
static SystemTestDef |
Tcases.getTests(SystemInputDef inputDef,
IGeneratorSet genDef,
SystemTestDef baseDef)
Returns test case definitions for the given system input definition, using the given generator set and
base test definitions.
|
static SystemTestDef |
Tcases.getTests(SystemInputDef inputDef,
IGeneratorSet genDef,
TestCaseResolverFactory resolverFactory,
SystemTestDef baseDef,
GeneratorOptions options)
Returns test case definitions for the given system input definition, using the given generator set, resolvers, and
base test definitions.
|
SystemTestDef |
SystemTestDef.removeFunctionTestDef(String name)
Removes a function test definition.
|
Modifier and Type | Method and Description |
---|---|
static SystemTestDef |
Tcases.getTests(SystemInputDef inputDef,
IGeneratorSet genDef,
SystemTestDef baseDef)
Returns test case definitions for the given system input definition, using the given generator set and
base test definitions.
|
static SystemTestDef |
Tcases.getTests(SystemInputDef inputDef,
IGeneratorSet genDef,
TestCaseResolverFactory resolverFactory,
SystemTestDef baseDef,
GeneratorOptions options)
Returns test case definitions for the given system input definition, using the given generator set, resolvers, and
base test definitions.
|
static Optional<GeneratorSet> |
Reducer.reduce(SystemInputDef inputDef,
GeneratorSet genDef,
SystemTestDef baseDef,
ReducerOptions options)
For a
system input definition , returns a set of test case generators
that reduces the number of test cases normally generated, using the given options . |
SystemTestDefBuilder |
SystemTestDefBuilder.start(SystemTestDef systemTestDef)
Starts building a new system test definition.
|
static SystemTestDefBuilder |
SystemTestDefBuilder.with(SystemTestDef systemTestDef)
Creates a new builder for the given SystemTestDef.
|
static void |
TcasesJson.writeTests(SystemTestDef testDef,
OutputStream outputStream)
Writes a
JSON document describing the given test case definitions to the given output stream. |
static void |
TcasesIO.writeTests(SystemTestDef testDef,
OutputStream outputStream)
Writes an XML document describing the given test case definitions to the given output stream.
|
Constructor and Description |
---|
SystemTestDefBuilder(SystemTestDef systemTestDef)
Creates a new SystemTestDefBuilder object.
|
Modifier and Type | Method and Description |
---|---|
static SystemTestDef |
SystemTestJson.asSystemTestDef(javax.json.JsonObject json)
Returns the SystemTestDef represented by the given JSON object.
|
SystemTestDef |
Project.getBaseTests()
Returns the base tests definition for this project.
|
SystemTestDef |
SystemTestResource.getSystemTestDef()
Returns a
SystemTestDef instance. |
SystemTestDef |
SystemTestJsonReader.getSystemTestDef()
Returns a
SystemTestDef instance. |
SystemTestDef |
SystemTestDocReader.getSystemTestDef()
Returns a
SystemTestDef instance. |
SystemTestDef |
SystemTestDocReader.TestCasesHandler.getSystemTestDef()
Returns the
SystemTestDef represented by this element. |
SystemTestDef |
ISystemTestSource.getSystemTestDef()
Returns a
SystemTestDef instance. |
Modifier and Type | Method and Description |
---|---|
ProjectBuilder |
ProjectBuilder.baseTests(SystemTestDef systemTestDef)
Changes the base test definition for the project.
|
void |
Project.setBaseTests(SystemTestDef systemTestDef)
Changes the base tests definition for this project.
|
static javax.json.JsonObject |
SystemTestJson.toJson(SystemTestDef systemTest)
Returns the JSON object that represents the given system test definition.
|
void |
SystemTestResource.write(SystemTestDef systemTest)
Writes the given system test definition.
|
void |
SystemTestJsonWriter.write(SystemTestDef systemTest)
Writes the given system test definition the form of a JSON document.
|
void |
SystemTestHtmlWriter.write(SystemTestDef systemTest)
Writes the given system test definition the form of an HTML document.
|
void |
SystemTestDocWriter.write(SystemTestDef systemTest)
Writes the given system test definition the form of an XML document.
|
abstract void |
AbstractSystemTestWriter.write(SystemTestDef systemTest)
Writes the given system test definition.
|
void |
SystemTestHtmlWriter.write(SystemTestDef systemTest,
boolean defaultStyle,
URI stylesheet,
URI script)
Writes the given system test definition the form of an HTML document.
|
void |
SystemTestHtmlWriter.write(SystemTestDef systemTest,
URI stylesheet,
URI script)
Writes the given system test definition the form of an HTML document.
|
Modifier and Type | Method and Description |
---|---|
static SystemTestDef |
TcasesOpenApiIO.getRequestTests(File api)
Returns a
system test definition for the API requests defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getRequestTests(File api,
ModelOptions options)
Returns a
system test definition for the API requests defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getRequestTests(File api,
String defaultDocType,
ModelOptions options)
Returns a
system test definition for the API requests defined by the given
OpenAPI definition. |
static SystemTestDef |
TcasesOpenApiIO.getRequestTests(InputStream api)
Returns a
system test definition for the API requests defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getRequestTests(InputStream api,
ModelOptions options)
Returns a
system test definition for the API requests defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getRequestTests(InputStream api,
String docType,
ModelOptions options)
Returns a
system test definition for the API requests defined by the given
OpenAPI definition. |
static SystemTestDef |
TcasesOpenApiIO.getResponseTests(File api)
Returns a
system test definition for the API responses defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getResponseTests(File api,
ModelOptions options)
Returns a
system test definition for the API responses defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getResponseTests(File api,
String defaultDocType,
ModelOptions options)
Returns a
system test definition for the API responses defined by the given
OpenAPI definition. |
static SystemTestDef |
TcasesOpenApiIO.getResponseTests(InputStream api)
Returns a
system test definition for the API responses defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getResponseTests(InputStream api,
ModelOptions options)
Returns a
system test definition for the API responses defined by the
OpenAPI definition in the given JSON document. |
static SystemTestDef |
TcasesOpenApiIO.getResponseTests(InputStream api,
String docType,
ModelOptions options)
Returns a
system test definition for the API responses defined by the given
OpenAPI definition. |
Modifier and Type | Method and Description |
---|---|
static void |
TcasesOpenApiIO.writeRequestCases(SystemTestDef testDef,
ResolverContext context,
OutputStream outputStream)
Writes a
JSON document listing test cases defined by the given
request test case definitions to the given output stream. |
static void |
TcasesOpenApiIO.writeTests(SystemTestDef testDef,
OutputStream outputStream)
Writes a
JSON document describing the given test case definitions to the given output stream. |
Modifier and Type | Method and Description |
---|---|
static List<RequestCaseDef> |
RequestCases.getRequestCaseDefs(SystemTestDef testDef)
Returns the request case definitions for the given system test definition.
|
static RequestTestDef |
RequestCases.getRequestCases(SystemTestDef testDef,
ResolverContext context)
Returns the request cases resolved for the given system test definition.
|
Copyright © 2024 The Cornutum Project. All rights reserved.