Is there a method and/or best practice for protecting credentials in a Selenium project using Java?
The two main ones for my application will be user credentials for logging into the site, and DB credentials.
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
Late answer, but better late than never I suppose. A properties file works and can allow you to set authorization, true.
Better, would be to set up a secured repository for such credentials that can be called at runtime to retrieve them. Too many times, hard coded credentials in some file wind up getting pushed into version control or saved to a desktop, etc, and it winds up getting a company's data on pastebin.