Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Report.json lost the information of an exception during the BeforeMethod #197

Open
Stipci opened this issue Sep 13, 2023 · 1 comment
Assignees
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

Comments

@Stipci
Copy link

Stipci commented Sep 13, 2023

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": {}
},

@csvtuda csvtuda added 📄 bug Something isn't working. Suspicion of a bug 🛠 core Everything related to the QTAF core module labels Sep 17, 2023
@MoritzSalein MoritzSalein added the ➡️ medium priority The priority is considered to be medium label Oct 30, 2023
@MoritzSalein
Copy link
Contributor

@OliverHoenig Can you reproduce it?

@MoritzSalein MoritzSalein added the 🚦 under investigation The issue is being investigated label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants