Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarTextFormatTC.php |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | |
15 | 15 | // Mark text Bold and verify output |
16 | 16 | function testMakeTextBold(){ |
| 17 | + |
17 | 18 | parent::doOpenLink(); |
18 | 19 | parent::doLogin(); |
19 | 20 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -32,10 +33,12 @@ |
33 | 34 | } |
34 | 35 | |
35 | 36 | parent::doLogout(); |
| 37 | + |
36 | 38 | } |
37 | 39 | |
38 | 40 | // Mark text Italic and verify output |
39 | 41 | function testMakeTextItalic(){ |
| 42 | + |
40 | 43 | parent::doOpenLink(); |
41 | 44 | parent::doLogin(); |
42 | 45 | $this->click("link=Random article"); |
— | — | @@ -49,17 +52,20 @@ |
50 | 53 | $this->waitForPageToLoad("30000"); |
51 | 54 | $this->assertEquals("Italian", $this->getText("//div[@id='wikiPreview']/p/i")); |
52 | 55 | parent::doLogout(); |
| 56 | + |
53 | 57 | } |
54 | 58 | |
55 | 59 | // Use Bullet Item function and verify output |
56 | 60 | function testBulletItem(){ |
57 | | - parent::doOpenLink(); |
| 61 | + |
| 62 | + parent::doOpenLink(); |
58 | 63 | parent::doLogin(); |
59 | 64 | $this->open("/deployment-en/Main_Page"); |
60 | 65 | $this->click("link=Random article"); |
61 | 66 | $this->waitForPageToLoad("30000"); |
62 | 67 | $this->click("//li[@id='ca-edit']/a/span"); |
63 | 68 | $this->waitForPageToLoad("30000"); |
| 69 | + parent::doExpandAdvanceSection(); |
64 | 70 | $this->type("wpTextbox1", ""); |
65 | 71 | $this->click("link=Bulleted list"); |
66 | 72 | $this->click("link=Bulleted list"); |
— | — | @@ -84,10 +90,12 @@ |
85 | 91 | } |
86 | 92 | |
87 | 93 | parent::doLogout(); |
| 94 | + |
88 | 95 | } |
89 | 96 | |
90 | 97 | // Use Numbered Item function and verify output |
91 | 98 | function testNumberedItem(){ |
| 99 | + |
92 | 100 | parent::doOpenLink(); |
93 | 101 | parent::doLogin(); |
94 | 102 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -95,6 +103,7 @@ |
96 | 104 | $this->waitForPageToLoad("30000"); |
97 | 105 | $this->click("//li[@id='ca-edit']/a/span"); |
98 | 106 | $this->waitForPageToLoad("30000"); |
| 107 | + parent::doExpandAdvanceSection(); |
99 | 108 | $this->type("wpTextbox1", ""); |
100 | 109 | $this->click("link=Numbered list"); |
101 | 110 | $this->click("link=Numbered list"); |
— | — | @@ -118,10 +127,12 @@ |
119 | 128 | array_push($this->verificationErrors, $e->toString()); |
120 | 129 | } |
121 | 130 | parent::doLogout(); |
| 131 | + |
122 | 132 | } |
123 | 133 | |
124 | 134 | // Mark text as Nowiki and verify output |
125 | 135 | function testNoWiki(){ |
| 136 | + |
126 | 137 | parent::doOpenLink(); |
127 | 138 | parent::doLogin(); |
128 | 139 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -129,6 +140,7 @@ |
130 | 141 | $this->waitForPageToLoad("30000"); |
131 | 142 | $this->click("//li[@id='ca-edit']/a/span"); |
132 | 143 | $this->waitForPageToLoad("30000"); |
| 144 | + parent::doExpandAdvanceSection(); |
133 | 145 | $this->type("wpTextbox1", ""); |
134 | 146 | $this->type("wpTextbox1", "<nowiki>==Heading text==</nowiki>"); |
135 | 147 | $this->click("wpPreview"); |
— | — | @@ -138,13 +150,13 @@ |
139 | 151 | } catch (PHPUnit_Framework_AssertionFailedError $e) { |
140 | 152 | array_push($this->verificationErrors, $e->toString()); |
141 | 153 | } |
142 | | - |
143 | | - |
144 | 154 | parent::doLogout(); |
| 155 | + |
145 | 156 | } |
146 | 157 | |
147 | 158 | // Create a line break and verify output |
148 | 159 | function testLineBreak(){ |
| 160 | + |
149 | 161 | parent::doOpenLink(); |
150 | 162 | parent::doLogin(); |
151 | 163 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -152,6 +164,7 @@ |
153 | 165 | $this->waitForPageToLoad("30000"); |
154 | 166 | $this->click("//li[@id='ca-edit']/a/span"); |
155 | 167 | $this->waitForPageToLoad("30000"); |
| 168 | + parent::doExpandAdvanceSection(); |
156 | 169 | $this->type("wpTextbox1", ""); |
157 | 170 | $this->type("wpTextbox1", "this is a test text to check the line\n break."); |
158 | 171 | $this->click("wpPreview"); |
— | — | @@ -162,10 +175,12 @@ |
163 | 176 | array_push($this->verificationErrors, $e->toString()); |
164 | 177 | } |
165 | 178 | parent::doLogout(); |
| 179 | + |
166 | 180 | } |
167 | 181 | |
168 | 182 | // Mark text as Big and verify output |
169 | 183 | function testTextBig(){ |
| 184 | + |
170 | 185 | parent::doOpenLink(); |
171 | 186 | parent::doLogin(); |
172 | 187 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -173,6 +188,7 @@ |
174 | 189 | $this->waitForPageToLoad("30000"); |
175 | 190 | $this->click("//li[@id='ca-edit']/a/span"); |
176 | 191 | $this->waitForPageToLoad("30000"); |
| 192 | + parent::doExpandAdvanceSection(); |
177 | 193 | $this->type("wpTextbox1", ""); |
178 | 194 | $this->click("link=Big"); |
179 | 195 | $this->type("wpTextbox1", "<big>This</big> text"); |
— | — | @@ -185,10 +201,12 @@ |
186 | 202 | } |
187 | 203 | |
188 | 204 | parent::doLogout(); |
| 205 | + |
189 | 206 | } |
190 | 207 | |
191 | 208 | // Mark text as Small and verify output |
192 | 209 | function testTextSmall(){ |
| 210 | + |
193 | 211 | parent::doOpenLink(); |
194 | 212 | parent::doLogin(); |
195 | 213 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -196,6 +214,7 @@ |
197 | 215 | $this->waitForPageToLoad("30000"); |
198 | 216 | $this->click("//li[@id='ca-edit']/a/span"); |
199 | 217 | $this->waitForPageToLoad("30000"); |
| 218 | + parent::doExpandAdvanceSection(); |
200 | 219 | $this->type("wpTextbox1", ""); |
201 | 220 | $this->click("link=Small"); |
202 | 221 | $this->type("wpTextbox1", "<small>This</small> text\n"); |
— | — | @@ -208,17 +227,20 @@ |
209 | 228 | } |
210 | 229 | |
211 | 230 | parent::doLogout(); |
| 231 | + |
212 | 232 | } |
213 | 233 | |
214 | 234 | // Mark text as Super Script and verify output |
215 | 235 | function testTextSuperscript(){ |
216 | | - parent::doOpenLink(); |
217 | | - parent::doLogin(); |
| 236 | + |
| 237 | + parent::doOpenLink(); |
| 238 | + parent::doLogin(); |
218 | 239 | $this->open("/deployment-en/Main_Page"); |
219 | 240 | $this->click("link=Random article"); |
220 | 241 | $this->waitForPageToLoad("30000"); |
221 | 242 | $this->click("//li[@id='ca-edit']/a/span"); |
222 | 243 | $this->waitForPageToLoad("30000"); |
| 244 | + parent::doExpandAdvanceSection(); |
223 | 245 | $this->type("wpTextbox1", ""); |
224 | 246 | $this->click("link=Superscript"); |
225 | 247 | $this->type("wpTextbox1", "<sup>This</sup> text\n"); |
— | — | @@ -231,10 +253,12 @@ |
232 | 254 | } |
233 | 255 | |
234 | 256 | parent::doLogout(); |
| 257 | + |
235 | 258 | } |
236 | 259 | |
237 | 260 | // Mark text as Sub Script and verify output |
238 | 261 | function testTextSubscript(){ |
| 262 | + |
239 | 263 | parent::doOpenLink(); |
240 | 264 | parent::doLogin(); |
241 | 265 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -242,6 +266,7 @@ |
243 | 267 | $this->waitForPageToLoad("30000"); |
244 | 268 | $this->click("//li[@id='ca-edit']/a/span"); |
245 | 269 | $this->waitForPageToLoad("30000"); |
| 270 | + parent::doExpandAdvanceSection(); |
246 | 271 | $this->type("wpTextbox1", ""); |
247 | 272 | $this->click("link=Subscript"); |
248 | 273 | $this->type("wpTextbox1", "<sub>This</sub> text\n"); |
— | — | @@ -254,6 +279,7 @@ |
255 | 280 | } |
256 | 281 | |
257 | 282 | parent::doLogout(); |
| 283 | + |
258 | 284 | } |
259 | 285 | |
260 | 286 | } |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiWatchUnWatchTC.php |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | |
15 | 15 | // Mark a page as watch and verify the My Watch list |
16 | 16 | function testWatch(){ |
| 17 | + |
17 | 18 | parent::doOpenLink(); |
18 | 19 | parent::doLogin(); |
19 | 20 | $this->click("link=Random article"); |
— | — | @@ -26,11 +27,13 @@ |
27 | 28 | |
28 | 29 | $this->assertTrue($this->isTextPresent($randompage)); |
29 | 30 | parent::doLogout(); |
| 31 | + |
30 | 32 | } |
31 | 33 | |
32 | 34 | |
33 | 35 | // Mark a page as watch and mark the same page as unwatch and verify the My Watch list |
34 | 36 | function testUnWatch(){ |
| 37 | + |
35 | 38 | parent::doOpenLink(); |
36 | 39 | parent::doLogin(); |
37 | 40 | $this->click("link=Random article"); |
— | — | @@ -55,6 +58,7 @@ |
56 | 59 | array_push($this->verificationErrors, $e->toString()); |
57 | 60 | } |
58 | 61 | parent::doLogout(); |
| 62 | + |
59 | 63 | } |
60 | 64 | |
61 | 65 | /** function testEditWatch(){ |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiTestSuite.php |
— | — | @@ -1,19 +1,17 @@ |
2 | 2 | <?php |
3 | | -/* |
4 | | - * To change this template, choose Tools | Templates |
5 | | - * and open the template in the editor. |
6 | | - */ |
| 3 | +require_once 'PHPUnit/Framework.php'; |
| 4 | +require_once 'PHPUnit/TextUI/TestRunner.php'; |
7 | 5 | |
8 | | -require_once 'WikiWatchUnWatchTC.php'; |
9 | | -/** |
10 | | - * Description of WikiTestSuite |
11 | | - * |
12 | | - * @author bhagyag |
13 | | - */ |
14 | | -class WikiTestSuite { |
15 | | - function suite(){ |
16 | | - |
17 | | - |
18 | | - } |
19 | | -} |
| 6 | + |
| 7 | +require_once 'WikiAcaiSearchTC.php'; |
| 8 | + |
| 9 | +$suite = new PHPUnit_Framework_TestSuite('Wiki Tests'); |
| 10 | + |
| 11 | +require_once('WikiListener.php'); |
| 12 | +$wLis = new WikiListener(); |
| 13 | +$result = new PHPUnit_Framework_TestResult(); |
| 14 | +$suite->addTestSuite("WikiAcaiSearchTC"); //Add your test case to the test suite |
| 15 | +$result->addListener($wLis); //Define your listener which the test result will use to give output |
| 16 | +$suite->run($result); //And of course run this tests |
| 17 | + |
20 | 18 | ?> |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiAcaiSearchTC.php |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | } |
32 | 32 | |
33 | 33 | // Search for a text. Search result should display links which contain the search text |
34 | | - function testSearchText(){ |
| 34 | + function testSearchText(){ |
35 | 35 | parent::doOpenLink(); |
36 | 36 | parent::doLogin(); |
37 | 37 | $this->click("link=Main page"); |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOtherTC.php |
— | — | @@ -13,9 +13,9 @@ |
14 | 14 | |
15 | 15 | // Click on Embedded file function and verify the output |
16 | 16 | function testEmbeddedFile(){ |
| 17 | + |
17 | 18 | parent::doOpenLink(); |
18 | 19 | parent::doLogin(); |
19 | | - |
20 | 20 | $this->click("link=Random article"); |
21 | 21 | $this->waitForPageToLoad("30000"); |
22 | 22 | $this->click("//li[@id='ca-edit']/a/span"); |
— | — | @@ -31,6 +31,7 @@ |
32 | 32 | array_push($this->verificationErrors, $e->toString()); |
33 | 33 | } |
34 | 34 | parent::doLogout(); |
| 35 | + |
35 | 36 | } |
36 | 37 | |
37 | 38 | /** Reference link is not directing to the given link. |
— | — | @@ -57,6 +58,7 @@ |
58 | 59 | |
59 | 60 | // Click on Picture Gallery function and verify the output |
60 | 61 | function testPictureGallery(){ |
| 62 | + |
61 | 63 | parent::doOpenLink(); |
62 | 64 | parent::doLogin(); |
63 | 65 | |
— | — | @@ -65,6 +67,7 @@ |
66 | 68 | $this->waitForPageToLoad("30000"); |
67 | 69 | $this->click("//li[@id='ca-edit']/a/span"); |
68 | 70 | $this->waitForPageToLoad("30000"); |
| 71 | + parent::doExpandAdvanceSection(); |
69 | 72 | $this->type("wpTextbox1", ""); |
70 | 73 | $this->click("link=Picture gallery"); |
71 | 74 | $this->click("wpPreview"); |
— | — | @@ -76,6 +79,7 @@ |
77 | 80 | } |
78 | 81 | |
79 | 82 | parent::doLogout(); |
| 83 | + |
80 | 84 | } |
81 | 85 | |
82 | 86 | |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarDialogsTC.php |
— | — | @@ -13,6 +13,7 @@ |
14 | 14 | |
15 | 15 | // Add a internal link and verify |
16 | 16 | function testInternalLink(){ |
| 17 | + |
17 | 18 | parent::doOpenLink(); |
18 | 19 | parent::doLogin(); |
19 | 20 | $this->click("link=Random article"); |
— | — | @@ -30,10 +31,12 @@ |
31 | 32 | $this->assertEquals("Daimler-Chrysler", $this->getText("link=Daimler-Chrysler")); |
32 | 33 | |
33 | 34 | parent::doLogout(); |
| 35 | + |
34 | 36 | } |
35 | 37 | |
36 | 38 | // Add external link and verify |
37 | 39 | function testExternalLink(){ |
| 40 | + |
38 | 41 | parent::doOpenLink(); |
39 | 42 | parent::doLogin(); |
40 | 43 | $this->click("link=Random article"); |
— | — | @@ -55,10 +58,12 @@ |
56 | 59 | $this->assertEquals("www.google.com", $this->getText("link=www.google.com")); |
57 | 60 | |
58 | 61 | parent::doLogout(); |
| 62 | + |
59 | 63 | } |
60 | 64 | |
61 | 65 | // Add a table and verify |
62 | 66 | function testCreateTable(){ |
| 67 | + |
63 | 68 | parent::doOpenLink(); |
64 | 69 | parent::doLogin(); |
65 | 70 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -66,6 +71,7 @@ |
67 | 72 | $this->waitForPageToLoad("30000"); |
68 | 73 | $this->click("//li[@id='ca-edit']/a/span"); |
69 | 74 | $this->waitForPageToLoad("30000"); |
| 75 | + parent::doExpandAdvanceSection(); |
70 | 76 | $this->type("wpTextbox1", ""); |
71 | 77 | $this->click("link=Table"); |
72 | 78 | $this->type("wpTextbox1", ""); |
— | — | @@ -81,10 +87,12 @@ |
82 | 88 | } |
83 | 89 | |
84 | 90 | parent::doLogout(); |
| 91 | + |
85 | 92 | } |
86 | 93 | |
87 | 94 | // Verify the replace all function on Search and Replace |
88 | 95 | function testTextSearchReplaceAll(){ |
| 96 | + |
89 | 97 | parent::doOpenLink(); |
90 | 98 | parent::doLogin(); |
91 | 99 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -92,6 +100,7 @@ |
93 | 101 | $this->waitForPageToLoad("30000"); |
94 | 102 | $this->click("//li[@id='ca-edit']/a/span"); |
95 | 103 | $this->waitForPageToLoad("30000"); |
| 104 | + parent::doExpandAdvanceSection(); |
96 | 105 | $this->type("wpTextbox1", ""); |
97 | 106 | $this->click("link=Search and replace"); |
98 | 107 | $this->type("wpTextbox1", "calcey qa\n\ncalcey qa\n\ncalcey qa"); |
— | — | @@ -119,10 +128,12 @@ |
120 | 129 | } |
121 | 130 | |
122 | 131 | parent::doLogout(); |
| 132 | + |
123 | 133 | } |
124 | 134 | |
125 | 135 | // Verify the replace next function on Search and Replace |
126 | 136 | function testTextSearchReplaceNext(){ |
| 137 | + |
127 | 138 | parent::doOpenLink(); |
128 | 139 | parent::doLogin(); |
129 | 140 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -130,6 +141,7 @@ |
131 | 142 | $this->waitForPageToLoad("30000"); |
132 | 143 | $this->click("//li[@id='ca-edit']/a/span"); |
133 | 144 | $this->waitForPageToLoad("30000"); |
| 145 | + parent::doExpandAdvanceSection(); |
134 | 146 | $this->type("wpTextbox1", ""); |
135 | 147 | $this->click("link=Search and replace"); |
136 | 148 | $this->type("wpTextbox1", "calcey qa\n\ncalcey qa\n\ncalcey qa"); |
— | — | @@ -158,6 +170,7 @@ |
159 | 171 | array_push($this->verificationErrors, $e->toString()); |
160 | 172 | } |
161 | 173 | parent::doLogout(); |
| 174 | + |
162 | 175 | } |
163 | 176 | |
164 | 177 | /** When user click on find, text highlight on back which is not captured in Selenium directly. |
— | — | @@ -168,6 +181,7 @@ |
169 | 182 | $this->waitForPageToLoad("30000"); |
170 | 183 | $this->click("//li[@id='ca-edit']/a/span"); |
171 | 184 | $this->waitForPageToLoad("30000"); |
| 185 | + parent::doExpandAdvanceSection(); |
172 | 186 | $this->type("wpTextbox1", ""); |
173 | 187 | $this->click("link=Search and replace"); |
174 | 188 | |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarNTOCTC.php |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | |
16 | 16 | // Add header level 2 and verify Header output |
17 | 17 | function testHeaderLevel2(){ |
| 18 | + |
18 | 19 | parent::doOpenLink(); |
19 | 20 | parent::doLogin(); |
20 | 21 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -22,6 +23,7 @@ |
23 | 24 | $this->waitForPageToLoad("30000"); |
24 | 25 | $this->click("//li[@id='ca-edit']/a/span"); |
25 | 26 | $this->waitForPageToLoad("30000"); |
| 27 | + parent::doExpandAdvanceSection(); |
26 | 28 | $this->click("link=Heading"); |
27 | 29 | $this->click("link=Heading"); |
28 | 30 | $this->click("link=Level 2"); |
— | — | @@ -35,10 +37,12 @@ |
36 | 38 | } |
37 | 39 | |
38 | 40 | parent::doLogout(); |
| 41 | + |
39 | 42 | } |
40 | 43 | |
41 | 44 | // Add header level 3 and verify Header output |
42 | 45 | function testHeaderLevel3(){ |
| 46 | + |
43 | 47 | parent::doOpenLink(); |
44 | 48 | parent::doLogin(); |
45 | 49 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -47,6 +51,7 @@ |
48 | 52 | $this->waitForPageToLoad("30000"); |
49 | 53 | $this->click("//li[@id='ca-edit']/a/span"); |
50 | 54 | $this->waitForPageToLoad("30000"); |
| 55 | + parent::doExpandAdvanceSection(); |
51 | 56 | $this->click("link=Heading"); |
52 | 57 | $this->click("link=Heading"); |
53 | 58 | $this->click("link=Level 3"); |
— | — | @@ -60,10 +65,12 @@ |
61 | 66 | } |
62 | 67 | |
63 | 68 | parent::doLogout(); |
| 69 | + |
64 | 70 | } |
65 | 71 | |
66 | 72 | // Add header level 4 and verify Header output |
67 | 73 | function testHeaderLevel4(){ |
| 74 | + |
68 | 75 | parent::doOpenLink(); |
69 | 76 | parent::doLogin(); |
70 | 77 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -72,6 +79,7 @@ |
73 | 80 | $this->waitForPageToLoad("30000"); |
74 | 81 | $this->click("//li[@id='ca-edit']/a/span"); |
75 | 82 | $this->waitForPageToLoad("30000"); |
| 83 | + parent::doExpandAdvanceSection(); |
76 | 84 | $this->click("link=Heading"); |
77 | 85 | $this->click("link=Heading"); |
78 | 86 | $this->click("link=Level 4"); |
— | — | @@ -85,10 +93,12 @@ |
86 | 94 | } |
87 | 95 | |
88 | 96 | parent::doLogout(); |
| 97 | + |
89 | 98 | } |
90 | 99 | |
91 | 100 | // Add header level 5 and verify Header output |
92 | 101 | function testHeaderLevel5(){ |
| 102 | + |
93 | 103 | parent::doOpenLink(); |
94 | 104 | parent::doLogin(); |
95 | 105 | $this->open("/deployment-en/Main_Page"); |
— | — | @@ -97,6 +107,7 @@ |
98 | 108 | $this->waitForPageToLoad("30000"); |
99 | 109 | $this->click("//li[@id='ca-edit']/a/span"); |
100 | 110 | $this->waitForPageToLoad("30000"); |
| 111 | + parent::doExpandAdvanceSection(); |
101 | 112 | $this->click("link=Heading"); |
102 | 113 | $this->click("link=Heading"); |
103 | 114 | $this->click("link=Level 5"); |
— | — | @@ -110,6 +121,7 @@ |
111 | 122 | } |
112 | 123 | |
113 | 124 | parent::doLogout(); |
| 125 | + |
114 | 126 | } |
115 | 127 | } |
116 | 128 | ?> |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiCommonTC.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | */ |
9 | 9 | class WikiCommonTC extends PHPUnit_Extensions_SeleniumTestCase { |
10 | 10 | /** Wiki server environment details.This array should be commented if the test |
11 | | - * run on local browsers. **/ |
| 11 | + * run on local browsers. |
12 | 12 | |
13 | 13 | public static $browsers = array( |
14 | 14 | array( |
— | — | @@ -17,12 +17,12 @@ |
18 | 18 | 'port' => 4444, |
19 | 19 | 'timeout' => 30000, |
20 | 20 | ) |
21 | | - ); |
| 21 | + ); **/ |
22 | 22 | |
23 | 23 | // Setup the browser URL and local browser |
24 | 24 | function setUp() { |
25 | 25 | // Setting the local browser. this should be disabled if the test run in Wiki environment. |
26 | | - // $this->setBrowser("*firefox"); |
| 26 | + $this->setBrowser("*firefox"); |
27 | 27 | // Main link to be connected |
28 | 28 | $this->setBrowserUrl("http://prototype.wikimedia.org"); |
29 | 29 | } |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | // Open the page. |
32 | 32 | function doOpenLink(){ |
33 | 33 | $this->open("/deployment-en/Main_Page"); |
| 34 | + $this->waitForPageToLoad("30000"); |
34 | 35 | } |
35 | 36 | |
36 | 37 | // Login to the application |
— | — | @@ -62,5 +63,12 @@ |
63 | 64 | } |
64 | 65 | } |
65 | 66 | } |
| 67 | + |
| 68 | + //Expand advance tool bar section if its not |
| 69 | + function doExpandAdvanceSection() { |
| 70 | + if (!$this->isTextPresent("Heading")){ |
| 71 | + $this->click("link=Advanced"); |
| 72 | + } |
| 73 | + } |
66 | 74 | } |
67 | 75 | ?> |
\ No newline at end of file |