- Install Docksal (required only once, but please update it sometimes).
- Run
fin init
command in project root directory (required only once, see note below) to initialize and start Docker stack (containers, volumes and network).
fin test
- execute behat tests on Selenium fromfeatures/
directoryfin tt TAG_NAME
- execute behat tests on Selenium byTAG_NAME
(see below)fin tl
- execute behat tests on Selenium and save result inscreenshots/$DATETIME/
directoryfin start
- to start Docker stack (containers, volumes and network)fin stop
- to stop Docker stack (containers, volumes and network)fin project remove
- to remove all Docker components (containers, volumes and network)
Run fin tt TAG_NAME
command, where TAG_NAME
is tag name defined in PHP test files.
Most important tags:
@user_forms_error
@update_user_profile_process
@user_register_account_level1_ok
@user_register_account_level2_ok
@webinar_create
@webinar_open
@new_user_watch_webinar_process
- Define
SELENIUM_DEBUG="-debug"
in.docksal/docksal-local.env
file and runfin start
command. - Open VNC viewer with
fin vnc
command.
In .docksal/docksal-local.env
file define variables:
SELENIUM_BROWSER_NAME
andSELENIUM_DEBUG
- browser name, lookup for one at hub.docker.com.SELENIUM_PORT
, default: 4444SELENIUM_VNC_PORT
, default: 5900SELENIUM_SCREEN_WIDTH
, default: 1366SELENIUM_SCREEN_HEIGHT
, default: 768SELENIUM_SCREEN_DEPTH
, default: 24SELENIUM_SCREEN_DPI
, default: 74
When You made some changes please recreate Docker stack with
fin start
command.
Read behat mink documentation.
- For ERROR: for selenium Cannot start service selenium: Ports are not available: listen tcp 0.0.0.0:5900: bind: address already in use please define
SELENIUM_VNC_PORT
in.docksal/docksal-local.yml
file.