jeudi 18 mars 2021

TestCafe : How can i pass Authorization token in the base url

In my application, when I am accessing the base url I need to pass in Authorization Token.

I have an Auth token generation endpoint that returns the Authorization token and then this token needs to be passed in the header of the base url of my tests.

Can someone please tell me or guide me on how this can be done? I read through the documentation and I am not able to use HTTP AUthentication as it does not supports passing in Authorization token.

Thanks !!

Aucun commentaire:

Enregistrer un commentaire