An interface for different types of loader. This would ultimately be used by the users of EasyTest as well to provide their custom Loaders. Currently, EasyTest supports three Loaders internally : ExcelDataLoader - To load data from XLS files XMLDataLoader - To load dat
| 21 | * |
| 22 | */ |
| 23 | public interface Loader { |
| 24 | /** |
| 25 | * The key identifying the actual output result that needs to be written to the file. |
| 26 | */ |
| 27 | String ACTUAL_RESULT = "ActualResult"; |
| 28 | |
| 29 | /** |
| 30 | * The key identifying the expected output that needs to be compared with actual result |
| 31 | */ |
| 32 | String EXPECTED_RESULT = "ExpectedResult"; |
| 33 | |
| 34 | /** |
| 35 | * Constant for empty string |
| 36 | */ |
| 37 | String EMPTY_STRING = " "; |
| 38 | |
| 39 | /** |
| 40 | * Double Quote String |
| 41 | */ |
| 42 | String DOUBLE_QUOTE = "\""; |
| 43 | |
| 44 | /** |
| 45 | * Single Quote |
| 46 | */ |
| 47 | String SINGLE_QUOTE = "'"; |
| 48 | |
| 49 | /** |
| 50 | * The ampersand sign |
| 51 | */ |
| 52 | String AMPERSAND = "&"; |
| 53 | |
| 54 | /** |
| 55 | * Comma |
| 56 | */ |
| 57 | String COMMA = ","; |
| 58 | /** |
| 59 | * The key identifying the Test Status either PASSED/FAILED |
| 60 | * determined after comparing expected and actual results, and written to the file. |
| 61 | */ |
| 62 | String TEST_STATUS = "TestStatus"; |
| 63 | |
| 64 | /** |
| 65 | * The key identifying the Test Duration in milli seconds |
| 66 | */ |
| 67 | String DURATION = "Duration(ms)"; |
| 68 | |
| 69 | /** |
| 70 | * The constants for test status PASSED/FAILED |
| 71 | */ |
| 72 | final String TEST_PASSED = "PASSED"; |
| 73 | final String TEST_FAILED = "FAILED"; |
| 74 | |
| 75 | /** |
| 76 | * Method responsible to Load the test data from the {@link Resource} instance passed as parameter |
| 77 | * @param resource from which to load the data |
| 78 | * @return a Map consisting of the methodName as key and a List of Key/value pairs as the value of the Map. |
| 79 | * This is currently not a user friendly way of exposing the test data. |
| 80 | */ |
no outgoing calls
no test coverage detected