writing test cases for xquery
Issues related to W3C XQuery.
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: writing test cases for xquery
Post by alex_jitianu »
Hi,
XSpec can be used to write test scenarios for both XSLT and XQuery (and from its documentation I see that it also supports MarkLogic). The latest release is 0.5.0.
Oxygen supports XSpec (mostly for XSLT but, to an extent also XQuery) so you can create and write XSpec scenarios in it. To run these scenarios from within Oxygen you will have to create an XProc scenario based on the details from the XSpec project (by default we only have scenarios for XSpec scripts that test XSLT).
Best regards,
Alex
XSpec can be used to write test scenarios for both XSLT and XQuery (and from its documentation I see that it also supports MarkLogic). The latest release is 0.5.0.
Oxygen supports XSpec (mostly for XSLT but, to an extent also XQuery) so you can create and write XSpec scenarios in it. To run these scenarios from within Oxygen you will have to create an XProc scenario based on the details from the XSpec project (by default we only have scenarios for XSpec scripts that test XSLT).
Best regards,
Alex
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: writing test cases for xquery
Post by alex_jitianu »
Hi,
Unfortunately I don't have much experience with writing tests fro XQuery. We only integrated the XSLT testing part into Oxygen. I think that what differs from an XSLT test is that you'll have to use the @query attribute on the root to refer the tested query.
Afterwards, to run it, you could try the XProc variant and make sure you select the MarkLogic driver. I recommend you to ask a question on the XSpec GitHub project. There was a recent surge in activity on the project and the people there can help you more than I can.
Best regards,
Alex
Unfortunately I don't have much experience with writing tests fro XQuery. We only integrated the XSLT testing part into Oxygen. I think that what differs from an XSLT test is that you'll have to use the @query attribute on the root to refer the tested query.
Code: Select all
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec" query="myQueryTest.xqy">
<x:scenario label="Scenario for testing a function">
<x:call function="function-name"/>
<x:expect label="" select=""/>
</x:scenario>
</x:description>
Best regards,
Alex
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service