andreaspfr
andreaspfr

Reputation: 2314

How can I run Protractor tests on a remote machine

I want to run my protractor tests on a virtual machine. I already tried running it with the following command:

Invoke-Command -ComputerName 10.2.1.7 -Port 5985 -Credential $credential -ScriptBlock{
    protractor C:\Users\test\Desktop\proRemote\config.js
}

Unfortunately this approach is very slow. Is there another way to run my protractor tests on a virtual machine? Maybe with the remote webdriver of selenium (I could not figure out how to do the setup).

Any help will be highly appreciated.

Upvotes: 2

Views: 5625

Answers (1)

andreaspfr
andreaspfr

Reputation: 2314

As Sakshi Singla suggested I fired up a webdriver on my remote machine (be sure to open the port if you are on a Windows machine) and connect to that in my config file:

 multiCapabilities:[
        {"browserName": "chrome",
        "seleniumAddress": 'http://10.105.178.758:5555/wd/hub',
        },
    ], 

Upvotes: 2

Related Questions