gpkvt / modernie_selenium Goto Github PK
View Code? Open in Web Editor NEWManage modern.ie VBox-VMs with Selenium-Support
License: MIT License
Manage modern.ie VBox-VMs with Selenium-Support
License: MIT License
I don't even know where to start looking.
I'm on OSX10.10.
I got the following errors:
Running VBoxManage guestcontrol "IE8 - Win7" createdirectory "C:\Temp\" --username 'IEUser' --password 'Passw0rd!'
bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" createdirectory "C:\Temp\" --username 'IEUser' --password 'Passw0rd!'
...
Copy rename.bat...
ename.bat" --username 'IEUser' --password 'Passw0rd!'/tmp/rename.bat" "C:\Temp
VBoxManage: error: File copy failed
VBoxManage: error: Copying file "/tmp/rename.bat" failed with status 500, exit code 1
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Copying file "/tmp/rename.bat" failed with status 500, exit code 1.
VBoxManage: error: Error processing "/tmp/rename.bat", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/ie_protectedmode.reg" "C:\Temp\ie_protectedmode.reg" --username 'IEUser' --password 'Passw0rd!'
...
Launch rename.bat...
ename.bat' --username 'IEUser' --password 'Passw0rd!'--image 'C:\Temp
VBoxManage: error: Could not resolve path to specified file was not found on guest
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestProcess, interface IGuestProcess, callee nsISupports
VBoxManage: error: Context: "WaitForArray(ComSafeArrayAsInParam(aWaitStartFlags), ctrlExecGetRemainingTime(u64StartMS, cMsTimeout), &waitResult)" at line 1337 of file VBoxManageGuestCtrl.cpp
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/ie_disablecache.reg" "C:\Temp\ie_disablecache.reg" --username 'IEUser' --password 'Passw0rd!'
...
Apply IE Protected-Mode Settings...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/ie_protectedmode.reg" "C:\Temp\ie_protectedmode.reg" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/ie_protectedmode.reg" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/ie_protectedmode.reg" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/ie_protectedmode.reg", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" execute --image "C:\Temp\jre-windows-i586.exe" --username 'IEUser' --password 'Passw0rd!' -- /s
...
Disabling IE-Cache...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/ie_disablecache.reg" "C:\Temp\ie_disablecache.reg" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/ie_disablecache.reg" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/ie_disablecache.reg" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/ie_disablecache.reg", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/ie_disablecache.reg" "C:\Temp\ie_disablecache.reg" --username 'IEUser' --password 'Passw0rd!'
...
Installing Java...
Local file 'Tools/jre-windows-i586.exe' doesn't exist
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/jre-windows-i586.exe" "C:\Temp\jre-windows-i586.exe" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: Warning: Source "Tools/jre-windows-i586.exe" does not exist, skipping!
Running VBoxManage guestcontrol "IE8 - Win7" execute --image "C:\Temp\jre-windows-i586.exe" --username 'IEUser' --password 'Passw0rd!' -- /s
VBoxManage: error: Could not resolve path to specified file was not found on guest
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestProcess, interface IGuestProcess, callee nsISupports
VBoxManage: error: Context: "WaitForArray(ComSafeArrayAsInParam(aWaitStartFlags), ctrlExecGetRemainingTime(u64StartMS, cMsTimeout), &waitResult)" at line 1337 of file VBoxManageGuestCtrl.cpp
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" execute --image "C:\Temp\jre-windows-i586.exe" --username 'IEUser' --password 'Passw0rd!' -- /s
...
Installing Firefox...
Local file 'Tools/firefox.exe' doesn't exist
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/firefox.exe" "C:\Temp
irefox.exe" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: Warning: Source "Tools/firefox.exe" does not exist, skipping!
Running VBoxManage guestcontrol "IE8 - Win7" execute --image "C:\Temp
irefox.exe" --username 'IEUser' --password 'Passw0rd!' -- /S
VBoxManage: error: Could not resolve path to specified file was not found on guest
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestProcess, interface IGuestProcess, callee nsISupports
VBoxManage: error: Context: "WaitForArray(ComSafeArrayAsInParam(aWaitStartFlags), ctrlExecGetRemainingTime(u64StartMS, cMsTimeout), &waitResult)" at line 1337 of file VBoxManageGuestCtrl.cpp
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" execute --image "C:\Temp
irefox.exe" --username 'IEUser' --password 'Passw0rd!' -- /S
...
Installing Chrome Driver...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/chromedriver.exe" "C:/Windows/system32/chromedriver.exe" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/selenium_conf/chromedriver.exe" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/selenium_conf/chromedriver.exe" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/selenium_conf/chromedriver.exe", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/chromedriver.exe" "C:/Windows/system32/chromedriver.exe" --username 'IEUser' --password 'Passw0rd!'
...
Installing Selenium...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/selenium-server-standalone.jar" "C:/selenium/selenium-server-standalone.jar" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/selenium_conf/selenium-server-standalone.jar" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/selenium_conf/selenium-server-standalone.jar" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/selenium_conf/selenium-server-standalone.jar", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/selenium-server-standalone.jar" "C:/selenium/selenium-server-standalone.jar" --username 'IEUser' --password 'Passw0rd!'
...
Installing IEDriverServer...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/IEDriverServer.exe" "C:/Windows/system32/IEDriverServer.exe" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/selenium_conf/IEDriverServer.exe" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/selenium_conf/IEDriverServer.exe" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/selenium_conf/IEDriverServer.exe", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/IEDriverServer.exe" "C:/Windows/system32/IEDriverServer.exe" --username 'IEUser' --password 'Passw0rd!'
...
Configure Selenium...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/WIN7/IE8/config.json" "C:/selenium/config.json" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/selenium_conf/WIN7/IE8/config.json" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/selenium_conf/WIN7/IE8/config.json" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/selenium_conf/WIN7/IE8/config.json", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/WIN7/IE8/config.json" "C:/selenium/config.json" --username 'IEUser' --password 'Passw0rd!'
...
Prepare Selenium-Autostart...
Running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/selenium.bat" "C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup/selenium.bat" --username 'IEUser' --password 'Passw0rd!'
VBoxManage: error: File copy failed
VBoxManage: error: Source file "Tools/selenium_conf/selenium.bat" does not exist or is not a file
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession
VBoxManage: error: Context: "int ctrlCopyFileToDest(COPYCONTEXT*, const char*, const char*, uint32_t)" at line 1945 of file VBoxManageGuestCtrl.cpp
VBoxManage: error: Source file "Tools/selenium_conf/selenium.bat" does not exist or is not a file.
VBoxManage: error: Error processing "Tools/selenium_conf/selenium.bat", rc=VERR_GENERAL_FAILURE
[WARNING] Error running VBoxManage guestcontrol "IE8 - Win7" copyto "Tools/selenium_conf/selenium.bat" "C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup/selenium.bat" --username 'IEUser' --password 'Passw0rd!'
Thanks for your time.
When I try to run mkvm.sh I get the following error:
Disabling Windows Firewall...
Running VBoxManage guestcontrol "IE11 - Win7" execute --image 'C:/windows/system32/netsh.exe' --username 'IEUser' --password 'Passw0rd!' -- advfirewall set allprofiles state off
[2216 - Session 1]
[OK]
Creating C:\Temp\...
Running VBoxManage guestcontrol "IE11 - Win7" createdirectory "C:\Temp\" --username 'IEUser' --password 'Passw0rd!'
bash: -c: line 0: unexpected EOF while looking for matching `"'
bash: -c: line 1: syntax error: unexpected end of file
"Getting started" says:
Edit the Config-Section in mkvm.sh so it fits your needs (see below for details).
But the config has moved to config.sh.
Hi,
I'm regularly using ievms and iectrl for manual testing. Wouldn't it be easier to manage the images with these projects instead of provisioning from vanilla modern.ie VMs?
IMHO there are two major advantages:
I downloaded and extracted the modern.ie appliance for IE8-Win7 and configured the other dependencies for your script. However, when I try to run it I get:
root@mydebian7server:~# su vbox --shell=/bin/bash -c '/opt/mkvm.sh /srv/VMs/IE8-Win7.ova'
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /srv/VMs/IE8-Win7.ova...
OK.
tee: /home/vbox/False.log: No such file or directory
[OK]
tee: /home/vbox/IE8-Win7.log: No such file or directory
Importing /srv/VMs/IE8-Win7.ova as IE8 - Win7...
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /srv/VMs/IE8-Win7.ova...
OK.
Disks: vmdisk1 136365211648 -1 http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized IE8 - Win7-disk1.vmdk -1 -1
Virtual system 0:
0: Suggested OS type: "Windows7"
(change with "--vsys 0 --ostype <type>"; use "list ostypes" to list all possible values)
1: Suggested VM name "IE8 - Win7"
(change with "--vsys 0 --vmname <name>")
2: Number of CPUs: 1
(change with "--vsys 0 --cpus <n>")
3: Guest memory specified with --memory: 3072 MB
4: Sound card (appliance expects "", can change on import)
(disable with "--vsys 0 --unit 4 --ignore")
5: USB controller
(disable with "--vsys 0 --unit 5 --ignore")
6: Network adapter: orig NAT, config 3, extra slot=0;type=NAT
7: CD-ROM
(disable with "--vsys 0 --unit 7 --ignore")
8: IDE controller, type PIIX4
(disable with "--vsys 0 --unit 8 --ignore")
9: IDE controller, type PIIX4
(disable with "--vsys 0 --unit 9 --ignore")
10: SATA controller, type AHCI
(disable with "--vsys 0 --unit 10 --ignore")
11: Hard disk image: source image=IE8 - Win7-disk1.vmdk, target path=/srv/VMs/vbox/VirtualBox VMs/IE8 - Win7/IE8 - Win7-disk1.vmdk, controller=8;channel=0
(change target path with "--vsys 0 --unit 11 --disk path";
disable with "--vsys 0 --unit 11 --ignore")
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully imported the appliance.
tee: /home/vbox/IE8-Win7.log: No such file or directory
[OK]
tee: /home/vbox/IE8-Win7.log: No such file or directory
Setting network bridge eth0...
Running VBoxManage modifyvm "IE8 - Win7" --nic1 bridged --bridgeadapter1 "eth0"
tee: /home/vbox/IE8-Win7.log: No such file or directory
[OK]
tee: /home/vbox/IE8-Win7.log: No such file or directory
Setting VRDE-Port ...
find: `/srv/VMs/lost+found': Permission denied
Running VBoxManage modifyvm "IE8 - Win7" --vrde on --vrdeport "9000"
tee: /home/vbox/IE8-Win7.log: No such file or directory
[OK]
tee: /home/vbox/IE8-Win7.log: No such file or directory
Mounting Disk...
tee: /home/vbox/IE8-Win7.log: No such file or directory
[OK]
tee: /home/vbox/IE8-Win7.log: No such file or directory
Disabling UAC...
Waiting for VM "IE8 - Win7" to power on...
Message from syslogd@mydebian7server at Nov 20 17:58:24 ...
kernel:[ 1613.676782] general protection fault: 0000 [#1] SMP
Message from syslogd@mydebian7server at Nov 20 17:58:24 ...
kernel:[ 1613.676891] Stack:
Message from syslogd@mydebian7server at Nov 20 17:58:24 ...
kernel:[ 1613.676911] Call Trace:
Message from syslogd@mydebian7server at Nov 20 17:58:24 ...
kernel:[ 1613.676966] Code: c8 06 00 00 48 83 e0 70 42 8b 8c 02 b8 0a 00 00 23 4a 18 09 c8 0b 42 1c 0f 22 e0 42 8b 84 02 a0 0a 00 00 83 e0 04 0d 3b 00 00 80 <0f> 22 c0 42 0f 01 94 02 86 03 00 00 42 8b ac 02 30 03 00 00 b8
VBoxManage: error: No error info
VBoxManage: error: Details: code NS_ERROR_CALL_FAILED (0x800706be), component ProgressProxy, interface IProgress
tee: /home/vbox/IE8-Win7.log: No such file or directory
[OK]
Waiting 60 seconds..../opt/mkvm.sh: line 175: 14427 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14430 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14433 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14436 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14439 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14442 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14445 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14448 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14451 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14454 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14457 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14460 Segmentation fault sleep 1
../opt/mkvm.sh: line 175: 14462 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14465 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14468 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14471 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14474 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14477 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14480 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14483 Segmentation fault sleep 1
Waiting for shutdownSegmentation fault
Segmentation fault
Segmentation fault
VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_BASE_STREAM_WOULD_BLOCK (0x80470007) - Stream operation would block (extended info not available)
VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
Waiting 5 seconds../opt/mkvm.sh: line 175: 14507 Segmentation fault sleep 1
.../opt/mkvm.sh: line 175: 14510 Segmentation fault sleep 1
tee: /home/vbox/IE8-Win7.log: No such file or directory
Removing Disk...
Segmentation fault
VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_BASE_STREAM_WOULD_BLOCK (0x80470007) - Stream operation would block (extended info not available)
VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
tee: /home/vbox/IE8-Win7.log: No such file or directory
[FATAL] Could not unmount /opt/Tools/deuac.iso
/opt/mkvm.sh: line 115: 14528 Segmentation fault cat "${log_path}${vm_pretty_name}.log"
14529 | mail -s "${subject_prefix}: ${vm_name}" ${mailto}
rm: cannot remove `/home/vbox/IE8-Win7.log': No such file or directory
Any suggestions?
Hi,
after running ./mkvm.sh VMs/IE11\ -\ Win7.ova
I get the error
VBoxManage: error: Could not find a controller named 'IDE'
Any chance someone got the the same error and already solved it?
When the load is high on the host system some actions might fail. There are several ways to handle this:
Since the last PR (thank you very much!) the README says for "Configure":
I've changed this from the original repository so that it uses a separate config script so that you can keep a local config script and not have to hack the main file.
Maybe this should be rephrased since it got merged into the original repository.
Currently all IE versions are still caching too much. Often they don't recognize that test runners deliver new test files.
It seems not to be possible to disable the cache of any IE version completely. But there are more settings we could use to limit the impact.
I tried it on all supported IE/OS combinations and have better results with the following settings:
(not all IEs support all of the options)
IE6 - WinXP
IE8 - WinXP
IE7 - Vista Clone
IE8 - Win7
IE9 - Win7
IE10 - Win7
IE11 - Win7
IE10 - Win8
IE11 - Win8.1
Internet Options > Advanced > Security
IE8 - WinXP
IE8 - Win7
IE9 - Win7
IE10 - Win7
IE11 - Win7
IE10 - Win8
IE11 - Win8.1
Internet Options > General > Browsing History >
IE6 - WinXP
IE8 - WinXP
IE7 - Vista Clone
IE8 - Win7
IE9 - Win7
IE10 - Win7
IE11 - Win7
IE10 - Win8
IE11 - Win8.1
Internet Options > General > Browsing History > Settings:
It would be nice if the home page of all IEs would be automatically set to "about:blank". By default it's set to a sub page of modern.ie.
It's always annoying if you manually use one of the IEs to debug a test run. Furthermore IE6-IE8 fail with certificate problems to load the page.
The E-Mail-Subject gets a WARNING-Prefix if a VM which should be "--delete"d could not be shut down because it wasn't running.
XP machines doesn't change their hostname without failure.
Running C:\Temp\rename.bat manually works fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.