Wednesday 15 April 2015

java - Parametrizing JUnit test with different data -


I am working on a Java webpap, which can cause me to misuse the user, I can run the JUnit test I am creating a multi-user interface for. It is quite easy, but I can not understand a way to tell that User A has to paramountize a United Test class with Data X, and user wants to parametridge with BIY.

Is it also possible? If not, I would appreciate any suggestions about how to use @RunWith (paramimate.class)

@ parameter ?

You should be able to use the data for different users using the same test; You can specify different data sets in the method tagged with @Parameters The archive returns to the test class constructor.

View

No comments:

Post a Comment