- WebdriverIO - Discussion
- WebdriverIO - Useful Resources
- WebdriverIO - Quick Guide
- Generate HTML reports from Allure
- Execute Tests with Mocha Options
- Running Tests from command-line parameters
- WebdriverIO - Data Driven Testing
- WebdriverIO - Running Tests in Parallel
- WebdriverIO - Waits
- WebdriverIO - JavaScript Executor
- WebdriverIO - Capturing Screenshots
- WebdriverIO - Debugging Code
- WebdriverIO - Alerts
- WebdriverIO - Scrolling Operations
- WebdriverIO - Multiple Windows/Tabs
- Chai Assertions on webelements
- WebdriverIO - Handling Radio Buttons
- WebdriverIO - Cookies
- WebdriverIO - Double Click
- WebdriverIO - Drag & Drop
- WebdriverIO - Frames
- WebdriverIO - Hidden Elements
- Handling Child Windows/Pop ups
- WebdriverIO - Mouse Operations
- Handling Checkboxes & Dropdowns
- WebdriverIO - Browser Navigation Commands
- WebdriverIO - Handling Browser Size
- WebdriverIO - General Browser Commands
- WebdriverIO - Happy Path Flow
- Expect Statement for Assertions
- WebdriverIO - Name Locator
- WebdriverIO - Class Name Locator
- WebdriverIO - Tag Name Locator
- WebdriverIO - ID Locator
- WebdriverIO - Link Text Locator
- WebdriverIO - CSS Locator
- WebdriverIO - Xpath Locator
- WebdriverIO - Wdio.conf.js file
- WebdriverIO - VS Code Intellisense
- WebdriverIO - Configuration File generation
- Selenium Standalone Server Installation
- WebdriverIO - Mocha Installation
- WebdriverIO - Package.json
- WebdriverIO - VS Code Installation
- WebdriverIO - Installation of NPM
- WebdriverIO - Getting Started with NodeJS
- WebdriverIO - Architecture
- WebdriverIO - Prerequisite
- WebdriverIO - Introduction
- WebdriverIO - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Execute Tests with Mocha Options
缩略语 IT/2008/6。
页: 1 DESCRIBE、BLOCK 和 2. 幸福道路与网络连接
页: 1
∗∗∗∗∗∗∗
<> > > > > > > > > > > > > > > > > > > > > > >
> >>>> > > ><>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
> > > > > ><>>> > > > > > > > > > > > > > > > >
>>>> ∗∗∗∗
<>>>>> >>> >>> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
<>>5>>>>>> ><>>>>>>>> > > > > ><>>>>> > ><<>>>>>> > > > > > > ><>>>>>>>>>> >>>>>> >>>>>>> >>>> >>> > >>>>>>>>>>>>>>>>>>>>> > > ><>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<> ><>>>>> ><>>>><>>>>>>>>>>>>><>><>>>>>>>>>>>>>>>>>>>>>>>><>>><>>>>>>>>>>>>>>><>>>><>>>>>>>>>>>>>><>>>>>><>>>>>>>>>><>>>>>>>>>>>>>>>>><>>>>>>>>>><>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//import chai pbrary const c = require( chai ).expect //pbrary for parsing JSON file const s =require( fs ) let h = JSON.parse(s.readFileSync( test/testData/test1.json )) // test suite name describe( Tutorialspoint apppcation , function(){ //iterate the test case h.forEach( ({email,password}) =>{ //test case it( Data Driven testing , function(){ // launch url browser.url( https://www.pnkedin.com/login ) //identify the email field then enter key - email $("#username").setValue(email) //identify password field then enter key - password $("#password").setValue(password) //identify SSign in button then cpck $("button[type= submit ]").cpck() //verify error message const e = $( #error-for-password ) console.log(e.getText() + - Error Text ) //verify Alert text with Chai assertion c(e.getText()).to.equal("The password must be provided.") }); }); // it is blocked with Smoke keyword it( Identify element with Id - Smoke , function(){ // launch url browser.url( https://the-internet.herokuapp.com/redirector ) //identify element with id then cpck $("#redirect").cpck() //obtain page title console.log( Page title after cpck: + browser.getTitle()) }); // it block with Smoke keyword it( Identify element with Tagname - Smoke , function(){ // launch url browser.url( https://www.tutorialspoint.com/about/about_careers.htm ) //identify element with tagname then obtain text console.log($("<h1>").getText() + " - is the text.") }); //test case it( Identify element with Class Name , function(){ // launch url browser.url( https://www.tutorialspoint.com/about/about_careers.htm ) //identify element with Class Name then obtain text console.log($(".heading").getText() + " - is the text.") }); });
成员:星期二 内容提要
npx wdio run wdio.conf.js --mochaOpts.grep Smoke
成员:星期二 内容提要
成员:星期二 内容提要
成员:星期二 内容提要
Advertisements