From 0dc7dd00302aa692ad0ca8574ab83c00d69a75be Mon Sep 17 00:00:00 2001 From: Fried Hoeben Date: Thu, 27 Jun 2019 21:26:52 +0200 Subject: [PATCH] sample test --- wiki/FitNesseRoot/FrontPage/content.txt | 17 ++++++++++++++++ wiki/FitNesseRoot/FrontPage/properties.xml | 13 ++++++++++++ wiki/FitNesseRoot/TiestaSuite.wiki | 17 ++++++++++++++++ wiki/FitNesseRoot/TiestaSuite/DeBilt.wiki | 16 +++++++++++++++ wiki/FitNesseRoot/TiestaSuite/JaTest.wiki | 15 ++++++++++++++ wiki/FitNesseRoot/TiestaSuite/NietTest.wiki | 9 +++++++++ wiki/FitNesseRoot/TiestaSuite/SuiteSetUp.wiki | 20 +++++++++++++++++++ .../TiestaSuite/SuiteTearDown.wiki | 8 ++++++++ 8 files changed, 115 insertions(+) create mode 100644 wiki/FitNesseRoot/FrontPage/content.txt create mode 100644 wiki/FitNesseRoot/FrontPage/properties.xml create mode 100644 wiki/FitNesseRoot/TiestaSuite.wiki create mode 100644 wiki/FitNesseRoot/TiestaSuite/DeBilt.wiki create mode 100644 wiki/FitNesseRoot/TiestaSuite/JaTest.wiki create mode 100644 wiki/FitNesseRoot/TiestaSuite/NietTest.wiki create mode 100644 wiki/FitNesseRoot/TiestaSuite/SuiteSetUp.wiki create mode 100644 wiki/FitNesseRoot/TiestaSuite/SuiteTearDown.wiki diff --git a/wiki/FitNesseRoot/FrontPage/content.txt b/wiki/FitNesseRoot/FrontPage/content.txt new file mode 100644 index 0000000..e998825 --- /dev/null +++ b/wiki/FitNesseRoot/FrontPage/content.txt @@ -0,0 +1,17 @@ +!1 Welcome to [[FitNesse][FitNesse.FitNesse]]! +!3 ''The fully integrated stand-alone acceptance testing framework and wiki.'' +# Here is a good place to add your first page (WikiWord). For example, MyTopLevelApplicationPage + +TiestaSuite + +This installation is extended with features from the project hsac-fitnesse-fixtures. Documentation about these features can be found in HsacExamples (and their tests in HsacAcceptanceTests). + +To add your first "page", click the [[Edit][.FrontPage?edit]] button and add a [[!-WikiWord-!][.FitNesse.UserGuide.FitNesseWiki.WikiWord]] to the page. + +|'''To Learn More...''' | +|[[User Guide][.FitNesse.UserGuide]] |''Answer the rest of your questions here.''| +|[[A Two-Minute Example][.FitNesse.UserGuide.TwoMinuteExample]]|''A brief example. Read this one next.'' | +|[[Acceptance Tests][.FitNesse.SuiteAcceptanceTests]] |''FitNesse's suite of Acceptance Tests'' | +|[[Release Notes][.FitNesse.ReleaseNotes]] |''Find out about FitNesse's new features'' | + +!note Release ${FITNESSE_VERSION} diff --git a/wiki/FitNesseRoot/FrontPage/properties.xml b/wiki/FitNesseRoot/FrontPage/properties.xml new file mode 100644 index 0000000..c0a08e1 --- /dev/null +++ b/wiki/FitNesseRoot/FrontPage/properties.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/wiki/FitNesseRoot/TiestaSuite.wiki b/wiki/FitNesseRoot/TiestaSuite.wiki new file mode 100644 index 0000000..5b74a2e --- /dev/null +++ b/wiki/FitNesseRoot/TiestaSuite.wiki @@ -0,0 +1,17 @@ +--- +Suite +--- +!contents -R2 -g -p -f -h + + +!*> Basic setup for tests with Slim +Workaround for https://github.com/unclebob/fitnesse/issues/989 +!define slim.port {0} + +!define TEST_SYSTEM {slim} + +The classpath location: +!path fixtures +!path fixtures/*.jar + +*! diff --git a/wiki/FitNesseRoot/TiestaSuite/DeBilt.wiki b/wiki/FitNesseRoot/TiestaSuite/DeBilt.wiki new file mode 100644 index 0000000..3c4d6c6 --- /dev/null +++ b/wiki/FitNesseRoot/TiestaSuite/DeBilt.wiki @@ -0,0 +1,16 @@ +--- +Test +--- + +|storyboard |browser test | +|open |https://www.debilt.nl | +|click |Paspoort aanvragen | +|click |Afspraak maken | +|click |Kies datum | +|click |10 | +|click |Kies tijdstip | +|click |10.05 | +|click |Contactgegevens | +|enter |Pietje Puk|as|Naam | +|click |Controleren | +|wait for visible|Dit is een verplicht veld| diff --git a/wiki/FitNesseRoot/TiestaSuite/JaTest.wiki b/wiki/FitNesseRoot/TiestaSuite/JaTest.wiki new file mode 100644 index 0000000..8a2be6c --- /dev/null +++ b/wiki/FitNesseRoot/TiestaSuite/JaTest.wiki @@ -0,0 +1,15 @@ +--- +Test +--- + +|storyboard |browser test | +|open |https://bit.ly/2BQKeC7 | +|click |Ja. Ik ben een nieuwsgierige tester!| +|switch to next tab | +|enter |Fried |as|Voornaam | +|enter |Hoeben |as|Achternaam | +|enter |example@example.com|as|emailadres | +|enter |0612345678 |as|GSM | +|click |Opslaan | +|wait for visible|Tools Overzicht | +|check |location |=~/gelukt/ | diff --git a/wiki/FitNesseRoot/TiestaSuite/NietTest.wiki b/wiki/FitNesseRoot/TiestaSuite/NietTest.wiki new file mode 100644 index 0000000..f9c027c --- /dev/null +++ b/wiki/FitNesseRoot/TiestaSuite/NietTest.wiki @@ -0,0 +1,9 @@ +--- +Test +--- + +|storyboard|browser test| +|open|https://bit.ly/2BQKeC7| +|click|Niet op klikken| +|switch to next tab| +|confirm alert| diff --git a/wiki/FitNesseRoot/TiestaSuite/SuiteSetUp.wiki b/wiki/FitNesseRoot/TiestaSuite/SuiteSetUp.wiki new file mode 100644 index 0000000..9c46967 --- /dev/null +++ b/wiki/FitNesseRoot/TiestaSuite/SuiteSetUp.wiki @@ -0,0 +1,20 @@ +--- +Help: Defines where to look for fixture code, and ensures browser is started. +--- +This set up page is executed once, before any tests in this suite. +In it we configure which Java packages contain the logic for our fixtures, which browser we want to use for Selenium tests and we start this browser. +This means we do not have to do this in every test, which means easier maintenance and better performance. + +Stopping the browser is done in SuiteTearDown, which is done after all tests in this suite are completed. + +An [[import table][.FitNesse.UserGuide.WritingAcceptanceTests.SliM.ImportTable]] defines which Java packages may contain fixture classes. + +|Import | +|nl.hsac.fitnesse.fixture | +|nl.hsac.fitnesse.fixture.slim | +|nl.hsac.fitnesse.fixture.slim.web| + + +|script |selenium driver setup| +|start driver for|chrome | +|show |driver description | diff --git a/wiki/FitNesseRoot/TiestaSuite/SuiteTearDown.wiki b/wiki/FitNesseRoot/TiestaSuite/SuiteTearDown.wiki new file mode 100644 index 0000000..1d7d4f4 --- /dev/null +++ b/wiki/FitNesseRoot/TiestaSuite/SuiteTearDown.wiki @@ -0,0 +1,8 @@ +--- +Help: Stops browser after tests complete. +--- +This set up page is executed once, after all tests in this suite. + +|script|selenium driver setup| +|show |run summary | +|stop driver |