2.4.3 • Published 3 years ago

concordialang-codeceptjs-webdriverio v2.4.3

Weekly downloads
3
License
AGPL-3.0
Repository
github
Last release
3 years ago

npm version GitHub last commit

concordialang-codeceptjs-webdriverio

🔌 Concordia Compiler Plug-in for CodeceptJS with WebDriverIO

Generates and executes test scripts for web applications. Uses CodeceptJS with WebDriverIO.

Installation

Before installing:

  • Make sure you have Concordia 1.0.0 or above.
  • Make sure you have Java 8 or above installed. WebDriverIO needs Java because of Selenium.
  • Go to your applications' root folder via console/terminal for typing the installation command.

Installation via Concordia:

concordia --plugin-install codeceptjs-webdriverio

Installation via NPM:

npm install --save-dev concordialang-codeceptjs-webdriverio

Optional installation

To support database scripts in you tests, execute the corresponding command:

drivercommand to installnote
CSV filesnpm install --save-dev database-js-csv
Excel filesnpm install --save-dev database-js-xlsx
Firebasenpm install --save-dev database-js-firebase
INI filesnpm install --save-dev database-js-ini
JSON filesnpm install --save-dev database-js-json
MySQLnpm install --save-dev database-js-mysql
MS Accessnpm install --save-dev database-js-adodbWindows only
MS SQL Servernpm install --save-dev database-js-mssql
PostgreSQLnpm install --save-dev database-js-postgres
SQLitenpm install --save-dev database-js-sqlite

Please visit the Concordia's documentation for information about how to access and handle databases.

You may like to install

  • katalon-concordia: extension for Google Chrome and Mozilla Firefox. Use it along with Katalon Recorder to record your actions while using your application and then convert the recording script into Concordia Language.

    It is very useful to capture all the web elements' identifications.

Execution

Execute it with the Concordia Compiler. Example:

concordia --plugin codeceptjs-webdriverio

Generated configuration file

The plug-in generates a basic configuration file for you.

Versions 0.x and 1.x

Versions 0.x and 1.x generate the file codecept.json with the following content:

{
	"tests": "test/**/*.js",
	"output": "output",
	"helpers": {
		"WebDriverIO": {
			"browser": "chrome",
			"url": "http://localhost",
			"windowSize": "maximize",
			"smartWait": 5000,
			"timeouts": {
				"script": 60000,
				"page load": 10000
			}
		},
		"DbHelper": {
			"require": "./node_modules/codeceptjs-dbhelper"
		},
		"CmdHelper": {
			"require": "./node_modules/codeceptjs-cmdhelper"
		}
	},
	"bootstrap": false,
	"mocha": {
		"reporterOptions": {
			"codeceptjs-cli-reporter": {
				"stdout": "-",
				"options": {
					"steps": true
				}
			},
			"json": {
				"stdout": "output/output.json"
			}
		}
	}
}

The above file is compatible with CodeceptJS 1.2.1, and probably any version in 1.x.

Tips

  • You can change the value of the property url to your application's URL, e.g., "http://localhost/myapp".
  • You can change the value of the property browser to the desired browser to test, *e.g.", "firefox".
  • See https://codecept.io/helpers/WebDriverIO/ for more options.

Documentation

Packages installed by version 1.x

  • No packages are installed globally.
  • No changes to package.json.
  • All the same dependencies as version 0.x.

Packages installed by version 0.x

Installed globally:

packageversionreason
codeceptjs1.2.1Allow executing CodeceptJS in the CLI without NPX or via node_modules
webdriverio4.14.0Needed by CodeceptJS to execute web-based tests
selenium-standalonelatestInstall drivers to control browsers

Installed in package.json's devDependencies:

packageversionreason
codeceptjs1.2.1Needed framework
mocha5.2.0Generate JSON reports read by the plug-in
mocha-multi1.0.1Allow to generate multiple reports simultaneously, such as the JSON's and the CLI's
codeceptjs-cmdhelperlatestExecute Concordia commands in the CLI
codeceptjs-dbhelperlatestExecute Concordia commands in a database
database-jslatestAccess databases during tests, e.g., to setup them for the test
database-js-jsonlatestAccess JSON files as databases

Integration with CodeceptJS

Documentation available in concordialang-codeceptjs-core.

See Also

License

AGPL © Thiago Delgado Pinto

GNU Affero General Public License version 3

2.4.3

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.4.2

3 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago

1.0.0-alpha.3

6 years ago

1.0.0-alpha.2

6 years ago

1.0.0-alpha.1

6 years ago

1.0.0-alpha

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago