You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all the test cases mentioned in the documentation are present in the generated report like the ones starting with scopes and related to OAuth.
Is there any way to check if the information provided inside the info.json and auth.json is correct and was used successfully to run appropriate test cases?
Can the dev environment be tested using an authorization token with cookies as headers? I need to run it like a simple curl command curl -X GET [API_LINK] -H "Authorization: Bearer [token]" --cookie "Name=Value"
The text was updated successfully, but these errors were encountered:
Not all the test cases mentioned in the documentation are present in the generated report like the ones starting with scopes and related to OAuth.
The report always contains all generated tests, even if they failed, were aborted or were skipped. If you don't see the IDs for the test cases you are interested in (like scopes.TestTokenRequestScopeOmit), then they were not generated. You could also test if any results are produced for a specific test case by naming it via the --test-cases parameter in the CLI prompt (see here).
Is there any way to check if the information provided inside the info.json and auth.json is correct and was used successfully to run appropriate test cases?
I assume with "correct" you mean that they are used by the tool? You should see that in the log file starting with a message like Starting: Loading service configuration.. Created auth parameters are logged and should appear in log messages with their ID (if they have one).
Generators will always use any auth parameters they can find, so as long as your configs can be parsed, they should be used to generate test cases.
Can the dev environment be tested using an authorization token with cookies as headers? I need to run it like a simple curl command curl -X GET [API_LINK] -H "Authorization: Bearer [token]" --cookie "Name=Value"
I guess you mean that you want to add an additional header Cookie: Name=Value to the requests (in addition to Authorization)? There is an option to add custom headers to every request, but I don't think it is accessible via the CLI. Custom headers for specific requests are supported when using your own run config where you can pass the header values in the kwargs field of the request_info. I think something like
would also do the trick. The kwargs are arguments passed to the requests library which will format the cookies for you. The only downside is that you have write the run manually and can't rely on a generator.
Not all the test cases mentioned in the documentation are present in the generated report like the ones starting with scopes and related to OAuth.
Is there any way to check if the information provided inside the info.json and auth.json is correct and was used successfully to run appropriate test cases?
Can the dev environment be tested using an authorization token with cookies as headers? I need to run it like a simple curl command curl -X GET [API_LINK] -H "Authorization: Bearer [token]" --cookie "Name=Value"
The text was updated successfully, but these errors were encountered: