I'm using Selenium Webdriver (Java), Eclipse as IDE.
My current setup was
I have one Java project in Eclipse that serves as the framework (say FrameworkProject). The project is comprised of these packages,
- testdata - holds testdata.java. This returns random test data for my tests like passwords, names etc...
- utility - this package holds the object repository configuration class. This also contains the ExcelConfiguration class.
- pageObjects - this package holds the page object class of the current system under test (e.g Login.class, Register.class etc...)
And the other java project was the TestProject. This only contains one package named tests. Under package tests, it has TestCase.class that serves as the testcase class, executes steps (I'm using page-object model by the way)
Now, my questions are:
Is it correct that I included the page objects in the first project (in the framework itself) ? Should it be in the TestProject ?
I did not declare my classes as abstract. What I just did was add the FrameworkProject as a JavaBuildPath to TestProject. Is it correct?
Lastly, how about if there's another project? Should I continue this kind of setup? Create another java project for the new project then add the framework as the javabuildpath?
I am still new to this stuff. Every answer is much appreciated.