testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

RequestLogger attached to fixture is not recording 404 request/responses

Open switch201 opened this issue 6 years ago • 3 comments

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:

  1. Go to my website ...
  2. Execute this command...
  3. 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:

switch201 avatar Mar 10 '20 19:03 switch201

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.

AlexKamaev avatar Mar 11 '20 13:03 AlexKamaev

I will see what I can do for you but it will take me some time

switch201 avatar Mar 17 '20 18:03 switch201

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.

no-response[bot] avatar Mar 28 '20 07:03 no-response[bot]