RSS
 

Archive for the ‘Selenium’ Category

#29: Selenium (Selenium-IDE, Selenium RC, Selenium Grid)

05 Dec

Most small/medium sized website companies use LAMP for their development, because it is free.

LAMP is an acronym for a solution stack of free, open source software, originally coined from the first letters of Linux (operating system), Apache HTTP Server, MySQL (database software) and Perl/PHP/Python, principal components to build a viable general purpose web server.

The testing team in these companies use Selenium, which is free, too.

Selenium is a portable software testing framework for web applications. Selenium provides a test domain specific language (DSL) to write tests in a number of popular programming languages, including C#, Java, Ruby, Groovy, Python, PHP, and Perl. In this blog, we will focus on Selenium IDE, which is a complete Integrated Development Environment (IDE) for Selenium tests. It is implemented as a Firefox extension, and allows recording, editing, and debugging tests.

How to install Selenium IDE.
Download Selenium IDE.

Other bigger website companies use IIS instead of Aphache, SQL Server instead of MySQL, ASP.NET instead of PHP, HP QTP instead of Selenium. None of these are free.

I will show you some examples about how to use Selenium IDE in the future posts, and I will try to explore as many Selenium supported languages as possible.

======================================================
Get started with Selenium:

Selenium is a suite of tools to automate web app testing across many platforms. The relationship among Selenium IDE, Selenium Remote Control and Selenium Grid is displayed in this “How Selenium Works” image.

Selenium…

* runs in many browsers and operating systems
* can be controlled by many programming languages and testing frameworks.

Selenium supported Browsers, Operating Systems, Programming Languages, and Testing Frameworks are listed in “Platforms Supported by Selenium”.

After understand the Selenium family, now you are ready to
Read the 17 pages unofficial Selenium Tutorial to understand how Selenium IDE works,
And
Read “Selenium IDE Tutorial – Part 1″ for a detailed example about using Selenium IDE, and “Selenium IDE Tutorial – Part 2″ for continued example about trasfer the test to Selenium Remote Control (Selenium RC),
Then
Read “Selenium Tutorial for Beginner/Tips for Experts” for an in-depth understanding of Selenium IDE and Selenium RC,

The official Selenium Documentation is also a good reference:
Read the online official Selenium Documentation,
Or
Download and Read the printable official Selenium Tutorial (in pdf, 164pages),
If the pdf can not be downloaded from the above website, you can download it from here.

Other good examples can be found at:
Selenium IDE for Automated Testing shows you how to use Selenium IDE, run a simple test case “GoogleSignUpErrors” and export it as a Java file.

Selenium RC for Automated Testing is a guide to install Selenium Remote Control and run “GoogleSignUpErrors” as a Java program.

How to create a test suite in Selenium? shows you how to create a test suite in Selenium IDE and run the group of test cases using Selenium RC.

Selenium Test Suite on Ubuntu: In case you have a Ubuntu server running Hudson (software for Continuous Integration), you may want to make a first attempt to run a Selenium test suite in command line before setting up a Hudson job that automatically runs the test suite.

Hudson and SeleniumTest Suite: suppose you have Hudson(software for Continuous Integration) installed in your server and you want to create a job that executes a Selenium Test suite.

 
No Comments

Posted by Jia Qi in Selenium

 

#0: What is this blog for?

06 Sep

This blog will show you real projects examples for you to learn the following Automation testing tools:
- Quick Test Professional (QTP),
- TestPartner (TP),
- Extensible Markup Language (XML),
- Selenium (Selenium-IDE),
- Rational Functional Tester (RFT).

QTP and TestPartner are similar GUI automation testing tools, and they are both easy to learn compare to RFT which I used before. RFT uses JavaScript or VB.NET, QTP uses VBScript, and TestPartner uses VBA (more details about VB family and JavaScript, please refer to post#7). Among the three, QTP has the biggest job market. As a QA person, we should master at least one of the automation testing tools and one of the scripting language.

Selenium is a portable software testing framework for web applications. Selenium provides a test domain specific language (DSL) to write tests in a number of popular programming languages, including C#, Java, Ruby, Groovy, Python, PHP, and Perl. In this blog, we will focus on Selenium IDE, which is a complete Integrated Development Environment (IDE) for Selenium tests. It is implemented as a Firefox extension, and allows recording, editing, and debugging tests.

The difference between Selenium and QTP/TestPartner/RFT is Selenium is an open source software, i.e., it is free! See more information at post#29.

If you decide to learn automation testing, then you can follow this blog. I will share detailed test cases/scripts with you while I am learning, and I am looking forward to learn from you too, so don’t be shy to comment on my posts.

My current company uses TestPartner 6.3 to test an Ultrasound work station (a Windows Application, i.e., software, can be installed on any computer). Our major focus is to automate measurement and export testing, since we have thousands measurement types and hundreds export combinations in the app., which make manual testing very very time consuming. We will also use XML scripts (embedded in Engineering mode) to test our real-time Ultrasound machines. The Ultrasound machine supports 10 different types of transducers, we need to repeat hundred test cases for each type of the transducers, so to automate the transducer tests will save us a huge amount of time.

I also test some websites at home, just for learning purpose. In this blog, I will show you how to test a website called YouPlayOff. I will use QTP and Selenium to test this website, and you can download QTP 9.0 from the pirate bay and Selenium-IDE from Selenium website.

After we get familiar with QTP, Selenium and TestPartner, then RFT should not be a problem anymore.