Singular Driver Page Object Model

Page Object Model is the framework driven from TestNG framework where every individual Page (screen) is separated in JAVA class. As we all know in Page Object Model test cases are also separated as per screen basis. In this developed framework below mentioned points are considered:

  • Individual screens are separated in each JAVA classes
  • Common selenium methods are stored in separate JAVA class
  • Test cases are also separated as per screen
  • Configurable things are kept apart from non configurable things. For example, URL which can be changed as per env availability is taken care by using config.properties class. Where env key will decide which URL to hit.
  • Cross browser testing is done by using simple config.properties file by specifying Browser key and reading it while launching the browser.
  • TestNG framework is used to create Page Object Model framework
  • Basic TestNG annotations are used
  • Reporting is done via Extents reporting jar
  • No method in classes are static, and Binding is considered in Page classes to avoid overriding of any webelement.
  • Maven project is created and POM.xml file is derived to achieve the build automation.

Comments

Popular posts from this blog

API Concepts