Handle environment specific baseUrls from wdio command line

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024
  • #webdriverio_typescript_series
    This video will explain on how to handle environment specific (QA, DEV and PROD etc...) baseUrls from wdio command line
    Read blog -
    qavalidation.c...
    qavalidation.c...
    Resources -
    webdriver.io/d...
    qavbox.github....
    Selenium java complete series -
    bit.ly/qavbox-...
    Subscribe to this channel -
    bit.ly/youtube...
    Blog posts -
    qavalidation.com
    Make me awake & feel fresh always, so I can bring lot's of interesting topics for you all, Buy me a coffee?
    buymeacoffee.co...
    Thank you for watching!

ความคิดเห็น • 8

  • @badarinath8702
    @badarinath8702 2 ปีที่แล้ว +1

    Can you please make a video on how to debug WebDriverIO scripts in Visual Studio. And what are different ways to debug the code with WebDriverIO Typescript combination

    • @qavbox
      @qavbox  2 ปีที่แล้ว +1

      Sure, stay tuned.

  • @visharathi8294
    @visharathi8294 ปีที่แล้ว

    hi I followed the same steps but Im getting the below error.
    The term 'ENV=prod' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the path is
    correct and try again.

    • @qavbox
      @qavbox  ปีที่แล้ว

      If you are taking my latest code and trying the command mentioned in this video, it won't work as I restructured it, you can refer this session to understand what changed and how to use it
      th-cam.com/video/oXohqS9h68A/w-d-xo.html

    • @visharathi8294
      @visharathi8294 ปีที่แล้ว

      @@qavbox I have used the code in the next video(doesnt work either). is the command different for windows? or should I install any dev dependency for that?
      The below command works for me, the one you used and the below are same?
      npx cross-env Env=prod wdio run ./wdio.conf.ts

    • @leksnomo
      @leksnomo ปีที่แล้ว

      @@visharathi8294 have you found the solution? I have the same error

    • @amitagrawal4494
      @amitagrawal4494 ปีที่แล้ว

      @@visharathi8294 Thanks Visha,the command you have mentioned ,it is working fine

    • @leksnomo
      @leksnomo ปีที่แล้ว

      this is because of powerSell syntax we have to use to set the variable on Windows.
      Use the next command:
      "$Env:Env="prod"; npm run wdio"