Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Acceptance testing/Contributing automated tests: Difference between revisions

From MoodleDocs
(Created page with "If you want to help the effort of automating the current list of MDLQA issues that we run manually before each major release these are the steps to follow: # Check the list o...")
 
No edit summary
Line 3: Line 3:
# Check the list of critical features in the MDLQA project
# Check the list of critical features in the MDLQA project
# Choose one of the listed MDLQA issues to convert it to an automated test, the issues are prioritized using the '''Blocker''', '''Critical''', '''Major''', '''Minor''', '''Trivial''' scale
# Choose one of the listed MDLQA issues to convert it to an automated test, the issues are prioritized using the '''Blocker''', '''Critical''', '''Major''', '''Minor''', '''Trivial''' scale
#* Choose a '''Blocker''' issue https://tracker.moodle.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=parent+%3D+%4DDLQA-1+and+priority+%3D+Critical
#* Choose a '''Blocker''' issue https://tracker.moodle.org/issues/?jql=parent%20%3D%20%4DDLQA-1%20and%20priority%20%3D%20Blocker
#* When all '''Blocker''' issues are converted we can begin with the '''Critical''' ones <nowiki>https://tracker.moodle.org/issues/?jql=parent%20%3D%20MDLQA-1%20and%20priority%20%3D%20Critical</nowiki>
#* When all '''Blocker''' issues are converted we can begin with the '''Critical''' ones https://tracker.moodle.org/issues/?jql=parent%20%3D%20%4DDLQA-1%20and%20priority%20%3D%20Critical
#* When all '''Critical''' issues are converted we can begin with the '''Major''' ones <nowiki>https://tracker.moodle.org/issues/?jql=parent%20%3D%20MDLQA-1%20and%20priority%20%3D%20Major</nowiki>
#* When all '''Critical''' issues are converted we can begin with the '''Major''' ones https://tracker.moodle.org/issues/?jql=parent%20%3D%20%4DDLQA-1%20and%20priority%20%3D%20Major
#* MDLQA issues with priority '''Minor''' and '''Trivial''' can be hard or not possible to automate as they require integration with other systems, codebase modifications or other actions outside the browser scope.
#* MDLQA issues with priority '''Minor''' and '''Trivial''' can be hard or not possible to automate as they require integration with other systems, codebase modifications or other actions outside the browser scope.
# Fill a new issue in MDL project
# Fill a new issue in MDL project

Revision as of 11:01, 9 July 2013

If you want to help the effort of automating the current list of MDLQA issues that we run manually before each major release these are the steps to follow:

  1. Check the list of critical features in the MDLQA project
  2. Choose one of the listed MDLQA issues to convert it to an automated test, the issues are prioritized using the Blocker, Critical, Major, Minor, Trivial scale
  3. Fill a new issue in MDL project
    1. Description: Automate MDLQA-NNNN - I'm the MDLQA description
    2. Component 'Automated functional tests' and the MDLQA component
    3. Add a link to the MDLQA-NNNN
  4. Follow the process to add new features or new scenarios to existing features
    1. https://docs.moodle.org/dev/Acceptance_testing#Writing_features
    2. Use the check list to discard basic issues (https://docs.moodle.org/dev/Acceptance_testing#Features_check_list)
    3. Add new step definitions in case there are repeated blocks of steps (https://docs.moodle.org/dev/Acceptance_testing#Adding_steps_definitions)
    4. Feature files should be backported as much as possible
    5. Include MDLQA-NNNN and short description of what is being automated to the commit message/s where the .feature files are added/edited