Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11889

Webtests fail on external site

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 4.2.7
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The original intention of our webtests were that they would simply drive a web-browser and test the functionality of a CiviCRM site (on any server).

      Somewhere along the line our webtests have become encumbered with dependencies on a local server which cause them to fail in any other context. Those dependencies are:

      • CiviSeleniumTestCase::__construct() bootstraps CiviCRM locally
      • CiviSeleniumTestCase::webtest_civicrm_api() makes civicrm api calls to the local server
      • About a half-dozen tests rely on internal functions like CRM_Core_DAO::singleValueQuery()

      Proposed solution:
      1) Change the webtest_civicrm_api() function to use the REST api of the remote server instead of the local api
      2) Remove all calls to internal CRM_ functions and use the api instead
      3) Don't bootstrap civicrm in webtest environment

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              colemanw Coleman Watts
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: