Having a set of classes and accessing their methods and properties
I have a Selenium Webdriver automated testing project and I have
structured it this way:
there are two classes that are the actual tests there is one class that
reads generates test data and defines some custom methods that I use and
there are 3 "service" classes - email sender, screenshot capturer and csv
reader.
Now, I would have liked it if I was able to just use the methods and
properties from all the classes in the project (or maybe I can but I dont
know how)
So what I am doing now is the following
Test1, Test2 extend AppData which extends Mailer which extends
ScreenCapturer which extends CSV reader.
Im sure there is a more elegant way of doing this, but what is it?
PS: Do you think its a good idea that I put all the services in one class
and just extend this one class, and if you do - why?
No comments:
Post a Comment