Test plan: Difference between revisions

From USApedia
m (Text replacement - "Saintapedia" to "USApedia")
 
(2 intermediate revisions by 2 users not shown)
Line 82: Line 82:
|-
|-
|[[USApedia:User pages|User]]
|[[USApedia:User pages|User]]
|[[User:Tom]]
|[[User:MrT/Sandbox]]
|User talk
|User talk
|[[User talk:Tom]]
|[[User talk:MrT]]
|-
|-
|[[USApedia:USApedia namespace|USApedia]]
|[[USApedia:USApedia namespace|USApedia]]
|[[USApedia:Historic content|USApedia:Historic content]]
|[[USApedia:About]]
|USApedia talk
|USApedia talk
|[[USApedia talk:Red link|USApedia talk:Red link]]
|[[USApedia talk:About]]
|-
|-
|[[Help:Images and media|File]]
|[[Help:Images and media|File]]
|TBD
|[[:File:ABC blocks.png]]
|File talk
|File talk
|TBD
|[[File talk:ABC blocks.png]]
|-
|-
|[[USApedia:MediaWiki namespace|MediaWiki]]
|[[USApedia:MediaWiki namespace|MediaWiki]]
Line 345: Line 345:
File:Edit button.png|Edit button
File:Edit button.png|Edit button
File:We Can Edit.jpg|We Can Edit poster
File:We Can Edit.jpg|We Can Edit poster
File:Saint icon.jpg|Saint icon
File:Purge-icon.png|Purge icon
File:Purge-icon.png|Purge icon
</gallery>
</gallery>

Latest revision as of 15:03, 3 December 2024

The Test plan will document generic tests that should be run against USApedia after an upgrade. This page should not include any sensitive network or architecture elements.

User:Tom - Check this one out

Data

Ensure no data was lost by updating USApedia:Statistics just before backup and after the upgrade from Special:Statistics. Once done, the statistics should be compared.

  • Pages (Articles)
  • Jobs
  • Registered Users
  • Administrators
  • Page Edits
  • Active Users
  • Files Uploaded
  • Total Pages
  • Page views

Installed extensions

This list was created from Special:Version in August 2024.

CiteThisPage

Contribution Scores

All time (Top 10)

Echo

  • Description - System for notifying users about events and messages
  • Test - With another account, see if you can:
    • Use the Thanks tool
    • Mention someone using the {{@}} template on a talk page
    • Undo a change

Interwiki

Renameuser

  • Description - Adds a Special:RenameUser special page to rename a user (need renameuser right)
  • Test - Using an account with the correct rights, rename a user account

Replace Text

  • Extension:Replace TextMediawiki logo.svg provides a special page to allow administrators to do a global string find-and-replace on all the content pages of a wiki
  • Test - Use Special:ReplaceText to make a text replacement

UserMerge

  • Description - Special:UserMerge Merges references from one user to another user in the wiki database - will also delete old users following merge. Requires usermerge privileges
  • Test - After other testing is done with test account, attempt to merge it into a primary account

VisualEditor

Namespace Example Talk page Example
Main USApedia Talk Talk:USApedia
User User:MrT/Sandbox User talk User talk:MrT
USApedia USApedia:About USApedia talk USApedia talk:About
File File:ABC blocks.png File talk File talk:ABC blocks.png
MediaWiki Not enabled MediaWiki talk MediaWiki talk:Anonnotice
Template No enabled Template talk Template talk:Video table
Help Help:Images Help talk Help talk:Files
Category Category:Redirects Category talk Category talk:Biography
Module No enabled Module talk Module talk:Bananas

WikiEditor

  • Description - Provides an extendable wikitext editing interface and many feature-providing modules
  • Test - Test all features of Enhanced editor's toolbar

CategoryTree

Cite

  • Description - Adds <ref[ name=id]> and <references/> tags, for citations
  • Test - Ensure that the reference is working[1]

EmbedVideo

  • Description - Adds a parser function embedding video from popular sources.
  • Test - See if the video is playable below.
The Pontificate of John Paul II begins

ImageMap

  • Description - Image Map allows client-side clickable image maps using <imagemap>tag
  • Test - Confirm that you clicking on portions of the map below will take you to the appropriate state.
Map of United States. Each state is a clickable link.
WashingtonOregonNevadaCaliforniaCaliforniaIdahoIdahoArizonaMontanaColoradoNew MexicoNorth DakotaSouth DakotaNebraskaNebraskaKansasOklahomaOklahomaTexasTexasTexasMinnesotaIowaMissouriMissouriArkansasUtahWyomingLouisianaWisconsinIllinoisMichiganIndianaKentuckyTennesseeMississippiAlabamaOhioWest VirginiaFloridaGeorgiaSouth CarolinaNorth CarolinaVirginiaMarylandDelawarePennsylvaniaNew JerseyNew YorkNew YorkConnecticutRhode IslandMassachuettesVermontNew HampshireMaineHawaiiAlaskaWest VirginiaWashington, D.C.MarylandDelawareNew JerseyConnecticutRhode IslandMassachusettsVermontNew HampshireMap of USA with state names.png
About this image

AL - AK - AS - AZ - AR - CA - CO - CT - DE - DC - FL - GA - GU - HI - ID - IL - IN - IA - KS - KY -
LA - ME - MD - MA - MI - MN - MS - MO - MT - NE - NV - NH - NJ - NM - NY - NC - ND - NMI - OH - OK -
OR - PA - PR - RI - SC - SD - TN - TX - UT - VT - VI - VA - WA - Washington, D.C. - WV - WI - WY

Maps

  • Description - Maps enables embedding of dynamic maps into wiki pages, geocoding of addresses and other geographical operations
  • Test - See if the map (NEEDED) appears below.

ParserFunctions

  • Description - Enhance parser with logical functions
  • Test - Ensure parser functions are working
  • {{#time: F j, Y}} will show the current date: January 23, 2025. Other common formats for displaying a date include:
    • {{#time: n/j/y}}: 1/23/25,
    • {{#time: m/d/Y}}: 01/23/2025 (with zero padding added, if necessary, to make the month and day each 2 digits long, and a 4-digit year), and
    • {{#time: Y-m-d}}: 2025-01-23.
    • {{#time: Y F d H:i:s}}: 2025 January 23 04:16:18
    • {{#timel: Y F d H:i:s}}: 2025 January 22 23:16:18
    • {{#ifexpr: 1 > 0 | yes | no }} can compare values: yes
    • {{#ifeq: {{#time: D}} | Fri | TGIF!}} will display a message only on Fridays: 
    • {{#switch: {{#time: D}} | Fri=TGIF! | Sat=Weekend | Sun=Weekend | #default=Where's my coffee?}} will display a different message on different days: Where's my coffee?

Scribunto

  • Description - Framework for embedding scripting languages into MediaWiki pages
  • Test
    • "Hello, world!" should appear in the bullet below using {{#invoke:Bananas|hello}}
      • Hello, world!
    • Alternatively add {{#invoke:Bananas|hello}} to your Sandbox using Enhanced editor. If it says "Hello, world!" when you save it, Scribunto is working.

SyntaxHighlight

Wikitext:

<syntaxhighlight lang="php">
<?php
    $v = "string";    // sample initialization
?>
html text
<?
    echo $v;         // end of php code
?>
</syntaxhighlight>

Saved wikitext:

<?php
    $v = "string";    // sample initialization
?>
html text
<?
    echo $v;         // end of php code
?>

TemplateData

  • Description - Implement data storage for template parameters (using JSON)
  • Test - When adding or editing a template, that has TemplateData created, it should allow you to make changes using a form.

TemplateStyles

  • Description - The TemplateStylesMediawiki logo.svg extension introduces a <templatestyles> tag to specify that a stylesheet should be loaded from a wiki page. Placing this in a template allows the template to have custom styles without having to place them in MediaWiki:Common.css. For instructions on how to use the extension as an editor on a wiki, see Help:TemplateStyles.
  • Test - Review Help:TemplateStyles/examples

PDF Handler

  • Description - Handler for viewing PDF files in image mode.
  • Test - Ensure that appears as an image below.

AdvancedSearch

  • Description - AdvancedSearchMediawiki logo.svg enhances Special:Search by providing an advanced parameters form and improving how namespaces for a search query are selected.
  • Test - Go to Special:Search and ensure the form can be used to filter results appropriately

CategoryTagSorter

CirrusSearch

  • Description - The CirrusSearchMediawiki logo.svg extension implements searching for MediaWiki using Elasticsearch.
  • Test - As this affects the default search for the wiki, test one or two of the features mentioned on Help:Search:
    • sorting navigation suggestions by the number of incoming links.
    • Starting with the tilde character ~ to disable navigation and suggestions in such a way that also preserves page ranking.
    • Smart-matching characters by normalizing (or "folding") non-keyboard characters into keyboard characters.
    • Words and phrases that match are highlighted in bold on the search results page.[2]
    • Ability to search within PDFs with machine readable text (non-image PDFs)
    • Fuzzy searches and wildcard searches will be improved (Words, phrases, and modifiers)
    • Some spelling correction using the "Did you mean?"
      • Example - When searching for "secratary," it gives the searcher "Showing results for secretary. Search instead for secratary."
    • Ability to look for pages in specific categories (incategory), have a template (hastemplate), or pages that link to a page (Linksto)
    • When you start typing in the search box, the article suggestions are sort by article quality. Those suggestions should take into account the number of incoming wikilinks, the size of the page, the number of external links, the number of headings, and the number of redirects.
    • Look for similar pages (Morelike), have text in the page title (intitle), or search subpages (recommended mainly for Portals)
    • Search the uploaded files by size (filesize), type (filetype), file format (filemime), or other measurements (File measures )
      • Examples - filesize:<10240, filetype:video, filemime:svg, and filewidth:1024
    • Expanding templates, meaning that all content from a template is now reflected in search results.
    • Faster updates to the search index, meaning changes to articles are reflected in search results much faster.

DismissableSiteNotice

  • Description - Allows users to close the sitenotice
  • Test - Using an account with the rights,

Elastica

  • Description - The ElasticaMediawiki logo.svg extension provides base elasticsearch functionality. Further information is available on the CirrusSearch extension's page.
  • Test - See #CirrusSearch above.

MobileFrontend

File:Switch to mobile view.png
Switch to mobile front end
  • Description - Mobile Front end creates a separate mobile site for your mobile traffic and provides various content transformations to make your content more friendly
  • Test
    • On a desktop, go to the bottom of any USApedia page
    • See if there is a link to "Mobile view"
    • Ensure the display changes appropriately

MultimediaViewer

NewUserMessage

ParserHooks

  • Description - ParserHooksMediawiki logo.svg adds an object orientated and declarative parser hook interface on top of MediaWiki.
  • Test - Testing should be done above in ParserFunctions.

SandboxLink

  • Extension:SandboxLinkMediawiki logo.svg extension adds a link to user's personal sandbox to personal tools menu. The sandbox is assumed to exist, or will be created, at a "/sandbox" subpage of user's userpage.
  • Test - When logged in, is the a link to your Sandbox in the upper right hand corner of every page?

Thanks

Thanks tool
  • Description - The Thanks tool enables editors to send a 'Thank you' notification to users who make constructive edits, to give them positive feedback.
  • Test - Look at a page's article history page or Difference view to ensure there is a "Thank" link. if so, follow the Thanks Process.

Basics

Look and feel

Verify that MediaWiki:Common.css and MediaWiki:Common.js are functioning correctly.

  • If the two complex template structures: {{Navbox}} and {{Infobox}} are working, then that is a good sign that common.css and common.js are correct. Both template pages have examples on them that can easily show whether the various components are working. Note that as of 2019, all Navboxes are auto collapsed by the JavaScript
  • Test, on various browsers, that unauthenticated (not logged-in) readers are shown the Vector theme by default.
  • Ensure the "star" function for Watchlist is available on the skin (when logged in). See the Watch star graphic to the right.
  • Check look and feel in all browsers
  • The Editing Toolbar, in Enhanced editor, should:
    • Expand correctly
    • There should not be any overlap of the buttons
    • There should be no shadow on the icons

Uploading documents

Multimedia appearance

Check to ensure that certain multimedia files are being displayed correctly

Images

  • Check that image galleries are displaying correctly and editable using VisualEditor
  • Verify that all file types that appear as images are working

External links

Template:USApedia

References

  1. Cite is working
  2. The highlighter is a yet another analyzer, in addition to the indexing analyzers. Being a large software application the Search highlighter may not always be 100% in sync (in the snippet) with what Search will match on the page. The highlighter can match better or worse. Nevertheless, query prefix:{{FULLPAGENAME}} is certainly an excellent way to learn. For the most effective tests, search through just enough live pages to give a few hundred samples, by limiting the search domain with prefix.