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!
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
Sure, stay tuned.
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.
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
@@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
@@visharathi8294 have you found the solution? I have the same error
@@visharathi8294 Thanks Visha,the command you have mentioned ,it is working fine
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"