Java Properties Load loadProperties()

Here you can find the source of loadProperties()

Description

Load Selenium Evidence property file

License

Open Source License

Exception

Parameter Description
IOException if file do not exists

Return

a property

Declaration

public static Properties loadProperties() throws IOException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

public class Main {
    /**/*from   w  ww .  j  a  v  a 2  s . c o  m*/
     * Properties that loads report parameterization
     */
    static Properties properties;

    /**
     * Load Selenium Evidence property file
     *
     * @return a property
     * @throws IOException if file do not exists
     */
    public static Properties loadProperties() throws IOException {
        properties = new Properties();
        properties.load(new FileInputStream("init.properties"));
        return properties;
    }
}

Related

  1. loadProperties()
  2. loadProperties()
  3. loadProperties()
  4. loadProperties()
  5. loadProperties()
  6. loadProperties()
  7. loadProperties()
  8. loadProperties()