Skip to content

ScreenPyHQ/screenpy_examples

Repository files navigation

Examples

This section of ScreenPy contains some fully-fleshed (albeit maybe a bit contrived) examples of some test suites, which show off how a test suite written in the Screenplay Pattern architecture might look. Feel free to reference these if you aren't sure how certain pieces fit together.

screenpy

Examples using just the base library! These ones will show you how to add your own Abilities, Actions, Questions, etc. in order to build your own test suite.

Read The Docs

This example is the contrivance used for the latest docs: ScreenPy Complete Example. Neat!

screenpy_appium

Examples of using screenpy_appium to do automated mobile app testing.

All of these examples use demo apps provided by Appium.

Android

Enters and clears text from some UI elements in the Android demo app. Pretty simple, i know.

iOS

Enters and clears text from some UI elements in the iOS demo app. Yeah, this one, too.

screenpy_playwright

Examples of using screenpy_playwright to do automated browser testing.

SwagLabs

Does a few cart tests on SauceLab's demo ecommerce site, SwagLabs.

screenpy_requests

Examples of using screenpy_requests to do automated API testing.

HTTPBin

A quick example suite that demonstrates how to structure an API test suite. This suite runs tests against HTTPBin.

screenpy_selenium

Examples of using screenpy_selenium to do automated browser testing.

GitHub

A very small example that shows off entering text and clicking around a few GitHub pages. It uses pytest's test organization style.

The Internet

A slightly larger example that goes to The Internet and interacts with some of the widgets there. It uses unittest's test organization style.

About

Examples of using the various ScreenPy extensions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages