1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <test xmlns="http://exist.sourceforge.net/NS/exist"> |
---|
3 | <configuration> |
---|
4 | <!-- <connection id="con" user="admin" password="" base="xmldb:exist://embedded-eXist-server"/> --> |
---|
5 | <connection id="con" user="admin" password="pwd" base="xmldb:exist://localhost:8680/exist/xmlrpc/"/> |
---|
6 | <action name="sequence" class="org.exist.performance.ActionSequence"/> |
---|
7 | <action name="create-collection" class="org.exist.performance.actions.CreateCollection"/> |
---|
8 | <action name="remove-collection" class="org.exist.performance.actions.RemoveCollection"/> |
---|
9 | <action name="store-files" class="org.exist.performance.actions.StoreFromFile"/> |
---|
10 | <action name="store" class="org.exist.performance.actions.StoreInline"/> |
---|
11 | <action name="generate" class="org.exist.performance.actions.DataGenerator"/> |
---|
12 | <action name="xquery" class="org.exist.performance.actions.XQuery"/> |
---|
13 | </configuration> |
---|
14 | |
---|
15 | <group name="cmdi-tests-getCollections"> |
---|
16 | <thread name="thread1" connection="con"> |
---|
17 | <sequence repeat="20" description="basic test of get-collections API-function"> |
---|
18 | <xquery collection="/db/cmdi-mirror" query="" > |
---|
19 | import module namespace cmd-model = "http://spraakbanken.gu.se/clarin/xquery/model" |
---|
20 | at "xmldb:exist:///db/clarin/cmd-model.xqm"; |
---|
21 | cmd-model:get-collections('root', 'xml', 1) |
---|
22 | </xquery> |
---|
23 | </sequence> |
---|
24 | </thread> |
---|
25 | </group> |
---|
26 | |
---|
27 | <group name="cmdi-tests-queryModel"> |
---|
28 | <thread name="thread1" connection="con"> |
---|
29 | <sequence repeat="20" description="basic test of query-model API-function"> |
---|
30 | <xquery collection="/db/cmdi-mirror" > |
---|
31 | import module namespace cmd-model = "http://spraakbanken.gu.se/clarin/xquery/model" |
---|
32 | at "xmldb:exist:///db/clarin/cmd-model.xqm"; |
---|
33 | cmd-model:query-model('Components', '/db/cmdi-mirror', 'xml', 1) |
---|
34 | </xquery> |
---|
35 | </sequence> |
---|
36 | </thread> |
---|
37 | </group> |
---|
38 | |
---|
39 | <group name="cmdi-tests-searchRetrieve"> |
---|
40 | <thread name="thread1" connection="con"> |
---|
41 | <sequence repeat="20" description="query imdi resources (no index)"> |
---|
42 | <xquery collection="/db/cmdi-mirror" query=""></xquery> |
---|
43 | </sequence> |
---|
44 | </thread> |
---|
45 | </group> |
---|
46 | |
---|
47 | <group name="cmdi-tests-cc"> |
---|
48 | <thread name="thread1" connection="con"> |
---|
49 | <sequence repeat="20" description="consistency checks"> |
---|
50 | <xquery collection="/db/cmdi-mirror" query="count(//IsPartOf[IsPartOf])" /> |
---|
51 | <xquery collection="/db/cmdi-mirror" query="count(/CMD/Header/MdSelfLink[.=''])" /> |
---|
52 | </sequence> |
---|
53 | </thread> |
---|
54 | </group> |
---|
55 | |
---|
56 | |
---|
57 | </test> |
---|