Showing posts with label Sahi. Show all posts
Showing posts with label Sahi. Show all posts

Friday, July 3, 2015

Sahi : How to install and run Sahi on your windows machine

Sahi is an automation testing tool to automate web application. It has excellent record and playback feature to record and run application. In our previous post we have discuss about Sahi’s feature. Here we will show on how to install Sahi on our machine.

Download Sahi: Sahi has a community edition as well as commercial edition. Here we download Community edition and install it.

image

  • Sahi Download starts.

Install Sahi: After finishing download, go to the installer directory and follow the following steps.

Step1 : Double click on the installer file named “install_sahi_v50_……jar” file.

image

Sahi installation wizard is displayed.

image

Step 2 : Click on Next button.

image

Step 3 : It shows the software list that will be installed. Click on Next button

image

Step 4 : License agreement page is displayed.

  • Select the options “I accept the terms of this license agreement”.
  • Click on Next button.

image

Step 5 : Select the installation path where Sahi will be installed and click on Next button.

image

Step 6 : Click on OK button.

image

Step 7 : Select the packs that we want to install. By default all packs are selected. Grayed packs are mandatory. Click on Next button.

image

Step 8 : Sahi installation starts.

image

Step 9 : After finishing installation click on Next button.

image

Step 10 : Shortcut selection page is displayed.

  • Select the option “Create shortcuts in the Start-Menu”.
  • Select the option “Create additional shortcuts on the desktop”.
  • Select “Current User”.
  • Keep the application name “Sahi”.
  • Click on Next button.

image

Step 11 : This is the last page of the installation wizard. Following messages are displayed.

  • “Installation has completed successfully”.
  • “An uninstaller program has been created in”. It shows the path of uninstaller file.
  • A button is displayed showing “Generate an automatic installation Script”. Click on this button will generate a automatic installer.

Click on Done button. Sahi wizard window will be closed.

image

Step 12 : Note that an icon is displayed at the desktop. Double click on the icon.

image

Step 13 : Three windows are displayed.

  • Sahi Dashboard : This is the main sahi dashboard window where the browser list is displayed. We can select any browser here to record Sahi. Generally all the installed browsers are displayed at Sahi dashboard. Sometimes it might not be displayed due to installation path issue. We will submit a separate post on this issue.
  • Sahi needs to change browser proxy settings. For this it shows this window. Clicking on Continue button will close the window. You can close sahi clicking on Quit Sahi button.
  • Sahi Command Prompt : This window displays error message if there is any error happens. It also displays Sahi run status.

image

In our Next post we show on how to automate a web application using Sahi.

Happy scripting with Sahi as a Sahi manner…!!!

Sahi : What is Sahi?

Sahi is an automation tool to automate web application. It has both open source and commercial version. It has easy record and playback feature.

Record & Playback : It has an easy record and playback feature and it can automat any web application. It is easy for a non technical tester to record.

Cross Browser Testing : Script recording in one browser can run on other available browsers. So it supports cross browser testing.

Web Element Identification : It can locate elements very easily with its on build API. Also it can locate any dynamic ID without taking help on Xpath or tools. It can automate application built in using ExtJS, ZK, Dojo, YUI or any other framework.

AJAX : Sahi can automate web application built it AJAX. It does not need to use any Wait statement.

Rich Inbuilt Reports and Logs : It supplies complete info of script execution. It can report the exact line of script that fails. It provides graph reports and end to end result. Reports can be customizable.

Fast Parallel Batch Playback : Together of multiple scripts can make a suit and it can run multiple script in one machine or multiple machine at a time. It can run from Command prompt and continuous Integration also.

Simple Powerful Scripting : Sahi Script is based on JavaScript. So it can use the power of JavaScript. It can call any Java code or library. It can communicate Databases, Excel sheets, CSV files for data driven testing.

Inbuilt Excel Framework : It has inbuilt excel where tester can write simple test case in excel file and it will execute the script using the excel file.

Cypress: How to handle browser-based authentication pop up dialog in Cypress

Five years ago I have written a blog on how to handle browser-based authentication for selenium webdriver.   Now it is for cypress. Cypress...