I am new to Java and thus new to adopting design patterns. Kindly bear with me.
I have a Base class that creates a driver object (Selenium) via factory pattern. 2. The Base class will pass on this "driver" object to create 4 objects 3. WindowActions, MouseActions, TextActions and MiscActions are 4 classes. 4. These 4 Classes hold many methods (15+ nos each) which will be used by the end user for creating automated test scripts. More methods could be added in future 5. These 4 Class do not have any other class variables. 6. The methods use temporary data structures for internal calculations. 7. End user should extend the Base class to use the library of methods for test creation
Basically I would have clubbed all the 4 Classes into one. But this will be a maintenance issue. Also grouping methods into 4 Classes will help the coder for faster and easier test script development.
Can you please suggest what design pattern to use.
Aucun commentaire:
Enregistrer un commentaire