Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

76
Vistas
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

7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos