• Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

82
Views
Webdriverio: How to stop execution on a failed step cucumber page object model

I am implementing cucumber page object model with webdriverio. I need to stop the execution when a step fails.

Feature:
Given user login with <username> and <password>--- first page
And user selects configuration ---second page
And user perform some action--- third page

When I give invalid credentials code is not exiting immediately instead it's waiting to execute the next steps. I am getting the below error

Error: function timed out, ensure the promise resolves within 120000 milliseconds at Timeout. (C:\DEV\ftm_webdriverio\node_modules@cucumber\cucumber\lib\time.js:60:20) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7)

I need to exit the code instead of waiting for the steps to execute. Appreciate any insights. Thanks

9 months ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.