Test:Funding history test: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
= Visual Test: The Wrapper =
= System Status Test Suite =
Below should be the Funding History table, automatically transcluded from the subpage. You should also see an "Edit Funding History" button.


{{Startup/Funding history}}
This suite verifies that data is attached ONLY to the Main Page and NOT the Subpage.


= Data Test: Context Verification =
== 1. Data Integrity Check ==
The query below tests if the sub-objects created on the sub-page are correctly linked to ''this'' page (Test:Funding_Example) via the "Is part of startup" property.
Does the data exist at all?
* '''Expected:''' 3 rows (Sequoia, Andreessen, Khosla).
* '''Actual:''' {{#ask: [[Is part of startup::{{PAGENAME}}]] | format=count }}
 
== 2. Location Verification (Crucial) ==
Where are the subobjects physically stored?
 
{| class="wikitable"
! Check Target !! Expected Count !! Actual Count !! Status
|-
| '''Attached to Main Page'''<br>([[{{PAGENAME}}]])
| 3
| {{#ask: [[-Has subobject::{{PAGENAME}}]] | format=count }}
| {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}]] | format=count }}|3|<span style="color:green; font-weight:bold">PASS</span>|<span style="color:red; font-weight:bold">FAIL</span>}}
|-
| '''Attached to Subpage'''<br>([[{{PAGENAME}}/Funding_history]])
| 0
| {{#ask: [[-Has subobject::{{PAGENAME}}/Funding_history]] | format=count }}
| {{#ifeq:{{#ask: [[-Has subobject::{{PAGENAME}}/Funding_history]] | format=count }}|0|<span style="color:green; font-weight:bold">PASS</span>|<span style="color:red; font-weight:bold">FAIL - DUPLICATES DETECTED</span>}}
|}
 
== 3. "Is part of startup" Property Test ==
Does the property point to the correct page name?
* '''Target Page:''' {{PAGENAME}}
* '''Property Value:''' {{#ask: [[Is part of startup::{{PAGENAME}}]] |?Is part of startup= |mainlabel=- |limit=1 }}
* '''Match Status:''' {{#ifeq:{{#ask: [[Is part of startup::{{PAGENAME}}]] |?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</span>}}
 
== 4. Query Usability Test ==
Can we query this data naturally without "hacks"?
''(The link in the first column should take you to the Main Page, not the subpage).''


{{#ask: [[Is part of startup::{{PAGENAME}}]]
{{#ask: [[Is part of startup::{{PAGENAME}}]]
Line 11: Line 39:
  |?HasFunding Round=Round
  |?HasFunding Round=Round
  |format=table
  |format=table
|mainlabel=-
|default=❌ '''FAIL:''' No subobjects found linked to {{PAGENAME}}.
}}
}}


= Debugging =
= Debug Actions =
* '''Current Page:''' {{PAGENAME}}
If the tests above fail:
* '''Expected Data Source:''' [[{{PAGENAME}}/Funding_history]]
# '''Purge this page:''' [{{fullurl:{{PAGENAME}}|action=purge}} Click here to Purge Main Page]
# '''Purge subpage:''' [{{fullurl:{{PAGENAME}}/Funding_history|action=purge}} Click here to Purge Subpage]