I have been doing automation testing since last 2 years and I am following below ways for any website and mobile application automation testing.
- Create Global Method class where I implement all test cases
- Create class for constant values where I put all constant values
- Create Utility package and Add class under it to invoke browser and webdriver
- I do data driven and all within global method class.
Above is easy for me and also easy to maintain as well. But When I look at Page Object Model , I got confuse because many people are saying page model object is easy to manage but how? It require to create methods for each field and becomes long time taking when we have form with 100+ fields.
I have checked page object model example here.
Please help me that how can I decide that which model I should use for automation. I know it is depends in project and requirements but still I need some good hints. And Suggest other models also if suitable.