java properties file code example
Example 1: java file class
import java.io.File;
Example 2: What is the reason we are using properties file
What is the main reason we are using properties file?
- To avoid hard coding.
- We are able to exclude some test data from our tests.
- So that we can manage important test data from external files.