Differences

This shows you the differences between two versions of the page.

Link to this comparison view

power-agent:project-1:sahi [06/05/2015 13:57]
mathiasvandewalle [Script]
power-agent:project-1:sahi [13/05/2015 12:04] (current)
mathiasvandewalle [Mobile]
Line 67: Line 67:
 Sahi uses **Rhino engine** so Sahi script can call any java code in Sahi's classpath. Sahi uses **Rhino engine** so Sahi script can call any java code in Sahi's classpath.
 \\ Rhino seamlessly translates variables between Java and Javascript. \\ Rhino seamlessly translates variables between Java and Javascript.
 +\\ 
 +\\ The scripts are stored on the location where sahi is installed. 
 +\\ The folder Sahi_pro contains all the files to use sahi.
 +\\ Under this folder you find userdata where all the scripts are stored
 +
 ===== Using ===== ===== Using =====
 ==== Install ==== ==== Install ====
 Double click on install_sahi_pro_xxx.jar to start the installer. If Java is configured properly, it will launch the installer. Double click on install_sahi_pro_xxx.jar to start the installer. If Java is configured properly, it will launch the installer.
 \\ https://sahipro.com/docs/using-sahi/quick-tutorial.html \\ https://sahipro.com/docs/using-sahi/quick-tutorial.html
 +\\
 +\\ on **MAC**
 +\\ **start** sahi with \sahi_pro\userdata\bin\start_dashboard.sh
 +\\ Add **license** to \sahi_pro\userdata\config folder
 ==== Dashboard ==== ==== Dashboard ====
 {{:power-agent:project-1:sahi_dashboard.png?direct&100|}} The Sahi Dashboard automatically starts the Sahi proxy and lets you start your  configured browsers. {{:power-agent:project-1:sahi_dashboard.png?direct&100|}} The Sahi Dashboard automatically starts the Sahi proxy and lets you start your  configured browsers.
Line 334: Line 343:
  }  }
  _fail("Mandant not found");  _fail("Mandant not found");
- //_doubleClick(_div($fname, _near(_div($lname)))); 
  }  }
   
Line 527: Line 535:
 \\ You can also make custom reports.  \\ You can also make custom reports. 
  
 +==== Mobile ====
 +configure sahi proxy https://sahipro.com/docs/using-sahi/playback-mobile.html
 +\\ 
 +\\ Use the safari debug tools.
 +\\ Because the app uses a local file for the app the proxy is not used.
 +\\ 
 +\\ We will need to change the location to your webserver and run the tests.
 +\\ change the location to your proxy ex.: ''location.href = "http://192.168.4.6:9999";''
 +\\ Now you see the sahi start page where you can insert the test you want to run and the url of you webserver.
 +\\ you can also use the command line to start the test.
 +<code java>$("filebox").value = "mobile/test3.sah";
 +$("starturl").value = "http://192.168.4.6:8080/Finanzanalyse.app/www";
 +launch();
 +
 +OR
  
 +_sahi.sendToServer("_s_/dyn/Player_setScriptFile?dir=C%3A%2FUsers%2Fmathias%2Fsahi_pro%2Fuserdata%2Fscripts%2F&file="+"mobile/test3.sah"+"&starturl="+"http://192.168.4.6:8080/Finanzanalyse.app/www"+"&manual=0"+"&browserType=Netscape");
 +_sahi.setServerVar("sahi_paused", "0");</code>