testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Is it possible to attach a RequestLogger using an API method similar to runner.screenshots

Open switch201 opened this issue 6 years ago • 4 comments

This is both a question and a feature request depending on if what i am asking for is possible.

When using test cafe I create my own test runner instance using the testcafe API and configure it before I launch the browser. I was wanting to added HTTP Request and Response logging to my tests. All of the examples I have found online only show ways in which to attach the logger to the test fixture, but I was hoping there would be a way to attach the request logger to the runner object itself using the test runner API.

If this is not possible, I would like to request it be made possible.

switch201 avatar Mar 03 '20 18:03 switch201

I was able to achieve my end goal by attaching it to the fixture, but was surprised there was no runner api option still.

switch201 avatar Mar 03 '20 21:03 switch201

Hello,

TestCafe does not support this functionality. However, we appreciate your suggestion and we will consider it for the future.

You are welcome to submit your PR with the implementation, and we will review it.

AlexanderMoiseev avatar Mar 05 '20 09:03 AlexanderMoiseev

Thank you. I may consider doing that if I have the time. I will close this issue.

switch201 avatar Mar 05 '20 20:03 switch201

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

lock[bot] avatar Mar 17 '20 13:03 lock[bot]