Testing and QA

 
 
Tim at Lone Pine Koala Sanctuary
How to find more bugs while testing
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

Following an embarassing bug that has been around since Moodle 2.1, and which no amout of testing has found until some poor user hit it, I wanted to pass on the following tip. When testing, and when you are inputting some text (e.g. a forum post, or answering an essay or shortanswer question, try to include all the tricky things that might cause Moodle to break, for example:

< > & &lt; &gt; &amp; ' " \ \' \" \\ 日本語 % %% $@NULL@$ @@TEST@@

Some things that are there:

  • Characters that have special meaning in HTML.
  • The escaped equivalents of those.
  • Single and double quote characters, and backslashes.
  • Back-slash escaped versionso of those.
  • Unicode characters outside the usual ASCII range. (That is Japan in Japanese.)
  • Various other characters that occasionally get used with special meantings.

Hopefully automated testing will start to do this too. See MDL-37858.

 
Average of ratings:Useful (7)
Picture of David Monllaó
Re: How to find more bugs while testing
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

Thanks Tim, big +1, I've commented in MDL-37858

 
Average of ratings: -
Picture of Bhargavi Vittalsingh
Re: How to find more bugs while testing
 

Thank you

 
Average of ratings: -
Picture of Rohith eAbyas
Re: How to find more bugs while testing
 

Thanks Tim. That's really helpful.

 
Average of ratings: -