Saltar al contenido
Underc0de /foro

[SOLUCIONADO] Skipeo de test de prueba con cucumber

Iniciado por LoKogan, Septiembre 13, 2020, 04:46:26 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Avatar de LoKogan
Septiembre 13, 2020, 04:46:26 PM Ultima modificación: Septiembre 13, 2020, 10:54:24 PM por Gabriela
Estoy tratando de testear un proceso y me dice que no tengo los steps, siendo que los steps si están-



    Examples:

  @400
  Scenario Outline: Obtengo la imagen deseada                                   # src/test/resources/features/cat_Error.feature:14
    When realizo una petición 'GET' a 'ID' al endpoint de id - 'request/cat_id' # null
    Then obtengo el status code '400'                                           # null

There were undefined steps. You can implement missing steps with the snippets below:

When("realizo una petición {string} a {string} al endpoint de id - {string}", (String string, String string2, String string3) -> {
    // Write code here that turns the phrase above into concrete actions
    throw new cucumber.api.PendingException();
});

Then("obtengo el status code {string}", (String string) -> {
    // Write code here that turns the phrase above into concrete actions
    throw new cucumber.api.PendingException();
});

[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 2.698 s - in TestSuite
[INFO]
[INFO] Results:
[INFO]
[WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1
[INFO]
[WARNING] Could not delete temp directory C:\Users\Usuario\AppData\Local\Temp\surefire2089468695994048619 because Directory C:\Users\Usuario\AppData\Loc
al\Temp\surefire2089468695994048619 unable to be deleted.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  13.593 s
[INFO] ------------------------------------------------------------------------
"cmd" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

WhatsApp Telegram

2 respuestas

Avatar de ANTRAX
Hola @LoKogan

Tendrás el log completo?
Es decir en la parte en donde esta el trace? Porque esto que pegaste no tira mucha info que digamos.

Saludos.


Avatar de LoKogan
Ya logré resolverlo, tenía la clase de steps en otro package y no en el de steps, entonces no la encontraba

¿Te quedó una duda sobre Dudas y pedidos generales?

Preguntala y te responde la comunidad (y el asistente Underc0de IA si nadie llega antes). Es gratis y tarda un minuto.

Ya tengo cuenta
Guardamos tu pregunta en este navegador: después de entrar la publicás con un clic.
Grupo de WhatsApp