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

0

83
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

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

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.