i have test data folder in java project... this
project
- src folder
- testdata folder
how can data folder using java, have hardcoded in constant, using ci tool , want avoid hardcoded path.
its fine hardcode testdata folder, point should relative path:
at top of test class can write
static final string test_path = "./testdata/"; note relative project.
if want convert such relative path absoulte one:
string absolutetestpath = new file(test_path).getabsolutepath();
Comments
Post a Comment