env_variables_content = """
This document explains how to configure environment variables for the SauceDemo automation project. These variables are used to manage user credentials securely and are essential for running the tests.
You need to set the following environment variables in your system to run the project:
Variable Name | Description | Example Value |
---|---|---|
USER_STANDARD |
Username for Standard User. | standard_user |
USER_LOCKED_OUT |
Username for Locked Out User. | locked_out_user |
USER_PROBLEM |
Username for Problem User. | problem_user |
USER_PERFORMANCE |
Username for Performance Glitch User. | performance_glitch_user |
USER_ERROR |
Username for Error User. | error_user |
USER_VISUAL |
Username for Visual User. | visual_user |
Variable Name | Description | Example Value |
---|---|---|
PASSWORD |
Password for all user accounts. | secret_sauce |
- Open Command Prompt with Administrator privileges.
- Run the following commands:
setx USER_STANDARD "standard_user" /M setx USER_LOCKED_OUT "locked_out_user" /M setx USER_PROBLEM "problem_user" /M setx USER_PERFORMANCE "performance_glitch_user" /M setx USER_ERROR "error_user" /M setx USER_VISUAL "visual_user" /M setx PASSWORD "secret_sauce" /M