Closed painsAgains closed 1 year ago
Hello @painsAgains,
I see you closed the issue... Were you able to run RestTestGen eventually?
I will leave here some hints:
I think your auth script is correct. If something is not working, please do not hesitate to reopen this issue.
Best, Davide
Hello @painsAgains,
I see you closed the issue... Were you able to run RestTestGen eventually?
I will leave here some hints:
- The first error you mentioned (Request execution failed...) is caused by a non responding REST API. Make sure to have the correct server URL in your OpenAPI specification.
- Authorization tokens are not stored into report files for security reasons. They are used in actual requests, but they are masked in reports, as you could observe.
I think your auth script is correct. If something is not working, please do not hesitate to reopen this issue.
Best, Davide Thanks for your reply,I checked my URL and found some error,after I fixed it worked will.So I closed my issue. But I still have some cofussions,when I observe the
authentication:
flag in the report like I posted in picture, does it mean that the authentication is already included in the request header, even if there is no specific value
Yes, the token is being used. In the report file, we mask it to prevent token leakage.
When I wrote an py file to config authorization in header,I got some problems as following: and then I checked the request out found that authorization's value not be writeen in header: Is it because the output format of my py file is not json? But when I tested auth.py,the output format of the file is indeed json This is my auth.py and config.json content: import json;
Hope someone can help me, Thanks!