Total Pageviews

Wednesday, March 16, 2011

About Selenium


Selenium is an open source tool for web application testing.This tool is primarily developed in JavaScript and browser technologies and hence supports all the major browsers on all platforms.
Selenium provides a test domain specific language (DSL) to write tests in a number of popular programming languages like Java, Ruby, Perl, Python, PHP, C#, HTML.
Selenium was originally developed by Jason Huggins, who was later joined by other programmers and testers at Thought works.
The browsers that are supported by Selenium are Internet Explorer, Mozilla Firefox, Google Chrome, Opera, and Safari.
Selenium runs on Windows, Linux and Macintosh operating systems.
Selenium enables Browser Compatibility Testing.
Selenium enables System Functional Testing.

How Selenium Works
Selenium uses JavaScript and Iframes to embed a test automation engine in your browser.
Selenium Core runs the test and interrogates the DOM.
Selenium RC server and Core communicate via AJAX.

Supported Environments:
The environments supported by Selenium are as below:

Browsers
Browser
Selenium IDE
Selenium Remote Control
Selenium Core
Firefox 3
Record and playback tests
Start browser, run tests
Run tests
Firefox 2
Record and playback tests
Start browser, run tests
Run tests
IE 8
not supported
Start browser, run tests
Run tests
IE 7
not supported
Start browser, run tests
Run tests
Safari 3
not supported
Start browser, run tests
Run tests
Safari 2
not supported
Start browser, run tests
Run tests
Opera 9
not supported
Start browser, run tests
Run tests
Opera 8
not supported
Start browser, run tests
Run tests
Others
not supported
Partial support possible*
Run tests**

Operating Systems
OS
Selenium IDE
Selenium Remote Control
Selenium Core
Windows
Works in Firefox 2+
Start browser, run tests
Run tests
OS X
Works in Firefox 2+
Start browser, run tests
Run tests
Linux
Works in Firefox 2+
Start browser, run tests
Run tests
Solaris
Works in Firefox 2+
Start browser, run tests
Run tests
Others
Should work in Firefox 2+
Start browser, run tests*
Run tests**



Wednesday, March 9, 2011

How to generate Test Result Report using Ant from Java eclipse

Reporting is the most important thing in testing.
Below mentioned steps are to  configure and generate the test result from java eclipse using Ant.

Generating the ANT build:
Right click on the project and select Export --> Ant Buildfiles.-->Next-->Select the project-->Finish.
Configuring jar:
Select Windows menu-->Preference -->Global Entries -->Add External JARs-->Select the folder where the eclipse is installed. eclipse -->Plugin -->Currently its located in "org.junit_4.8.1.v4_8_1_v20100427-1100"-->"junit.jar"-->OK.
Run the Ant Build:
right click on build.xml go to run as- external tools confirgurations ---targets tab and select your test suites and junitreport.   then right click on build.xml and run as antbuild file...