theintern / intern-tutorial

Learn how to use Intern by following this tutorial!
http://theintern.io
144 stars 44 forks source link

How to use NullTunnel behind corporate proxy firewall? #38

Closed NikitaTanwani closed 7 years ago

NikitaTanwani commented 7 years ago

While running npm test(yarn test) after creating the unit test as mentioned in the tutorial, I am getting the following error. How do I resolve this ?

image

jason0x43 commented 7 years ago

What does your intern.json file look like? Note that the tunnel names in Intern 4 have changed.

NikitaTanwani commented 7 years ago

This is what my intern.json file holds right now: (I added tunnel and capabilities though the tutorial doesn't mention it)

{
    "browser": {
        "loader": {
            "script": "systemjs"
        },
        "plugins": "_dist/src/system.config.js"
    },
    "environments": { "browserName": "chrome" },
    "suites": "_dist/tests/unit/hello.js",
    "tunnel": "NullTunnel",

    "capabilities": {
        "selenium-version": "3.5.3"
    }
}
jason0x43 commented 7 years ago

As the docs mention, tunnel should be 'null'. You probably don't need capabilities in this case since the remote system will likely be determining what selenium version is used (assuming there are even multiple versions available).

NikitaTanwani commented 7 years ago

It solved the problem. Thanks alot :)