Test:Investor portfolio test: Difference between revisions

No edit summary
No edit summary
 
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 investor` correctly point to the Main Page?
Even though the data lives on the subpage, does the property `Is part of investor` 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}}/Portfolio]] |?Is part of investor#- |mainlabel=- |limit=1 |searchlabel= }}
* '''Expected Links:''' 2
* '''Match Status:''' {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Portfolio]] |?Is part of investor#- |mainlabel=- |limit=1 |searchlabel= }}|{{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}}/Portfolio]] [[Is part of investor::{{PAGENAME}}]] | format=count }}
* '''Match Status:''' {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Portfolio]] [[Is part of investor::{{PAGENAME}}]] | format=count }}|2| <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 ==