protractor installation problems on Windows 2012 Server
2017-04-18 15:39
656 查看
Error 1. Can't download chrome
Solution: Local Server -> PROPERTIES -> IE Enhanced Security Configuration
Set Off from On as below;
[b]Error 2. connect ETIMEDOUT when run "webdriver-manager
update" cmd[/b]
C:\Users\$jich004\Desktop\e2e>webdriver-manager
update
[09:51:53] I/file_manager
- creating folder C:\Users\$jich004\AppData\Roaming\np
m\node_modules\protractor\node_modules\webdriver-manager\selenium
events.js:160
throw er; //
Unhandled 'error' event
^
Error: connect
ETIMEDOUT 172.217.6.176:443
at Object.exports._errnoException
(util.js:1018:11)
at exports._exceptionWithHostPort
(util.js:1041:20)
at TCPConnectWrap.afterConnect
[as oncomplete] (net.js:1090:14)
Solution:
set PROXY=http://web-proxy.corp.hp.com:8080
set HTTP_PROXY=%PROXY%
set HTTPS_PROXY=%PROXY%
Error 3. Intsall node TIMEOUT
Solution: Set proxy by the file C:\Users\$jich004\.npmrc as follow
proxy=http://web-proxy.corp.hp.com:8080/
https-proxy=http://web-proxy.corp.hp.com:8080/
strict-ssl=false
Error 4. 'java' is not recognized as an internal or external command
C:\Users\$jich004\Desktop\e2e>webdriver-manager start
[02:21:42] I/start - java -Dwebdriver.chrome.driver=C:\Users\$jich004\AppData\R
aming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrom
driver_2.29.exe -Dwebdriver.gecko.driver=C:\Users\$jich004\AppData\Roaming\npm\
ode_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.1
.0.exe -jar C:\Users\$jich004\AppData\Roaming\npm\node_modules\protractor\node_
odules\webdriver-manager\selenium\selenium-server-standalone-3.3.1.jar -port 44
4
[02:21:42] I/start - seleniumProcess.pid: 10996
'java' is not recognized as an internal or external command,
Solution: Install jre and set JAVA_HOME and add java folder to path
on win 2012 server , This PC -> system properties -> Advanced system settings -> Environment Variables
JAVA_HOME = C:\Program Files\Java\jre1.8.0_121
PATH = C:\Users\$jich004\AppData\Roaming\npm;%JAVA_HOME%\bin
Error 5. can't find conf.js when run "webdrive-manager start" cmd
Solution: change conf.js.txt to conf.js
the way show extensions on win 2012: View -> File name extensions
Error 6. local and remote can't communication
Right click Local Computer -> Map Network Driver ->input folder [\\*.itcs.hpecorp.net\f$]
Solution: Local Server -> PROPERTIES -> IE Enhanced Security Configuration
Set Off from On as below;
[b]Error 2. connect ETIMEDOUT when run "webdriver-manager
update" cmd[/b]
C:\Users\$jich004\Desktop\e2e>webdriver-manager
update
[09:51:53] I/file_manager
- creating folder C:\Users\$jich004\AppData\Roaming\np
m\node_modules\protractor\node_modules\webdriver-manager\selenium
events.js:160
throw er; //
Unhandled 'error' event
^
Error: connect
ETIMEDOUT 172.217.6.176:443
at Object.exports._errnoException
(util.js:1018:11)
at exports._exceptionWithHostPort
(util.js:1041:20)
at TCPConnectWrap.afterConnect
[as oncomplete] (net.js:1090:14)
Solution:
set PROXY=http://web-proxy.corp.hp.com:8080
set HTTP_PROXY=%PROXY%
set HTTPS_PROXY=%PROXY%
Error 3. Intsall node TIMEOUT
Solution: Set proxy by the file C:\Users\$jich004\.npmrc as follow
proxy=http://web-proxy.corp.hp.com:8080/
https-proxy=http://web-proxy.corp.hp.com:8080/
strict-ssl=false
Error 4. 'java' is not recognized as an internal or external command
C:\Users\$jich004\Desktop\e2e>webdriver-manager start
[02:21:42] I/start - java -Dwebdriver.chrome.driver=C:\Users\$jich004\AppData\R
aming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium\chrom
driver_2.29.exe -Dwebdriver.gecko.driver=C:\Users\$jich004\AppData\Roaming\npm\
ode_modules\protractor\node_modules\webdriver-manager\selenium\geckodriver-v0.1
.0.exe -jar C:\Users\$jich004\AppData\Roaming\npm\node_modules\protractor\node_
odules\webdriver-manager\selenium\selenium-server-standalone-3.3.1.jar -port 44
4
[02:21:42] I/start - seleniumProcess.pid: 10996
'java' is not recognized as an internal or external command,
Solution: Install jre and set JAVA_HOME and add java folder to path
on win 2012 server , This PC -> system properties -> Advanced system settings -> Environment Variables
JAVA_HOME = C:\Program Files\Java\jre1.8.0_121
PATH = C:\Users\$jich004\AppData\Roaming\npm;%JAVA_HOME%\bin
Error 5. can't find conf.js when run "webdrive-manager start" cmd
Solution: change conf.js.txt to conf.js
the way show extensions on win 2012: View -> File name extensions
Error 6. local and remote can't communication
Right click Local Computer -> Map Network Driver ->input folder [\\*.itcs.hpecorp.net\f$]
相关文章推荐
- Fixing BizTalk ENTSSO Failure on Windows 7, Vista or Server 2008 after .NET 4.0 Installation
- Jenkins on Linux(Master) talk with Windows server 2012 R2 (Slave)
- Determining the source of Bug Check 0x133 (DPC_WATCHDOG_VIOLATION) errors on Windows Server 2012
- [转]Installing and Configuring target iSCSI server on Windows Server 2012
- Configure custom SSL certificate for RDP on Windows Server 2012 in Remote Administration mode
- CCProxy on Windows Server 2012 设置
- License Server Version 11.9 Installation on Windows Server 2003 Hangs
- How to enable BitLocker on Windows Server 2012 R2
- Install ADDS on Windows Server 2012 R2 with PowerShell
- Issue: Install iamsuite on Windows Server 2012
- Run iisapp/appcmd on windows server 2008~2012(windows server 10同样适用)
- 如何安装 WIF 1.0 runtime on Windows Server 2012
- How to Enable Plain Text Password on Windows for Connecting to Samba Server
- Focus on Windows 2000 Server – 1st part
- set up SMTP server on Windows 2008[备忘]
- Getting Started: Failover Clusters on windows server 2008
- NTP server install on windows
- Step by Step Setup Git Server on Windows with CopSSH + msysGit and Integrate Git with Visual Studio
- 在windows 2012 core server中安装sql 2012集群
- Setup SSH and SVN on Windows Server