Skip to content

Quick Start

Márcio Mendes edited this page Jul 15, 2019 · 7 revisions

Start by creating a simple folder and add walnutjs to it

mkdir demo-qaaut && cd demo-qaaut
npm init -y
npm install walnutjs

Create the file walnut-config.json with this content:

{
    "walnut": {
        "name": "walnut sample automation",
        "enableDebug": false,
        "reports": "./reports",
        "noScreenshot": false,
        "launchReport": true,
        "paths": {
            "locators": "./test/locators",
            "evidences": "./test/photos",
            "parameters": "./test/params/my-params.json"
        }
    },
    "cucumber": {
        "steps": "./test/step_defs",
        "timeout": 15000,
        "features": "./test/features/**/*.feature",
        "outputFormat": "summary"
    },
    "selenium": {
        "browser": "chrome",
        "browserTeardownStrategy": "none",
        "remoteURL": "http://localhost:4444/wd/hub",
        "caps": {
            "browserName": "chrome",
            "chromeOptions": {
                "args": [
                    "start-maximized",
                    "disable-extensions"
                ]
            }
        }
    }
}
Clone this wiki locally