Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21658

Web services unit tests for external functions and for ws services servers

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: Web Services
    • Labels:
      None
    • Difficulty:
      Difficult
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      We don't have a way to test web services automatically yet. Unit tests would need to be written.

      We need to make difference between two things:

      • test of external functions: external functions mainly are subjected to problems during validation against the ws description. There is also sometime some code around the core functions calls that require testing too.
      • test of web service servers: we would need to emulate a client. Here we want to test the problems coming from the server layer, all communication problem. Specially responses that are most commonly to be a problem.

      Do we need two different unit tests ?

      What is the unit tests status in Moodle 2.0? Are we moving to PHP Unit?

        Attachments

          Activity

            People

            • Assignee:
              jerome Jérôme Mouneyrac
              Reporter:
              jerome Jérôme Mouneyrac
              Tester:
              Nobody
              Participants:
              Component watchers:
              Juan Leyva, Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                25/Dec/10