Simple Selenium and Scenarioo Demo in Java.
This example demonstrates how to use the Scenarioo Writer Library in your Selenium Webtests with JUnit to produce Scenarioo Documentation data.
You can see the Scenarioo Documentation Reports generated by this example in the Scenarioo Viewer here: Pizza Delivery Scenarioo Documenation
git clone https://github.com/scenarioo/pizza-delivery.git
cd pizza-delivery
./gradlew test
Scenarioo documentation data is located in build\scenariooDocumentation
after the test run has finished. In order to browse the data in the Scenarioo Viewer you need to setup the viewer as described in Setup of Scenarioo Viewer Web App.
This example uses JUnit 5. If you still use JUnit 4 - you can see the same example for JUnit 4 on branch junit4
here:
https://github.com/scenarioo/pizza-delivery/tree/junit4
The test code is based on Java using Selenium for the Browser automation and Scenarioo for documenting the
test cases. You'll find this code in the folder src/test
.
You can browse the documentation generated by this example in the Scenarioo Viewer here: Pizza Delivery Scenarioo Documentation.
The application under test is a very simple pizza ordering web app without a dynamic backend. It's all in the folder
src/main/resources/pizza-shop
.
If you want to experience the pizza ordering awesomeness on your own, you can order your pizzas here: Pizza Delivery Web Shop.
Usage hint: The only known phone number is 0791111111, all other phone numbers require you to enter a new delivery address. And don't wory, there is no backend, so no one will bring you a pizza or send you a bill or call you to sell you more. ;-)