Test:Funding history test: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
= | = System Status Test Suite = | ||
This suite verifies that data is attached ONLY to the Main Page and NOT the Subpage. | |||
= Data | == 1. Data Integrity Check == | ||
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 | ||
}} | }} | ||
= | = Debug Actions = | ||
If the tests above fail: | |||
# '''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] | |||