Sha256: 131935a45ca9d9e77b3187e4b2ea3c18b76767f22374d4b2856eccb97e0bec1b

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 KB

Contents

!c !3 Importing Sample Wiki
The Wiki Import feature is triggered by requesting a wiki page along with two parameters:
 * responder=import
 * remoteUrl=<url of wiki to import>

e.g. !-http://localhost/ImportingPage?responder=import&remoteUrl=http://fitnesse.org/FitNesse-!

A wiki page structure is provided by 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|

The above request will initiate a chunked response where all the imported pages are listed.
!|Response Examiner|
|type|pattern|matches?|wrapped html?|
|contents|ChildPageOne|true||

!|Response Examiner|
|type|pattern|matches?|
|contents|GrandChildPageOne|true|
|contents|GreatGrandChildPageOne|true|
|contents|ChildPageTwo|true|
|contents|GrandChildPageTwo|true|
|contents|ChildPageThree|true|

All the pages that were import can now be retrieved.
!|Response Requester.|
|uri   |valid?|
|ImportingPage.ChildPageOne|true|
|ImportingPage.ChildPageOne.GrandChildPageOne|true|
|ImportingPage.ChildPageOne.GrandChildPageOne.GreatGrandChildPageOne|true|
|ImportingPage.ChildPageTwo|true|
|ImportingPage.ChildPageTwo.GrandChildPageTwo|true|
|ImportingPage.ChildPageThree|true|

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xcfit-0.9.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.8.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.7.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.6.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.5.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.4.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.3.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt
xcfit-0.2.0 XCFitDemo/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteWikiImportTests/TestImportingSampleWiki/content.txt