API Testing · Middle · Question 47 of 75

How should API tests handle environment-specific values?

Show the answer

Correct answer: Config or env variables for base URLs, keys and accounts

Explanation

The same suite then runs on local, staging and preview environments, with secrets kept out of the code.

Further reading

Problem with a question

API Testing · Middle · question 47

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz