We need to specify in and out of our Test Automation Framework such as programming language used, Type of framework used, Test Base Class (Initializing WebDriver, Implicit Waits),
How we separate Element locators and tests (Page Objects, Page Factory), Utility functions file, Property files, TestNG annotations,
How we parameterize tests using Excel files,
How we capture error screenshots, Generating reports(Extent Reports), Emailing reports, Version Control System used and Continues Integration Tool used.
***
Language: In our Selenium Project we are using Java language. Even though Selenium supports multiple languages, we are using Java language is just because most of the automation developers have knowledge on Selenium with Java.
Type of Framework: In our project, we are using Data-driven Framework by using Page Object Model design pattern with Page Factory.
POM: As per the Page Object Model, we have maintained a class for every web page. Each web page has a separate class and that class holds the functionality and members of that web page. Separate classes for every individual test.
Packages: We have separate packages for Pages and Tests. All the web page related classes come under Pages package and all the tests related classes come under Testspackage.
For example, Home Page and Login Page have a separate classes to store element locators. For the login test there would be a separate class which calls the methods from the Home Page class and Login Page class.
No comments:
Post a Comment