MCPcopy Create free account
hub / github.com/EaseTech/easytest-core / Loader

Interface Loader

src/main/java/org/easetech/easytest/loader/Loader.java:23–93  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

21 *
22 */
23public 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 */

Callers 3

loadDataMethod · 0.95
determineLoaderMethod · 0.65
writeDataMethod · 0.65

Implementers 6

CustomCSVDataLoadersrc/test/java/org/easetech/easytest/ex
CustomObjectDataLoadersrc/test/java/org/easetech/easytest/ex
ExcelDataLoadersrc/main/java/org/easetech/easytest/lo
EmptyLoadersrc/main/java/org/easetech/easytest/lo
CSVDataLoadersrc/main/java/org/easetech/easytest/lo
XMLDataLoadersrc/main/java/org/easetech/easytest/lo

Calls

no outgoing calls

Tested by

no test coverage detected