Feuille de route pour les tests

From Joomla! Documentation

Revision as of 09:16, 25 April 2015 by MATsxm (talk | contribs)
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Nederlands • ‎español • ‎français

Cet article a vocation à aider les membres de la Joomla! Bug Squad en ce qui concerne les tests pour les anomalies ouvertes ou en attente de traitement.

Tester une anomalies ouvertes

Le statut Ouvert indique qu'aucun membre de la Joomla! Bug Squad n'a encore évalué cette anomalie. Ainsi, l'objectif est d'en apprendre suffisamment sur l'anomalie en question pour pouvoir en modifier le statut pour l'un des suivants : impossible de confirmer, anomalie connue, doublon de rapport, pas en rapport avec le noyau Joomla!, confirmé ou informations complémentaires demandées. Vous pouvez consulter : Processus pour le système de rapport d'anomalies pour obtenir des informations complémentaires sur les différents statuts.

Voici une feuille de route pour tester les anomalies ouvertes :

  • Avez-vous au préalable lu attentivement la description ainsi que l'ensemble des différents commentaires ?
  • Est-ce qu'assez d'informations ont été fournies ? Sinon, vous pouvez ajouter un commentaire et modifier le statut sur : Informations complémentaires requises.
  • Avez-vous déjà recherché sur l'outil de suivi des anomalies pour voir si ce problème a déjà été signalé ? Si tel est le cas, ajoutez un commentaire et changez le statut pour Rapport doublon.
  • Est-ce que l'anomalie est en rapport avec une fonctionnalité de base de Joomla ? Si tel n'est pas le cas, vous pouvez modifier le statut pour ne concerne pas le noyau Joomla.
  • L'anomalie est-elle connue ? Si oui, modifiez le statut pour : anomalie connue.
  • Est-ce que la requête est en fait une demande d'amélioration ? Si tel est le cas, veuillez changer le statut pour "n'est pas une anomalie".
  • Avant d'opérer les test, avez-vous bien mis à jour votre répertoire GIT local afin d'utiliser la dernière version de Joomla ? (voir Git pour les testeurs)
  • Si vous n'arrivez pas à reproduire l'anomalie avec la dernière version GIT, avez-vous essayé avec la dernière version Joomla! en production ?
  • Si l'anomalie ne peut toujours pas être confirmée, essayez également de la reproduire en utilisant différents paramètres de mise en cache.
  • Essayez de localiser le problème en modifiant vos paramètres de caches.
  • Si vous avez modifié le statut de l'anomalie pour celui de Confirmé, vérifiez bien que l'ensemble des indications permettant de reproduire l'anomalie soit suffisamment détaillé pour permettre à une personne non familiarisée avec Joomla! de pouvoir reproduire et tester l'anomalie.

Tester les anomalies en attente

Une anomalie en attente est celle qui : (a) a été confirmée, (b) dispose d'un didacticiel permettant de la reproduire et (c) dispose d'un patch correctif pouvant être testé (En savoir plus sur les fichiers correctifs). Voici une liste des opérations pour tester les anomalies en attente :

  • Is there a test plan for the issue shown in the Test Instructions field? If not, post a comment and change status to Information Required.
  • Before testing, did you update your local GIT repository to get the latest GIT Joomla! version?
  • Did you test the issue before applying the patch to make sure you can duplicate the problem?
  • Did you test the issue after applying the patch to make sure the problem is fixed?
  • Are there any other test cases that should be considered? Examples might include:
    • template override files (especially beez template)
    • testing with SEF or mod_rewrite enabled and disabled
    • language file issues (test with Debug Language set to Yes).
    • PHP warnings (test with Error Reporting set to Maximum).
  • In your comment before you report the test results (positive or negative) add @test to the comment on a separate line (this is used for stats).
  • If your test is successful and you are the first tester, indicate in your comment that a second test is needed. If you are the second tester, change the status to Ready to Commit.
  • Check the "Monitor Item" link on the left side if you want to receive an email when someone changes this tracker issue.
  • Remember to revert the changes made by the patch after you are done testing.

Testing Code Snippets

Sometimes to test a patch you will need to test PHP code snippets. One very simple way to do this is as follows:

  1. Create a new folder called "com_test" under the components folder.
  2. Create a new file called "test.php" under this folder.
  3. Put your PHP code snippet in this file.
  4. To run the file, just enter the URL <your domain>/index.php?option=com_test. For example, http://localhost/joomla_development/index.php?option=com_test.

This will run the code snippet inside the Joomla! framework. This way, when you are done, you can just remove the com_test folder and no other files have been changed. (Sam, thanks for this tip!)

General Tips & Tricks

  • If you have the cache enabled (Global Configuration → System → Cache Settings), you will need to clean the cache each time you make a change to the code or parameters. Otherwise, you might be seeing the older cached version of the page. For this reason, unless you are specifically testing the cache feature, test with the Cache set to "No".
  • When working it is best to set error reporting to maximum and turn on all debugging options (these are set in Global Configuration).