đĻ Demo Mode
Demo Mode đĻ¶
đĩ Demo Mode helps you see what a test is doing.
đđ¨ đ If a test runs too fast for your eyes, use Demo Mode to slow it down, highlight actions, and display assertions. Example usage:
cd examples/
pytest test_coffee_cart.py --demo
(
--demo
mode slows down tests and highlights actions)
Another example:
pytest my_first_test.py --demo
Here's how to run test_swag_labs.py from examples/ in Demo Mode:
pytest test_swag_labs.py --demo
Here's an example that only uses the highlight()
method for highlighting browser actions:
(test_error_page.py from examples/)
pytest test_error_page.py
Here's an example of a mobile test in Demo Mode: