Difference between revisions of "Wiki Acceptance Tests"

From Second Life Wiki
Jump to: navigation, search
Line 151: Line 151:
Set the variable "myvar" to be "1234: {{#vardefine:myvar|1234}}
If the following shows "1234", then this is working properly:
The value is >>> {{#var:myvar}} <<<
===VideoFlash ===
===VideoFlash ===

Revision as of 10:50, 6 October 2010

When upgrading the wiki, or moving to a new operational location, use these tests to ensure that everything is functional.

In all cases, the pages should look the same as they did previously. The best way to ensure this would be to compare their appearance in the new installation with their appearance in the old (existing) installation.

Basic content tests

Special pages


To check that the API is active, click this link: https://wiki.secondlife.com/w/api.php


The following query returns a list of the namespaces defined:

This should return the following:

<?xml version="1.0"?>
    <general mainpage="Main Page" base="https://wiki.secondlife.com/wiki/Main_Page" sitename="Second Life Wiki" generator="MediaWiki 1.14.1" rev="34" case="first-letter" rights="Creative Commons Attribution-Share Alike 3.0" lang="en" fallback8bitEncoding="windows-1252" writeapi="" timezone="UTC" timeoffset="0" />
      <ns id="-2" canonical="Media">Media</ns>
      <ns id="-1" canonical="Special">Special</ns>
      <ns id="0" subpages="" />
      <ns id="1" subpages="" canonical="Talk">Talk</ns>
      <ns id="2" subpages="" canonical="User">User</ns>
      <ns id="3" subpages="" canonical="User talk">User talk</ns>
      <ns id="4" subpages="" canonical="Project">Project</ns>
      <ns id="5" subpages="" canonical="Project talk">Project talk</ns>
      <ns id="6" subpages="" canonical="File">File</ns>
      <ns id="7" subpages="" canonical="File talk">File talk</ns>
      <ns id="8" subpages="" canonical="MediaWiki">MediaWiki</ns>
      <ns id="9" subpages="" canonical="MediaWiki talk">MediaWiki talk</ns>
      <ns id="10" subpages="" canonical="Template">Template</ns>
      <ns id="11" subpages="" canonical="Template talk">Template talk</ns>
      <ns id="12" subpages="" canonical="Help">Help</ns>
      <ns id="13" subpages="" canonical="Help talk">Help talk</ns>
      <ns id="14" subpages="" canonical="Category">Category</ns>
      <ns id="15" subpages="" canonical="Category talk">Category talk</ns>
      <ns id="100" subpages="" canonical="Linden Lab Official">Linden Lab Official</ns>
      <ns id="101" subpages="" canonical="Linden Lab Official talk">Linden Lab Official talk</ns>
      <ns id="102" subpages="" canonical="Viewerhelp">Viewerhelp</ns>
      <ns id="103" subpages="" canonical="Viewerhelp talk">Viewerhelp talk</ns>
      <ns id="104" subpages="" canonical="Article officiel de Linden Lab">Article officiel de Linden Lab</ns>
      <ns id="105" subpages="" canonical="Article officiel de Linden Lab talk">Article officiel de Linden Lab talk</ns>
      <ns id="106" subpages="" canonical="Linden Lab公認">Linden Lab公認</ns>
      <ns id="107" subpages="" canonical="Linden Lab公認 talk">Linden Lab公認 talk</ns>
      <ns id="108" subpages="" canonical="Articolo ufficiale Linden Lab">Articolo ufficiale Linden Lab</ns>
      <ns id="109" subpages="" canonical="Articolo ufficiale Linden Lab talk">Articolo ufficiale Linden Lab talk</ns>
      <ns id="110" subpages="" canonical="Artigo oficial da Linden Lab">Artigo oficial da Linden Lab</ns>
      <ns id="111" subpages="" canonical="Artigo oficial da Linden Lab talk">Artigo oficial da Linden Lab talk</ns>
      <ns id="112" subpages="" canonical="Artículo oficial de Linden Lab">Artículo oficial de Linden Lab</ns>
      <ns id="113" subpages="" canonical="Artículo oficial de Linden Lab talk">Artículo oficial de Linden Lab talk</ns>
      <ns id="114" subpages="" canonical="Linden Lab Offiziell">Linden Lab Offiziell</ns>
      <ns id="115" subpages="" canonical="Linden Lab Offiziell talk">Linden Lab Offiziell talk</ns>
      <ns id="274" canonical="Widget">Widget</ns>
      <ns id="275" canonical="Widget talk">Widget talk</ns>
      <ns id="100">LLO</ns>
      <ns id="114">LLOde</ns>
      <ns id="104">LLOfr</ns>
      <ns id="106">LLOja</ns>
      <ns id="108">LLOit</ns>
      <ns id="110">LLOpt</ns>
      <ns id="112">LLOes</ns>
      <ns id="6">Image</ns>
      <ns id="7">Image talk</ns>
    <statistics pages="33962" articles="8215" views="118745206" edits="187815" images="5426" users="50807" activeusers="240" admins="33" jobs="0" />


Test "Google Search" in the sidebar:

  1. Enter a search term.
  2. Click Google Search.

Make sure it returns reasonable results.

Subpages in main namespace

Go to Wiki Acceptance Test/Subpages -- first line should just say "Wiki Acceptance Test", second line should just say "Subpages". If they both say "Wiki Acceptance Test/Subpages", then this isn't working right.


Check that Special:Version lists the same set of installed extensions.


The special page Special:Cite should exist.

Flagged Revisions

  1. Edit a page in the Knowledge Base.
  2. Check that the edit becomes a "draft" revision.
  3. As a reviewer user, approve the edit, and check that it becomes the "stable" revision.

Check the Admin Dashboard to ensure that pages show up in the various FR special pages.


Copied from User:Ugleh Ulrik:

Error: Found poly with odd number of coordinates on line 3

Error: Found poly with odd number of coordinates on line 3


Error: Found poly with odd number of coordinates on line 3

Error: Found poly with odd number of coordinates on line 3


If these show the correct values, then this extension is working:

  • pi = 3.14159265358979323846
  • e = 2.7182818284590452354
  • sqrt(2) = 1.41421356237309504880


(nobody uses this extension)


Set the variable "myvar" to be "1234:

If the following shows "1234", then this is working properly:

The value is >>> 1234 <<<



Check that the following list of widgets shows up: https://wiki.secondlife.com/w/index.php?title=Special%3AAllPages&from=&to=&namespace=274

Do we need to test each individual widget? Probably not. Maybe just test a couple.

Add metas

Check that each page has

<meta name="mat" content="PG_NOT" /> 

in its <head>.


Check that MediaWiki:Breadcrumbs exists and that breadcrumbs are displayed properly.


If the following is displayed as formatted text the extension is working.

<lsl>default { state_entry() { llOwnerSay(""); } }</lsl>

Google Analytics Integration

Check that each wiki page has the following at the bottom:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-190376-9");


Check that a page in the LLO namespace shows the following header and footer:

Rename User

See if Special:RenameUser exists.


If this page exists, then the extension is installed. Special:ReplaceText. Try it out and confirm that it works properly.


If what follows is the current date and time formatted as Y m d H:i:s then this extension is working.

2019 10 15 19:33:48


If the number on the line below is 4, then this extension is working.