Implements gauge steps for interacting with MySQL Database, so that tests can be directly written without having to implement steps for most common scenarios.
This is built as a sample and include some basic data integrity checks. Need to enhance to include most common scenarios.
Installl this npm package to your Gauge js project.
# npm
npm i @softrams/gauge-taiko-steps-mysql
# yarn
yarn add @softrams/gauge-taiko-steps-mysql
Update STEP_IMPL_DIR in ./env/default/js.properties to include steps implemenation from this package.
STEP_IMPL_DIR = tests,node_modules/@softrams/gauge-taiko-steps-mysql/lib
Setup Database Credentials as environment variables or in properties file (./env/default/default.properties)
export DB_HOST=
export DB_USER=
export DB_PASSWORD=
export DB_DATABASE=
And that's it. Start writing tests.
- Common Test Steps with Taiko for browser testing (https://github.com/softrams/gauge-taiko-steps)
- Gauge Framework (https://gauge.org/)
- Taiko (https://taiko.dev/)