nightwatch.json 2.83 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
{
    "src_folders": ["./tests/e2e/tests"],
    "output_folder": "./tests/reports",
    "custom_commands_path": "tests/e2e/commands",
    "custom_assertions_path": "",
    "page_objects_path": "tests/e2e/pages",
    "globals_path": "tests/e2e/globals.js",
    "selenium" : {
        "start_process" : false,
        "server_path" : "",
        "log_path" : "",
        "host" : "localhost",
        "port" : 4444,
        "cli_args" : {
          "webdriver.chrome.driver" : "",
          "webdriver.ie.driver" : "",
          "webdriver.gecko.driver": ""
        }
      },
    "test_settings": {
        "default": {
            "launch_url": "http://localhost:8065/",
            "selenium_port": 4444,
            "selenium_host": "localhost",
            "silent": true,
            "skip_testcases_on_fail": false,
            "end_session_on_fail": false,
            "resolution": "1920x1080",
            "exclude": "utils.js",
            "screenshots": {
                "enabled": true,
                "on_failure": true,
                "path": "./tests/reports/screenshots"
            },
            "desiredCapabilities": {
36
                "browserName": "chrome",
37 38 39 40 41 42 43
                "unexpectedAlertBehaviour": "dismiss",
                "javascriptEnabled": true,
                "acceptSslCerts": true,
                "elementScrollBehavior": "1"
            }
        },
        "chrome": {
44
            "resolution": "1920x1080",
45 46 47 48 49 50 51 52 53 54
            "desiredCapabilities": {
                "browserName": "chrome",
                "javascriptEnabled": true,
                "acceptSslCerts": true,
                "chromeOptions": {
                    "args": ["window-position=0,0", "window-size=1920,1080", "--disable-popup-blocking"]
                }
            }
        },
        "firefox": {
55
            "resolution": "1920x1080",
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
            "desiredCapabilities": {
                "browserName": "firefox",
                "unexpectedAlertBehaviour": "dismiss",
                "javascriptEnabled": true,
                "acceptSslCerts": true,
                "elementScrollBehavior": "1"
            }
        },
        "360x640": {
            "resolution": "360x640",
            "desiredCapabilities": {
                "browserName": "chrome",
                "javascriptEnabled": true,
                "acceptSslCerts": true,
                "chromeOptions": {
                    "args": ["window-position=0,0", "window-size=360,640"]
                }
            }
        },
        "768x1024": {
            "resolution": "768x1024",
            "desiredCapabilities": {
                "browserName": "chrome",
                "javascriptEnabled": true,
                "acceptSslCerts": true,
                "chromeOptions": {
                    "args": ["window-position=0,0", "window-size=768,1024"]
                }
            }
        }
    }
87
}