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

myTest.getRes().response().prettyPrint() writes the body JSON twice #269

Closed MoritzSalein closed 6 months ago

MoritzSalein commented 7 months ago

If I display the response with the command System.out.println(myTest.getRes().response().prettyPrint()); then I get the JSON of the message body twice.

E.g. { "access_token": "xxx", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "yyy", "token_type": "bearer", "id_token": "zzz", "not-before-policy": 4509977873, "session_state": "a99d6cd6-dac8-44e0-9585-8f3d6c819d47", "scope": "bla blub" } { "access_token": "xxx", "expires_in": 300, "refresh_expires_in": 1800, "refresh_token": "yyy", "token_type": "bearer", "id_token": "zzz", "not-before-policy": 4509977873, "session_state": "a99d6cd6-dac8-44e0-9585-8f3d6c819d47", "scope": "bla blub" }

OliverHoenig commented 6 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.