There is an error now - when API test case is failing - it happens that artifact is configured like below:
"artefact": {
"classname": "de.simpleworks.staf.commons.report.artefact.Screenshot",
"instance": {
"type": "SCREENSHOT"
}
instead of:
"artefact": {
"classname": "de.simpleworks.staf.commons.report.artefact.CsvFile",
"instance": {
"type": "CSVFILE"
}
}
If I want to use method: executeTestcase() within test step
with conditions:
testcase.create_artefact=EVERYTIME
And I got error message in result.json
{
"description": "Compare data some test data",
"order": 6,
"startTime": 351561154695700,
"stopTime": 351561191735800,
"result": "FAILURE",
"error": {
"detailMessage": "... expected:<[-1]> but was:<[]>",
"cause": {
"fExpected": "-1",
"fActual": "",
"detailMessage": "Value ...",
"stackTrace": [],
"suppressedExceptions": []
},
"stackTrace": [],
"suppressedExceptions": []
},
"artefact": {
"classname": "de.simpleworks.staf.commons.report.artefact.Screenshot",
"instance": {
"type": "SCREENSHOT"
}
}
}
There is an error now - when API test case is failing - it happens that artifact is configured like below: "artefact": { "classname": "de.simpleworks.staf.commons.report.artefact.Screenshot", "instance": { "type": "SCREENSHOT" } instead of:
"artefact": { "classname": "de.simpleworks.staf.commons.report.artefact.CsvFile", "instance": { "type": "CSVFILE" } } If I want to use method: executeTestcase() within test step with conditions: testcase.create_artefact=EVERYTIME
And I got error message in result.json { "description": "Compare data some test data", "order": 6, "startTime": 351561154695700, "stopTime": 351561191735800, "result": "FAILURE", "error": { "detailMessage": "... expected:<[-1]> but was:<[]>", "cause": { "fExpected": "-1", "fActual": "", "detailMessage": "Value ...", "stackTrace": [], "suppressedExceptions": [] }, "stackTrace": [], "suppressedExceptions": [] }, "artefact": { "classname": "de.simpleworks.staf.commons.report.artefact.Screenshot", "instance": { "type": "SCREENSHOT" } } }
staf.properties:
staf settings
testcase.create_artefact=EVERYTIME
Reporter settings
reporter.manager.class=de.simpleworks.staf.module.jsonreporter.JsonReporter reporter.manager.report.directory=results reporter.manager.override.report=false reporter.manager.report.name=result.json
Proxy
proxy.enabled=false proxy.port=8892
WebDriver settings
browser=CHROME webdriver.screenshot=true webdriver.headless=false webdriver.chrome.driver=PATH_TO_CHROMEDRIVER webdriver.window-position=0,0 webdriver.window-size=1920,1080