Hi Anjali,
On Sun, Mar 6, 2016 at 1:23 PM, Anjali <shally.hp5(a)gmail.com> wrote:
I have set up the dev environment in eclipse by
forking and importing the
*xwiki-enterprise-test* but I am getting test failures(exact failure is
attached with the snapshot).
As you`ve said you`ve previously used Maven, you need to look a the failure
reason details which are presented above the part that you have shown in
your screenshots, exactly when they happened during the build. More
exactly, you are interested in the stacktrace of the actual failing test
and not the summary which says generically that "There were test failures".
Even so, I manage to see part of the "WebDriver failed to connect" message
which usually means that you have not set up the correct Firefox version to
use with the tests, as described in the test documentation section at
http://dev.xwiki.org/xwiki/bin/view/Community/Testing#HBrowserversion
Also, I wanted to ask few things:
1. Is there any documentation which can tell me what all tests are
converted to the new Framework and which are not and help me get
familiar
with the structure of the project.
Not really. However such a detailed analysis could be part of your proposal
or even part of the work you commit to do once/if accepted.
As mentioned in the reply to your initial mail (
http://markmail.org/message/fk5kqvkpjjn5bldf#query:+page:1+mid:pd6r5b45ccjc…),
for functional tests, you would need to focus on moving the existing test
from xwiki-enterprise-test-selenium to their specific modules inside
xwiki-platform.
For unit tests, you can recognize them inside the xwiki-platform repository
as being unit tests extending any of
"AbstractBridgedXWikiComponentTestCase",
"AbstractXWikiComponentTestCase",
"AbstractMockingComponentTestCase" or "AbstractComponentTestCase",
which
are the older component test framework and not using the newer
Mockito-based and @Rule-based (e.g. MockitoComponentMockingRule) framework
both of which are defined in
https://github.com/xwiki/xwiki-commons/tree/master/xwiki-commons-tools/xwik…
.
Example old unit test:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Example migrated unit test:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
Most old unit tests are located in the module xwiki-platform-oldcore but
there may be others in other modules as well.
2. Is xwiki hosted on any test server. If not am I
suppose to run is on
the localhost for the tests to run(I suppose most of the tests are UI
tests
and needs a working application to test it).
XWiki has set up a Continuous Integration service based on Jenkins (
https://jenkins-ci.org/ ) which, besides the build, also runs unit and
functional tests automatically, for every commit pushed in the source
repository. The service is running at
http://ci.xwiki.org/
For development, however, you will be running unit or functional tests
locally, by running individual tests you are interested in (as detailed in
the testing documentation for each test type
http://dev.xwiki.org/xwiki/bin/view/Community/Testing). There is a good
distribution of unit and functional tests.
Functional tests can be run either:
* with a test instance manually started beforehand or
* with the specific test instance set up by the test itself (recommended)
which is configured in the project's pom.xml and is also used when run by
the Continuous Integration service.
3. For GSoC, do I need to focus on the just UI
tests or unit tests as
well?
As I`ve explained in the original mail's answer as well and on the
proposal's updated description
http://dev.xwiki.org/xwiki/bin/view/GoogleSummerOfCode/Convertallexistingte…
, we need both, but it will be up to the student to analyse, estimate and
commit to a particular ratio of functional and unit tests that he/she plans
to tackle when writing the student application. It is OK to do both but it
is also OK to do just one of them, as long as you show us that you have a
good understanding of what it involves and that you are able to finish what
you sign up for :)
I am focusing on understanding the flow of one test inside the
*xwiki-enterprise-test-selenium
project *so that I can convert at least one of them before proposal
submission.
Great!
Any help in understanding the flow would be
appreciated.
Basic suggestion is to run the test on your machine, see what it does and
how that fits with the existing code and then start working on how you can
make it use the Page Object approach and how the previous scenario can use
the page object you end up creating in order to test exactly the same
thing/scenario it was testing before.
We`re here to help you along the way.
Thanks,
Eduard
Thank You.
On Tue, Mar 1, 2016 at 3:53 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
--
Regards,
Anjali
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs