Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 05 16:12
    christian-bromann closed #8803
  • Oct 05 16:11
    christian-bromann commented #8803
  • Oct 05 15:53

    christian-bromann on v7

    add qmate service - fixes #8803 (compare)

  • Oct 05 15:50

    christian-bromann on main

    add qmate service - fixes #8803 (compare)

  • Oct 05 14:51
    christian-bromann labeled #8971
  • Oct 05 14:51
    christian-bromann unlabeled #8971
  • Oct 05 14:49
    christian-bromann commented #8971
  • Oct 05 09:00
    pharaoh-11 labeled #8971
  • Oct 05 09:00
    pharaoh-11 opened #8971
  • Oct 05 09:00
    pharaoh-11 labeled #8971
  • Oct 04 19:57
    hgsgtk commented #8969
  • Oct 04 17:34
    Primajin commented #8970
  • Oct 04 17:33
    christian-bromann commented #8970
  • Oct 04 17:31
    christian-bromann closed #8969
  • Oct 04 17:31
    christian-bromann commented #8969
  • Oct 04 17:30
    Primajin commented #8970
  • Oct 04 17:28
    Primajin commented #8970
  • Oct 04 17:24
    christian-bromann labeled #8970
  • Oct 04 17:24
    christian-bromann labeled #8970
  • Oct 04 17:24
    christian-bromann labeled #8970
Alex Kentwell
@Alkex1

Hey,
I just updated my Mobile testing repo from WDIO v5 to WDIO v7
I'm trying to run a test on WDIO v7 /appium on an iOS simulator, and getting the error:
'[debug] [HTTP] No route found for /session [HTTP] <-- POST /session 404'
Wondering if anyone has had similar issues while trying to run tests on WDIO v7?

I have found similar error's saying:
No route found. Setting content type to 'text/plain'
But unfortunately the tips given in those instances don't appear to be helping/solving my problem.

Viral Panchal
@viralkpanchal
Hi All,
Is there any workaround to open deep-link on the real iOS device? I am using appium service 5.23.0, WebdriverIO version 5.23.0, and real devices are on BrowserStack. Appreciate if someone can please share code example..
Erwin Heitzman
@erwinheitzman
@kwishna update @wdio/cucumber-framework, this was fixed yesterday
nonamecze
@nonamecze:matrix.org
[m]
Hi, can i somehow measure time for each request? For example i would like to measure how long will it take to do this in miliseconds
5 replies
all request in that process
nonamecze
@nonamecze:matrix.org
[m]
thanks
nonamecze
@nonamecze:matrix.org
[m]
One more question please, lets say that i have this test:
and now i want to give it some sort of maximum time to complete it. Something like this: -> If this test will finish in less than a 2 seconds, it is ok. Else, if it will take longer than that, throw some error exception
is there any way to do this?
Thanks to all for any help.
Christian Bromann
@christian-bromann
just measure the time using Date.now()
Erwin Heitzman
@erwinheitzman
changing the arrow function to a regular function should allow you to do the following if I am not mistaken
it('should set a timeout specifically for this test', function () {
  this.timeout = 2000 // 2 sec
})
Christian Bromann
@christian-bromann
ah this is even better
nonamecze
@nonamecze:matrix.org
[m]
thank you!
Christoph Herold
@coeamyd
Shouldn't this also work with the arrow function?
Erwin Heitzman
@erwinheitzman
no, arrow function's do not have a this scope
Christoph Herold
@coeamyd
thx
이순한(TQA)
@soonhanlee
Can I manually trigger the beforeCommand, afterCommand event myself?
If I took a screenshot with puppeteer, I would like to trigger a command event like takeScreenshot.
Yedidya Weiner
@flaplid-jabberdack
Trying to switch the driver to an iframe using swtichTo().frame('') and it spits back an error that 'id' cannot be a string. Ive also tried driver.switchToFrame(css-selector) and that it tells me switchToFrame is not a function. Any ideas?
Christian Bromann
@christian-bromann
@soonhanlee yes, you can do browser.emit(“comand”, { … })
the payload structure should be like this:
interface Output {
    command: string
    params: any
    method: 'PUT' | 'POST' | 'GET' | 'DELETE'
    endpoint: string
    body: {}
    result: {
        value: string | null
    }
    sessionId: string
    cid: string
    type: 'command' | 'result'
}
@flaplid-jabberdack it doesn’t seem you are using WebdriverIO
이순한(TQA)
@soonhanlee
@christian-bromann Thank you!
Yedidya Weiner
@flaplid-jabberdack
silly me, eek. Thanks @christian-bromann
Rajendran Krishnamurthy
@rajukrish:matrix.org
[m]
Hi Team anybody has a solution for this [0-0] Error: Unable to load spec files quite likely because they rely on browser object that is not fully initialised.
browser object has only capabilities and some flags like isMobile.
Helper files that use other browser commands have to be moved to before hook.
Olga
@osmolyar
@nileshye yes, if you define it in the before hook, e.g.
    before: () => {
        // set up global context
        global.context = context
Olga
@osmolyar
@dmarimoutou , yes, the method using the cucumber 'world' object, accessible via 'this' in step definitions, (and via the 'world' parameter in hooks) is preferable as it's designed specifically for sharing state among steps within a scenario, as @erwinheitzman said. You can also customize the cucumber world constructor if you want to initialize it with something specific with each scenario. https://github.com/cucumber/cucumber-js/blob/master/docs/support_files/world.md
@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