Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:16
    SCG82 converted_to_draft #9623
  • 08:10
    OahMada labeled #9679
  • 08:10
    OahMada labeled #9679
  • 08:10
    OahMada opened #9679
  • 00:55
    christian-bromann commented #9584
  • 00:55
    christian-bromann commented #9635
  • Jan 28 15:22
    testautomationlearnings commented #6605
  • Jan 28 15:17

    github-actions[bot] on v8.3.2

    v8.3.2 (compare)

  • Jan 28 15:16

    github-actions[bot] on main

    v8.3.2 (compare)

  • Jan 28 15:16

    github-actions[bot] on v8.3.2

    (compare)

  • Jan 28 15:13

    christian-bromann on main

    allow to set --no-coverage (compare)

  • Jan 28 14:28

    github-actions[bot] on v8.3.1

    v8.3.1 (compare)

  • Jan 28 14:27

    github-actions[bot] on main

    v8.3.1 (compare)

  • Jan 28 14:27

    github-actions[bot] on v8.3.1

    (compare)

  • Jan 28 14:26
    testautomationlearnings commented #6605
  • Jan 28 14:24

    christian-bromann on cb-coverage-collection-fix

    (compare)

  • Jan 28 14:24

    christian-bromann on main

    [🐛 Bug]: Properly merge covera… (compare)

  • Jan 28 14:24
    christian-bromann closed #9677
  • Jan 28 14:24
    christian-bromann labeled #9677
  • Jan 28 14:10
    christian-bromann synchronize #9677
Federico Francia
@federicoitaly:matrix.org
[m]
hi everybody, does anyone use parallel testing with wdio cucumberjs appium and browserstack?
Erwin Heitzman
@erwinheitzman
that's a very generic question, if you have a specific question I suggest asking that instead
Federico Francia
@federicoitaly:matrix.org
[m]
@erwinheitzman: thanks, currently I use wdio with maxInstances: 1, so it runs features sequentially
since ios tests takes long time I am wondering to run test in parallel on different devices
my worry is related to the external report
i create a json for the cucumberjs report
it works for single thread
but I increase maxInstances let's say to 2
what will happen?
Erwin Heitzman
@erwinheitzman
I think that depends on the reporter
but you'd probably get two json files
Federico Francia
@federicoitaly:matrix.org
[m]
import cucumberJson from "wdio-cucumberjs-json-reporter";
Erwin Heitzman
@erwinheitzman
however, running it once and see what happens would have been faster and more reliable then to ask here :P
Federico Francia
@federicoitaly:matrix.org
[m]
import { generate } from "multiple-cucumber-html-reporter";
1 reply
Erwin Heitzman
@erwinheitzman
I have never used that reporter myself so I don't really know how it generates files
Federico Francia
@federicoitaly:matrix.org
[m]
Davide Mariani
@davide.mariani:matrix.org
[m]
Hi there!
Kirstin Walsh
@pyxis828
For someone still stuck on version 5, is there somewhere where I can find docs on the hooks as they were in that version? I know they have different params, and I can't seem to find reference docs now - the site will only take me to the version 7 docs for the hooks.
Erwin Heitzman
@erwinheitzman
Kirstin Walsh
@pyxis828
I have tried that - not helpful
Erwin Heitzman
@erwinheitzman
how is it not helpful? we have documentation for al versions back to v4
Kirstin Walsh
@pyxis828
the hook documentation doesn't seem to be there - at least I can't find it
that's v4 sorry
Kirstin Walsh
@pyxis828
might be good though - I'll try it
Erwin Heitzman
@erwinheitzman
all info should be available
Kirstin Walsh
@pyxis828
just gives a list of what hooks are available, no params
Federico Francia
@federicoitaly:matrix.org
[m]
thanks @dmarimoutou
I try to ask my question there
Erwin Heitzman
@erwinheitzman
@pyxis828 the documentation keeps updating, I suggest to take the latest documentation in cases where you feel you are missing some details
Clive Galway
@evilC
Hi, could anyone advise how I would use multiremote with wdio/cucumber-framework? To be more specific I am trying to do automated testing of a chat-type application (ie two browsers open, one for each side of a conversation)
Kirstin Walsh
@pyxis828
@erwinheitzman I appreciate your suggestion, but I know for a fact that the params were changed in version 7, and do NOT match what was there in v5 - it was a huge problem for me and 1 of the main reasons I have not yet updated to V7 (along with some other sync/async errors that I have occurring), along with the fact that I have 0 time to work on the upgrade. And now I am going to add another before hook to throw some more confusion into the mix for the future upgrade, lol
Federico Francia
@federicoitaly:matrix.org
[m]
Clive Galway
@evilC
@federicoitaly:matrix.org Yes, I see that, but I am rather new to wdio/cucumber and have no idea how to do that in cucumber-framework
Federico Francia
@federicoitaly:matrix.org
[m]
ok, maybe there is a boilerplate with multiremote
Clive Galway
@evilC
in cucumber, you don't seem to have control over newing up of the browser object?
Christian Bromann
@christian-bromann
@evilC just define multiremote capabilities in your wdio conf that uses cucumber
there is nothing special about it
Clive Galway
@evilC
Yeah I saw the cucumber boilerplate and it purports to implement multiremote but I can't find anywhere it uses it
Christian Bromann
@christian-bromann
the webdriverio cucumber boilerplate doesn’t use multiremote
but to do so just modify the capabilities in your wdio.conf
Erwin Heitzman
@erwinheitzman
@pyxis828 in that case, just console.log the arguments ^^;
Michael Norton
@RevNight
Can anyone here help me with the syntax for WaitUntil()? I tried several ways to get the Function() typed properly, but it still isn't working
Clive Galway
@evilC

Yeah I had a stab at that but got nowhere unfortunately.
Currently I have

  capabilities: [
    {
      // maxInstances can get overwritten per capability. So if you have an in-house Selenium
      // grid with only 5 firefox instances available you can make sure that not more than
      // 5 instances get started at a time.
      maxInstances: 5,
      //
      "goog:chromeOptions": {
        args: ["use-fake-ui-for-media-stream"],
      },
      browserName: "chrome",
      acceptInsecureCerts: true,
      // If outputDir is provided WebdriverIO can capture driver session logs
      // it is possible to configure which logTypes to include/exclude.
      // excludeDriverLogs: ['*'], // pass '*' to exclude all driver session logs
      // excludeDriverLogs: ['bugreport', 'server'],
    },
  ],

And I tried putting in what appeared to be along the lines of what I wanted

    capabilities: {
        browserA: {
            capabilities: {
                browserName: 'chrome',
            }
        },
        browserB: {
            capabilities: {
                browserName: 'chrome'
            }
        }
    },

But then everything stopped working, never even seemed to get the the point in my tests where I would normally execute browser.url(foo)

Christian Bromann
@christian-bromann
Yes because all step definitions don’t support multiremote because every result is now an array
you have to define your own step definitions
Clive Galway
@evilC
ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
Right, but existingly, the first executed step goes something like
Given(/^I am logged in as an agent/, () => {
  pages["login"].open();