@qavajs/cli
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.9 • Public • Published

    @qavajs/cli

    Cli for @qavajs framework.

    npm install @qavajs/cli

    Setup project

    npx qavajs install

    Run tests

    npx qavajs run --config <config> --profile <profile>

    WDIO Adapter

    @qavajs/cli also comes with wdioAdapter function that allow to use wdio services e.g selenium-service, appium-service, etc. Service defintion may be string with module path or configuration tuple [modulePath, options, capabilities, config

    simple use:

    const { wdioService } = require('@qavajs/cli');
    
    module.exports = {
        default: {
            service: [
                wdioService('@wdio/selenium-standalone-service')
            ],
        }
    }

    use with params

    const { wdioService } = require('@qavajs/cli');
    
    module.exports = {
        default: {
            service: [
                wdioService([
                    '@wdio/appium-service',
                    {
                        args: {
                            chromedriverExecutable: resolve('node_modules/chromedriver/lib/chromedriver/chromedriver.exe')
                        }
                    }
                ])
            ],
        }
    }

    Override memory values

    In case if tests need to be run with updated memory value they can be passed via CLI (e.g run scenarios on some other url) It can be done by passing --memory-values parameter which is JSON with params that need to be overridden

    example

    npx qavajs run --config config.js --memory-values '{"url": "https://github.com"}'

    it will override $url memory value

    Keywords

    none

    Install

    npm i @qavajs/cli

    DownloadsWeekly Downloads

    7

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    35.3 kB

    Total Files

    36

    Last publish

    Collaborators

    • kirill_bogdanets
    • alexgalichenko