From b2e97539e7af7712b04dd5c2610a454d09aa0333 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 7 Jul 2006 23:18:19 +0000 Subject: Update simpletest --- tests/test_tools/simpletest/docs/en/overview.html | 154 ++++++++++------------ 1 file changed, 69 insertions(+), 85 deletions(-) (limited to 'tests/test_tools/simpletest/docs/en/overview.html') diff --git a/tests/test_tools/simpletest/docs/en/overview.html b/tests/test_tools/simpletest/docs/en/overview.html index d4965de3..5d4e80e2 100755 --- a/tests/test_tools/simpletest/docs/en/overview.html +++ b/tests/test_tools/simpletest/docs/en/overview.html @@ -23,9 +23,6 @@ Group tests
Unit test case | Core test case class and assertions | -Done | +1.0 | |
Html display | Simplest possible display | -Done | +1.0 | |
Autoloading of test cases | @@ -176,41 +172,20 @@ class MySiteTest extends WebTestCase { Reading a file with test cases and loading them into a group test automatically -Done | +1.0 | ||
Mock objects code generator | +Mock objects | Objects capable of simulating other objects removing test dependencies | -Done | -|
Server stubs | -- Mocks without expectations to be used outside of test cases, - e.g. for prototyping - | -Done | -||
Integration of other unit testers | -- The ability to read and simulate test cases from PHPUnit - and PEAR::PhpUnit - | -Done | +1.0 | |
Web test case | -Basic pattern matching of fetched pages | -Done | -||
HTML parsing of pages | Allows link following and title tag matching | -Done | +1.0 | |
Partial mocks | @@ -218,32 +193,32 @@ class MySiteTest extends WebTestCase { Mocking parts of a class for testing less than a class or for complex simulations -Done | +1.0 | ||
Web cookie handling | Correct handling of cookies when fetching pages | -Done | +1.0 | |
Following redirects | Page fetching automatically follows 300 redirects | -Done | +1.0 | |
Form parsing | Ability to submit simple forms and read default form values | -Done | +1.0 | |
Command line interface | Test display without the need of a web browser | -Done | +1.0 | |
Exposure of expectation classes | Can create precise tests with mocks as well as test cases | -Done | +1.0 | |
XML output and parsing | @@ -251,25 +226,15 @@ class MySiteTest extends WebTestCase { Allows multi host testing and the integration of acceptance testing extensions -Done | +1.0 | ||
Command line test case | -Allows testing of utilities and file handling | -Done | -||
PHP Documentor compatibility | -Fully generated class level documentation | -Done | -||
Browser interface | +Browser component | Exposure of lower level web browser interface for more detailed test cases | -Done | +1.0 |
HTTP authentication | @@ -277,31 +242,39 @@ class MySiteTest extends WebTestCase { Fetching protected web pages with basic authentication only -Done | -|||
Browser navigation buttons | -Back, forward and retry | -Done | +1.0 | |
SSL support | Can connect to https: pages | -Done | +1.0 | |
Proxy support | Can connect via. common proxies | -Done | +1.0 | |
Frames support | Handling of frames in web test cases | -Done | +1.0 | +|
File upload testing | +Can simulate the input type file tag | +1.0.1 | +||
Mocking interfaces | ++ Can generate mock objects to interfaces as well as classes + and class interfaces are carried for type hints + | +1.0.1 | ||
Improved display | -Better web GUI with tree display of test cases | +Reporting machinery enhancements | +Improved message passing for better cooperation with IDEs | 1.1 |
1.1 | ||||
File upload testing | -Can simulate the input type file tag | +Testing exceptions | +Similar to testing PHP errors | 1.1 |
Mocking interfaces | -Can generate mock objects to interfaces as well as classes | +IFrame support | +Reads IFrame content that can be refreshed | +1.1 | +
Improved mock interface | +More compact way of expressing mocks | 2.0 | ||
Testing exceptions | -Similar to testing PHP errors | +HTML table assertions | +Can match table elements to numerical assertions | +2.0 | +
XPath searching of HTML elements | +More flexible content matching | 2.0 | ||
XPath searching of elements | -Can make use of HTML tidy for faster and more flexible content matching | +Alternate HTML parsers | +Can detect compiled parsers for performance improvements | 2.0 |
Javascript suport | +Use of PECL module to add Javascript | +3.0 | +
- Library writers don't seem to ship tests with their code very often - which is a shame. - Library code that includes tests can be more safely refactored and - the test code can act as additional documentation in a fairly standard - form. - This can save trawling the source code for clues when problems occour, - especially when upgrading such a library. - Libraries using SimpleTest for their unit testing include - WACT and - PEAR::XML_HTMLSax. -
There is currently a sad lack of material on mock objects, which is a shame as unit testing without them is a lot more work. @@ -394,14 +370,15 @@ class MySiteTest extends WebTestCase { As a new technology there are plenty of discussions and debate on how to use mocks, often on Wikis such as Extreme Tuesday - or www.mockobjects.com + or www.mockobjects.com or the original C2 Wiki. Injecting mocks into a class is the main area of debate for which this paper on IBM makes a good starting point.
- There are plenty of web testing tools, but most are written in Java and + There are plenty of web testing tools, but the scriptable ones + are mostly are written in Java and tutorials and advice are rather thin on the ground. The only hope is to look at the documentation for HTTPUnit, @@ -409,6 +386,13 @@ class MySiteTest extends WebTestCase { or JWebUnit and hope for clues. There are some XML driven test frameworks, but again most require Java to run. +
++ A new generation of tools that run directly in the web browser + are now available. + These include + Selenium and + Watir. As SimpleTest does not support JavaScript you would probably have to look at these tools anyway if you have highly dynamic pages. -- cgit v1.2.3