Skip to content

paulocoliveira/python-configuration-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Don't forget to give a ⭐ to make the project popular.

❓ What is this Repository about?

  • 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.

❓ What is a Configuration File?

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.

Running the Code

To run any of the scripts from command line use the following command:

python 01-loading-parsing.py

Running the Cloud Grid Sample

By 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:

  1. Download and Install Python

  2. Download and Install Visual Studio Code

  3. Open the project in Visual Studio Code

  4. Enter in the cloud-grid folder

cd cloud-grid
  1. Install pytest, and Selenium WebDriver libraries
pip install -r requirements.txt

In order to run this cloud grid sample, please run the command below in the project folder:

pytest

✍️ Blog Link

🧬 Need Assistance?

  • Discuss your queries by writing to me @ paulocol@gmail.com OR ping me on:

💭 Checkout the blogs related to Testing on LambdaTest blog.

About

LambdaTest Blog Article: How to Write a Python Configuration File?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages