Advantages of Selenium
QTP and Selenium are the most used tools in the market for software automation testing. Hence it makes sense to compare the pros of Selenium over QTP.
| Selenium | QTP |
|---|---|
| Selenium is an open-source tool. | QTP is a commercial tool and there is a cost involved in each one of the licenses. |
| Can be extended for various technologies that expose DOM. | Limited add-ons and needs add-ons for each one of the technologies. |
| Has capabilities to execute scripts across different browsers. | Can run tests in specific versions of Firefox , IE, and Chrome. |
| Can execute scripts on various operating systems. | Works only with Windows. |
| Supports mobile devices. | Supports mobile devices with the help of third-party tools. |
| Executes tests within the browser, so focus is NOT required while script execution is in progress. | Needs Focus during script execution, as the tool acts on the browser (mimics user actions). |
| Can execute tests in parallel with the use of Selenium Grids. | QTP cannot execute tests in parallel, however integrating QTP with QC allows testers to execute in parallel. QC is also a commercial tool. |
Disadvantages of Selenium
Let us now discuss the pitfalls of Selenium over QTP.
| Selenium | QTP |
|---|---|
| Supports only web based applications. | Can test both web and desktop applications. |
| No feature such as Object Repository/Recovery Scenario | QTP has built-in object repositories and recovery scenarios. |
| No IDE, so the script development won't be as fast as QTP. | More intuitive IDE; automation can be achieved faster. |
| Cannot access controls within the browser. | Can access controls within the browser such as favorites bar, backward, and forward buttons. |
| No default test report generation. | Default test result generation within the tool. |
| For parameterization, users has to rely on the programming language. | Parameterization is built-in and easy to implement. |
No comments:
Post a Comment