User:IIgwilo (WMF)/Real Time Preview for Wikitext

From Meta, a Wikimedia project coordination wiki

Test strategy for the Real Time Preview for Wikitext wish.

Project Documentation and High-level Requirements[edit]

Quality Criteria[1][edit]

  • The preview should be a faithful representation of how the main content article will look once published
  • The preview box should render invalid wikitext output in a way that helps the user recognise and correct errors
  • Edits the user makes to the wikitext should be displayed in the preview in a reasonable amount of time
  • Users should be happy with this feature from a usability perspective[2]

Risks[edit]

  • The real-time preview viewport is small. It might look different compared to viewing the article full-screen.

Oracles[3][4][edit]

  • The real-time preview should match the "normal" preview
  • The real-time preview should match the actual article once it is published

Coverage Criteria[edit]

Techniques[edit]

  • HTML comparison
    • Compare the HTML of the preview with the HTML of the actual article (using a diff tool, for example)
  • Stress test
    • What happens when we try to preview a huge amount of wikitext
      • E.g. try using preview on an article like en:Barack_Obama (no doubt there are even bigger articles)
    • How often can we update the preview in a short period of time? Can we overload it?
  • Regression Test
    • Existing related features (like show preview, publish, and show changes) still works/compliments new feature?
  • State-based testing
    • There are several ways to reload RTP (e.g. shortcut vs. automatic) and several states it can be in (e.g. automatic vs. manual mode) which might affect how it reloads (this script will generate random sequences of RTP reloads)

Test Environments[edit]

TBD. Probably beta primarily.

Open Questions[edit]

  • Will a user be able to use this feature alongside other edit previewing features such as "Show changes"?
  • Will they be able to use this feature when resolving edit conflicts?
  • What is the deployment/roll out plan to production
  • Are there any major infrastructure set ups to do when we roll out to production? I am guessing no, however want to confirm

Release Testing[edit]

See /Release_Testing.

References[edit]