Skip to main content
Version: shouty

Getting Started

This is a hands-on tutorial for automating BDD scenarios using various BDD automation tools such as Cucumber and SpecFlow. By completing this tutorial you will have practice using all the meaningful features of these tools and confidence in your ability to apply them to real-world projects.

Business Concept

You will be developing a new social media app - with some similarities to Twitter - called Shouty. Users of the app will be able to ’shout’ - and will be ’heard’ by other users who are within 1000 meters of the shouter.

Shouty will initially support the following use case:

  • Local Business Promotions e.g. "Half price coffee at Barney’s Café until 12 today"

The target platform is GPS-enabled smartphones.

Functional Requirements:

  • Shouts should be text only - limited to 2000 characters
  • The range of shouts should be 1000m

User Story:

As a business owner I want Shouty users within range to receive my promotional shouts So that I can generate more business

Here's a short video overview of Shouty

1. Select your programming language

What you'll need:

  • Visual Studio 2022, Visual Studio 2019, or Visual Studio 2017 (Community, Professional or Enterprise edition)
  • .NET Core v3.1 (alternatively TargetFramework in the .csproj files can be changed to net6.0)
  • SpecFlow extension for Visual Studio

We recommend:

  • Visual Studio 2022

2. Get the code

Clone the Shouty project from https://github.com/cucumber-examples/shouty.net and open it in Visual Studio.

Dependencies

If dependency installation hangs or fails, your corporate proxy is the most likely culprit. Disconnect from your work VPN and try again. You should only need to do this once.

There is no legitimate reason to change any project configuration or dependency versions to make this project run. If installation or execution isn’t working, tell the instructor immediately so we can diagnose it before you go down a rabbit hole.

3. Run the Tests

  • Open the Shouty.NET.sln file in Visual Studio
  • Select Test > Run > All Tests from the menu, or press CTRL-R, A

4. Inspect the output

If you see some tests passing and some tests failing, you're good to go. 👍