RequestLogger attached to fixture is not recording 404 request/responses
What is your Test Scenario?
I am testing a front end system that currently has a bug. When loading one of the pages a number of requests respond with a 404 status code and cause the page to fail to load.
What is the Current behavior?
I have recently the RequestLogger for test cafe and I expected to see the 404 responses in the log but I do not. I see other positive requests and responses that are hitting the back end, but the failed 404 responses are not present in the log.
What is the Expected behavior?
I expect to the the 404 responses in the log.
What is your web application and your TestCafe test code?
N/A
Your website URL (or attach your complete example):
Your complete test code (or attach your test files):
this is how I have my request logger configured:
httpLogger.requestLogger = RequestLogger(undefined, {
logRequestHeaders: true,
logRequestBody: true,
stringifyRequestBody: true,
logResponseHeaders: true,
logResponseBody: true,
stringifyResponseBody: true
}
I then attach the logger at the start of the test, when the test finishes I call httpLogger.requestLogger.requests and save that to file as my request log.
Your complete configuration file (if any):
Your complete test report:
Screenshots:
Steps to Reproduce:
- Go to my website ...
- Execute this command...
- See the error...
Your Environment details:
- testcafe version: 1.7.0
- node.js version: 13.3.0
- command-line arguments:
- browser name and version: chrome
- platform and version: macOS
- other:
This is unexpected behavior. However, I was not able to reproduce it on my side. Please create an example, so that we can reproduce the issue on our side.
I will see what I can do for you but it will take me some time
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone.