jeudi 20 août 2020

Easily Generate Mock HTTP Response for TestCafe

I am attempting to mock some responses in TestCafe and mocking the responses is pretty slow going. The workflow I would like is something like this:

  • Walk through a test scenario in Chrome.
  • Copy the selected network request to mock as a curl command.
  • Paste it in to a curl command to Testcafe translator.
  • Paste it in to testcafe.

I haven't found a good way to generate mock requests other than manually typing them out by hand. Is anyone aware of any tools which allow you to translate a fetch or curl command to TestCafe mock response?

Aucun commentaire:

Enregistrer un commentaire