Create Framework using Test NG and Page Factory and automate test cases for each page. Test Cases are mentioned in the end. List will increase.
a. Package Structure should be as mentioned below.
b. use Reporter.log and Assertions
c. FW should be attributable; i.e. can be given in jar and any one should be able to execute it if given jar file of the framework.
- package Structure
- com.visionit.po
- PO_Common.java
- PO_Register.java
- PO_WebTable.java
- PO_SwitchTo_Alerts.java
- PO_SwitchTo_Windows.java
- PO_SwitchTo_Frames.java
- PO_Widgets_AutoComplete
- PO_Widget_DatePicker.java
- PO_Widget_Slider.java
- PO_Interactions_DragAndDrop.java
- PO_Interactions_Selectable.java
- PO_Interactions_Resizable.java
- com.visionit.tc
- TC_Register
- TC_WebTable.java
- TC_SwitchTo_Alerts.java
- TC_SwitchTo_Windows.java
- TC_SwitchTo_Frames.java
- TC_Widgets_AutoComplete
- TC_Widget_DatePicker.java
- TC_Widget_Slider.java
- TC_Interactions_DragAndDrop.java
- TC_Interactions_Selectable.java
- TC_Interactions_Resizable.java
- com.visionit.utilities
- ExcelManager
- DateManager
- XMLManager
- WebDriverManager
- DBManager
- com.visionit.po
- Test Cases List:
- Validate Register page functionality. Fill all the fields in the page.
- validate all the negative messages for not filling in the field.
- Validate file Upload feature
- WebTable: Edit Phone number with First Name as “SantoshKumar”
- Webtable: Check Pagination and items per page
- WebTable: Delete row with email as “anupmudgal11@gmail.com”
- WebTable: Validate Column Sorting.
- To be Continued……
Do above assignment using Maven as discussed in class. Use this Maven XML :
http://www.automationfraternity.com/selenium/maven-xml/