Xceptance / neodymium-library

A test automation library based on common other best practice open source libraries. It adds missing functionalities but does not reinvent the wheel. Just glues stuff together nicely and adds some sprinkles.
MIT License
80 stars 11 forks source link

Allow definition of test data file name #96

Closed wurzelkuchen closed 5 years ago

wurzelkuchen commented 5 years ago

Currently test data sets are defined by the name of the java class. E.g. TestCheckout.jjava needs the testdata in a file like TestCheckout.json.

This is forces us to keep testdata, used in different test cases multiple times. A more user friendly approach would be to allow the user, to define his/her own filename.

@DataSet(name="myTestDataFile.json")

occupant23 commented 5 years ago

implemented it on class level since method level would be very complicated and would result in a higher runtime since the IO datafile operations would have to be called for every test method instead of once per test class.

Documentation need to be done for this.

occupant23 commented 5 years ago

added documentation in development wiki