Cedric, thank you for the speedy reply.
Using @BeforeSuite was precisely where I started, although I did not
mention it. @BeforeSuite was intended to mark a setup() method that
loads a required properties file, and @DataProvider was supposed to
use those loaded properties.
Problem was, I did not specify any arguments whatsoever to
@BeforeSuite, which resulted in the annotated method not running at
all. The experiments to fix this in my test included resorting to
@BeforeGroups and @BeforeClass, which I found less than satisfying, as
I wanted to use the more appropriately named "BeforeSuite" to work.
Following your note, I reverted back to using @BeforeSuite, and
"fixed" my test by including alwaysRun=true in its argument list.
Now, the properties file is loaded before the DataProviders are called
and my DataProviders are happy.
I have to ask: should TestNG have silently not run the no-arg,
@BeforeSuite-annotated setup method, and is alwaysRun=true the best/
right way to ensure that the @BeforeSuite method is run before any and
all other methods in the suite?
Thanks much.
Mark
> ***Cédric
> *