Test:Investor portfolio test: Difference between revisions

Created page with "{{Investor/Portfolio}} = System Status Test Suite = This suite verifies that SMW data is housed on the '''Subpage''' (Portfolio) but points to this '''Main Page'''. == 1. Data Existence Check == Does the data exist in the wiki database? * '''Expected:''' 2 rows (SpaceX, Stripe). * '''Actual:''' {{#ask: [[Is part of investor::{{PAGENAME}}]] | format=count }} == 2. Physical Storage Location Verification == Where are the subobjects physically stored? We want them on the..."
 
No edit summary
 
(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 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 }}
* '''Expected Links:''' 2
* '''Match Status:''' {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Portfolio]] |?Is part of investor= |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}}/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 ==