001 Introduction to testing and automated testing
Jump to navigation
Jump to search
<slideshow style="nobleprog" headingmark="⌘" incmark="…" scaled="false" font="Trebuchet MS" >
- Title
- Selenium HP Web Test Tool
- Author
- Mirza Baig
</slideshow>
Selenium Overview,Selenium IDE Introduction⌘
What is Test Automation?⌘
- A process of writing a computer program to do testing that would otherwise need to be done manually
- Use of software to control the execution of tests
Two types of test automation:
- Code-driven testing
- Graphical user interface testing
Advantages of Automation⌘
- Reliable: Tests perform precisely the same operations each time they are run, thereby eliminating human error.
- Repeatable: You can test how the software reacts under repeated execution of the same operations.
- Reusable: You can reuse tests on different versions of an application, even if the user interface changes.
- Speed: Run tests significantly faster than human users.
- Cost Reduction: As the number of resources for regression test are reduced.
- Better Quality Software: Rapid feedback to developers during the development process as a result of frequent regression testing.
Disadvantages of Automation⌘
- Proficiency is required to write the automation test script.
- Debugging the test script is major issue. If any error is present in the test script, sometimes it may lead to dadly consequences.
- Test maintenance is costly in case of playback methods. Even though a minor changes occurs in the GUI, the test script has to be rewritten.
- Maintenance of test data files is difficult, if the test script tests more screens or web-pages.
- Short iteration or very tight deadline, there is not enough time to build test automation.
What is Selenium?⌘
A set of tools that supports rapid development of test automation for web-based applications.
- Can be recorded and written as HTML
- Support for a number of programming languages: Java, C#, Perl, PHP, Python, Ruby
- Cross browsers support: IE, Firefox, Opera, Safari and Google Chrome
- Cross platform support: Windows, Linux, and Macintosh.
Selenium Background⌘
- Invented in 2004 by Jason R. Huggins and team.
- Originally named JavaScript Functional Tester [JSFT]
- 100% Javascript and HTML
- Designed to make test writing easy
- Open source browser based integration test framework built originally by ThoughtWorks
- Selenium is open source software, released under the Apache 2.0 license and can be downloaded and used without charge.
Selenium Trivia⌘
Selenium is a chemical element with the atomic number 34, represented by the chemical symbol Se.
Selenium is used for treating Mercury poisoning
Products: QTP, WinRunner, LoadRunner and TestDirector
Selenium Components⌘
Selenium IDE⌘
- Selenium IDE (SIDE) is a complete Integrated Development Environment (IDE) for building Selenium test case.
- Firefox add-on that makes it easy to record, edit, and debug tests.
- Provides an easy-to-use interface for developing and running individual test cases or entire test suites.
- Can be used to generate code to run the tests with Selenium Remote Control (RC).
Selenium IDE Features⌘
- Record, playback, edit
- Intelligent component identification will use object IDs, names, or XPath as needed
- Auto complete for all common Selenium commands
- Walk through test cases and test suites.
- Debug and set breakpoints
- Save tests as HTML, or export as other supported programming languages
- Support for Selenium user extensions



