- This repo contains example code of using Python Configuration Files, including an automated test case using Selenium Webdriver on LambdaTest Cloud platform.
- This project uses Pytest framework to run the tests.
Python configuration files serve as a powerful solution to address these challenges, offering a centralized and secure repository for managing configuration information. Instead of embedding sensitive data directly in the code, configuration files provide a separate space to store such information, ensuring enhanced security and ease of maintenance. With the use of configuration files, like INI, YAML and JSON files, you can gain the flexibility to store and modify configuration settings without modifying the code itself. This approach not only strengthens security measures but also enhances adaptability and flexibility, making Python configuration files an excellent choice for effectively managing sensitive information in test automation projects.
To run any of the scripts from command line use the following command:
python 01-loading-parsing.pyBy default, the test would be running on LambdaTest Platform on Chrome and Firefox Browsers, and on Windows 11 and MacOS.
As a prerequisite for this code, you need:
-
Download and Install Python
-
Download and Install Visual Studio Code
-
Open the project in Visual Studio Code
-
Enter in the cloud-grid folder
cd cloud-grid- Install pytest, and Selenium WebDriver libraries
pip install -r requirements.txtIn order to run this cloud grid sample, please run the command below in the project folder:
pytest- Discuss your queries by writing to me @
paulocol@gmail.comOR ping me on: