I have just completed an automation framework course and am now trying to write a framework from scratch for the application I am responsible for testing. The first page I need to a test and POM for is essentially a customer details input form that consists of a number of text boxes, radio buttons and drop downs. Before I start working on this, I just wanted to see whether I’m on the right track.
So, my proposed way of doing this would be for the test to have a line for each thing that the customer needs to input, using clear names for each one and then implementing each method, along the lines of:
CustomerName("Type customer name here but leave blank for default name);
CustomerSex.Male or CustomerSex.Female
CustomerName [ADD CODE TO SELECT CORRECT FIELD]
CustomerSex [ADD CODE TO SELECT CORRECT FIELD
Male/Female [ONE METHOD EACH; WILL SELECT CORRECT RADIO BUTTON OPTION]
Does this sound acceptable?