Test:Funding history test: Difference between revisions

No edit summary
m C moved page Test:Funding Example to Test:Funding history test without leaving a redirect
 
(One intermediate revision by the same user not shown)
Line 28: Line 28:
== 3. Property Logic Test ==
== 3. Property Logic Test ==
Even though the data lives on the subpage, does the property `Is part of startup` correctly point to the Main Page?
Even though the data lives on the subpage, does the property `Is part of startup` correctly point to the Main Page?
We verify this by counting how many subobjects on the subpage explicitly point to {{PAGENAME}}.
* '''Target Page:''' {{PAGENAME}}
* '''Target Page:''' {{PAGENAME}}
* '''Property Value:''' {{#ask: [[-Has subobject::{{PAGENAME}}/Funding_history]] |?Is part of startup= |mainlabel=- |limit=1 }}
* '''Expected Links:''' 3
* '''Match Status:''' {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Funding_history]] |?Is part of startup= |mainlabel=- |limit=1 }}|{{PAGENAME}}| <span style="color:green; font-weight:bold">PASS</span> | <span style="color:red; font-weight:bold">FAIL (Points to wrong page)</span> }}
* '''Actual Links:''' {{#ask: [[-Has subobject::{{PAGENAME}}/Funding_history]] [[Is part of startup::{{PAGENAME}}]] | format=count }}
* '''Match Status:''' {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Funding_history]] [[Is part of startup::{{PAGENAME}}]] | format=count }}|3| <span style="color:green; font-weight:bold">PASS</span> | <span style="color:red; font-weight:bold">FAIL (Property not pointing to Main Page)</span> }}


== 4. Example Queries ==
== 4. Example Queries ==