FitNesse with HSAC-fixtures workshop

We will use a sample test project. This project can either be used from:

  • inside the virtual machine prepared for the meetup (inside ~/Documents/Fitnesse directory)
  • a locally downloaded and extracted standalone.zip
  • its source, using a JDK and Maven

Start local wiki

First we will have to start our wiki server:

  • Open a terminal (or command prompt)
  • Go to the directory where the 'standalone.zip' was extracted (cd ~/Documents/Fitnesse in the virtual machine)
  • Start the server: java -jar fitnesse-standalone.jar -p 9090

(If you want to run from source, with maven, use: mvn compile exec:exec from the project's root.)

Overview

We've selected a number of interesting websites to use in our tests tonight.
Feel free to choose one or more of the options below and try your hand at a few of the exercises.

(If you don't mind some spoilers for the exercises you can peek at the predefined wiki pages below
http://localhost:9090/TestToolingWorkshop)

  • Update ‘funda Storyboard test’
  • Write front-end test for ‘typeform.com’
  • Write API test for ‘typeform.com'
  • Use scenario table

Get started

‘funda Storyboard test’

Exercise

Update test to validate some more properties of the listing:

  • ‘Woonoppervlakte’
  • ‘Bouwjaar’

typeform.com questionnaire

Exercise

typeform.com API

Exercise

Use scenarios to improve tests

Exercises

  • Use scenario to make test with complex json path more readable
  • Use scenario instead of hardcoding question id
  • Encapsulate retrieving of answers in scenario
  • Create decision table using scenario
  • Move scenarios to (new) ScenarioLibrary page so they can be used in multiple tests

results matching ""

    No results matching ""