Advertisement
talkingtree

TSuiteManager.cfc

Mar 19th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. component displayName="Test Suite Manager"
  2.           hint="Controls high-level suite behaviors.
  3.           Ideally would be used in BeforeTestSuite/AfterTestSuite methods"
  4.           output="false" {
  5.  
  6.     public void function startClient(browserUrl,browserStartCommand){
  7.             application.selenium = new CFSelenium.selenium(browserUrl=browserURL,browserStartCommand=browserStartCommand);
  8.             application.selenium.start();
  9.             application.selenium.windowMaximize();
  10.             application.selenium.setTimeout(30000);
  11.             writeLog(application=true,text="-------> Selenium client started()");
  12.     }
  13.    
  14.     public void function stopClient(){
  15.             application.selenium.stop();
  16.             writeLog(application=true,text="-------> Selenium client stopped()");
  17.     }
  18.    
  19.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement