Puppetry
3.2.2
3.2.2
  • Welcome Puppetry
  • Getting Started
  • Project
  • Suite
  • Group
  • Target
    • Simple Target
    • iFrame Target
    • ShadowDOM Target
    • Chained Target
    • Shared Target
  • Test Case
  • Test Step / Action
    • Page Commands
    • Page Assertions
    • Target Commands
    • Target Assertions
  • Managing Records
  • Snippets
  • Running tests
    • Interactive Mode
    • Troubleshooting
  • Test Report
  • Export
    • Exporting as Jest Project (CI-friendly)
    • Exporting as Test Specification
  • Settings
  • Template Expressions
  • Testing Techniques
    • Testing Dynamic Content
    • Exhaustive Testing
    • Performance Testing
    • Visual Regression Testing
    • Testing Shadow DOM
    • Testing Google Analytics tracking code
    • Testing Chrome Extensions
    • Testing REST API
    • Mocking HTTP/S Requests
    • Testing Transactional Emails
      • Example with Restmail.net
      • Example with Mailinator
      • Example with IMAP bridge
      • Example with Google API
    • Testing Forms with Captcha
  • Version Control
  • Tips and Tricks
    • Embrace the Power of CSS
  • Command API
  • Test Application
Powered by GitBook
On this page
  • View Test Reports with Allure
  • Configuring Puppeteer

Was this helpful?

  1. Export

Exporting as Jest Project (CI-friendly)

PreviousExportNextExporting as Test Specification

Last updated 5 years ago

Was this helpful?

Project suites can be exported as and be ran in command line by, for example, Continuous Integration server.

Press Ctrl+Shift-E (⌘⇧E) or click on File/Export Project as... menu item:

Export Project modal window shows up.

After exporting we can jump to the given export directory and install npm dependencies:

npm install

then we run the tests:

npm test

We are expected to get output like that:

View Test Reports with Allure

npm run report

It will load the generated test report in Allure browser

Configuring Puppeteer

You can change the configuration set while exporting in puppeteer.config.json

  • incognito - when true the test will run in incognito window

Example:

{
  "incognito": true,
  "puppeteer.connect": {
    "browserWSEndpoint": null,
    "ignoreHTTPSErrors": true
  },
  "puppeteer.launch": {
    "product": "chrome",
    "headless": false,
    "devtools": false,
    "ignoreHTTPSErrors": true,
    "args": [
      "--start-maximized",
      "--ignore-certificate-errors"
    ],
    "executablePath": "/usr/bin/google-chrome"
  }
}

It is quite similar to window. Similarly we can choose a target environment (see also ) and set up Browser options. What it's new we have to specify the destination folder for the exported project.

If you have installed on your system you can also run

puppeteer.launch - options to pass to

puppeteer.connect - options to pass to

Run Tests
Template variables
Allure
puppeteer.launch
puppeteer.connect
Jest test project
Export Project as...
Export project modal
Allure test report