Automated test

260 views

Published on

Automated Testing wiht Sahi

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
260
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Automated test

  1. 1. AUTOMATED TEST A. SAHI Sahi is a tool for automation of web application. Sahi is a tester friendly tool from india. To get the product Sahi go to http://sahi.co.in . 1. START USING SAHI I use Sahi Pro trial for the first time testing. After registering, we will get a license to be sent to our email list. Figure 1 – Sahi Pro First Running We can to set configuration to add the browser that will be used by clicking “Configure” menu. Figure 2 – Configure Setting Browser Automated Test SAHI (litalie89@yahoo.co.id) Page 1
  2. 2. 2. START TESTING WITH SAHI Select the browser that will be used for testing. Here I am using chrome browser. Press “SHIFT” and double left click. Then enter the url of the web application to be tested. I will do the testing on the OpenERP application demo. Figure 3 – Enter Url Web Application After entering the URL, press “ALT” and click go button it will open a web application and Sahi Controller. Figure 4 – Sahi Controller Automated Test SAHI (litalie89@yahoo.co.id) Page 2
  3. 3. Testing steps - Record Mouse over the fields to which we will give the action. Accessors will appear in the properties of the field. We can assign a value to a field which we will set its value. To test the script running or not, press the Test button - Playback To run the testing script that has been created, set the directory where the script file is located and select the file testing. Then click set button. After that, click play button to start automated testing. Figure 5 – Playback Automated Test SAHI (litalie89@yahoo.co.id) Page 3
  4. 4. Sahi script sample .sah _setGlobal("UserName", "admin"); _setGlobal("Password", "admin"); function login () { $login = _getGlobal("UserName"); _setValue(_password("login"), $login); $pass = _getGlobal("UserName"); _setValue(_password("password"), $pass); _click(_submit("Log in")); } login() var $myPath = "C:tes.log"; _writeFile("Testing", $myPath); _writeFile("Attention", $myPath); _writeFile("Please", $myPath); Automated Test SAHI (litalie89@yahoo.co.id) Page 4

×