Skip to content

[🐛 Bug]: wdio 8 junit Report is empty when running Cucumber tests for latest version the already provided fix is not working #11125

@psubrambe

Description

@psubrambe

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.16.5

Node.js Version

8.17.1

Its impacting even older version of Junit reporter.

Mode

WDIO Testrunner

Which capabilities are you using?

export const config = {
    //
    // ====================
    // Runner Configuration
    // ====================
    // WebdriverIO supports running e2e tests as well as unit and component tests.
    runner: 'local',
    //
    // ==================
    // Specify Test Files
    // ==================
    // Define which test specs should run. The pattern is relative to the directory
    // of the configuration file being run.
    //
    // The specs are defined as an array of spec files (optionally using wildcards
    // that will be expanded). The test for each spec file will be run in a separate
    // worker process. In order to have a group of spec files run in the same worker
    // process simply enclose them in an array within the specs array.
    //
    // If you are calling `wdio` from an NPM script (see https://docs.npmjs.com/cli/run-script),
    // then the current working directory is where your `package.json` resides, so `wdio`
    // will be called from there.
    //
    specs: [
        './features/**/*.feature'
    ],
    // Patterns to exclude.
    exclude: [
        // 'path/to/excluded/files'
    ],
    //
    // ============
    // Capabilities
    // ============
    // Define your capabilities here. WebdriverIO can run multiple capabilities at the same
    // time. Depending on the number of capabilities, WebdriverIO launches several test
    // sessions. Within your capabilities you can overwrite the spec and exclude options in
    // order to group specific specs to a specific capability.
    //
    // First, you can define how many instances should be started at the same time. Let's
    // say you have 3 different capabilities (Chrome, Firefox, and Safari) and you have
    // set maxInstances to 1; wdio will spawn 3 processes. Therefore, if you have 10 spec
    // files and you set maxInstances to 10, all spec files will get tested at the same time
    // and 30 processes will get spawned. The property handles how many capabilities
    // from the same test should run tests.
    //
    maxInstances: 10,
    //
    // If you have trouble getting all important capabilities together, check out the
    // Sauce Labs platform configurator - a great tool to configure your capabilities:
    // https://saucelabs.com/platform/platform-configurator
    //
    capabilities: [{
        browserName: 'chrome'
    }],

    //
    // ===================
    // Test Configurations
    // ===================
    // Define all options that are relevant for the WebdriverIO instance here
    //
    // Level of logging verbosity: trace | debug | info | warn | error | silent
    logLevel: 'info',
    //
    // Set specific log levels per logger
    // loggers:
    // - webdriver, webdriverio
    // - @wdio/browserstack-service, @wdio/devtools-service, @wdio/sauce-service
    // - @wdio/mocha-framework, @wdio/jasmine-framework
    // - @wdio/local-runner
    // - @wdio/sumologic-reporter
    // - @wdio/cli, @wdio/config, @wdio/utils
    // Level of logging verbosity: trace | debug | info | warn | error | silent
    // logLevels: {
    //     webdriver: 'info',
    //     '@wdio/appium-service': 'info'
    // },
    //
    // If you only want to run your tests until a specific amount of tests have failed use
    // bail (default is 0 - don't bail, run all tests).
    bail: 0,
    //
    // Set a base URL in order to shorten url command calls. If your `url` parameter starts
    // with `/`, the base url gets prepended, not including the path portion of your baseUrl.
    // If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
    // gets prepended directly.
    baseUrl: 'http://localhost',
    //
    // Default timeout for all waitFor* commands.
    waitforTimeout: 10000,
    //
    // Default timeout in milliseconds for request
    // if browser driver or grid doesn't send response
    connectionRetryTimeout: 120000,
    //
    // Default request retries count
    connectionRetryCount: 3,
    //
    // Test runner services
    // Services take over a specific job you don't want to take care of. They enhance
    // your test setup with almost no effort. Unlike plugins, they don't add new
    // commands. Instead, they hook themselves up into the test process.
    // services: [],
    //
    // Framework you want to run your specs with.
    // The following are supported: Mocha, Jasmine, and Cucumber
    // see also: https://webdriver.io/docs/frameworks
    //
    // Make sure you have the wdio adapter package for the specific framework installed
    // before running any tests.
    framework: 'cucumber',
    //
    // The number of times to retry the entire specfile when it fails as a whole
    // specFileRetries: 1,
    //
    // Delay in seconds between the spec file retry attempts
    // specFileRetriesDelay: 0,
    //
    // Whether or not retried spec files should be retried immediately or deferred to the end of the queue
    // specFileRetriesDeferred: false,
    //
    // Test reporter for stdout.
    // The only one supported by default is 'dot'
    // see also: https://webdriver.io/docs/dot-reporter
    reporters: ['spec','dot','junit'],

    //
    // If you are using Cucumber you need to specify the location of your step definitions.
    cucumberOpts: {
        // <string[]> (file/dir) require files before executing features
        require: ['./features/step-definitions/steps.js'],
        // <boolean> show full backtrace for errors
        backtrace: false,
        // <string[]> ("extension:module") require files with the given EXTENSION after requiring MODULE (repeatable)
        requireModule: [],
        // <boolean> invoke formatters without executing steps
        dryRun: false,
        // <boolean> abort the run on first failure
        failFast: false,
        // <boolean> hide step definition snippets for pending steps
        snippets: true,
        // <boolean> hide source uris
        source: true,
        // <boolean> fail if there are any undefined or pending steps
        strict: false,
        // <string> (expression) only execute the features or scenarios with tags matching the expression
        tagExpression: '',
        // <number> timeout for step definitions
        timeout: 60000,
        // <boolean> Enable this config to treat undefined definitions as warnings.
        ignoreUndefinedDefinitions: false
    },
    
    //
    // =====
    // Hooks
    // =====
    // WebdriverIO provides several hooks you can use to interfere with the test process in order to enhance
    // it and to build services around it. You can either apply a single function or an array of
    // methods to it. If one of them returns with a promise, WebdriverIO will wait until that promise got
    // resolved to continue.
    /**
     * Gets executed once before all workers get launched.
     * @param {object} config wdio configuration object
     * @param {Array.<Object>} capabilities list of capabilities details
     */
    // onPrepare: function (config, capabilities) {
    // },
    /**
     * Gets executed before a worker process is spawned and can be used to initialise specific service
     * for that worker as well as modify runtime environments in an async fashion.
     * @param  {string} cid      capability id (e.g 0-0)
     * @param  {object} caps     object containing capabilities for session that will be spawn in the worker
     * @param  {object} specs    specs to be run in the worker process
     * @param  {object} args     object that will be merged with the main configuration once worker is initialized
     * @param  {object} execArgv list of string arguments passed to the worker process
     */
    // onWorkerStart: function (cid, caps, specs, args, execArgv) {
    // },
    /**
     * Gets executed just after a worker process has exited.
     * @param  {string} cid      capability id (e.g 0-0)
     * @param  {number} exitCode 0 - success, 1 - fail
     * @param  {object} specs    specs to be run in the worker process
     * @param  {number} retries  number of retries used
     */
    // onWorkerEnd: function (cid, exitCode, specs, retries) {
    // },
    /**
     * Gets executed just before initialising the webdriver session and test framework. It allows you
     * to manipulate configurations depending on the capability or spec.
     * @param {object} config wdio configuration object
     * @param {Array.<Object>} capabilities list of capabilities details
     * @param {Array.<String>} specs List of spec file paths that are to be run
     * @param {string} cid worker id (e.g. 0-0)
     */
    // beforeSession: function (config, capabilities, specs, cid) {
    // },
    /**
     * Gets executed before test execution begins. At this point you can access to all global
     * variables like `browser`. It is the perfect place to define custom commands.
     * @param {Array.<Object>} capabilities list of capabilities details
     * @param {Array.<String>} specs        List of spec file paths that are to be run
     * @param {object}         browser      instance of created browser/device session
     */
    // before: function (capabilities, specs) {
    // },
    /**
     * Runs before a WebdriverIO command gets executed.
     * @param {string} commandName hook command name
     * @param {Array} args arguments that command would receive
     */
    // beforeCommand: function (commandName, args) {
    // },
    /**
     * Cucumber Hooks
     *
     * Runs before a Cucumber Feature.
     * @param {string}                   uri      path to feature file
     * @param {GherkinDocument.IFeature} feature  Cucumber feature object
     */
    // beforeFeature: function (uri, feature) {
    // },
    /**
     *
     * Runs before a Cucumber Scenario.
     * @param {ITestCaseHookParameter} world    world object containing information on pickle and test step
     * @param {object}                 context  Cucumber World object
     */
    // beforeScenario: function (world, context) {
    // },
    /**
     *
     * Runs before a Cucumber Step.
     * @param {Pickle.IPickleStep} step     step data
     * @param {IPickle}            scenario scenario pickle
     * @param {object}             context  Cucumber World object
     */
    // beforeStep: function (step, scenario, context) {
    // },
    /**
     *
     * Runs after a Cucumber Step.
     * @param {Pickle.IPickleStep} step             step data
     * @param {IPickle}            scenario         scenario pickle
     * @param {object}             result           results object containing scenario results
     * @param {boolean}            result.passed    true if scenario has passed
     * @param {string}             result.error     error stack if scenario failed
     * @param {number}             result.duration  duration of scenario in milliseconds
     * @param {object}             context          Cucumber World object
     */
    // afterStep: function (step, scenario, result, context) {
    // },
    /**
     *
     * Runs after a Cucumber Scenario.
     * @param {ITestCaseHookParameter} world            world object containing information on pickle and test step
     * @param {object}                 result           results object containing scenario results
     * @param {boolean}                result.passed    true if scenario has passed
     * @param {string}                 result.error     error stack if scenario failed
     * @param {number}                 result.duration  duration of scenario in milliseconds
     * @param {object}                 context          Cucumber World object
     */
    // afterScenario: function (world, result, context) {
    // },
    /**
     *
     * Runs after a Cucumber Feature.
     * @param {string}                   uri      path to feature file
     * @param {GherkinDocument.IFeature} feature  Cucumber feature object
     */
    // afterFeature: function (uri, feature) {
    // },
    
    /**
     * Runs after a WebdriverIO command gets executed
     * @param {string} commandName hook command name
     * @param {Array} args arguments that command would receive
     * @param {number} result 0 - command success, 1 - command error
     * @param {object} error error object if any
     */
    // afterCommand: function (commandName, args, result, error) {
    // },
    /**
     * Gets executed after all tests are done. You still have access to all global variables from
     * the test.
     * @param {number} result 0 - test pass, 1 - test fail
     * @param {Array.<Object>} capabilities list of capabilities details
     * @param {Array.<String>} specs List of spec file paths that ran
     */
    // after: function (result, capabilities, specs) {
    // },
    /**
     * Gets executed right after terminating the webdriver session.
     * @param {object} config wdio configuration object
     * @param {Array.<Object>} capabilities list of capabilities details
     * @param {Array.<String>} specs List of spec file paths that ran
     */
    // afterSession: function (config, capabilities, specs) {
    // },
    /**
     * Gets executed after all workers got shut down and the process is about to exit. An error
     * thrown in the onComplete hook will result in the test run failing.
     * @param {object} exitCode 0 - success, 1 - fail
     * @param {object} config wdio configuration object
     * @param {Array.<Object>} capabilities list of capabilities details
     * @param {<Object>} results object containing test results
     */
    // onComplete: function(exitCode, config, capabilities, results) {
    // },
    /**
    * Gets executed when a refresh happens.
    * @param {string} oldSessionId session ID of the old session
    * @param {string} newSessionId session ID of the new session
    */
    // onReload: function(oldSessionId, newSessionId) {
    // }
}

What happened?

Pervious WDIO JUNIT Reporter Output :

Current 8.16.3 Junit Reporter Issue :

What is your expected behavior?

Need to produce execution results in junit xml report . Pervious Bug Ticket has been closed

How to reproduce the bug.

  • Create a new V8 WDIO project by this command npm init wdio .
  • Choose Junit reporter
  • Execute the tests
  • Junit Report displayed empty in terminal
    image

Relevant log output

Execution of 1 workers started at 2023-09-09T12:03:39.728Z

2023-09-09T12:03:39.751Z INFO @wdio/cli:launcher: Run onPrepare hook
2023-09-09T12:03:39.752Z INFO @wdio/utils: Setting up browser driver for: chrome@stable
2023-09-09T12:03:39.754Z INFO @wdio/utils: Setting up browser binaries for: chrome@stable
2023-09-09T12:03:40.006Z INFO webdriver: Downloading Chromedriver v116.0.5845.179
2023-09-09T12:03:40.388Z WARN webdriver: Couldn't download Chromedriver v116.0.5845.179: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.179/mac-x64/chromedriver-mac-x64.zip, trying to find known good version...
2023-09-09T12:03:40.441Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-09-09T12:03:40.442Z INFO @wdio/local-runner: Start worker 0-0 with arg: run,./wdio.conf.js
[0-0] 2023-09-09T12:03:42.290Z INFO @wdio/local-runner: Run worker command: run
[0-0] RUNNING in chrome - file:///features/login.feature
[0-0] 2023-09-09T12:03:43.561Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2023-09-09T12:03:43.690Z INFO webdriver: Downloading Chromedriver v116.0.5845.179
[0-0] 2023-09-09T12:03:43.861Z WARN webdriver: Couldn't download Chromedriver v116.0.5845.179: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.179/mac-x64/chromedriver-mac-x64.zip, trying to find known good version...
[0-0] 2023-09-09T12:03:44.921Z INFO @wdio/utils: Started Chromedriver v116.0.5845.179 with params --port=53732 --allowed-origins=* --allowed-ips=0.0.0.0 in 1359ms on port 53732
[0-0] 2023-09-09T12:03:44.948Z INFO webdriver: [POST] http://0.0.0.0:53732/session
[0-0] 2023-09-09T12:03:44.949Z INFO webdriver: DATA {
[0-0]   capabilities: {
[0-0]     alwaysMatch: { browserName: 'chrome', 'goog:chromeOptions': [Object] },
[0-0]     firstMatch: [ {} ]
[0-0]   },
[0-0]   desiredCapabilities: {
[0-0]     browserName: 'chrome',
[0-0]     'goog:chromeOptions': {
[0-0]       binary: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
[0-0]     }
[0-0]   }
[0-0] }
[0-0] 2023-09-09T12:03:47.356Z INFO webdriver: COMMAND navigateTo("https://the-internet.herokuapp.com/login")
[0-0] 2023-09-09T12:03:47.356Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/url
[0-0] 2023-09-09T12:03:47.357Z INFO webdriver: DATA { url: 'https://the-internet.herokuapp.com/login' }
[0-0] 2023-09-09T12:03:49.013Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.016Z INFO webdriver: COMMAND findElement("css selector", "#username")
[0-0] 2023-09-09T12:03:49.017Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.017Z INFO webdriver: DATA { using: 'css selector', value: '#username' }
[0-0] 2023-09-09T12:03:49.033Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '5FC486073067B187F0A961B6EC32DF4D_element_3'
[0-0] }
[0-0] 2023-09-09T12:03:49.040Z INFO webdriver: COMMAND elementClear("5FC486073067B187F0A961B6EC32DF4D_element_3")
[0-0] 2023-09-09T12:03:49.040Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/5FC486073067B187F0A961B6EC32DF4D_element_3/clear
[0-0] 2023-09-09T12:03:49.083Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.084Z INFO webdriver: COMMAND elementSendKeys("5FC486073067B187F0A961B6EC32DF4D_element_3", "<Screenshot[base64]>")
[0-0] 2023-09-09T12:03:49.084Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/5FC486073067B187F0A961B6EC32DF4D_element_3/value
[0-0] 2023-09-09T12:03:49.084Z INFO webdriver: DATA { text: 'tomsmith' }
[0-0] 2023-09-09T12:03:49.268Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.269Z INFO webdriver: COMMAND findElement("css selector", "#password")
[0-0] 2023-09-09T12:03:49.269Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.269Z INFO webdriver: DATA { using: 'css selector', value: '#password' }
[0-0] 2023-09-09T12:03:49.281Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '5FC486073067B187F0A961B6EC32DF4D_element_4'
[0-0] }
[0-0] 2023-09-09T12:03:49.285Z INFO webdriver: COMMAND elementClear("5FC486073067B187F0A961B6EC32DF4D_element_4")
[0-0] 2023-09-09T12:03:49.285Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/5FC486073067B187F0A961B6EC32DF4D_element_4/clear
[0-0] 2023-09-09T12:03:49.315Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.315Z INFO webdriver: COMMAND elementSendKeys("5FC486073067B187F0A961B6EC32DF4D_element_4", "SuperSecretPassword!")
[0-0] 2023-09-09T12:03:49.315Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/5FC486073067B187F0A961B6EC32DF4D_element_4/value
[0-0] 2023-09-09T12:03:49.315Z INFO webdriver: DATA { text: 'SuperSecretPassword!' }
[0-0] 2023-09-09T12:03:49.367Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.368Z INFO webdriver: COMMAND findElement("css selector", "button[type="submit"]")
[0-0] 2023-09-09T12:03:49.368Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.368Z INFO webdriver: DATA { using: 'css selector', value: 'button[type="submit"]' }
[0-0] 2023-09-09T12:03:49.379Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '5FC486073067B187F0A961B6EC32DF4D_element_9'
[0-0] }
[0-0] 2023-09-09T12:03:49.381Z INFO webdriver: COMMAND elementClick("5FC486073067B187F0A961B6EC32DF4D_element_9")
[0-0] 2023-09-09T12:03:49.382Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/5FC486073067B187F0A961B6EC32DF4D_element_9/click
[0-0] 2023-09-09T12:03:49.692Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.694Z INFO webdriver: COMMAND findElement("css selector", "#flash")
[0-0] 2023-09-09T12:03:49.694Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.695Z INFO webdriver: DATA { using: 'css selector', value: '#flash' }
[0-0] 2023-09-09T12:03:49.708Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '5DFC52D17FED9B5E226FD11D829DEB23_element_12'
[0-0] }
[0-0] 2023-09-09T12:03:49.711Z INFO webdriver: COMMAND findElements("css selector", "#flash")
[0-0] 2023-09-09T12:03:49.711Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/elements
[0-0] 2023-09-09T12:03:49.711Z INFO webdriver: DATA { using: 'css selector', value: '#flash' }
[0-0] 2023-09-09T12:03:49.723Z INFO webdriver: RESULT [
[0-0]   {
[0-0]     'element-6066-11e4-a52e-4f735466cecf': '5DFC52D17FED9B5E226FD11D829DEB23_element_12'
[0-0]   }
[0-0] ]
[0-0] 2023-09-09T12:03:49.727Z INFO webdriver: COMMAND findElement("css selector", "#flash")
[0-0] 2023-09-09T12:03:49.728Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.728Z INFO webdriver: DATA { using: 'css selector', value: '#flash' }
[0-0] 2023-09-09T12:03:49.736Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '5DFC52D17FED9B5E226FD11D829DEB23_element_12'
[0-0] }
[0-0] 2023-09-09T12:03:49.738Z INFO webdriver: COMMAND getElementText("5DFC52D17FED9B5E226FD11D829DEB23_element_12")
[0-0] 2023-09-09T12:03:49.738Z INFO webdriver: [GET] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/5DFC52D17FED9B5E226FD11D829DEB23_element_12/text
[0-0] 2023-09-09T12:03:49.753Z INFO webdriver: RESULT You logged into a secure area!
[0-0] ×
[0-0] 2023-09-09T12:03:49.755Z INFO webdriver: COMMAND navigateTo("https://the-internet.herokuapp.com/login")
[0-0] 2023-09-09T12:03:49.755Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/url
[0-0] 2023-09-09T12:03:49.756Z INFO webdriver: DATA { url: 'https://the-internet.herokuapp.com/login' }
[0-0] 2023-09-09T12:03:49.902Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.902Z INFO webdriver: COMMAND findElement("css selector", "#username")
[0-0] 2023-09-09T12:03:49.903Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.903Z INFO webdriver: DATA { using: 'css selector', value: '#username' }
[0-0] 2023-09-09T12:03:49.910Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': 'CF21708F1C0F629E9E27D2EE84A4BB0C_element_13'
[0-0] }
[0-0] 2023-09-09T12:03:49.912Z INFO webdriver: COMMAND elementClear("CF21708F1C0F629E9E27D2EE84A4BB0C_element_13")
[0-0] 2023-09-09T12:03:49.913Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/CF21708F1C0F629E9E27D2EE84A4BB0C_element_13/clear
[0-0] 2023-09-09T12:03:49.933Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.933Z INFO webdriver: COMMAND elementSendKeys("CF21708F1C0F629E9E27D2EE84A4BB0C_element_13", "foobar")
[0-0] 2023-09-09T12:03:49.933Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/CF21708F1C0F629E9E27D2EE84A4BB0C_element_13/value
[0-0] 2023-09-09T12:03:49.933Z INFO webdriver: DATA { text: 'foobar' }
[0-0] 2023-09-09T12:03:49.971Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:49.971Z INFO webdriver: COMMAND findElement("css selector", "#password")
[0-0] 2023-09-09T12:03:49.971Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:49.971Z INFO webdriver: DATA { using: 'css selector', value: '#password' }
[0-0] 2023-09-09T12:03:49.978Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': 'CF21708F1C0F629E9E27D2EE84A4BB0C_element_14'
[0-0] }
[0-0] 2023-09-09T12:03:49.980Z INFO webdriver: COMMAND elementClear("CF21708F1C0F629E9E27D2EE84A4BB0C_element_14")
[0-0] 2023-09-09T12:03:49.980Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/CF21708F1C0F629E9E27D2EE84A4BB0C_element_14/clear
[0-0] 2023-09-09T12:03:50.005Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:50.005Z INFO webdriver: COMMAND elementSendKeys("CF21708F1C0F629E9E27D2EE84A4BB0C_element_14", "barfoo")
[0-0] 2023-09-09T12:03:50.005Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/CF21708F1C0F629E9E27D2EE84A4BB0C_element_14/value
[0-0] 2023-09-09T12:03:50.005Z INFO webdriver: DATA { text: 'barfoo' }
[0-0] 2023-09-09T12:03:50.042Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:50.042Z INFO webdriver: COMMAND findElement("css selector", "button[type="submit"]")
[0-0] 2023-09-09T12:03:50.042Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:50.042Z INFO webdriver: DATA { using: 'css selector', value: 'button[type="submit"]' }
[0-0] 2023-09-09T12:03:50.052Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': 'CF21708F1C0F629E9E27D2EE84A4BB0C_element_21'
[0-0] }
[0-0] 2023-09-09T12:03:50.054Z INFO webdriver: COMMAND elementClick("CF21708F1C0F629E9E27D2EE84A4BB0C_element_21")
[0-0] 2023-09-09T12:03:50.054Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/CF21708F1C0F629E9E27D2EE84A4BB0C_element_21/click
[0-0] 2023-09-09T12:03:50.293Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:50.295Z INFO webdriver: COMMAND findElement("css selector", "#flash")
[0-0] 2023-09-09T12:03:50.295Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:50.295Z INFO webdriver: DATA { using: 'css selector', value: '#flash' }
[0-0] 2023-09-09T12:03:50.305Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '96ECECEA8C474CB3585AECFAED5006AC_element_26'
[0-0] }
[0-0] 2023-09-09T12:03:50.307Z INFO webdriver: COMMAND findElements("css selector", "#flash")
[0-0] 2023-09-09T12:03:50.307Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/elements
[0-0] 2023-09-09T12:03:50.307Z INFO webdriver: DATA { using: 'css selector', value: '#flash' }
[0-0] 2023-09-09T12:03:50.315Z INFO webdriver: RESULT [
[0-0]   {
[0-0]     'element-6066-11e4-a52e-4f735466cecf': '96ECECEA8C474CB3585AECFAED5006AC_element_26'
[0-0]   }
[0-0] ]
[0-0] 2023-09-09T12:03:50.317Z INFO webdriver: COMMAND findElement("css selector", "#flash")
[0-0] 2023-09-09T12:03:50.317Z INFO webdriver: [POST] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element
[0-0] 2023-09-09T12:03:50.317Z INFO webdriver: DATA { using: 'css selector', value: '#flash' }
[0-0] 2023-09-09T12:03:50.324Z INFO webdriver: RESULT {
[0-0]   'element-6066-11e4-a52e-4f735466cecf': '96ECECEA8C474CB3585AECFAED5006AC_element_26'
[0-0] }
[0-0] 2023-09-09T12:03:50.326Z INFO webdriver: COMMAND getElementText("96ECECEA8C474CB3585AECFAED5006AC_element_26")
[0-0] 2023-09-09T12:03:50.326Z INFO webdriver: [GET] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e/element/96ECECEA8C474CB3585AECFAED5006AC_element_26/text
[0-0] 2023-09-09T12:03:50.336Z INFO webdriver: RESULT Your username is invalid!
[0-0] ×
[0-0] 2023-09-09T12:03:50.338Z INFO webdriver: COMMAND deleteSession()
[0-0] 2023-09-09T12:03:50.338Z INFO webdriver: [DELETE] http://0.0.0.0:53732/session/69f42ce6b67bec5f0415f2525acf6c7e
[0-0] 2023-09-09T12:03:50.393Z INFO webdriver: RESULT null
[0-0] 2023-09-09T12:03:50.393Z INFO webdriver: Kill /var/folders/j7/c7yxynnj59ddnjb3n553ht480000gp/T/chromedriver/mac-116.0.5845.96/chromedriver-mac-x64/chromedriver driver process with command line: --port=53732 --allowed-origins=* --allowed-ips=0.0.0.0
[0-0] PASSED in chrome - file:///features/login.feature
2023-09-09T12:03:50.515Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2023-09-09T12:03:50.516Z INFO @wdio/cli:launcher: Run onComplete hook

 "dot" Reporter:
......

 "spec" Reporter:
------------------------------------------------------------------
[chrome 116.0.5845.179 mac os x #0-0] Running: chrome (v116.0.5845.179) on mac os x
[chrome 116.0.5845.179 mac os x #0-0] Session ID: 69f42ce6b67bec5f0415f2525acf6c7e
[chrome 116.0.5845.179 mac os x #0-0]
[chrome 116.0.5845.179 mac os x #0-0] » features/login.feature
[chrome 116.0.5845.179 mac os x #0-0] The Internet Guinea Pig Website
[chrome 116.0.5845.179 mac os x #0-0] As a user, I can log into the secure area
[chrome 116.0.5845.179 mac os x #0-0]     Given I am on the login page
[chrome 116.0.5845.179 mac os x #0-0]     When I login with tomsmith and SuperSecretPassword!
[chrome 116.0.5845.179 mac os x #0-0]     Then I should see a flash message saying You logged into a secure area!
[chrome 116.0.5845.179 mac os x #0-0]
[chrome 116.0.5845.179 mac os x #0-0] As a user, I can log into the secure area
[chrome 116.0.5845.179 mac os x #0-0]     Given I am on the login page
[chrome 116.0.5845.179 mac os x #0-0]     When I login with foobar and barfoo
[chrome 116.0.5845.179 mac os x #0-0]     Then I should see a flash message saying Your username is invalid!
[chrome 116.0.5845.179 mac os x #0-0]
[chrome 116.0.5845.179 mac os x #0-0] 6 passing (3.1s)


 "junit" Reporter:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites/>

Spec Files:	 1 passed, 1 total (100% completed) in 00:00:10 

2023-09-09T12:03:50.526Z INFO @wdio/local-runner: Shutting down spawned worker
2023-09-09T12:03:50.779Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2023-09-09T12:03:50.779Z INFO @wdio/local-runner: shutting down

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛good first picka reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions