Giter Site home page Giter Site logo

testcast's Introduction

TestCast

This project is a JUnit 5 extension.

There are some useful annotations here:

@TestCast

Please check out uk.co.itstherules.examples.ExampleTestCastTest

What does this do? It records the screen and drops out an AVI video For the example above it will drop out a video -> ./reports/uk.co.itstherules.examples.ExampleTestCastTest.canCaptureBrowsingGoogle.avi Useful if you want to record the browser for intermittently failing frontend tests

@SnapShot

Please check out uk.co.itstherules.examples.ExampleSnapShotTest

What does this do? It snap-shots the screen and drops out an jpg file when the test fails or has an error For the example above it will drop out a jpg -> ./reports/uk.co.itstherules.examples.ExampleSnapShotTest.canCaptureOnFailure.jpg Useful if you want to screen-grab the browser for intermittently failing frontend tests

@ScreenCast

ScreenCast is a little different.
I had this wacky idea a few years ago that instead of doing boring tutorial videos for your webapp, you could use happy path tests to document your key flows.
What this @ScreenCast annotation does is start a desktop notification service in the background, which you can push either a splash-screen graphic, or a message to display on the screen. The notifier will pause the action so you will have enough time to read the text.

Please check out uk.co.itstherules.examples.ExampleScreenCastTest

It's a fairly complete example.
The Notifier built in is client / server based, and can also be configured to run remotely.

Still to do: I'd like to write a "fast" and "record" mode where you can use the same tests to both test the flow and drop out a tutorial video.

testcast's People

Watchers

 avatar  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.