|
1 ############################################################## |
|
2 # XPath |
|
3 ############################################################## |
|
4 |
|
5 [Test] |
|
6 title XPath test 01 |
|
7 create xmlengtester test |
|
8 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
9 test Evaluate string(.) |
|
10 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_001.txt |
|
11 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_001.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_001.ref |
|
12 delete test |
|
13 [Endtest] |
|
14 ############################################################## |
|
15 # XPath |
|
16 ############################################################## |
|
17 |
|
18 [Test] |
|
19 title XPath test 02 |
|
20 create xmlengtester test |
|
21 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
22 test Evaluate \test\test1 |
|
23 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_002.txt |
|
24 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_002.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_002.ref |
|
25 delete test |
|
26 [Endtest] |
|
27 ############################################################## |
|
28 # XPath |
|
29 ############################################################## |
|
30 |
|
31 [Test] |
|
32 title XPath test 03 |
|
33 create xmlengtester test |
|
34 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
35 test Evaluate \test\test1[1]\@name |
|
36 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_003.txt |
|
37 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_003.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_003.ref |
|
38 delete test |
|
39 [Endtest] |
|
40 ############################################################## |
|
41 # XPath |
|
42 ############################################################## |
|
43 |
|
44 [Test] |
|
45 title XPath test 04 |
|
46 create xmlengtester test |
|
47 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
48 test Evaluate concat(string(..\test3[@attr1='3']),string(.)) |
|
49 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_004.txt |
|
50 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_004.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_004.ref |
|
51 delete test |
|
52 [Endtest] |
|
53 ############################################################## |
|
54 # XPath |
|
55 ############################################################## |
|
56 |
|
57 [Test] |
|
58 title XPath test 05 |
|
59 create xmlengtester test |
|
60 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
61 test Evaluate count(\test\*[last()]\*) |
|
62 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_005.txt |
|
63 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_005.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_005.ref |
|
64 delete test |
|
65 [Endtest] |
|
66 ############################################################## |
|
67 # XPath |
|
68 ############################################################## |
|
69 |
|
70 [Test] |
|
71 title XPath test 06 |
|
72 create xmlengtester test |
|
73 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
74 test Evaluate \test\*\*[@new and @name] |
|
75 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_006.txt |
|
76 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_006.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_006.ref |
|
77 delete test |
|
78 [Endtest] |
|
79 ############################################################## |
|
80 # XPath path |
|
81 ############################################################## |
|
82 |
|
83 [Test] |
|
84 title XPath test 07 |
|
85 create xmlengtester test |
|
86 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
87 test Evaluate \test\*[self::test1 or self::test2][position()<3] |
|
88 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_007.txt |
|
89 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_007.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_007.ref |
|
90 delete test |
|
91 [Endtest] |
|
92 ############################################################## |
|
93 # contains & substring & substring-before |
|
94 ############################################################## |
|
95 |
|
96 [Test] |
|
97 title XPath test 08 |
|
98 create xmlengtester test |
|
99 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
100 test Evaluate contains(substring("12345",1.5, 2.6),substring-before("2000","0")) |
|
101 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_008.txt |
|
102 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_008.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_008.ref |
|
103 delete test |
|
104 [Endtest] |
|
105 ############################################################## |
|
106 #starts-with & substring & round & floor & substring-after |
|
107 ############################################################## |
|
108 |
|
109 [Test] |
|
110 title XPath test 09 |
|
111 create xmlengtester test |
|
112 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
113 test Evaluate starts-with(substring("12345",round(1.1),floor(2.99999)),substring-after("1999/04/01","4/0")) |
|
114 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_009.txt |
|
115 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_009.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_009.ref |
|
116 delete test |
|
117 [Endtest] |
|
118 ############################################################## |
|
119 # string-length & normalize-space |
|
120 ############################################################## |
|
121 |
|
122 [Test] |
|
123 title XPath test 10 |
|
124 create xmlengtester test |
|
125 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
126 test Evaluate string-length(normalize-space(" test text tt ")) |
|
127 test SaveResult E:\testing\data\xmleng\efute\output\dom\xpath_010.txt |
|
128 test CompareFiles E:\testing\data\xmleng\efute\output\dom\xpath_010.txt E:\testing\data\xmleng\efute\pattern\dom\xpath_010.ref |
|
129 delete test |
|
130 [Endtest] |
|
131 ############################################################## |
|
132 # XPath ToNumber |
|
133 ############################################################## |
|
134 |
|
135 [Test] |
|
136 title XPath ToNumber |
|
137 create xmlengtester test |
|
138 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_02.xml |
|
139 test ToNumber |
|
140 delete test |
|
141 [Endtest] |
|
142 ############################################################## |
|
143 #XPath ToBool |
|
144 ############################################################## |
|
145 |
|
146 [Test] |
|
147 title XPath ToBool |
|
148 create xmlengtester test |
|
149 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
150 test ToBool |
|
151 delete test |
|
152 [Endtest] |
|
153 ############################################################## |
|
154 # XPath ToString |
|
155 ############################################################## |
|
156 |
|
157 [Test] |
|
158 title XPath ToString |
|
159 create xmlengtester test |
|
160 test ParseFile E:\testing\data\xmleng\efute\input\dom\xpath_01.xml |
|
161 test ToString |
|
162 delete test |
|
163 [Endtest] |
|
164 ############################################################## |
|
165 # XPath Instance |
|
166 ############################################################## |
|
167 |
|
168 [Test] |
|
169 title XPath Instance |
|
170 create xmlengtester test |
|
171 test Instances |
|
172 delete test |
|
173 [Endtest] |
|
174 ############################################################## |
|
175 # XPath Extension function |
|
176 ############################################################## |
|
177 |
|
178 [Test] |
|
179 title XPath Extension function |
|
180 create xmlengtester test |
|
181 test ExtFunction |
|
182 delete test |
|
183 [Endtest] |
|
184 ############################################################## |
|
185 # XPath Extension vector |
|
186 ############################################################## |
|
187 |
|
188 [Test] |
|
189 title XPath Extension function vector |
|
190 create xmlengtester test |
|
191 test ExtVector |
|
192 delete test |
|
193 [Endtest] |