[You may also like - Selenium Automation Tricks From Selenium Wiki]
I am reading Selenium beginner's Guide. In Best practices section author refers to Page Object Pattern.
- Moving Selenium methods into private methods to make it maintainable
- Seperate classes for each page, This example is clearly illustrated - Homepage.java, Chapter1.java, Chapter2.java. This is very good.
- I am going to try it out with different set of example with coding standards suggested for Java
- Comment your methods and add enough information for other team members to understand
- Naming methods with full description and first letter not captitalized. Ex- openHomePage( ), openFirstPage( )
- Assigning member function visibility private, public, protected based on usage
- Declaring variables - searchKeyword, brandName, firstName (Hungarian Notation - hWindow, hMenuItems), Usage of _
- Last Important thing is naming constants, static variables in CAPS - MAX_LIMIT, CHECK_VALUE
- Always initialize static fields
- Declare local variables immediately before their use
- Prefix letter I for Interface names
Continuous Integration Server is something I need to learn :).....
Good Reads
- Session - Functional Automated Testing Best Practices with Selenium WebDriver
- Six steps for complete test automation with selenium grid
Story Testing Approach for Enterprise Applications using Selenium Framework
View more presentations from Oleksiy Rezchykov
Selenium Maven Plugin
Webtests Reloaded - Webtest with Selenium, TestNG, Groovy and Maven
View more presentations from thorque
Things I Like to Have in my Test Automation Suites
Thanks to authors of the presentation. You can also check my learnings on Test Automation in Selenium Test Automation Series posts.
More Reads
Web Application Automation: Why open source Selenium can be a good choice?
Test automation using Selenium
Selenium Best Practices
Happy Learning!!!
Things I Like to Have in my Test Automation Suites
Thanks to authors of the presentation. You can also check my learnings on Test Automation in Selenium Test Automation Series posts.
More Reads
Web Application Automation: Why open source Selenium can be a good choice?
Test automation using Selenium
Selenium Best Practices
Happy Learning!!!
No comments:
Post a Comment