2

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.

andreaspfr
  • 2,176
  • 5
  • 38
  • 49
  • 2
    I guess this should solve the purpose. Add the following in your conf.js and run as a normal Protractor Test. seleniumAddress: 'http://10.2.1.7:5985/' – Sakshi Singla Mar 04 '15 at 11:36

1 Answers1

2

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',
        },
    ], 
andreaspfr
  • 2,176
  • 5
  • 38
  • 49