Test:Investor portfolio test: Difference between revisions
Appearance
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 |
||
| Line 29: | Line 29: | ||
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? | ||
* '''Target Page:''' {{PAGENAME}} | * '''Target Page:''' {{PAGENAME}} | ||
* '''Property Value:''' {{#ask: [[-Has subobject::{{PAGENAME}}/Portfolio]] |?Is part of investor | * '''Property Value:''' {{#ask: [[-Has subobject::{{PAGENAME}}/Portfolio]] |?Is part of investor#- |mainlabel=- |limit=1 |searchlabel= }} | ||
* '''Match Status:''' {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Portfolio]] |?Is part of investor | * '''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> }} | ||
== 4. Example Queries == | == 4. Example Queries == | ||
Revision as of 00:19, 3 December 2025
Note: This list is community-maintained and may be incomplete or contain inaccuracies.
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: 2
2. Physical Storage Location Verification
Where are the subobjects physically stored? We want them on the subpage to avoid cluttering the main page metadata.
| Check Target | Expected | Actual | Status |
|---|---|---|---|
| Attached to Main Page (Test:Investor portfolio test) |
0 | 0 | PASS |
| Attached to Subpage (Test:Investor portfolio test/Portfolio) |
2 | 2 | PASS |
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?
- Target Page: Test:Investor portfolio test
- Property Value: Is part of investor: Test:Investor portfolio test
- Match Status: FAIL (Points to wrong page)
4. Example Queries
Simple List
{{#ask: [[Is part of investor::{{PAGENAME}}]]
|?HasPortfolio Startup
}}
| HasPortfolio Startup | |
|---|---|
| Test:Investor portfolio test/Portfolio | Stripe |
| Test:Investor portfolio test/Portfolio | SpaceX |
Debug Actions
If tests fail:
- Purge Subpage (Required to update SMW table): Click here to Purge Subpage
- Purge Main Page: Click here to Purge Main Page