Archive for April, 2012
Preload site before displaying
April 20, 2012
4 comments
We can easiest can do this,
<html> <head> <script language="javascript" type="text/javascript"> function showpage() { document.getElementById('loader').style.display = "none"; document.getElementById('main').style.display = "block"; } </script> </head> <body onload="showpage();"> <div style="height:100%; width:100%; display:block;" id="loader"> Some preloading content here </div> <div style="height:100%; width:100%; display:none;" id="main"> Main Content Here </div> </body> </html>
Categories: Uncategorized
Run phpUnit + selenium RC remote test cases to local browser
April 16, 2012
Leave a comment
We can run the test cases from remote server and case will get execute into local machine. We have to follow the below steps,
- Install phpunit and necessary packages in server
- edit the test case and change host as local ip address ( use static ip address )
- run the selenium RC in local server
- run the test case in server
Test case will get execute into local machine.
Categories: Selenium