The Report.json lost the information of an exception during the BeforeMethod #197
Labels
📄 bug
Something isn't working. Suspicion of a bug
🛠 core
Everything related to the QTAF core module
➡️ medium priority
The priority is considered to be medium
🚦 under investigation
The issue is being investigated
With the property "continueOnAssertionFailure" set to true. There is a difference in the informations between the HMTL-Report and the Report.json.
In the HTML-Report the Step is marked as an error and the message is shown.
Message | Instance is not set and test execution is stopped! For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception Build info: version: '4.10.0', revision: 'c14d967899' System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '20.0.1' Driver info: driver.version: unknown
In the Report.json the Message of the Error did get lost.
{
"featureId": "com.jedox.tests.ChooseInstanceTests",
"scenarioId": "com.jedox.tests.ChooseInstanceTests.setup-",
"scenarioName": "Before Scenario \u0027com.jedox.tests.ChooseInstanceTests.setup\u0027 Execution",
"abstractScenarioId": "com.jedox.tests.ChooseInstanceTests.setup",
"instanceId": "",
"description": "Executed before scenarios of feature Console",
"start": "Sep 13, 2023, 11:12:07 AM",
"end": "Sep 13, 2023, 11:12:08 AM",
"duration": 1198,
"threadId": 0,
"threadName": "",
"testParameters": [],
"annotations": [
{}
],
"status": "FAILURE",
"logMessages": [
{
"uuid": "9de7cdc6-e595-4942-961e-c52648363e2c",
"methodName": "com.jedox.pageObjects.CloudConsoleLogin.openCloudConsoleWeb",
"step": {
"name": "open cloud console website",
"description": "open cloud console website"
},
"status": "PASS",
"start": "Sep 13, 2023, 11:12:07 AM",
"end": "Sep 13, 2023, 11:12:08 AM",
"duration": 0,
"assertions": [],
"stepParameters": [],
"screenshotBefore": "",
"screenshotAfter": "",
"level": "INFO",
"message": "Step open cloud console website executed",
"featureId": "com.jedox.tests.ChooseInstanceTests",
"abstractScenarioId": "com.jedox.tests.ChooseInstanceTests.setup",
"scenarioId": "com.jedox.tests.ChooseInstanceTests.setup-"
},
{
"uuid": "21068362-809b-44cc-b8b7-326b59c85888",
"methodName": "com.jedox.pageObjects.Navigator.selectInstanceByValue",
"step": {
"name": "Navigation menu - Select Instance",
"description": "Navigation menu select Instance"
},
"status": "ERROR",
"start": "Sep 13, 2023, 11:12:08 AM",
"duration": 0,
"assertions": [],
"stepParameters": [
{
"name": "value",
"type": "String",
"value": "NO_CHANGE"
}
],
"screenshotBefore": "",
"screenshotAfter": "D:\Dev\workspace\qtaf-cloud\logs\2023-09-13\11-11-39-chrome-a708eaf7-fb8e-4523-a1c7-b953c73848c8\selectInstanceByValue_after_21068362-809b-44cc-b8b7-326b59c85888.png",
"error": {},
"level": "INFO",
"message": "Step Navigation menu - Select Instance executed",
"featureId": "com.jedox.tests.ChooseInstanceTests",
"abstractScenarioId": "com.jedox.tests.ChooseInstanceTests.setup",
"scenarioId": "com.jedox.tests.ChooseInstanceTests.setup-"
}
],
"screenshotPaths": [],
"screenshotBefore": "",
"screenshotAfter": "",
"tags": {}
},
The text was updated successfully, but these errors were encountered: