Puppetry
Search…
Exporting as Test Specification
You can export test suite(s) in a human-readable report, e.g. to share it with colleges, who have no experience with Puppetry.
Press Ctrl+Shift-E (⌘⇧E) or click on File/Export Project as... menu item:
Export Project as...
Export Project modal window shows up.
Export project modal
Select format "test specification"
Export as test specification
Now you just need to select a destination folder for the report and click Export button. You will have a text report like this:
1
Demo Project
2
environment: test
3
4
template variables:
5
SANDBOX_BASEURL = https://puppetry.app/demo/
6
7
TodoMVC
8
filename: todomvc.json
9
timeout: 50000
10
11
targets:
12
FIRSTNAME_INPUT = #fname
13
LASTNAME_INPUT = #lname
14
MESSAGE_INPUT = #comment
15
CONSENT_CHECKBOX = #consent
16
OPTION_RADIO_1 = #option1
17
ATTACHMENT_FILE = #attachment
18
FORM = #form
19
SUBMIT_BTN = #submit
20
HEADER = .todoapp .header
21
NEWTODO_INPUT = .todoapp .header input.new-todo
22
MAIN = .todoapp > div > .main
23
....
24
25
1. describe: Functionality
26
27
1.1. test: No todos
28
1.1.1. Set browser viewport as "1920x1080", "x1"
29
1.1.2. Visit "http://todomvc.com/examples/react/#/"
30
1.1.3. Wait until target "HEADER" appears on the page with timeout "30000ms"
31
▷ Give React.js time to build the app
32
1.1.4. Assert that target "HEADER" is "available" and "visible"
33
1.1.5. Assert that target "MAIN" is "NOT available"
34
1.1.6. Assert that target "FOOTER" is "NOT available"
Copied!

Report Screenshots

You can extend the report with the automatically generated screenshots per every test step. Just check on the "run tests and generate step screenshots" option in the "Export project" moda window:
Tick it on to get generated step screenshots
When exporting is done, you are going to find in the given destination folder screenshots named after the test steps indices:
Test step screenshots in file explorer
If you open a screenshot corresponding a target command or assertion you will see the acting targert highlighted:
Action target is highlighted
Last modified 2yr ago
Copy link