Skip to end of metadata
Go to start of metadata

SimpleTest includes a special form of test case, WebTestCase, for the testing of web page actions.
The WebTestCase includes facilities for navigation, content checks and form handling.

Running Web Test Cases

1. Values needed for web test cases

Go to the tests/CRM/web folder under your CiviCRM installation.

Then copy the CommonConst.php.txt file to CommonConst.php file

Add all the values to the CommonConst.php

2. Commenting and Uncommenting the test case Files.

Go to tests/ folder under civicrm installtion

Then comment and uncomment the test case files in WebTests() method in WebTests.php

3. Testing the Web Tests

Go to the /bin folder under civicrm installation

Then run the runTest.sh script.

Select the option for running web test.
Final log will be stored in /tests/Result folder under civicrm installation

Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.