Posts Tagged ‘Automation’

Selenium logo

Selenium Introduction:

Selenium :

Selenium is a Web testing tool. Selenium is a robust set of tools that is used to record and run web applications. There are three components of Selenium. i.e. Selenium is composed of three major tools which has their own specific roles. Selenium is free and open source.

Selenium 2 provides drivers for:

  • Mozilla Firefox
  • Google Chrome
  • Microsoft Internet Explorer
  • Opera
  • Apple iPhone
  • Android browsers

Selenium-IDE:

Selenium-IDE is the Integrated Development Environment for building Selenium test cases. It operates as a Firefox add-on.

Advantages of Selenium-IDE:

It is very easy to use. It has record and play feature and we can also write our own extensions and implement loops, if statements, use arrays, parameterize test cases. Selenium-IDE is very user friendly.

Limitation of Selenium-IDE:

It gets installed as an add-on on Mozilla and works only on Mozilla. IDE cannot work on browsers other than Mozilla. That’s why RC or webdriver is used.

Selenium-RC (Remote Control):

Selenium Remote Control (RC) is a test tool that allows you to write automated web application UI tests in any programming language.

Advantages of Selenium-RC:

Selenium Remote Control is great for testing complex AJAX-based web applications. Selenium Remote Control can be used for any java script enabled browser.

Limitation of Selenium-RC:

In RC we have to start the server again and again i.e. RC completely depends upon server. Switching between the multiple instances of the same browser is not possible. Switching between the multiple instances of the different browsers is not possible.

Selenium-Grid:

Selenium Grid is a server that allows tests to use web browser instances running on remote machines. With Selenium Grid, one server acts as the hub.

MonkeyTalk:

Monkey Talk is a functional testing tool for mobile applications. It supports android and iOS platforms. It supports iOS 4.0 or greater and Android 2.2 or greater.

Monkey Talk has three components which are as follows:

  • MonkeyTalk IDE – It is used  for record/playback of test scripts
  • MonkeyTalk Agent – It is a library that must be added to enable the testing. There are different agents for different platform i.e. for android and iOS. The agents enable applications to record and play MonkeyTalk Commands.
  • MonkeyTalk scripts – Scripts contains the all the actions. With the help of scripts we can test the overall functionality of an app. MonkeyTalk scripts can be written in three forms that are,
  • o   In JavaScript form
  • o   In tabular form (i.e. in different cells)
  • o   In MonkeyTalk form (In single line format, one line considered as a one command)

Features and benefits:

  • It is open source tool i.e. it is free to download and free to use.
  • It is a powerful complete functional testing tool.
  • Same script can be used on both android and iOS of an app i.e. record on iOS and playback on Android and vice versa.
  • MonkeyTalk is simple and easy to learn.
  • MonkeyTalk scripts can be understood by average person.
  • No expertise required in programming.
  • Both phones and tablets are supported, either tethered or over the network.
  • MonkeyTalk scripts can be easily extended, even by non-programmers, with custom user-defined commands. (Keyword-driven scripts)
  • It supports looping concept. Any command can be looped using csv file. (Data-driven scripts)
  • Both Html and xml reports can be generated with this tool. Generally, test suites output the standard XML report and it captures the screenshot when failure occurs.

Installing MonkeyTalk:

Download MonkeyTalk Zip file from” http://www.gorillalogic.com/testing-tools/monkeytalk/download” and simply unzip the file on your Pc.