Permalink
Browse files

Import tests can not depend on FitNesse server running.

  • Loading branch information...
amolenaar committed Feb 13, 2014
1 parent 38b55ce commit e020390db43f6dec200662da16c5f55b9768c688
@@ -3,3 +3,21 @@
|Library|
|page driver|
|echo fixture|
+
+
+| Page creator. |
+| Page name. | Page contents. | valid? |
+| !-SampleWiki-! | !-!contents-! | true |
+| !-SampleWiki.ChildPageOne-! | child page | true |
+| !-SampleWiki.ChildPageOne.GrandChildPageOne-! | grand child page | true |
+| !-SampleWiki.ChildPageOne.GrandChildPageOne.GreatGrandChildPageOne-! | great grand child page | true |
+| !-SampleWiki.ChildPageTwo-! | child page | true |
+| !-SampleWiki.ChildPageTwo.GrandChildPageTwo-! | grand child page | true |
+| !-SampleWiki.ChildPageThree-! | child page | true |
+| !-SampleWiki.ChildWithUnicode-! | !-Here are some characters that make use of the unicode character set. They were gathered from wikipedia.
+japanese: メインページ
+icelandic: Forsíða
+ukranian: Головна стаття
+thai: หน้าหลัก
+greek: Κύρια Σελίδα
+arabic: الصفحة الرئيسية-! | true |
@@ -5,7 +5,7 @@ The Wiki Import feature is triggered by requesting a wiki page along with two pa
e.g. !-http://localhost/ImportingPage?responder=import&remoteUrl=http://fitnesse.org/FitNesse-!
-The .FitNesse.SampleWiki page will be used by these tests.
+A wiki page structure is provided by the set up page.
Create an importing page.
!|Page creator.|
@@ -15,7 +15,7 @@ Create an importing page.
This !-ImportingPage-! will now import the !-SampleWiki-! page.
!|Response Requester.|
|uri |valid?|
-|ImportingPage?responder=import&remoteUrl=http://localhost:${FITNESSE_PORT}/FitNesse.SampleWiki|true|
+|ImportingPage?responder=import&remoteUrl=http://localhost:9123/SampleWiki|true|
The above request will initiate a chunked response where all the imported pages are listed.
!|Response Examiner|
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<properties>
<Files/>
- <LastModified>20081213073138</LastModified>
<RecentChanges/>
<Test/>
<WhereUsed/>
@@ -1,30 +1,30 @@
-!c !3 Importing Pages with Unicode Characters
-
-The .FitNesse.SampleWiki page will be used by these tests.
-
-Create an importing page.
-!|Page creator.|
-|Page name. |Page contents.|valid?|
-|ImportingPage|!contents |true |
-
-This !-ImportingPage-! will now import the !-SampleWiki-! page.
-!|Response Requester.|
-|uri |valid?|
-|ImportingPage?responder=import&remoteUrl=http://localhost:${FITNESSE_PORT}/FitNesse.SampleWiki|true|
-
-Make sure the unicode page was imported.
-!|Response Examiner|
-|type|pattern|matches?|
-|contents|ChildWithUnicode|true|
-
-Load the imported unicode page.
-!|Response Requester.|
-|uri |valid?| contents?|
-|ImportingPage.ChildWithUnicode|true||
-
-The unicode should still be intact.
-!|Response Examiner|
-|type|pattern|matches?|
-|contents|!-japanese: メインページ-!|true|
-|contents|icelandic: Forsíða|true|
-|contents|ukranian: !-Головна стаття-!|true|
+!c !3 Importing Pages with Unicode Characters
+
+A set of test pages has been prepared in the set up page.
+
+Create an importing page.
+!|Page creator.|
+|Page name. |Page contents.|valid?|
+|ImportingPage|!contents |true |
+
+This !-ImportingPage-! will now import the !-SampleWiki-! page.
+!|Response Requester.|
+|uri |valid?|
+|ImportingPage?responder=import&remoteUrl=http://localhost:9123/SampleWiki|true|
+
+Make sure the unicode page was imported.
+!|Response Examiner|
+|type|pattern|matches?|
+|contents|ChildWithUnicode|true|
+
+Load the imported unicode page.
+!|Response Requester.|
+|uri |valid?| contents?|
+|ImportingPage.ChildWithUnicode|true||
+
+The unicode should still be intact.
+!|Response Examiner|
+|type|pattern|matches?|
+|contents|!-japanese: メインページ-!|true|
+|contents|icelandic: Forsíða|true|
+|contents|ukranian: !-Головна стаття-!|true|
@@ -1,10 +1,9 @@
-<?xml version="1.0"?>
-<properties>
- <Files/>
- <LastModified>20081105124028</LastModified>
- <RecentChanges/>
- <Test/>
- <WhereUsed/>
- <saveId>1225906828508</saveId>
- <ticketId>4343884691942306093</ticketId>
-</properties>
+<?xml version="1.0"?>
+<properties>
+ <Files/>
+ <RecentChanges/>
+ <Test/>
+ <WhereUsed/>
+ <saveId>1225906828508</saveId>
+ <ticketId>4343884691942306093</ticketId>
+</properties>
@@ -9,7 +9,7 @@ First we need a page.
Import the !-SampleWiki-!.
!|Response Requester.|
|uri |valid?|
-|ImportingPage?responder=import&remoteUrl=http://localhost:${FITNESSE_PORT}/FitNesse.SampleWiki|true|
+|ImportingPage?responder=import&remoteUrl=http://localhost:9123/SampleWiki|true|
Request the properties view of this page.
!|Response Requester.|
@@ -2,11 +2,9 @@
<properties>
<Edit/>
<Files/>
- <Help/>
<Properties/>
<RecentChanges/>
<Refactor/>
- <Suites/>
<Test/>
<Versions/>
<WhereUsed/>
@@ -9,7 +9,7 @@ Create an importing page.
This !-ImportingPage-! will now import the !-SampleWiki-! page.
!|Response Requester.|
|uri |valid?|
-|ImportingPage?responder=import&remoteUrl=http://localhost:${FITNESSE_PORT}/FitNesse.SampleWiki|true|
+|ImportingPage?responder=import&remoteUrl=http://localhost:9123/SampleWiki|true|
Now we'll change the content of one of the local pages.
!|Save Page Requester|
@@ -1,7 +1,6 @@
<?xml version="1.0"?>
<properties>
<Files/>
- <Help></Help>
<RecentChanges/>
<Test/>
<WhereUsed/>

0 comments on commit e020390

Please sign in to comment.