Archive

Archive for April, 2012

Preload site before displaying

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>
Advertisements
Categories: Uncategorized

Run phpUnit + selenium RC remote test cases to local browser

We can run the test cases from remote server and case will get execute into local machine. We have to follow the below steps,

  1. Install phpunit and necessary packages in server
  2. edit the test case and change host as local ip address ( use static ip address )
  3. run the selenium RC in local server
  4. run the test case in server

Test case will get execute into local machine.

Categories: Selenium