Module EDTestCasePluginExecuteTestPlugin
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 __author__ = ["Olof Svensson"]
28 __contact__ = "svensson@esrf.fr"
29 __license__ = "LGPLv3+"
30 __copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
31
32
33 import os
34
35 from EDTestCasePluginExecute import EDTestCasePluginExecute
36 from EDUtilsTest import EDUtilsTest
37 from EDUtilsPath import EDUtilsPath
38
39
40
41
43 """
44 """
45
47 """
48 """
49 EDTestCasePluginExecute.__init__(self, "EDPluginTestPluginFactory")
50 strModuleLocation = EDUtilsTest.getFactoryPluginTest().getModuleLocation("EDPluginTestPluginFactory")
51 strRootDirectory = EDUtilsPath.appendListOfPaths(strModuleLocation, [ "..", "tests", "data" ])
52
53 self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"))
54 self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"))
55
56 self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value1")
57 self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value1")
58
59 self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value2")
60 self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value2")
61 self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value2")
62 self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value2")
63 self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value2")
64 self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value2")
65
66
67
68
71
72
73
74
75
78
79
80
81 if __name__ == '__main__':
82
83 edTestCasePluginExecuteTestPlugin = EDTestCasePluginExecuteTestPlugin("EDTestCasePluginExecuteTestPlugin")
84 edTestCasePluginExecuteTestPlugin.execute()
85