Wednesday, March 26, 2014

How to write effective GUI test automation code using Selenium and Java

“Selenium is a suite of tools to automate web app testing across many platforms.”

1. A test script is executed by the driver.
2. This controlles the software under test like a remote control.
3. The reaction of the software under test can be evaluated (checkpoints).
4. A script can be captured using Selenium IDE.
5. A script can be executed via Selenium IDE
6. A script can be exported to different programming languages.
7.  The exported script can be executed using Selenium RC.
8. The exported script can be included into programs.
9.  A script can be written programmatically with Selenium RC


Does

Support of several browsers and operational systems.
Support of several programming languages.
Able to test Ajax applications.
Easy to use.

Don’ts

Only Web applications can be tested.
No complete tool. Some features of commercial tools
are missing.



Selenium RC is a powerful tool to automate GUI tests for
Web applications.
Not all needed features are available out of the box or 
missing.
We developed a set of additional classes, that allows us 
to use Selenium in our application context.
We extracted useful classes and methods, that will 
accelerate the test script generation in upcoming 
projects.

No comments:

Post a Comment