Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/project.properties |
— | — | @@ -1,11 +1,11 @@ |
2 | | -include.path=${php.global.include.path}
|
3 | | -php.version=PHP_5
|
4 | | -phpunit.bootstrap=
|
5 | | -phpunit.configuration=
|
6 | | -phpunit.suite=testCases/WikiTestSuite.php
|
7 | | -selenium.src.dir=testCases
|
8 | | -source.encoding=UTF-8
|
9 | | -src.dir=.
|
10 | | -tags.asp=false
|
11 | | -tags.short=true
|
12 | | -web.root=.
|
| 2 | +include.path=${php.global.include.path} |
| 3 | +php.version=PHP_5 |
| 4 | +phpunit.bootstrap= |
| 5 | +phpunit.configuration= |
| 6 | +phpunit.suite=testCases/WikiTestSuite.php |
| 7 | +selenium.src.dir=testCases |
| 8 | +source.encoding=UTF-8 |
| 9 | +src.dir=. |
| 10 | +tags.asp=false |
| 11 | +tags.short=true |
| 12 | +web.root=. |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/project.properties |
___________________________________________________________________ |
Added: svn:eol-style |
13 | 13 | + native |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/project.xml |
— | — | @@ -1,9 +1,9 @@ |
2 | | -<?xml version="1.0" encoding="UTF-8"?>
|
3 | | -<project xmlns="http://www.netbeans.org/ns/project/1">
|
4 | | - <type>org.netbeans.modules.php.project</type>
|
5 | | - <configuration>
|
6 | | - <data xmlns="http://www.netbeans.org/ns/php-project/1">
|
7 | | - <name>WikiFunctions</name>
|
8 | | - </data>
|
9 | | - </configuration>
|
10 | | -</project>
|
| 2 | +<?xml version="1.0" encoding="UTF-8"?> |
| 3 | +<project xmlns="http://www.netbeans.org/ns/project/1"> |
| 4 | + <type>org.netbeans.modules.php.project</type> |
| 5 | + <configuration> |
| 6 | + <data xmlns="http://www.netbeans.org/ns/php-project/1"> |
| 7 | + <name>WikiFunctions</name> |
| 8 | + </data> |
| 9 | + </configuration> |
| 10 | +</project> |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/project.xml |
___________________________________________________________________ |
Added: svn:eol-style |
11 | 11 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/private/config.properties |
___________________________________________________________________ |
Added: svn:eol-style |
12 | 12 | + native |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/private/private.properties |
— | — | @@ -1,5 +1,5 @@ |
2 | | -copy.src.files=false
|
3 | | -copy.src.target=
|
4 | | -index.file=index.php
|
5 | | -run.as=LOCAL
|
6 | | -url=http://localhost/WikiFunctions/
|
| 2 | +copy.src.files=false |
| 3 | +copy.src.target= |
| 4 | +index.file=index.php |
| 5 | +run.as=LOCAL |
| 6 | +url=http://localhost/WikiFunctions/ |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/private/private.properties |
___________________________________________________________________ |
Added: svn:eol-style |
7 | 7 | + native |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/private/private.xml |
— | — | @@ -1,13 +1,13 @@ |
2 | | -<?xml version="1.0" encoding="UTF-8"?>
|
3 | | -<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
4 | | - <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1">
|
5 | | - <file>
|
6 | | - <url>testCases/WikiToolBarDialogsTC.php</url>
|
7 | | - <line>336</line>
|
8 | | - </file>
|
9 | | - <file>
|
10 | | - <url>testCases/WikiDialogs_TC.php</url>
|
11 | | - <line>413</line>
|
12 | | - </file>
|
13 | | - </editor-bookmarks>
|
14 | | -</project-private>
|
| 2 | +<?xml version="1.0" encoding="UTF-8"?> |
| 3 | +<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> |
| 4 | + <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"> |
| 5 | + <file> |
| 6 | + <url>testCases/WikiToolBarDialogsTC.php</url> |
| 7 | + <line>336</line> |
| 8 | + </file> |
| 9 | + <file> |
| 10 | + <url>testCases/WikiDialogs_TC.php</url> |
| 11 | + <line>413</line> |
| 12 | + </file> |
| 13 | + </editor-bookmarks> |
| 14 | +</project-private> |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/nbproject/private/private.xml |
___________________________________________________________________ |
Added: svn:eol-style |
15 | 15 | + native |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiDialogs_ExsistingPage.php |
— | — | @@ -1,144 +0,0 @@ |
2 | | -<?php |
3 | | -require_once 'WikiDialogs_TC.php'; |
4 | | -/** |
5 | | - * Description of WikiExsistingPageDialogs |
6 | | - * |
7 | | - * @author bhagyag |
8 | | - */ |
9 | | -class WikiDialogs_ExsistingPage extends WikiDialogs_TC { |
10 | | - // Set up the testing environment |
11 | | - function setup(){ |
12 | | - parent::setUp(); |
13 | | - } |
14 | | - |
15 | | - //Open a random page |
16 | | - function openRandomPage(){ |
17 | | - parent::doOpenLink(); |
18 | | - parent::doLogin(); |
19 | | - parent::doAccessRandomPage(); |
20 | | - parent::doEditPage(); |
21 | | - } |
22 | | - // Add a internal link and verify |
23 | | - function testInternalLink(){ |
24 | | - $this->openRandomPage(); |
25 | | - parent::verifyInternalLink(); |
26 | | - parent::doLogout(); |
27 | | - } |
28 | | - |
29 | | - |
30 | | - // Add a internal link with different display text and verify |
31 | | - function testInternalLinkWithDisplayText(){ |
32 | | - $this->openRandomPage(); |
33 | | - parent::verifyInternalLinkWithDisplayText(); |
34 | | - parent::doLogout(); |
35 | | - } |
36 | | - |
37 | | - // Add a internal link with blank display text and verify |
38 | | - function testInternalLinkWithBlankDisplayText(){ |
39 | | - $this->openRandomPage(); |
40 | | - parent::verifyInternalLinkWithBlankDisplayText(); |
41 | | - parent::doLogout(); |
42 | | - } |
43 | | - |
44 | | - // Add external link and verify |
45 | | - function testExternalLink(){ |
46 | | - $this->openRandomPage(); |
47 | | - parent::verifyExternalLink(); |
48 | | - parent::doLogout(); |
49 | | - } |
50 | | - |
51 | | - // Add external link with different display text and verify |
52 | | - function testExternalLinkWithDisplayText(){ |
53 | | - $this->openRandomPage(); |
54 | | - parent::verifyExternalLinkWithDisplayText(); |
55 | | - parent::doLogout(); |
56 | | - } |
57 | | - |
58 | | - // Add external link with Blank display text and verify |
59 | | - function testExternalLinkWithBlankDisplayText(){ |
60 | | - $this->openRandomPage(); |
61 | | - parent::verifyExternalLinkWithBlankDisplayText(); |
62 | | - parent::doLogout(); |
63 | | - } |
64 | | - |
65 | | - // Add a table and verify |
66 | | - function testCreateTable(){ |
67 | | - $this->openRandomPage(); |
68 | | - parent::verifyCreateTable(); |
69 | | - parent::doLogout(); |
70 | | - } |
71 | | - |
72 | | - // Add a table and verify only with head row |
73 | | - function testCreateTableWithHeadRow(){ |
74 | | - $this->openRandomPage(); |
75 | | - parent::verifyCreateTableWithHeadRow(); |
76 | | - parent::doLogout(); |
77 | | - } |
78 | | - |
79 | | - // Add a table and verify only with borders |
80 | | - function testCreateTableWithBorders(){ |
81 | | - $this->openRandomPage(); |
82 | | - parent::verifyCreateTableWithBorders(); |
83 | | - parent::doLogout(); |
84 | | - } |
85 | | - |
86 | | - // Add a table and verify only with sort row |
87 | | - function testCreateTableWithSortRow(){ |
88 | | - $this->openRandomPage(); |
89 | | - parent::verifyCreateTableWithSortRow(); |
90 | | - parent::doLogout(); |
91 | | - } |
92 | | - |
93 | | - // Add a table without headers,borders and sort rows |
94 | | - function testCreateTableWithNoSpecialEffects(){ |
95 | | - $this->openRandomPage(); |
96 | | - parent::verifyCreateTableWithNoSpecialEffects(); |
97 | | - parent::doLogout(); |
98 | | - } |
99 | | - |
100 | | - // Add a table with headers,borders and sort rows |
101 | | - function testCreateTableWithAllSpecialEffects(){ |
102 | | - $this->openRandomPage(); |
103 | | - parent::verifyCreateTableWithAllSpecialEffects(); |
104 | | - parent::doLogout(); |
105 | | - } |
106 | | - // Verify the replace all function on Search and Replace |
107 | | - function testTextSearchReplaceAll(){ |
108 | | - $this->openRandomPage(); |
109 | | - parent::verifyTextSearchReplaceAll(); |
110 | | - parent::doLogout(); |
111 | | - } |
112 | | - |
113 | | - // Verify the replace next function on Search and Replace |
114 | | - function testTextSearchReplaceNext(){ |
115 | | - $this->openRandomPage(); |
116 | | - parent::verifyTextSearchReplaceNext(); |
117 | | - parent::doLogout(); |
118 | | - } |
119 | | - |
120 | | - // When user click on find, text highlight on back which is not captured in Selenium directly. |
121 | | - function testTextSearchFindNext(){ |
122 | | - parent::doOpenLink(); |
123 | | - parent::doLogin(); |
124 | | - $this->open("/deployment-en/Main_Page"); |
125 | | - $this->waitForPageToLoad("30000"); |
126 | | - parent::doAccessRandomPage(); |
127 | | - parent::verifyTextSearchFindNext(); |
128 | | - parent::doLogout(); |
129 | | - } |
130 | | - |
131 | | - // Verify the Match Case option with Replace All on Search and Replace |
132 | | - function testTextMatchCase(){ |
133 | | - $this->openRandomPage(); |
134 | | - parent::verifyTextMatchCase(); |
135 | | - parent::doLogout(); |
136 | | - } |
137 | | - |
138 | | - //Verify Regular expression option with Replace All on Search and Replace |
139 | | - function testRegEx(){ |
140 | | - $this->openRandomPage(); |
141 | | - parent::verifyRegEx(); |
142 | | - parent::doLogout(); |
143 | | - } |
144 | | -} |
145 | | -?> |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiDialogs_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
146 | 1 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiNTOC_NewPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
147 | 2 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOther_NewPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
148 | 3 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOther_ExistingPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
149 | 4 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/Config.php |
___________________________________________________________________ |
Added: svn:eol-style |
150 | 5 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikSearch_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
151 | 6 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiTextFormat_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
152 | 7 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiCommonFunction_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
153 | 8 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiListener.php |
___________________________________________________________________ |
Added: svn:eol-style |
154 | 9 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiWatchUnWatch_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
155 | 10 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiPreferences_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
156 | 11 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiDialogs_NewPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
157 | 12 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiNTOC_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
158 | 13 | + native |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiTestSuite.php |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | require_once 'WikiWatchUnWatch_TC.php'; |
10 | 10 | |
11 | 11 | require_once 'WikiNTOC_ ExistingPage.php'; |
12 | | -require_once 'WikiDialogs_ExsistingPage.php'; |
| 12 | +require_once 'WikiDialogs_ExistingPage.php'; |
13 | 13 | require_once 'WikiToolBarOther_ExistingPage.php'; |
14 | 14 | require_once 'WikiTextFormat_ExistingPage.php'; |
15 | 15 | |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | $suite->addTestSuite('WikiWatchUnWatch_TC'); // Working in Chrome |
28 | 28 | |
29 | 29 | $suite->addTestSuite("WikiNTOC_ExistingPage"); // Working in Chrome |
30 | | -$suite->addTestSuite("WikiDialogs_ExsistingPage"); |
| 30 | +$suite->addTestSuite("WikiDialogs_ExistingPage"); |
31 | 31 | $suite->addTestSuite("WikiToolBarOther_ExistingPage"); |
32 | 32 | $suite->addTestSuite("WikiTextFormat_ExistingPage"); |
33 | 33 | |
— | — | @@ -36,4 +36,4 @@ |
37 | 37 | $suite->addTestSuite("WikiTextFormat_NewPage"); |
38 | 38 | |
39 | 39 | $suite->run($result); |
40 | | -?> |
\ No newline at end of file |
| 40 | +?> |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiTestSuite.php |
___________________________________________________________________ |
Added: svn:eol-style |
41 | 41 | + native |
Index: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiDialogs_ExistingPage.php |
— | — | @@ -0,0 +1,144 @@ |
| 2 | +<?php |
| 3 | +require_once 'WikiDialogs_TC.php'; |
| 4 | +/** |
| 5 | + * Description of WikiExistingPageDialogs |
| 6 | + * |
| 7 | + * @author bhagyag |
| 8 | + */ |
| 9 | +class WikiDialogs_ExistingPage extends WikiDialogs_TC { |
| 10 | + // Set up the testing environment |
| 11 | + function setup(){ |
| 12 | + parent::setUp(); |
| 13 | + } |
| 14 | + |
| 15 | + //Open a random page |
| 16 | + function openRandomPage(){ |
| 17 | + parent::doOpenLink(); |
| 18 | + parent::doLogin(); |
| 19 | + parent::doAccessRandomPage(); |
| 20 | + parent::doEditPage(); |
| 21 | + } |
| 22 | + // Add a internal link and verify |
| 23 | + function testInternalLink(){ |
| 24 | + $this->openRandomPage(); |
| 25 | + parent::verifyInternalLink(); |
| 26 | + parent::doLogout(); |
| 27 | + } |
| 28 | + |
| 29 | + |
| 30 | + // Add a internal link with different display text and verify |
| 31 | + function testInternalLinkWithDisplayText(){ |
| 32 | + $this->openRandomPage(); |
| 33 | + parent::verifyInternalLinkWithDisplayText(); |
| 34 | + parent::doLogout(); |
| 35 | + } |
| 36 | + |
| 37 | + // Add a internal link with blank display text and verify |
| 38 | + function testInternalLinkWithBlankDisplayText(){ |
| 39 | + $this->openRandomPage(); |
| 40 | + parent::verifyInternalLinkWithBlankDisplayText(); |
| 41 | + parent::doLogout(); |
| 42 | + } |
| 43 | + |
| 44 | + // Add external link and verify |
| 45 | + function testExternalLink(){ |
| 46 | + $this->openRandomPage(); |
| 47 | + parent::verifyExternalLink(); |
| 48 | + parent::doLogout(); |
| 49 | + } |
| 50 | + |
| 51 | + // Add external link with different display text and verify |
| 52 | + function testExternalLinkWithDisplayText(){ |
| 53 | + $this->openRandomPage(); |
| 54 | + parent::verifyExternalLinkWithDisplayText(); |
| 55 | + parent::doLogout(); |
| 56 | + } |
| 57 | + |
| 58 | + // Add external link with Blank display text and verify |
| 59 | + function testExternalLinkWithBlankDisplayText(){ |
| 60 | + $this->openRandomPage(); |
| 61 | + parent::verifyExternalLinkWithBlankDisplayText(); |
| 62 | + parent::doLogout(); |
| 63 | + } |
| 64 | + |
| 65 | + // Add a table and verify |
| 66 | + function testCreateTable(){ |
| 67 | + $this->openRandomPage(); |
| 68 | + parent::verifyCreateTable(); |
| 69 | + parent::doLogout(); |
| 70 | + } |
| 71 | + |
| 72 | + // Add a table and verify only with head row |
| 73 | + function testCreateTableWithHeadRow(){ |
| 74 | + $this->openRandomPage(); |
| 75 | + parent::verifyCreateTableWithHeadRow(); |
| 76 | + parent::doLogout(); |
| 77 | + } |
| 78 | + |
| 79 | + // Add a table and verify only with borders |
| 80 | + function testCreateTableWithBorders(){ |
| 81 | + $this->openRandomPage(); |
| 82 | + parent::verifyCreateTableWithBorders(); |
| 83 | + parent::doLogout(); |
| 84 | + } |
| 85 | + |
| 86 | + // Add a table and verify only with sort row |
| 87 | + function testCreateTableWithSortRow(){ |
| 88 | + $this->openRandomPage(); |
| 89 | + parent::verifyCreateTableWithSortRow(); |
| 90 | + parent::doLogout(); |
| 91 | + } |
| 92 | + |
| 93 | + // Add a table without headers,borders and sort rows |
| 94 | + function testCreateTableWithNoSpecialEffects(){ |
| 95 | + $this->openRandomPage(); |
| 96 | + parent::verifyCreateTableWithNoSpecialEffects(); |
| 97 | + parent::doLogout(); |
| 98 | + } |
| 99 | + |
| 100 | + // Add a table with headers,borders and sort rows |
| 101 | + function testCreateTableWithAllSpecialEffects(){ |
| 102 | + $this->openRandomPage(); |
| 103 | + parent::verifyCreateTableWithAllSpecialEffects(); |
| 104 | + parent::doLogout(); |
| 105 | + } |
| 106 | + // Verify the replace all function on Search and Replace |
| 107 | + function testTextSearchReplaceAll(){ |
| 108 | + $this->openRandomPage(); |
| 109 | + parent::verifyTextSearchReplaceAll(); |
| 110 | + parent::doLogout(); |
| 111 | + } |
| 112 | + |
| 113 | + // Verify the replace next function on Search and Replace |
| 114 | + function testTextSearchReplaceNext(){ |
| 115 | + $this->openRandomPage(); |
| 116 | + parent::verifyTextSearchReplaceNext(); |
| 117 | + parent::doLogout(); |
| 118 | + } |
| 119 | + |
| 120 | + // When user click on find, text highlight on back which is not captured in Selenium directly. |
| 121 | + function testTextSearchFindNext(){ |
| 122 | + parent::doOpenLink(); |
| 123 | + parent::doLogin(); |
| 124 | + $this->open("/deployment-en/Main_Page"); |
| 125 | + $this->waitForPageToLoad("30000"); |
| 126 | + parent::doAccessRandomPage(); |
| 127 | + parent::verifyTextSearchFindNext(); |
| 128 | + parent::doLogout(); |
| 129 | + } |
| 130 | + |
| 131 | + // Verify the Match Case option with Replace All on Search and Replace |
| 132 | + function testTextMatchCase(){ |
| 133 | + $this->openRandomPage(); |
| 134 | + parent::verifyTextMatchCase(); |
| 135 | + parent::doLogout(); |
| 136 | + } |
| 137 | + |
| 138 | + //Verify Regular expression option with Replace All on Search and Replace |
| 139 | + function testRegEx(){ |
| 140 | + $this->openRandomPage(); |
| 141 | + parent::verifyRegEx(); |
| 142 | + parent::doLogout(); |
| 143 | + } |
| 144 | +} |
| 145 | +?> |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiDialogs_ExistingPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 146 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiToolBarOther_TC.php |
___________________________________________________________________ |
Added: svn:eol-style |
2 | 147 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiTextFormat_NewPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
3 | 148 | + native |
Property changes on: trunk/testing/selenium/UsabilityInitiative/WikiAutomationTC/testCases/WikiTextFormat_ExistingPage.php |
___________________________________________________________________ |
Added: svn:eol-style |
4 | 149 | + native |