Commit Graph
21 Commits
Author SHA1 Message Date
Mathieu Lirzin 9bc8ebb864 Improved: Remove useless ‘GroovyScriptTestCase’
(OFBIZ-11165)

This class was useless since ‘GroovyScriptTestCase’ provides the same
interesting feature as ‘OFBizTestCase’ meaning a delegator and a dispatcher.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865787 13f79535-47bb-0310-9956-ffa450edef68
2019-08-23 18:02:42 +00:00
Mathieu Lirzin e6a00e6427 Improved: Disallow alternate test dispatcher/delegator (OFBIZ-10723)
Previously the way integration tests were run allows having a specific
dispatcher and delegator for each test.  Removing this feature helps
future simplification of the way integration tests are actually run by
allowing the algorithm to assume only one dispatcher and delegator for
all the tests.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1854650 13f79535-47bb-0310-9956-ffa450edef68
2019-03-02 16:23:39 +00:00
Jacques Le Roux c1d09961dd Improved: Clean some Groovy files in base component
(OFBIZ-10646)

Following discussion at https://markmail.org/message/y3izmnxd7jd6jbkf 
this cleans some Groovy files in the base component, notably:

* remove ant-scripts folder and its content.
* Rename framework/base/groovyScript to framework/base/groovyScripts;
* Move GroovyInit.groovy and GroovyServiceTest.groovy respectively to 
  framework/base/groovyScripts and framework/common/groovyScripts 
  and change their paths where used.
* Removes GroovyInit.groovy from excludedConfigFiles in build.gradle
* After OFBIZ-10611 it's possible to move GroovyBaseScript.groovy  from
  framework/service/src/main/java/org/apache/ofbiz/service/engine
  to
  framework/service/src/main/groovy/org/apache/ofbiz/service/engine
* Removes FileUtilTests.groovy from basetests.xml (missed it in OFBIZ-10611)
* Fixes a typo in test-suite.xsd

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1846485 13f79535-47bb-0310-9956-ffa450edef68
2018-11-13 05:03:51 +00:00
Nicolas Malin faadb7dca4 Fixed: forget to add the class GroovyScriptTestCase.java ans the simple groovy test-suite in the previous commit related to issue OFBIZ-9996
Correct introduced typo in framework/testtools/dtd/test-suite.xsd

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816345 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 20:05:29 +00:00
Nicolas Malin 48f90d5b74 Implemented: Implement Groovy test in testtools (OFBIZ-9996)
With the minilang deprecation and the migration to groovy, I implemented on the ofbiz testtools the possibility to use groovy for write new integration test or convert current simple xml test.
Now you can define a new element as child of test-group on your xml test-suite file like
        <groovy-test-suite name=simple location=component://base/groovyScript/test/SimpleTests.groovy/>

To Write your test, you need to create a Groovy class that extends GroovyScriptTestCase class :
    import org.apache.ofbiz.testtools.GroovyScriptTestCase
    class BaseTest extends GroovyScriptTestCase {
        void testTrue() {
            assert 1, 1
        }
    }
All your function will execute as TestCase.

For more information on groovy specific testing language see http://groovy-lang.org/testing.html

At this time the OFBiz Groovy DSL isn't supported to write groovy test case but you have access to the delegator and the disphatcher as native class variable.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816335 13f79535-47bb-0310-9956-ffa450edef68
2017-11-25 17:35:20 +00:00
Hans Bakker 582f8e6eb0 Selenium web driver integration using XML files: https://issues.apache.org/jira/browse/OFBIZ-6618
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709516 13f79535-47bb-0310-9956-ffa450edef68
2015-10-20 06:34:32 +00:00
Jacopo Cappellato 6ba24ed4bc As discussed in the dev list a few months ago, this commits removes Seleniumxml from the trunk.
Seleniumxml was a subcomponent of the framework/testtools intended to facilitate the usage of Selenium tests in OFBiz.
However it was never upgraded to the new version of Selenium and it has not been widely adopted by the community; the OFBiz community agreed to remove components/tools like this from the core distribution if they are optional/very specific or not well maintained or if there is (as in the case of Selenium) a valid external alternative to perform the same actions.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1354380 13f79535-47bb-0310-9956-ffa450edef68
2012-06-27 09:19:20 +00:00
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
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +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
Hans Bakker 2d51096b6d Excellent contribution from Brett G. Palmer in issue: OFBIZ-2116
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804074 13f79535-47bb-0310-9956-ffa450edef68
2009-08-14 04:22:27 +00:00
Scott Gray 4049b07769 A little documentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770905 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 06:57:30 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Adam Heath 84795ddd31 Add a <test-group> element, that is a sibling of <test-case>; this
element can take a list of child test definitions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750296 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05 02:40:06 +00:00
Jacques Le Roux ae76370a04 Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl

Those links were useless before also

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
David E. Jones 0b43b8b6d8 Changed entity-xml-assert to entity-xml with an action element to specify either assert or load; note that parsing code still supports old entity-xml-assert
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@572276 13f79535-47bb-0310-9956-ffa450edef68
2007-09-03 10:41:28 +00:00
David E. Jones 4516bbe6dd Added simple-method-test to call a simple-method as a service, without a service definition; also includes some various fixes including one from Joe in Jira OFBIZ-791
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@516253 13f79535-47bb-0310-9956-ffa450edef68
2007-03-09 01:28:43 +00:00
David E. Jones 55d9135631 Added stub and xsd file extension for entity-xml-assert test case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515235 13f79535-47bb-0310-9956-ffa450edef68
2007-03-06 18:10:41 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacopo Cappellato 91f39d9712 License change from MIT to ASL2.0 for the files of the testtools component.
Thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@423840 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 08:59:10 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00