Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:03
    potty commented #9694
  • Jan 30 22:56
    jlipps commented #3424
  • Jan 30 22:41
    praveen8924 commented #3424
  • Jan 30 19:58

    christian-bromann on github_actions

    (compare)

  • Jan 30 19:58

    christian-bromann on main

    Bump dependabot/fetch-metadata … (compare)

  • Jan 30 19:58
    christian-bromann closed #9680
  • Jan 30 19:57
    christian-bromann unlabeled #9694
  • Jan 30 19:57
    christian-bromann commented #9694
  • Jan 30 19:52
    christian-bromann labeled #9694
  • Jan 30 19:52
    christian-bromann unlabeled #9694
  • Jan 30 19:47

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jan 30 19:47
    dependabot[bot] commented #9686
  • Jan 30 19:47
    christian-bromann closed #9686
  • Jan 30 19:47
    christian-bromann commented #9686
  • Jan 30 19:41
    SCG82 commented #9686
  • Jan 30 16:28
    christian-bromann commented #8022
  • Jan 30 16:24
    christian-bromann commented #3424
  • Jan 30 16:01
    praveen8924 commented #3424
  • Jan 30 14:27

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jan 30 14:26

    christian-bromann on v7

    Bump jest-environment-jsdom fro… (compare)

Olga
@osmolyar
@rajukrish:matrix.org after ~v6.4 of @wdio/mocha-framework you can't use browser outside of an 'it' block due to a change in the order of loading hooks and spec files.
Rajendran Krishnamurthy
@rajukrish:matrix.org
[m]
is there anyway I can implement to follow page object pattern?
Olga
@osmolyar
@dmarimoutou if you are using typescript you have to extend the Global interface as
declare module NodeJS {
    interface Global {
       mySharedData: any
    }
}
5 replies
@rajukrish:matrix.org yes you can use it in other classes, just not in spec files outside of an 'it' block is my understanding.
Rajendran Krishnamurthy
@rajukrish:matrix.org
[m]
ok thanks Olga
dmarimoutou
@dmarimoutou
Thanks a lot @osmolyar . Do you know why I'm facing this Typescript error: Object is possibly 'undefined'.ts(2532) when I declare my shared object in my step definition like that this.mySharedData = myvalue?
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