top of page

ConfigReader(How to Implement configuration reader to read property files)

limnadavisk

Step 1. Create a property file config.properties

first create a property file . Inside src/test/resources create a property file inside config folder .













You can define any file path in property file that you want test. This is some clips from the ds algo project

Here i am configure an excel path for login page and the url of very first page of ds algo







Step 2. Create a java class config file Reader

Step 3. Read each property from config property file

To read each properties from config property file , we will call each function from configFileReader.java  class. Here we are calling URL with getUrl function from configFileReader.java class


 
 

+1 (302) 200-8320

NumPy_Ninja_Logo (1).png

Numpy Ninja Inc. 8 The Grn Ste A Dover, DE 19901

© Copyright 2025 by Numpy Ninja Inc.

  • Twitter
  • LinkedIn
bottom of page