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

How can we capture Request Payload & Response Json and show them to jest-html-reporter for REST API Automation framework? #173

Closed
ersinghrajkr opened this issue Aug 30, 2023 · 1 comment

Comments

@ersinghrajkr
Copy link

How can we capture Request Payload & Response Json and show them to jest-html-reporter for REST API Automation Framework
using supertest and jest with typescript.

Here is my configuration -
reporters: [ //https://github.com/Hargne/jest-html-reporter/wiki/configuration 'default', ["./node_modules/jest-html-reporters", { "pageTitle": "API Test Report", "includeFailureMsg": true, "includeStackTrace": true, "includeConsoleLog": true, "includeSuiteFailure": true, "darkTheme": true, "logoImgPath": null, "openReport": false, "urlForTestFiles": "", "customInfos": [ { title: "Environment", value: "QA"}, {title: "Browser", value: "Chrome"}, {title: "App Version", value: "2.0"}, {title: "Automation Script Link", value: "some url"}, ], "executionTimeWarningThreshold": 5, "dateFormat": "yyyy-mm-dd HH:MM:ss", "sort": "default", "filename": "rest-api-result.html", "publicPath": 'reports' }],

@Hargne
Copy link
Owner

Hargne commented Sep 12, 2023

Hi,

I may have misunderstood what you want to achieve, but this module only extends the result given by the test suites you write with Jest to generate a visual report. Hence, there is no way of manipulating the way the tests are performed.

@Hargne Hargne closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants