challanges
Challenges faced using Selenium Automation testing, and how to solve them
Selenium at times fails to function correctly in a dynamic event or change take place duting the test cycle. A few common problems faced are listed below, along with how to mitigate them with selenium automation
1. Image or Text overlapping issues
2. No facility to deal with Captcha, bar code.
3. Does not support any non web based like(Win32,Java Applet, Java Swing,.Net client server etc) applications.
4. When you compare selenium with QTP ,SILK TEST, Test Partner and RFT, there are many challenges in terms of maintainability of test cases.
5. Since selenium is a freeware tool, there is no direct support if one is n trouble with the support of the application.
6. Bitmap comparisons is not supported by selenium.
7. Any reporting related capabilities, you need to depend on third partytools.
8. You need to learn any one of native language like(.Net,Java,Perl,Python,PHP,RUBY) to work effectively.
9. Difficult to identify dynamic objects.
10. Working with frames.
11 . Selenium test playback is slow.
12. JavaScript sandbox,Flash,Applets,Silverlights and HTML’S Canvas all present problems n selenium.
13. Dealing with Popup windows: Selenium can sometimes fail to record common popups in web apps. To handle any kind of alert popup , you can apply a get Alert Function. Before actually running the script , you must import a package that can generate a WebDriver script for handling alerts. The efficient interface brings with it the following commands: void dismiss(), void accept(),getText() void sendKeys(string stringTosend).The first two basically click on the “Cancel” and “OK” BUTTONS respectively on a popup windows .
14. Timeout resulting from synchronization problem: One should ideally use selenium.IsElementPresent(locator) to verify that the object is in a loop with Thread.sleep()
15.Testing Flash app: To automate flash apps with selenium, one can use Flex Monkium.The application source code must be compiled with the swc files generated by Flex Monkium. Then the app and the selenium IDE are connected, and the tests can be recorded
16. Unexpected error launching Internet Explorer: Browser zoom level should be set to 100% by default for the IE browser to overcome this error.
17. Protected Mode: must be set to the same value error occurs when trying to run selenium WebDriver on a fresh Windowsmachine.This issue can be fixed by using capabilities as below when launching IE.
18. Cross browser tesing issues.
19.Ajax Compenents.
What are the benefits of automation testing?
· Saves time and money .Automation testing is faster in execution.
· Reusability code, create one time and execute multiple times with less or no maintenance.
· Easy reporting .It generates automatic reports after the test execution.
· Easy for compatibility testing .It enables parallel execution in the combination of different OS and browser environments.
· Low cost maintenance. It is cheaper compared to manual testing in a long run.
· Automated testing is more reliable
· Automated testing is more powerful and versatile.
· It is mostly used for regression testing. Support execution of repeated test cases.
· Minimal manual interventions. test scripts can be run unattended.
· Maximum coverage. It helps to increase test coverage.
Pros and Cons of selenium WebDriver.
--------------------------------------------------------------------------------------
1. Open Source.
2. Supports multiple languages Java c# .net python perl ruby php javascript
3. Supports all platforms/os Windows,MAC OS,Linux,Unix
4. Cross browser testing Chrome,Firefox,Safari,IE Opera
5. Head less browsers PhatomJS HTMLunitDriver Chrome HeadLess
6. Can be integrated with any open source unit testing framework TestNG Junit
7. BDD Frameworks Cucumber,JBehave,Serenity
8. Light Weight
9. Availablein the form of APIs
10. Easily integrated with CI—CD process, Jenkins
11. Can be executed on local machines as well as Cloud/VM/Servers/BrowserStack SauceLabs AWS Docker
12. Customize WebDriver codebase—soure code will be shared
13. Wrappers:Appium,Protractor,Watir,Robot Framework.
Cons:
====
1 .As it is Open Source , So no direct Support
2.You need to learn programming—No Srciptless or codeless automation
3. No Desktop app Automation support
4.no report for test results
5. for any extra work:test case design
Comments
Post a Comment