MainframeModernizationApplicationTesting / Client / create_test_case
create_test_case#
- MainframeModernizationApplicationTesting.Client.create_test_case(**kwargs)#
Creates a test case.
See also: AWS API Documentation
Request Syntax
response = client.create_test_case( name='string', description='string', steps=[ { 'name': 'string', 'description': 'string', 'action': { 'resourceAction': { 'm2ManagedApplicationAction': { 'resource': 'string', 'actionType': 'Configure'|'Deconfigure', 'properties': { 'forceStop': True|False, 'importDataSetLocation': 'string' } }, 'm2NonManagedApplicationAction': { 'resource': 'string', 'actionType': 'Configure'|'Deconfigure' }, 'cloudFormationAction': { 'resource': 'string', 'actionType': 'Create'|'Delete' } }, 'mainframeAction': { 'resource': 'string', 'actionType': { 'batch': { 'batchJobName': 'string', 'batchJobParameters': { 'string': 'string' }, 'exportDataSetNames': [ 'string', ] }, 'tn3270': { 'script': { 'scriptLocation': 'string', 'type': 'Selenium' }, 'exportDataSetNames': [ 'string', ] } }, 'properties': { 'dmsTaskArn': 'string' } }, 'compareAction': { 'input': { 'file': { 'sourceLocation': 'string', 'targetLocation': 'string', 'fileMetadata': { 'dataSets': [ { 'type': 'PS', 'name': 'string', 'ccsid': 'string', 'format': 'FIXED'|'VARIABLE'|'LINE_SEQUENTIAL', 'length': 123 }, ], 'databaseCDC': { 'sourceMetadata': { 'type': 'z/OS-DB2', 'captureTool': 'Precisely'|'AWS DMS' }, 'targetMetadata': { 'type': 'PostgreSQL', 'captureTool': 'Precisely'|'AWS DMS' } } } } }, 'output': { 'file': { 'fileLocation': 'string' } } } } }, ], clientToken='string', tags={ 'string': 'string' } )
- Parameters:
name (string) –
[REQUIRED]
The name of the test case.
description (string) – The description of the test case.
steps (list) –
[REQUIRED]
The steps in the test case.
(dict) –
Defines a step.
name (string) – [REQUIRED]
The name of the step.
description (string) –
The description of the step.
action (dict) – [REQUIRED]
The action of the step.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
resourceAction
,mainframeAction
,compareAction
.resourceAction (dict) –
The resource action of the step action.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
m2ManagedApplicationAction
,m2NonManagedApplicationAction
,cloudFormationAction
.m2ManagedApplicationAction (dict) –
The AWS Mainframe Modernization managed application action of the resource action.
resource (string) – [REQUIRED]
The resource of the AWS Mainframe Modernization managed application action.
actionType (string) – [REQUIRED]
The action type of the AWS Mainframe Modernization managed application action.
properties (dict) –
The properties of the AWS Mainframe Modernization managed application action.
forceStop (boolean) –
Force stops the AWS Mainframe Modernization managed action properties.
importDataSetLocation (string) –
The import data set location of the AWS Mainframe Modernization managed action properties.
m2NonManagedApplicationAction (dict) –
The AWS Mainframe Modernization non-managed application action of the resource action.
resource (string) – [REQUIRED]
The resource of the AWS Mainframe Modernization non-managed application action.
actionType (string) – [REQUIRED]
The action type of the AWS Mainframe Modernization non-managed application action.
cloudFormationAction (dict) –
The CloudFormation action of the resource action.
resource (string) – [REQUIRED]
The resource of the CloudFormation action.
actionType (string) –
The action type of the CloudFormation action.
mainframeAction (dict) –
The mainframe action of the step action.
resource (string) – [REQUIRED]
The resource of the mainframe action.
actionType (dict) – [REQUIRED]
The action type of the mainframe action.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
batch
,tn3270
.batch (dict) –
The batch of the mainframe action type.
batchJobName (string) – [REQUIRED]
The job name of the batch.
batchJobParameters (dict) –
The batch job parameters of the batch.
(string) –
(string) –
exportDataSetNames (list) –
The export data set names of the batch.
(string) –
tn3270 (dict) –
The tn3270 port of the mainframe action type.
script (dict) – [REQUIRED]
The script of the TN3270 protocol.
scriptLocation (string) – [REQUIRED]
The script location of the scripts.
type (string) – [REQUIRED]
The type of the scripts.
exportDataSetNames (list) –
The data set names of the TN3270 protocol.
(string) –
properties (dict) –
The properties of the mainframe action.
dmsTaskArn (string) –
The DMS task ARN of the mainframe action properties.
compareAction (dict) –
The compare action of the step action.
input (dict) – [REQUIRED]
The input of the compare action.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
file
.file (dict) –
The file in the input.
sourceLocation (string) – [REQUIRED]
The source location of the input file.
targetLocation (string) – [REQUIRED]
The target location of the input file.
fileMetadata (dict) – [REQUIRED]
The file metadata of the input file.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
dataSets
,databaseCDC
.dataSets (list) –
The data sets of the file metadata.
(dict) –
Defines a data set.
type (string) – [REQUIRED]
The type of the data set.
name (string) – [REQUIRED]
The name of the data set.
ccsid (string) – [REQUIRED]
The CCSID of the data set.
format (string) – [REQUIRED]
The format of the data set.
length (integer) – [REQUIRED]
The length of the data set.
databaseCDC (dict) –
The database CDC of the file metadata.
sourceMetadata (dict) – [REQUIRED]
The source metadata of the database CDC.
type (string) – [REQUIRED]
The type of the source database metadata.
captureTool (string) – [REQUIRED]
The capture tool of the source database metadata.
targetMetadata (dict) – [REQUIRED]
The target metadata of the database CDC.
type (string) – [REQUIRED]
The type of the target database metadata.
captureTool (string) – [REQUIRED]
The capture tool of the target database metadata.
output (dict) –
The output of the compare action.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
file
.file (dict) –
The file of the output.
fileLocation (string) –
The file location of the output file.
clientToken (string) –
The client token of the test case.
This field is autopopulated if not provided.
tags (dict) –
The specified tags of the test case.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'testCaseId': 'string', 'testCaseVersion': 123 }
Response Structure
(dict) –
testCaseId (string) –
The test case ID of the test case.
testCaseVersion (integer) –
The test case version of the test case.
Exceptions
MainframeModernizationApplicationTesting.Client.exceptions.ServiceQuotaExceededException
MainframeModernizationApplicationTesting.Client.exceptions.ThrottlingException
MainframeModernizationApplicationTesting.Client.exceptions.AccessDeniedException
MainframeModernizationApplicationTesting.Client.exceptions.ValidationException
MainframeModernizationApplicationTesting.Client.exceptions.ConflictException
MainframeModernizationApplicationTesting.Client.exceptions.InternalServerException