WebdriverIO | Getting Started | Hindi

  Рет қаралды 1,129

Automation Step by Step (Hindi)

Automation Step by Step (Hindi)

Күн бұрын

ALL FREE COURSES ► automationstepbystep.com/
QUIZ - forms.gle/5AymstwdWxXhCipw7
00:00 Intro
00:22 Topics
01:36 What is WebdriverIO
02:32 Features
04:22 Software & Hardware requirements
06:55 How to install node js on windows
17:09 IDE (VS Code) - • Visual Studio Code
Project Setup
20:00 Create a new folder and open it in VS Code
23:44 Open VS Code terminal and run command npm init -y
27:02 Install webdriverio using command npm init wdio
33:52 WebdriverIO Config File wdio.config.js
35:46 Check webdriverio version npm ls webdriverio
36:27 How to run tests in webdriverio project
npx wdio run wdio.conf.js
npm run wido
To run specific tests - npx wdio run wdio.conf.js -spec example.spec.js
40:47 How to create tests in webdriverio project
51:29 How to press enter key in webdriverio
53:24 How to create allure reports in webdriverio project
01:01:09 Outro
What is WebdriverIO
Automation testing framework for browser and mobile testing
Free & Open-source
owned by a non-profit entity called OpenJS Foundation
Features
We can use WebdriverIO to automate:
🌐 modern web applications written in React, Vue, Angular etc
📱 hybrid or native mobile apps running on emulator/simulator or real device
💻 native desktop applications (e.g. written with Electron.js)
Can work with Shadow DOM and React Objects
Hardware & Software Requirements
Hardware
Desktop or Laptop with min 4GB RAM, 5 GB free space
Software
Node JS - v12.16.1 or higher
IDE (for JavaScript)
Project Setup & WebdriverIO Installation
Step 1 - Create a new folder and open in IDE (VS Code)
Step 2 - Open terminal in VS Code and run commands npm init -y
npm init wdio
Step 3 - Select the options as required and install
Step 4 - Check WebdriverIO version npm ls webdriverio
Step 5 - Check wdio.conf.js file and project folders are created
Step 6 - To run existing tests
Run all tests in the folder configured in wdio.conf.js
npx wdio run wdio.conf.js
npm run wdio
Run specific tests. npx wdio run wdio.conf.js --spec test1.js
How to create Tests
Step 1 - Create a new file under spec folder
Step 2 - Add the test script using it block (mocha)
describe('Demo Tests', () => {
it('My 1st Test', async () => {
browser.url('google.com/')
browser.pause(2000)
await $('[name="q"]').setValue("WebdriverIO");
await $('button[type="submit"]').click();
browser.keys('Enter')
})
})
$() Single dollar sign to find a single web element
$$() Double dollar sign to find multiple web elements
How to Generate and View Reports
Step 1 - Run - npm install @wdio/allure-reporter --save-dev
Step 2 - Add reporter config in wdio.conf.js
Step 3 - Run test and check Allure Results folder is generated
Step 4 - Install allure command line tool npm install -g allure-commandline --save-dev
Step 5 - Run commands
allure generate allure-results // this will generate allure-report folder
allure open // will start server and open report
#webdriverio #hindi
Refer - webdriver.io/docs/allure-repo...
GitHub Project - github.com/Raghav-Pal/Webdriv...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
ASK RAGHAV ► bit.ly/2CoJGWf
Every LIKE & SUBSCRIPTION gives me great motivation to keep working for you
You can support my mission for education by sharing this knowledge and helping as many people as you can
If my work has helped you, consider helping any animal near you, in any way you can
NEVER STOP LEARNING
Raghav Pal

Пікірлер: 8
@jerrysworld5495
@jerrysworld5495 Жыл бұрын
mujhe lagta hai aur bhi hindi videos aane chahiye. bhale apke naye channel ki growth slow hai lekin aap promotion bhi kar sakte hain. Native language me chizo ko seekhna kaafi asan ho jata h par here is a catch ki native language me sikhaane wale tutors bohut hi km hain. ❤❤❤❤❤❤
@Raghav_Pal
@Raghav_Pal 5 ай бұрын
thanks for the kind words
@harveshkr
@harveshkr Жыл бұрын
when i run this command "npm run wdio" showing error "ERROR @wdio/cli:launcher: No specs found to run, exiting with failure"
@Raghav_Pal
@Raghav_Pal Жыл бұрын
Hi Make sure that you have specified the correct path to your test files in the WebdriverIO configuration file (wdio.conf.js) Also make sure that your test files are saved with the correct file extension (e.g. .js, .ts, etc.)
@ankush2362
@ankush2362 Жыл бұрын
I was facing the issue while creating allure reports folder with command "allure generate .\allure-results". The error said - allure : File C:\Users\XXXXX XXXXX\AppData\Roaming pm\allure.ps1 cannot be loaded because running scripts is disabled on this system. In order to resolve the above error, run the following set of commands- 1) set-ExecutionPolicy RemoteSigned -Scope CurrentUser 2) Get-ExecutionPolicy The above command should return - "RemoteSigned" 3) Get-ExecutionPolicy -list ---> This is to view the list of policies that has been updated by the last commands. Now try running the command "allure generate .\allure-results". This should now create the allure reports folder. Hope this helps. Cheers!!
@Raghav_Pal
@Raghav_Pal 5 ай бұрын
Thanks Ankush
@harveshkr
@harveshkr Жыл бұрын
when i run command "npx wdio run .\wdio.conf.js" its show- "ERROR @wdio/utils:shim: TypeError: Cannot read properties of undefined (reading 'browserName')"
@Raghav_Pal
@Raghav_Pal Жыл бұрын
Hi, where have you used browserName pls check in your code and see from where it is getting referred Also check for any spelling or syntax errors in your code
WebdriverIO | Page Object Model | Hindi
39:55
Automation Step by Step (Hindi)
Рет қаралды 304
WebdriverIO | How to create Cucumber BDD Project | Hindi
54:16
Automation Step by Step (Hindi)
Рет қаралды 233
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 98 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 10 МЛН
small vs big hoop #tiktok
00:12
Анастасия Тарасова
Рет қаралды 29 МЛН
My little bro is funny😁  @artur-boy
00:18
Andrey Grechka
Рет қаралды 13 МЛН
how to fiend errors in allen-bradley plc program
9:47
Parveen automations
Рет қаралды 8
GitHub Actions | How to use create CI/CD pipeline using Github Actions | HINDI
27:53
WebdriverIO | How to Record Tests | Hindi
19:43
Automation Step by Step (Hindi)
Рет қаралды 140
Getting Started with WebdriverIO | Complete Tutorial for Beginners Step by Step
56:49
Download and Setup Eclipse with Python | Step by Step | Hindi 🟢
25:41
Automation Step by Step (Hindi)
Рет қаралды 234
WebdriverIO | How to run Tests from Jenkins | Hindi
35:26
Automation Step by Step (Hindi)
Рет қаралды 96
Easiest way to create WebdriverIO Cucumber BDD Project with DEMO
45:29
Automation Step by Step
Рет қаралды 16 М.
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 98 МЛН