Download the PHP package xp-framework/webtest without Composer
On this page you can find all versions of the php package xp-framework/webtest. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xp-framework/webtest
More information about xp-framework/webtest
Files in xp-framework/webtest
Package webtest
Short Description Web tests for the XP Framework
License BSD-3-Clause
Homepage http://xp-framework.net/
Informations about the package webtest
Webtest
Web tests for the XP Framework
Example
The following web test case consists of opening GitHub's homepage and asserting the title to equal the company's name:
Running it works as with normal test cases:
To overwrite the default URL specified in the annotation, supply it as command line argument, e.g. unittest GitHubTestCase -a https://github.staging.lan/
.
Assertion methods
On top of the assertion methods provided by the unittest library, the following response-related assertions are available:
Navigation
To follow links inside a page, a web test can utilize the click methods:
Forms
To work with forms, the getForm()
method can be used:
See also
All versions of webtest with dependencies
xp-framework/http Version ^10.0 | ^9.0 | ^8.0
xp-framework/xml Version ^11.0 | ^10.0 | ^9.0 | ^8.0
xp-framework/logging Version ^11.0 | ^10.0 | ^9.0 | ^8.0
xp-framework/patterns Version ^9.0 | ^8.0
xp-framework/unittest Version ^11.0 | ^10.0 | ^9.0 | ^8.0
php Version >=7.0.0