add a system property to the launch configuration of the tomcat server in eclipse.
And download the tcnative dll (or libnative.so for Linux) and put it in the bin folder. |
Monday, July 29, 2013
TOMCAT STARTUP ISSUE :INFO: The APR based Apache Tomcat Native library which allows optimal performance in production
Thursday, July 25, 2013
Start multiple instances of Selenium RC's and hub
Download seleniumgrid1 .navigate to the folder and
1. create a batch file called rc_grid1.bat and paste the below
ant -Dport %1 -Denvironment="*firefox" -DseleniumArgs="-userExtensions user-extensions.js " launch-remote-control
2.create a batch file called rc_hub and paste below
ant launch-hub
3.Launch hub and multiple RC's by creating another batch file called start_hub_rc.bat
start cmd /k Call rc_hub.bat 4444
pause 20
start cmd /k Call rc_grid1.bat 5555
start cmd /k Call rc_grid1.bat 6666
start cmd /k Call rc_grid1.bat 5570
start cmd /k Call rc_grid1.bat 5575
start cmd /k Call rc_grid1.bat 5580
start cmd /k Call rc_grid1.bat 5574
start cmd /k Call rc_grid1.bat 5578
start cmd /k Call rc_grid1.bat 7777
start cmd /k Call rc_grid1.bat 8888
start cmd /k Call rc_grid1.bat 9999
start cmd /k Call rc_grid1.bat 1010
start cmd /k Call rc_grid1.bat 1011
start cmd /k Call rc_grid1.bat 1012
start cmd /k Call rc_grid1.bat 1013
start cmd /k Call rc_grid1.bat 1014
start cmd /k Call rc_grid1.bat 1015
start cmd /k Call rc_grid1.bat 9998
start cmd /k Call rc_grid1.bat 1016
start cmd /k Call rc_grid1.bat 1017
start cmd /k Call rc_grid1.bat 1018
start cmd /k Call rc_grid1.bat 1019
start cmd /k Call rc_grid1.bat 1020
start cmd /k Call rc_grid1.bat 1021
start cmd /k Call rc_grid1.bat 1022
start cmd /k Call rc_grid1.bat 1023
You can see multiple rcs launched and connected to the hub.
1. create a batch file called rc_grid1.bat and paste the below
ant -Dport %1 -Denvironment="*firefox" -DseleniumArgs="-userExtensions user-extensions.js " launch-remote-control
2.create a batch file called rc_hub and paste below
ant launch-hub
3.Launch hub and multiple RC's by creating another batch file called start_hub_rc.bat
start cmd /k Call rc_hub.bat 4444
pause 20
start cmd /k Call rc_grid1.bat 5555
start cmd /k Call rc_grid1.bat 6666
start cmd /k Call rc_grid1.bat 5570
start cmd /k Call rc_grid1.bat 5575
start cmd /k Call rc_grid1.bat 5580
start cmd /k Call rc_grid1.bat 5574
start cmd /k Call rc_grid1.bat 5578
start cmd /k Call rc_grid1.bat 7777
start cmd /k Call rc_grid1.bat 8888
start cmd /k Call rc_grid1.bat 9999
start cmd /k Call rc_grid1.bat 1010
start cmd /k Call rc_grid1.bat 1011
start cmd /k Call rc_grid1.bat 1012
start cmd /k Call rc_grid1.bat 1013
start cmd /k Call rc_grid1.bat 1014
start cmd /k Call rc_grid1.bat 1015
start cmd /k Call rc_grid1.bat 9998
start cmd /k Call rc_grid1.bat 1016
start cmd /k Call rc_grid1.bat 1017
start cmd /k Call rc_grid1.bat 1018
start cmd /k Call rc_grid1.bat 1019
start cmd /k Call rc_grid1.bat 1020
start cmd /k Call rc_grid1.bat 1021
start cmd /k Call rc_grid1.bat 1022
start cmd /k Call rc_grid1.bat 1023
You can see multiple rcs launched and connected to the hub.
Wait in batch file
- pause 20: it will wait for 20sec's ,but u need to press any key to continue.
- TIMEOUT /T 20: it will wait for 20sec's
- ping -n 600 127.0.0.1 > NUL:This will wait for 600/60 =60sec's i.e 1min
Wednesday, July 17, 2013
Wednesday, July 10, 2013
Subscribe to:
Posts (Atom)