GithubHelp home page GithubHelp logo

lanicon / tranquire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from galad/tranquire

0.0 1.0 0.0 1.73 MB

An .NET web UI automation framework based on the screenplay pattern implemented in Serenity BDD

License: MIT License

C# 95.74% HTML 1.42% JavaScript 1.53% Smalltalk 0.25% Gherkin 0.13% XSLT 0.89% Batchfile 0.01% PowerShell 0.02%

tranquire's Introduction

tranquire

Build status Quality gate NuGet

Introduction

Tranquire brings the screenplay pattern to .NET. It is highly inspired by the implementation of Serenity BDD. You can refer to the Serenity documentation to understand how Tranquire works. Its goal is to better organize UI acceptance tests and make them more maintainable and readable, by applying the single responsability and open-closed principles to UI actions.

Tranquire enables UI actions by provinding an abstraction layer on top of Selenium in a form of a independant composable actions.

Documentation

See the wiki

Solution overview

The solution is composed by Tranquire as well as test projects.

Tranquire

  • Tranquire : the core library
  • Tranquire.Selenium : contains the ui actions and questions used to automate a web UI with Selenium.
  • Tranquire.NUnit : contains methods that allows to use NUnit constraint in Then actions

Demo project

  • ToDoList : a todomvc web project used to demonstrate tranquire.
  • ToDoList.Automation : the automation framework for the todomvc app.
  • ToDoList.Specifications : the acceptance tests for the todomvc app.

Tests projects

  • Tranquire.Tests
  • Tranquire.Selenium.Tests
  • Tranquire.NUnit.Tests

Building the sources

Requirements

  • .NET core 2.2 SDK
  • .NET Framework 4.6.2 SDK
  • Google Chrome (for Selenium tests)
  • npm (for the Demo app)

Using Visual Studio 2019, building and testing does not require any particular steps in Debug configuration.

Building

dotnet build Tranquire.sln

Running tests

dotnet test Tranquire.sln

Running end to end tests of the demo application

The project ToDoList.Specification contains tests at the Api level and the UI level. They are intended to be run is separate test runs. In order to run the level you want you can change the default value here. Change to either TestLevel.UI or TestLevel.Api, and rebuild the project. It is then recommended to filter the tests by the appropriate category (Api or UI).

As an alternative you can configure the level and run the tests from the console:

set TEST_LEVEL=Api
dotnet test Tranquire.sln --filter Category=Api

See here for more information about the demo app

tranquire's People

Contributors

galad avatar cosmingramada avatar venotp avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.