Here you can find the source of loadProperties()
Parameter | Description |
---|---|
IOException | if file do not exists |
public static Properties loadProperties() throws IOException
//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; } }