Commit Graph
92 Commits
Author SHA1 Message Date
Scott Gray 37dcad0e67 Removing Jython tests as an option since it was never actually implemented, if we add script support now it'll likely be using Adrian's recent work and won't require a specific implementation for each script engine
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331751 13f79535-47bb-0310-9956-ffa450edef68
2012-04-28 11:30:14 +00:00
Hans Bakker 380d3638c4 revert 1229478 : test result files are empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1229799 13f79535-47bb-0310-9956-ffa450edef68
2012-01-10 23:29:24 +00:00
Hans Bakker f207e9cd22 make test-results location configurable in a propoerties file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1229478 13f79535-47bb-0310-9956-ffa450edef68
2012-01-10 07:13:31 +00:00
Erwan de Ferrieres 858f807812 Moving from System.out.println to Debug.logInfo in RemoteRequest.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202872 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 20:18:04 +00:00
Erwan de Ferrieres e8160c3c00 moving from while and iterators to for each in RemoteRequest.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202870 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 20:07:36 +00:00
Erwan de Ferrieres cd830d3869 removing unused variable and useless return in RemoteRequest
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202858 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 19:47:28 +00:00
Erwan de Ferrieres c93edc15e6 Removing useless commented code in RemoteRequest.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202856 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 19:40:37 +00:00
Erwan de Ferrieres 347707f69c Removing unused and not related to OFBiz trunk method : RemoteRequest#login
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202851 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 19:36:04 +00:00
Erwan de Ferrieres 82a2025c35 Correcting deprecated methods since migration to http-core 4.1.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202849 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 19:30:34 +00:00
Jacques Le Roux 2b712efb98 No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.

Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Hans Bakker 2a61998b2d junit tests to test the change in r1163083 to have invoicing per order/or shipment. Also added spring jar files to be able to test ofbiz events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163084 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:25:28 +00:00
Marco Risaliti a57455cac4 Removed some javadoc warning (wrong param/return) into testtools component no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126734 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 20:44:02 +00:00
Marco Risaliti 2d629008ec Replace tab by 4 spaces introduced by me on the previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126636 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 18:27:08 +00:00
Marco Risaliti 98a3be4d6c Remove some warning of compilation into SeleniumHtml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1125954 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:21:53 +00:00
Jacques Le Roux 2df3f75f70 We have got this issue on trunk demo server (it works locally but fails on server)
[javac16] Compiling 20 source files to /home/ofbiz/trunk/framework/testtools/build/classes
  [javac16] /home/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java💯 addTestSuite(java.lang.Class<? extends junit.framework.TestCase>) in junit.framework.TestSuite cannot be applied to (java.lang.Class<capture#618 of ?>)
  [javac16]                 suite.addTestSuite(clz);

This change allows to compile on trunk demo server

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098245 13f79535-47bb-0310-9956-ffa450edef68
2011-05-01 10:14:59 +00:00
Erwan de Ferrieres ef9cf5e8ce Correcting properties and using the https start url for selenium tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1092796 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 19:58:48 +00:00
Erwan de Ferrieres 2e635a5a55 Automatic imports reorganization in SeleniumXml.java -- no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1092710 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 14:04:58 +00:00
Erwan de Ferrieres cc247e81e2 Now OFBiz is able to run HTML selenium testsuites. Non specific java code is coming from SeleniumHtmlClient (https://github.com/takamori/selenium-html-client-driver) which is under the Apache2 license.
A testsuite is provided with the commit, just go to the selenium webtools' page, and execute it. For now, you still need to change the url.properties file, and start the selenium server.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1092706 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 13:55:38 +00:00
Hans Bakker d5fef640bf add timeout to selenium tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1090744 13f79535-47bb-0310-9956-ffa450edef68
2011-04-10 07:20:27 +00:00
Hans Bakker 0808b047e8 Update selenium version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1087595 13f79535-47bb-0310-9956-ffa450edef68
2011-04-01 06:07:26 +00:00
Jacques Le Roux 49d51439bf A bit better when using Selenium in Webtools without Internet access. (forgot java file in previous commit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082113 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 10:21:07 +00:00
Jacques Le Roux d6ff9b946d Allow to use Selenium in Webtools with (by default) or without Internet access.
Of course, without Internet access needs selenium-server.jar in framework/testtools/lib/ to work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082088 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 08:28:27 +00:00
Marco Risaliti d22d6e92cf Remove some warning in testtools component (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081103 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 12:49:04 +00:00
Marco Risaliti 10420a38ab Remove a warning about a possible NPE in VerifySeleniumSetups (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1078295 13f79535-47bb-0310-9956-ffa450edef68
2011-03-05 14:37:06 +00:00
Marco Risaliti 62cfec0ea0 Remove an unused variable in EntityXmlAssertTest (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068563 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:37:17 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Jacopo Cappellato 75a3c9f270 Added a bunch of missing license headers; we'll have to pay more attention on this in the future.
Still some work needs to be done in order to have the codebase inline with the ASF policies as it used to be.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 11:24:45 +00:00
Erwan de Ferrieres c7d8402c48 Correct the firefox location on debian and add new functionnalities to seleniumXml :
* take a browser screenshot with "captureEntirePageScreenshot"
* close the browser at a test's end with "closeBrowser"
Screenshots are saved in runtime/logs/ but can be changed in seleniumXml.properties file

You can try those by launching the test CommEventCreateOpportunity_testsuite.xml

The magic used to take screenshots was found on the seleniumexamples blog.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901704 13f79535-47bb-0310-9956-ffa450edef68
2010-01-21 13:41:21 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Adam Heath eb0f0bfb16 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Scott Gray e1cbfb28ed Added the ability to include all tests from a given simple method document in a test suite by only specifying the location and not the method name. All simple methods with a method name beginning with "test" will be included and will be executed in the order present in the document. Example usage:
<test-case case-name="auto-accounting-transaction-tests">
        <simple-method-test location="component://accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml"/>
    </test-case>
Basically just mimics the behavior of the junit-test-suite tag but for simple method tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893662 13f79535-47bb-0310-9956-ffa450edef68
2009-12-24 00:40:19 +00:00
Adam Heath ad3b379d34 Fix groovy class parsing/caching.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891070 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 23:24:02 +00:00
Scott Gray 95b37037cf Updated incorrect selenium download link, added notes to try and prevent it from happening again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890518 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 22:41:03 +00:00
Jacques Le Roux de77e0bca8 A patch from Erwan de FERRIERES "seleniumXML improvement and corrections" (https://issues.apache.org/jira/browse/OFBIZ-3296) - OFBIZ-3296
corrected the XML tests
added new functions in selenium for better conversion from selenese and use with the XML tests :
    * echo
    * verifyTextPresent
    * verifyTextNotPresent
    * assertTitle
    * assertConfirmation
Removed comments
    *  waitForPageToLoad : just wait the page to load before any other action (time in ms)
    * click : make a click on an element
    * assertContains : assert an element contains some code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887126 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 09:27:30 +00:00
Jacques Le Roux 2de8e3d53a A patch from Erwan de FERRIERES "Cleaning of the seleniumXml.java and seleniumIDEconverter.java files" (https://issues.apache.org/jira/browse/OFBIZ-3286) - OFBIZ-3286
This patch do not modify the files, but is just for cleaning this files :
seleniumXml.java
seleniumIDEconverter.java

There is a lot of LOC commented in the code, a lot of whitespaces and so on. This patch removes all of this.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886301 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 21:04:54 +00:00
Jacques Le Roux 15b7cd6582 Fix an issue in r885112
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885115 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 17:17:48 +00:00
Jacques Le Roux 47b0eff762 More uses of is(Not)Empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885112 13f79535-47bb-0310-9956-ffa450edef68
2009-11-28 16:27:42 +00:00
Jacques Le Roux d5d543b178 Fix r883508
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883517 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 22:02:49 +00:00
Jacques Le Roux e839974fe7 Use UtilValidate.isEmpty methods instead of (obj == null) || (obj.length == 0)
Complete r883507


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883508 13f79535-47bb-0310-9956-ffa450edef68
2009-11-23 21:48:18 +00:00
Scott Gray 24b64728fe Throw a ContainerException if any tests are unsuccessful during a test run and have the run-tests target fail if that is the case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882995 13f79535-47bb-0310-9956-ffa450edef68
2009-11-21 21:20:50 +00:00
Scott Gray b9b0a55b55 When possible log the actual test case name, makes debugging a lot easier
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882060 13f79535-47bb-0310-9956-ffa450edef68
2009-11-19 07:09:18 +00:00
Jacques Le Roux 63b509222b A patch from Marc Morin "Resolve java warnings exposed in Eclipse : framework - testtools" (https://issues.apache.org/jira/browse/OFBIZ-3119) - OFBIZ-3119
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832912 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:44:18 +00:00
Adrian Crum 9ee18d37c5 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Hans Bakker d8de376af1 patch supplied in OFBIZ-2964 by Brett palmer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819863 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 08:57:00 +00:00
Hans Bakker 77fc9fefef added a selenium option to webtools which partially tests if all settings have been done and will now automatically download the selenium server. Sponsored by Antwebsystems, programmed by employee Gan
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817493 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 04:00:22 +00:00
Adrian Crum 74ea95889c Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Adam Heath 9e9553f1a0 Generics, enhanced-for, similiar changes to the other java 1.5
patches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812320 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 02:22:05 +00:00