Class RPCActionDto
java.lang.Object
org.evomaster.client.java.controller.api.dto.problem.rpc.RPCActionDto
a dto to collect info of endpoints to be tested
that is used by both core (for identifying action) and driver (for endpoint invocation) sides
-
Field Summary
FieldsModifier and TypeFieldDescriptionname of the actionan action to setup auth in this invocationname of the clienta variable referring to client instance this info would be used in static init declaration referring to an actual client instance in the generated test then later, the variable could be used to process rpc function call eg, the variable is foo public class Test{ private static Client foo; ...variable name of controllerbooleanif generate assertions on driver side and send back corebooleanif generate test script on driver side and send back corename of the RPC interfacebooleanif the action requires auth to accessintthe maximum number of assertions to be generated for data in collections zero or negative number means that assertions would be generated for all data in collectiona list of DTOs which need to be extracted at the driver side they can be eg, response of external servicesa list of mock objects for database sql commandsa list of actions for performing mocking external servicesthe output format if doGenerateTestScript is true, outputFormat cannot be null Note that the info is kept in sync with what the user specifies in driver or EMConfigrelated candidates to customize values in request of this endpointrequest paramspossible candidates for auth to access the endpointresponse param (nullable)variable name of response -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
interfaceId
name of the RPC interface -
clientInfo
name of the client -
clientVariable
a variable referring to client instance this info would be used in static init declaration referring to an actual client instance in the generated test then later, the variable could be used to process rpc function call eg, the variable is foo public class Test{ private static Client foo; ... pubic void test(){ response = foo.bar(request) } } TODO Note that the current test generation is proceeded in the driver if we move it to core, this info could be removed -
actionName
name of the action -
mockRPCExternalServiceDtos
a list of actions for performing mocking external services -
mockDatabaseDtos
a list of mock objects for database sql commands -
requestParams
request params -
responseParam
response param (nullable) -
isAuthorized
public boolean isAuthorizedif the action requires auth to access -
requiredAuthCandidates
possible candidates for auth to access the endpoint -
authSetup
an action to setup auth in this invocation -
responseVariable
variable name of response -
controllerVariable
variable name of controller -
doGenerateAssertions
public boolean doGenerateAssertionsif generate assertions on driver side and send back core -
doGenerateTestScript
public boolean doGenerateTestScriptif generate test script on driver side and send back core -
outputFormat
the output format if doGenerateTestScript is true, outputFormat cannot be null Note that the info is kept in sync with what the user specifies in driver or EMConfig -
maxAssertionForDataInCollection
public int maxAssertionForDataInCollectionthe maximum number of assertions to be generated for data in collections zero or negative number means that assertions would be generated for all data in collection -
missingDto
a list of DTOs which need to be extracted at the driver side they can be eg, response of external services
-
-
Constructor Details
-
RPCActionDto
public RPCActionDto()
-
-
Method Details
-
copy
- Returns:
- a copy of RPCActionDto for enabling its invocation eg, exclude all possible candidates of param values and auth
-
copyComplete
- Returns:
- a complete copy of RPCActionDto including its schema info, eg, possible auth candidates and pe-defined values in requests
-
descriptiveInfo
- Returns:
- descriptive info for the action, ie, interface::actionName
-
mockObjectNeeded
public boolean mockObjectNeeded()- Returns:
- if the action needs mock object
-