Download the PHP package uuf6429/behat-breakpoint without Composer
On this page you can find all versions of the php package uuf6429/behat-breakpoint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download uuf6429/behat-breakpoint
More information about uuf6429/behat-breakpoint
Files in uuf6429/behat-breakpoint
Package behat-breakpoint
Short Description ✋ Provides various ways to break/block scenarios.
License MIT
Informations about the package behat-breakpoint
behat-breakpoint
✋ Provides various ways to break/block scenarios in Behat.
Installation
-
Install with Composer in your Behat project:
- (Optionally) install the context (in your
behat.yml
) so you can use it in your tests:
Requirements
You can look at composer.json for the specifics, but PHP 5.6+ and Behat 3.0+ are always required. Additionally, each type of breakpoint has specific requirements:
AlertBreakpoint
: Requires instaclick/php-webdriver (which is a part of behat/mink-selenium2-driver).ConsoleBreakpoint
: None.PopupBreakpoint
: Requires behat/mink (which is a part of behat/mink-extension).XdebugBreakpoint
: Requires ext-xdebug to be installed and enabled.
None of the above packages are installed automatically; since someone may want to use the Xdebug extension without needing Mink (and vice-versa).
Usage
In Code
Construct the desired breakpoint from the ones listed below and trigger()
it.
-
AlertBreakpoint - Shows a javascript alert in the specified browser session and waits until it is closed.
-
ConsoleBreakpoint - Displays a message in the current terminal and waits until [enter] is pressed.
-
PopupBreakpoint - Displays a new window with some HTML and waits until it is closed by the user.
- XdebugBreakpoint - Pauses execution until a connected xdebug client resumes execution.
In Gherkin
First add the context to your behat project config (behat.yml
) and then use any of the following steps in your feature files:
-
Shows a javascript alert in the currently open page and pauses execution until it is closed.. Definition(s):
Example(s):
-
Shows a message in the Behat console and waits for the user to press "enter" before continuing execution.. Definition(s):
Example(s):
-
Shows a browser popup with some HTML and pauses execution until it is closed.. Definition(s):
Example(s):
-
Causes any connected xdebug session to break into a debugging session, pausing execution.. Definition(s):
Example(s):