Lesson 1- Introduction to Selenium and Selenium WebDriver.
Selenium:Selenium is an open source testing tools such as HP Quick Test Professional. This tool is very useful to test web applications; it comes with a small script recording tool known as Selenium IDE. Selenium IDE records the user activity on the web application and the recorded scripts can be played later for testing / recorded scripts can be integrate with popular programming language like java,python and c# (we will discuss later with languages).These recorded scripts are referred automated testing.
Selenium WebDriver: The primary new feature in Selenium 2.0 is the integration of the WebDriver API. WebDriver is designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API. Selenium-WebDriver was developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded. WebDriver’s goal is to supply a well-designed object-oriented API that provides improved support for modern advanced web-app testing problems.
Difference in Selenium IDE /WebDriver:
Selenium IDE behaviors.
- Works only on Mozilla
- Record and Run Tool
- Server is not required to run like Selenium RC
- Not Object Oriented
- Does not records the mouse hovers behaviors
- Requires full Xpath for finding elements like(xpath="\\html\div[2]\input")
- Mobile Testing can't be performed
Selenium WebDriver behaviors.
- Works on the all browsers (Firefox,Chrome,IE etc)
- No IDE Server is required for the Firefox browser
- IDE server is required for other browsers like(Chrome,IE and Opera)
- Object Oriented purely
- Mouse behaviors can be scripted like(Mouse hover)
- Better reporting with help of Junit ,TestNG and Nunit)
- Mobile testing can be performed
- JavaScript can be integrated with scripts
No comments:
Post a Comment