2017 © Pedro Peláez
 

library joomla-browser

joomla-browser Codeception Module

image

joomla-projects/joomla-browser

joomla-browser Codeception Module

  • Tuesday, July 24, 2018
  • by yvesh
  • Repository
  • 13 Watchers
  • 13 Stars
  • 140,051 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 31 Forks
  • 13 Open issues
  • 46 Versions
  • 6 % Grown

The README.md

Joomla Browser (Codeception Module)

Latest Stable Version Total Downloads Latest Unstable Version License Build Status, (*1)

Table of Contents

The Joomla Browser

Joomla Browser is a Codeception.com Module. It allows to build system tests for a Joomla site much faster providing a set of predefined tasks., (*2)

In between the available functions you can find:, (*3)

  • INSTALLATION:
    • install joomla
    • install Joomla removing Installation Folder
    • install Joomla Multilingual Site
  • ADMINISTRATOR:
    • do administrator login
    • do administrator logout
    • set error reporting to development
    • search for item
    • check for item existence
    • publish a module
    • setting a module position and publishing it
    • EXTENSION MANAGER
    • install extension from Folder
    • install extension from url
    • enable plugin
    • uninstall extension
    • search result plugin name
  • FRONTEND:
    • do frontend login
  • ADMINISTRATOR USER INTERFACE:
    • select option in chosen
    • select Option In Radio Field
    • select Multiple Options In Chosen
  • OTHERS:
    • check for php notices or warnings

The Joomla Browser is constantly evolving and more methods are being added every month. To find a full list of them check the public methods at: https://github.com/joomla-projects/joomla-browser/blob/develop/src/JoomlaBrowser.php, (*4)

Joomla Browser in action

If you want to see a working example of JoomlaBrowser check weblinks tests: https://github.com/joomla-extensions/weblinks#tests, (*5)

Using Instructions

Update Composer.json file in your project, and download, (*6)

Download

composer require joomla-projects/joomla-browser:dev-develop

Loading the Module in Codeception

Finally make the following changes in Acceptance.suite.yml to add JoomlaBrowser as a Module., (*7)

Your original acceptance.suite.ymlprobably looks like:, (*8)

modules:
    enabled:
        - WebDriver
        - AcceptanceHelper
    config:
        WebDriver:
            url: 'http://localhost/joomla-cms3/'     # the url that points to the joomla cms
            browser: 'firefox'
            window_size: 1024x768
            capabilities:
              unexpectedAlertBehaviour: 'accept'
        AcceptanceHelper:
            ...

You should remove the WebDriver module and replace it with the JoomlaBrowser module:, (*9)

    config:
        JoomlaBrowser:
            url: 'http://localhost/joomla-cms/'     # the url that points to the joomla installation at /tests/system/joomla-cms
            browser: 'firefox'
            window_size: 1024x768
            capabilities:
              unexpectedAlertBehaviour: 'accept'
            username: 'admin'
            password: 'admin'
            database host: 'localhost'             # place where the Application is Hosted #server Address
            database user: 'root'                  # MySQL Server user ID, usually root
            database password: '1234'                  # MySQL Server password, usually empty or root
            database name: 'dbname'            # DB Name, at the Server
            database type: 'mysqli'                # type in lowercase one of the options: MySQL\MySQLi\PDO
            database prefix: 'jos_'                # DB Prefix for tables
            install sample data: 'Yes'              # Do you want to Download the Sample Data Along with Joomla Installation, then keep it Yes
            sample data: 'Default English (GB) Sample Data'    # Default Sample Data
            admin email: 'admin@mydomain.com'      # email Id of the Admin
            language: 'English (United Kingdom)'   # Language in which you want the Application to be Installed
            joomla folder: '/home/.../path to Joomla Folder' # Path to Joomla installation where we execute the tests
        AcceptanceHelper:
            ...

Code Style Checker

To check automatically the code style execute the following commands in your Terminal window at the root of the repository:, (*10)

  • $ composer install
  • $ vendor/bin/phpcs --extensions=php -p --standard=vendor/joomla/coding-standards/Joomla src

The Versions

28/06 2018

v3.8.10

3.8.10.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

23/05 2018

v3.8.7

3.8.7.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

21/05 2018

v3.8.6

3.8.6.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

15/05 2018

v4.0.0.x-dev

4.0.0.9999999-dev https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

27/03 2018

v3.8.2

3.8.2.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

19/03 2018

v3.8.1

3.8.1.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

28/12 2017

v3.8.0.3

3.8.0.3 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

04/10 2017

v3.8.0.2

3.8.0.2 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

24/09 2017

v3.8.0.1

3.8.0.1 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

20/09 2017

v3.8.0

3.8.0.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

25/08 2017

3.8.x-dev

3.8.9999999.9999999-dev https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

24/08 2017

v3.7.5

3.7.5.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

23/08 2017

dev-container-test

dev-container-test https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

09/08 2017

v3.7.4.1-rc2

3.7.4.1-RC2 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

04/08 2017

v3.7.4.1-rc

3.7.4.1-RC https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

31/07 2017

v3.7.4

3.7.4.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

05/07 2017

3.7.3

3.7.3.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

17/06 2017

v3.6.5.2

3.6.5.2 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

08/01 2017

v3.6.5.1

3.6.5.1 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

15/12 2016

v3.6.5

3.6.5.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

11/12 2016

v3.6.4

3.6.4.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

27/07 2016

v3.6.0.1

3.6.0.1 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

21/05 2016

dev-master

9999999-dev https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

21/05 2016

v3.6.0

3.6.0.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

09/05 2016

v3.5.1.1

3.5.1.1 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

04/05 2016

v3.5.1.0

3.5.1.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

04/05 2016

v3.4.8.4

3.4.8.4 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

25/04 2016

v3.4.8.3

3.4.8.3 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

09/02 2016

v3.4.8.2

3.4.8.2 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

08/02 2016

v3.4.8.1

3.4.8.1 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

08/02 2016

v3.4.8.0

3.4.8.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

10/08 2015

dev-tmp

dev-tmp https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

10/08 2015

dev-temphotfix

dev-temphotfix https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

  • php >=5.3.0

 

The Development Requires

by Puneet Kala

bdd tdd acceptance testing joomla

03/08 2015

dev-stricstandards

dev-stricstandards https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

04/05 2015

v1.2

1.2.0.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

30/04 2015

v1.1.7

1.1.7.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

29/04 2015

v1.1.6

1.1.6.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

29/04 2015

v1.1.5

1.1.5.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

28/04 2015

v1.1.4

1.1.4.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

28/04 2015

v1.1.3

1.1.3.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

28/04 2015

v1.1.2

1.1.2.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

28/04 2015

v1.1.1

1.1.1.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

28/04 2015

v1.1

1.1.0.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla

27/04 2015

v1.0

1.0.0.0 https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception

joomla-browser Codeception Module

  Sources   Download

GPL-2.0+

The Requires

 

by Puneet Kala

bdd tdd acceptance testing joomla