"No one is harder on a talented person than the person themselves" - Linda Wilkinson ; "Trust your guts and don't follow the herd" ; "Validate direction not destination" ;
Showing posts with label Selenium Web Test Automation Framework Best Practices. Show all posts
Showing posts with label Selenium Web Test Automation Framework Best Practices. Show all posts

April 29, 2014

Selenium Reads & QA Tools Post


Good Reads
PhantomJS
Tools / Useful Scripts
Fitnesse
Sikuli
Mobile Automation
Jmeter
Windows Testing
More Tools
Happy Learning!!!

February 19, 2013

Web Test Automation Fundas - One Liners

Below notes are based on my personal learning's from project's I have worked on. This presentation from Bindu - Design Patterns in Automation Testing is the inspiration for this post.

Learning Tip #1 - Page Object - Create Class for Each Page in a website. Ex- HomePage, SearchPage Each Page will have a class on its own. These classes will have methods to simulate the functionality. All example posts on Developing Automation Framework in my blog is based on Page Object pattern

Learning Tip #2 - Factory Pattern - You will still have a single class for each page in your website. When you support multiple locales Factory Pattern is useful to simulate the method based on the locale specified in Test Run. Please refer this earlier post on Data Driven Testing and Design patterns. Example for Factory Pattern is provided in the example

Learning Tip #3 - Data Driven Testing - Running the same test for different Data Sets. Basically Automation Framework should be configurable to run against dynamic data sets (not limited to fixed data sets). Although this is a continuous challenge but this is achievable

Learning Tip #4 - Validation Procedures - Validating data need to be performed using independent Service Calls / DB Queries / Prepared Expected Results output. Use of XML to read configurable parameters, storing DB queries of different DB platforms (DB2, MSSQL, MYSQL..) would help to dynamically fetch queries based on the platform tests are executed


More Reads http://code.google.com/p/selenium/wiki/DesignPatterns
Page Object Pattern and how to use Selenium

Happy Re-Learning!!!

April 02, 2011

Selenium Web Test - Automation Framework - Best Practices

[Next Post for Selenium Based Test Automation Framework]

This post is based my question in stackoverflow site. These questions help us learn best practices while developing an automation framework.

Summarizing Discussion Points
  • Page Object test design pattern is a good approach in building automation framework. Based on it only I have written example posts
  • Don't use the Selenium IDE generated code as Automation Framework base
  • Build a very good underlying framework architecture and refactor it as you keep updating the suite
  • Learn Design patterns and Apply it wherever applicable
  • 3 layer test automation framework is very good. I feel convinced with this approach.
    • GUI Level Testing
    • Methods Level Testing
    • Database Checks
Posting below list of good reads on Test Automation

Integration Test Principles - Notes from the post
  • Configuration should be minimal (Pointing to a different Db to run a test)
  • Test cases should be independent (Select and run few cases)
  • Tests should be efficient
  • The test suite should clean up after itself (Good to clear logs/data)
Please feel free to check my learnings for Developing Test Automation Framework using Selenium.

Any comments / suggestions please comment on this blog post / alternatively you can connect on my email provided in homepage.



Happy Reading!!