Coder Social home page Coder Social logo

wdio-test's Introduction

wdio-test

Performing login feature on Orange HRM Demo portal
As a user, I can login and see User dashboard.
Given I am on the login page
When I login with Admin and admin123
Then I should see a homepage saying Dashboard

Step 1: Install Node.JS

Step 2: Create a Project Directory

mkdir wdio-test

Step 3: Create Package.JSON

npm init

Step 4: Install WebDriverIO command-line interface

npm install @wdio/cli

Step 5: Create a WebDriverIO Config File

npx wdio config

? A project named "wdio-test" was detected at "/Users/sunil/wdio-test", correct? Yes

? Where should your tests be launched? local - for e2e testing of web and mobile applications

? Where is your automation backend located? On my local machine

? Which framework do you want to use? Cucumber (https://cucumber.io/)

? Do you want to use a compiler? No!

? Do you want WebdriverIO to autogenerate some test files? Yes

? Where should these feature files be located? /Users/sunil/wdio-test/features/**/*.feature

? Where should these step definitions be located? /Users/sunil/wdio-test/features/step-definitions/steps.js

? Do you want to use page objects (https://martinfowler.com/bliki/PageObject.html)? Yes

? Where are your page objects located? /Users/sunil/wdio-test/features/pageobjects/**/*.js

? Which reporter do you want to use? spec

? Do you want to add a plugin to your test setup?

? Do you want to add a service to your test setup? selenium-standalone

? What is the base url? http://localhost

? Do you want me to run npm install (Y/n) Yes

write your test cases and execute with below command.

npm run wdio

─$ npm run wdio

> [email protected] wdio

> wdio run ./wdio.conf.js

Execution of 1 workers started at 2023-04-17T23:07:48.664Z

Output:

"spec" Reporter:

[chrome 112.0.5615.49 MAC #0-0] Running: chrome (v112.0.5615.49) on MAC

[chrome 112.0.5615.49 MAC #0-0] Session ID: a0ae8aa3b900c831b730f3cb130fc581

[chrome 112.0.5615.49 MAC #0-0]

[chrome 112.0.5615.49 MAC #0-0] » /features/login.feature

[chrome 112.0.5615.49 MAC #0-0] Performing login feature on Orange HRM Demo portal

[chrome 112.0.5615.49 MAC #0-0] As a user, I can login and see User dashboard.

[chrome 112.0.5615.49 MAC #0-0] ✓ Given I am on the login page

[chrome 112.0.5615.49 MAC #0-0] ✓ When I login with Admin and admin123

[chrome 112.0.5615.49 MAC #0-0] ✓ Then I should see a homepage saying Dashboard

[chrome 112.0.5615.49 MAC #0-0]

[chrome 112.0.5615.49 MAC #0-0] 3 passing (3.3s)

Spec Files: 1 passed, 1 total (100% completed) in 00:00:23

2023-04-17T23:08:11.666Z INFO @wdio/local-runner: Shutting down spawned worker

2023-04-17T23:08:11.918Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully

2023-04-17T23:08:11.919Z INFO @wdio/local-runner: shutting down

wdio-test's People

Contributors

satyaseela avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.