html - Web Loader Stress Test -


i have constructed web loader loads url , displays loading time. question is, how add virtual users in site perform multiple user testing simultaneously stress test selected url.

<html> <head>      <script type="text/javascript">           beforeload = (new date()).gettime();         function pageloadingtime()         {              afterload = (new date()).gettime();             seconds = (afterload-beforeload)/1000;             document.getelementbyid("loadingtime").innerhtml = "<font color='red'>(you page load took " + seconds + " second(s).)</font>";         }     </script>     <title>load time</title> </head>  <body>        <div id="loadingtime"></div>     <script type="text/javascript">           function reload() {             beforeload = (new date()).gettime();             var f = document.getelementbyid('iframe');             f.src = f.src;         }         </script>      <script type="text/javascript">         function submitstuff(){             document.getelementbyid('iframe').src = 'http://' + document.theform.url.value;             return false ;         }     </script>     <form name="theform" method="post" onsubmit="return submitstuff();">         <input name="url" value="" >         <input type="submit" name="submitbutton" value="submit/refresh" onclick="reload();">     </form>     <iframe id="iframe" width="1320" height="540" src="http://www.default.com" onload="pageloadingtime();"></iframe> </body> </html> 

you'll need use software run stress test against page. suggest selenium - http://docs.seleniumhq.org/. it's quite easy setup , use. need.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -