Hi, I’ve added support for the combine parameter on xf:header of xf:submission see
http://github.com/nvdbleek/orbeon-forms/
I now want to add a test case, but I don’t find any examples of testing submission headers with a standard XForms submission. Attached to this e-mail you can find a test case XForms document, which is based on 11.8.a
of the w3c test suite. But I don’t see how I can add this test to the automated JUnit framerwork of Orbeon. Any help would be appreciated. Regards, Nick Van den Bleeken R&D Manager Phone: +32 3 821 01 70 Office Fax: +32 3 821 01 71 Inventive Designers' Email Disclaimer: http://www.inventivedesigners.com/email-disclaimer
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws 11.8.b.xhtml (3K) Download Attachment |
Hi Nick,
Good work! We have server-side unit tests here: http://github.com/orbeon/orbeon-forms/tree/master/src/resources-packaged/ops/unit-tests/xforms-server/ In particular, check tests-xforms-submission.xml. At the moment, no test actually performs external requests I think. They use the pseudo "test:" URL, which echoes values, or read local files. But we could change that if needed and start doing external submissions (it just means you need an internet connection to run the tests). We probably can't use directly the test you attached with the current frameworks. Instead, the test should read the response, probably parse it (with a regexp?), and store the result into an instance. Then the test can compare the result with the returned value. Suggestions welcome of course. -Erik On Sun, Aug 2, 2009 at 7:55 AM, Nick Van den Bleeken<[hidden email]> wrote: > Hi, > > > > I’ve added support for the combine parameter on xf:header of xf:submission > see http://github.com/nvdbleek/orbeon-forms/ > > > > I now want to add a test case, but I don’t find any examples of testing > submission headers with a standard XForms submission. Attached to this > e-mail you can find a test case XForms document, which is based on 11.8.a of > the w3c test suite. But I don’t see how I can add this test to the automated > JUnit framerwork of Orbeon. > > > > Any help would be appreciated. > > > > Regards, > > > > Nick Van den Bleeken > > R&D Manager > > > > Phone: +32 3 821 01 70 > > Office Fax: +32 3 821 01 71 > > [hidden email] > > http://www.inventivegroup.com > > > > ________________________________ > Inventive Designers' Email Disclaimer: > http://www.inventivedesigners.com/email-disclaimer > > -- > This message has been scanned for viruses and > dangerous content, and is believed to be clean. > -- > > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |