[
https://issues.apache.org/jira/browse/JSPWIKI-770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13631418#comment-13631418
]
Glen Mazza commented on JSPWIKI-770:
------------------------------------
I'm making a bit more progress with the Selenium stuff (I think). I noticed
(unfortunately) that I can't use our Selenium test suite[1] OOTB with Maven
because Ant filtering is being done within the Selenium HTML scripts to insert
the URL string (context) for each of the five applications[2]. I think the
URLs were made different because with Ant we start Jetty just once, load the
five WARs (load one & run tests, then go to the next WAR requiring its URL to
be different), and then stop Jetty, closing all 5 WARs at once. I believe on
the Maven side it can be simplified -- Jetty (or Tomcat) will start/stop after
each WAR[3], meaning the URL can remain the same for all five tests (i.e.,
hopefully no need to duplicate five sets of the test suites with different URLs
in each--is that your work experience?)
The Maven pom has two more plugins[3]--one for starting and stopping Jetty and
the other for running the test scripts--if you have anything better that will
work for 5 WARs please advise. Presently the webtests won't work because I
haven't gotten the Web URL correct yet (I also have to run the Ant webtests
first so the Selenium test suite has its URLs populated) but the configuration
otherwise looks OK for testing at least one WAR.
[1]
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/tests/etc/selenium/tests/all/
[2]
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/build.xml?revision=1467837&view=markup#l987
(line #990 has the filtering)
[3]
http://svn.apache.org/viewvc/incubator/jspwiki/trunk/pom.xml?revision=1467837&view=markup#l496
I think, to make more progress at this stage, we will need to start moving the
folder structure around as you suggested above in your last comment.
> Enable Selenium testing via Maven execution
> -------------------------------------------
>
> Key: JSPWIKI-770
> URL: https://issues.apache.org/jira/browse/JSPWIKI-770
> Project: JSPWiki
> Issue Type: New Feature
> Components: Build system
> Reporter: Juan Pablo Santos RodrÃguez
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira