Building testing frameworks from scratch requires a lot of boilerplate code. It is also hard to know how to get started without examples.
As part of the Amido Stacks projects we have developed a range of testing frameworks for each part of our solutions that are already built in, which can be bootstrapped and tailored to your current project with just one command. In addition they also exist as standalone solutions that can be run cloned and run without the need to build the entire solution can can be modified to applications and workloads outside of stacks.
Bootstrap your framework
The best way to get started, is bootstrapping the framework using the scaffolding-cli from Amido Stacks. By using it in interactive mode, you can simply answer 5 questions to get a bespoke framework, ready to go with an example test.
|cypress*||Typescript - TestCafe||C# - Selenium||Java - Serenity||jest-sonar*|
|Framework Type||Acceptance Functional E2E Functional API Component Accessibility Visual Regression||Acceptance Functional E2E Accessibility||Acceptance Functional E2E||Acceptance Functional E2E||Unit Component Integration|
|Libraries and Tools||Mocha Chai Chai-jQuery Sinon.JS Sinon-Chai Lodash Minimatch Moment Blob Promise||Axios TestCafe Assertions TestCafe API||Microsoft Test SDK Selenium WebDriver ChromeDriver Shouldly BDDfy xUnit||Java SDK Selenium WebDriver ChromeDriver Serenity JUnit||Jest Snapshot @testing-library/react|
|Integrations||Axe Applitools||Axe LambdaTest||Sonar Scanner|
|Report(s)||jUnit/xUnit xunit-viewer (single page HTML) Mochawesome (rich HTML results with screenshots)||xUnit||BDDfy xUnit||Serenity reports||jUnit/xUnit Cobertura, lcov (code coverage) Sonar reporter|
|Browsers||Used: Google Chrome Supported: Mozilla Firefox Microsoft Edge Electron Brave||Used: LambdaTest Google Chrome Supports: Internet Explorer (11+) Microsoft Edge (legacy and Chromium-based) Mozilla Firefox Safari||Used: Google Chrome Supports: LambdaTest Internet Explorer (11+) Microsoft Edge (legacy and Chromium-based) Mozilla Firefox Safari||Used: Google Chrome Supports: Internet Explorer (11+) Microsoft Edge (legacy and Chromium-based) Mozilla Firefox||N/A|
|Example Data Teardown||N/A (stubbed request)||Yes||Yes||Yes||N/A|
|Features||Automatic waiting In browser Element selector tool Spies, stubs , clocks Real time reloads Can use the same environment variables as the webapp||Cross browser Script injection||WebDriver||WebDriver Multi-thread test execution Enhanced reporting||Render|
|Screenshots +/- Videos||Yes||Yes||Yes||Yes||No|
Get testing in just five questions
At the end of bootstrapping your example framework, you will have an output that will contain all the:
- Example tests
- Environment variables
- ...and information to start testing immediately
You are ready to follow the frameworks README.md and run your first test!
Since the frameworks provide real examples on deployed applications, we recommend using these as examples and then replacing them with your own applications under test.
As always, we only improve from the incredible feedback and contributions from people like you. To help us improve, see our contribution guide for more information.