Hi Anjali,
Great to see your interest in helping us out on our automated tests!
As you`ve read from the project description [1], the need can be broken in
2 groups:
1) Upgrading the Selenium 1 functional tests to use Selenium 2 and Page
Objects
2) Upgrading the Junit3 and JMock unit tests to use JUnit4 and Mockito
As far as I understand from your message, you are more interested in
Functional tests (point 1). On the testing documentation [2] page you have
the details on where to find the old Selenium 1 tests [3] which currently
contain some leftover various tests for various parts of XWiki. What you
would need to do here is to extract each of these tests and move them to
their corresponding module inside the xwiki-platform repository, written as
Selenium 2 tests and with the appropriate Page Objects that need to be
created as well (where they don`t already exist). Some of these
xwiki-platform modules do not already have the setup done for functional
tests, so you would have to set that up as well (create maven modules,
configure the test instance that would be used by the test modules, add
page objects and add tests). When this is complete, you should no longer
have any tests inside xwiki-enterprise-test-selenium.
Since there are not that many tests left in the old selenium 1 tests
module, you would also be using the remaining time in creating new page
objects and new tests for features/parts of XWiki which are not yet covered.
About point 2 (unit tests). Would you also be interested in doing that as
well? Mockito and JUnit4 are much more pleasant to work with than JMock &
JUnit3 but unit tests require a bit more knowledge on the java side,
ability to read the tested component's code, to understand it and to test
that it actually is doing what it is written to do.
We have a lot of unit tests (specially in the xwiki-platform-old-core
module) which are in need to conversion.
What you could do at this point is to set up your environment (get the
sources with git, install eclipse + maven integration plugin and get the
correct firefox verions for the current version of Selenium that we are
using in our tests) and:
A) for the functional tests, get a feeling of what is going on in the
xwiki-enterprise-test-selenium [4] module and convert one/two tests to show
us that you understand the work needed for the functional tests
B) for the unit tests, get a feeling of the tests inside
xwiki-platform-oldcore [5] and convert a few tests to show us that you
understand unit tests and mocking
Finally, create a
jira.xwiki.org issue and a pull request with your work so
we can have a look.
Your proposal should include a detailed plan of action, a timeline with
milestones on what you plan to achieve and in what timeframe and, of
course, the above mentioned Pull Request that shows us that you are up to
the challenge.
We`re here to help every step of the way.
Thanks,
Eduard
P.S.: Make sure you read the student guideline [6] for help on getting
started and the processes you should follow and, again, don`t hesitate to
ask specific questions that you might have.
----------
[1]
http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/Convertallexistingte…
[2]
http://dev.xwiki.org/xwiki/bin/view/Community/Testing
[3]
http://dev.xwiki.org/xwiki/bin/view/Community/Testing#HOldSelenium1-basedFr…
[4]
https://github.com/xwiki/xwiki-enterprise/tree/master/xwiki-enterprise-test…
[5]
https://github.com/xwiki/xwiki-platform/tree/master/xwiki-platform-core/xwi…
[6]
http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/Guidelines#HIncreasi…
On Tue, Mar 1, 2016 at 12:28 PM, Anjali <shally.hp5(a)gmail.com> wrote:
Hi,
I am a GSoC 2016 aspirant. I am interested in the project *"**Convert
existing tests to the latest technologies*". I was a GSoC student last
year. I worked on a project "Automation Testing" where I used Selenium,
Maven, JUnit etc in building a Java Based Testing Framework.
I would highly appreciate if I could get any pointers so that I could come
up with a good proposal.
Thank You.
--
Regards,
Anjali
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs