Class ApiLogMessage
java.lang.Object
de.qytera.qtaf.core.log.model.message.LogMessage
de.qytera.qtaf.apitesting.log.model.message.ApiLogMessage
This class provides the data format for Api log messages, which QTAF uses for reporting and logging.
This format is visible to users and is also used in other QTAF modules,
e.g. when creating JSON or HTML reports or in plugins.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOne part of the API log message is the request.static classOne part of the API log message is the response.Nested classes/interfaces inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
LogMessage.Status -
Field Summary
Fields inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
abstractScenarioId, assertions, end, error, featureId, level, message, scenarioId, start, status, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a log message based on the attributes.Request object.Response object.voidsetRequest(ApiLogMessage.Request request) Request object.voidsetResponse(ApiLogMessage.Response response) Response object.Methods inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
addAssertion, computeStatus, getAbstractScenarioId, getAssertions, getDuration, getEnd, getError, getFeatureId, getLevel, getMessage, getScenarioId, getStart, getStatus, getUuid, hasError, hasFailed, hasPassed, isPending, isSkipped, setAbstractScenarioId, setAssertions, setEnd, setError, setError, setFeatureId, setLevel, setMessage, setScenarioId, setStart, setStatus
-
Constructor Details
-
ApiLogMessage
Constructor.- Parameters:
level- log levelmessage- log message
-
-
Method Details
-
buildMessage
Create a log message based on the attributes.- Returns:
- Log message text
-
getRequest
Request object. -
setRequest
Request object. -
getResponse
Response object. -
setResponse
Response object.
-