Qytera-Gmbh / QTAF

QTAF is a Java test framework based on TestNG and offers easy setup of Selenium and fast extensibility.
https://qytera-gmbh.github.io
MIT License
10 stars 0 forks source link

Problem in failure analysis #279

Closed mzdih closed 3 months ago

mzdih commented 4 months ago

If I encounter a failure in a class that contains many test cases, as a test automation engineer, analyzing the exact location of the problem can be challenging. This difficulty is illustrated in the screenshot below, where there's a failure in CreateDeliveryPointTest.java, making it hard to determine the specific test that's causing the issue.

image

OliverHoenig commented 4 months ago

Hello mzdih,

thank you for creating the ticket. To avoid misunderstandings I would ask you to answer the following questions:

Thanks for your help.

csvtuda commented 3 months ago

After a brief discussion with @mzdih:

What kind of error was it? Did a test case fail or is it a potential bug in QTAF that caused unwanted behaviour?

This is pretty much the root issue, it is very hard to identify. In both situations, the output is usually the above one. But it should be a lot clearer/easier to read if a test case simply failed.

What would be an error handling that would have helped you in this specific case? And from your point of view, is there general potential for improvement here? If so, what would this improvement look like?

Proposed suggestions:

OliverHoenig commented 3 months ago

Thank you very much. The issue is now being worked on.

OliverHoenig commented 3 months ago

There was also a request to log the XrayTestID if a test method is annotated with the Xray annotation.

csvtuda commented 3 months ago

Yes, this would be very helpful. I meant this when talking about issue IDs, but probably should have clarified a little bit.

OliverHoenig commented 3 months ago

Everything except the request to log the XrayID has been released in version v0.2.12.