I was looking at https://sourceforge.net/projects/testngdatabind/ and searched for the possibility to set the properties location on start up of the tests. The usecase is that I have more environments (e.g. different databases) where I want to run the same tests.
There are two different properties files in the TestNG databinding. The first (called data properties file) defines the type of data source ('properties in my case) and the URL of actual key/value pairs used by the test (called Properties Data Source). But none of them accepts variable passed to the test through e.g. system environment variable.
Even if TestNG databinding framework is not developed for ~6 years it works quite well. Is there any alternative how to make TestNG tests generic so that they can be run on environments differing just by data used?