Skip to content
CodeKruPro

Where do test passwords and API keys belong?

QuizEasyAsked in: Cognizant, TCS, Wipro

Where should the password of a test account used by the automation suite be kept?

  • In the CI secret store, given to the tests as an environment variable
  • In config.properties or a JSON file committed to Git
  • Hard-coded in the login page object
  • In the test report so failures are easy to reproduce

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in