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

Console summary doesn't recognize a failed API test #265

Closed MoritzSalein closed 7 months ago

MoritzSalein commented 8 months ago

After a API test case where I get a failure in the execution, the console test summary (from TestNG?) is wrong. I only see the error when I execute it in the terminal with maven, e.g. mvn test -Dtest=testclass

Output (Line 4 is the test with failure, in the summary seems all tests run):

15:54:04.931 [main] INFO de.qytera.qtaf.core - [Test] [74633460] [testapi] started 15:54:06.471 [main] INFO de.qytera.qtaf.core - [Test] [74633460] [testapi] success 15:54:06.472 [main] INFO de.qytera.qtaf.core - [Test] [1015539793] [testapi] started 15:54:06.815 [main] INFO de.qytera.qtaf.core - [Test] [1015539793] [testapi] failure 15:54:06.833 [main] INFO de.qytera.qtaf.core - [QTAF] - testing finished [main] INFO org.reflections.Reflections - Reflections took 24 ms to scan 4 urls, producing 43 keys and 112 values [main] INFO org.reflections.Reflections - Reflections took 1 ms to scan 0 urls, producing 0 keys and 0 values [main] INFO org.reflections.Reflections - Reflections took 19 ms to scan 4 urls, producing 43 keys and 112 values [main] INFO org.reflections.Reflections - Reflections took 0 ms to scan 0 urls, producing 0 keys and 0 values 15:54:07.975 [main] INFO de.qytera.qtaf.core - [QTAF] Log files persisted [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.175 s -- in testapi [INFO] [INFO] Results: [INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.936 s [INFO] Finished at: 2024-03-05T15:54:08+01:00 [INFO] ------------------------------------------------------------------------

OliverHoenig commented 8 months ago

Hello Moritz, thank you very much for reporting.

Thanks for your help.

OliverHoenig commented 7 months ago

The feature was still in the design phase. The approach followed there for API testing will not be pursued further. A different approach to implementing API tests using QTAF is being considered. As this issue relates to the old approach, which is now no longer being pursued, the issue is closed.