Debugging WebdriverIO Tests in VSCode

Поделиться
HTML-код
  • Опубликовано: 28 окт 2019
  • Important for TypeScript users... at the end of the video I show a sample launch.json config, but forgot to mention that you need to be sure you have `"sourceMap": true` in your tsconfig.json as well, otherwise it won't work...
    In this WebdriverIO Automated Testing Tutorial, we will be learning how to use the VSCode debugger to more easily find issues in our tests. We'll be using the node debugger to pause and inspect our tests are we're running them.
    If you enjoy these videos and would like to support more videos, take a look at my WebdriverIO course to see if it may help you:
    learn.webdriver.io
    Or, check out my upcoming book:
    leanpub.com/webapp-testing-gu...
    Links:
    webdriver.io/docs/debugging.h...
    • Lesson 4a: The Webdriv...
  • НаукаНаука

Комментарии • 13

  • @learngardeningwithme
    @learngardeningwithme 3 года назад +1

    Do you have any Video debugging typescript and webdriverIO using VS code ?

  • @jeffchen5862
    @jeffchen5862 2 года назад +2

    Hi Kevin, I am working on the worst-case as you said. wdio with cucumber with typescript, Could you please maybe give some sample about it?

  • @oanhpham180
    @oanhpham180 4 года назад +1

    Hi Kevin, can you make a video on testing native app on mobile using Kobiton cloud. Have you tried it? As I can see when using a cloud webdriverio will need a service, in the case of sauce lab, there is sauce-service. Is it possible to do testing with Kobiton? Thanks.

  • @molakaseemanarasimha1800
    @molakaseemanarasimha1800 4 года назад +3

    Hi Kevin,
    can you please make video how to connect to mysql DB to do validations in webdriver io Scripts

    • @frontendtesting
      @frontendtesting  4 года назад +1

      will add it to my list of video ideas 👍🏻

  • @ramsenc
    @ramsenc 3 года назад

    I'm getting "ERROR @wdio/cli:launcher: No specs found to run, exiting with failure using the same format". Is there a common reason why that would happen?

  • @tyhendershot1095
    @tyhendershot1095 4 года назад

    Hi Kevin,
    My wdio.conf.js file isn't using 'mocha' as the framework, but is using 'jasmine', does this matter? When I run the debugger in VSC (breakpoint included) it debugs, but then resolved and exits debugging mode automatically.

    • @frontendtesting
      @frontendtesting  4 года назад +1

      that i don't know. Haven't used Jasmine so don't have any experience there :\

  • @rushabhjaiswal1442
    @rushabhjaiswal1442 3 года назад +1

    Hi Kevin,
    Could you please tell me how to run a single test and how to write configuration for that

    • @frontendtesting
      @frontendtesting  3 года назад

      you can use the `--spec` CLI argument, so:
      npx wdio --spec=myFile
      webdriver.io/docs/clioptions.html#wdio-run

    • @rushabhjaiswal1442
      @rushabhjaiswal1442 3 года назад +1

      @@frontendtesting so myfile is our filename right?

    • @frontendtesting
      @frontendtesting  3 года назад

      @@rushabhjaiswal1442 Correct