Я написал свой первый файл функций огурца. Когда я запускаю файл функции как функцию Cucumber, я получаю следующие ошибк ⇐ JAVA
Я написал свой первый файл функций огурца. Когда я запускаю файл функции как функцию Cucumber, я получаю следующие ошибк
cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
0 Scenarios
0 Steps
0m0.014s
I'm not getting snippets for my steps.
Exception in thread "main" io.cucumber.core.exception.CompositeCucumberException: There were 2 exceptions. The details are in the stacktrace below.
at io.cucumber.core.runtime.RethrowingThrowableCollector.getThrowable(RethrowingThrowableCollector.java:57)
and my login feature file
Feature: Login
Scenario: Successful Login with valid credentials
Given User Launch Chrome browser
When User Opens URL "http://admin-demo.nopcommerce.com/login"
And User enters email as "[email protected]" and Password as "admin"
And Click on Login
Then Page Title Should be "Dashboard / nopcommerce administration"
When User Click on Log out Link
Then Page Title should be "Your store. Login"
And Close browser
I have added all necessary dependencies in pom.xml
like
cucumber-core
cucumber-html
cobertura
cucumber-java
cucumber-junit
cucumber-jvm-deps
cucumber-reporting
hamcrest-core
gherkin
selenium-Java
Junit
Источник: https://stackoverflow.com/questions/781 ... file-as-cu
cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
0 Scenarios
0 Steps
0m0.014s
I'm not getting snippets for my steps.
Exception in thread "main" io.cucumber.core.exception.CompositeCucumberException: There were 2 exceptions. The details are in the stacktrace below.
at io.cucumber.core.runtime.RethrowingThrowableCollector.getThrowable(RethrowingThrowableCollector.java:57)
and my login feature file
Feature: Login
Scenario: Successful Login with valid credentials
Given User Launch Chrome browser
When User Opens URL "http://admin-demo.nopcommerce.com/login"
And User enters email as "[email protected]" and Password as "admin"
And Click on Login
Then Page Title Should be "Dashboard / nopcommerce administration"
When User Click on Log out Link
Then Page Title should be "Your store. Login"
And Close browser
I have added all necessary dependencies in pom.xml
like
cucumber-core
cucumber-html
cobertura
cucumber-java
cucumber-junit
cucumber-jvm-deps
cucumber-reporting
hamcrest-core
gherkin
selenium-Java
Junit
Источник: https://stackoverflow.com/questions/781 ... file-as-cu
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Ошибка @RunWith(Cucumber.class). Импорт огурца.api.junit.Cucumber; не может быть решено
Anonymous » » в форуме JAVA - 0 Ответы
- 33 Просмотры
-
Последнее сообщение Anonymous
-
-
-
@Runwith (cucumber.class) ошибка. Импорт Cucumber.api.junit.cucumber; не может быть решено
Anonymous » » в форуме JAVA - 0 Ответы
- 32 Просмотры
-
Последнее сообщение Anonymous
-
-
-
@Runwith (cucumber.class) ошибка. Импорт Cucumber.api.junit.cucumber; не может быть решено
Anonymous » » в форуме JAVA - 0 Ответы
- 6 Просмотры
-
Последнее сообщение Anonymous
-
-
-
@Runwith (cucumber.class) ошибка. Импорт Cucumber.api.junit.cucumber; не может быть решено
Anonymous » » в форуме JAVA - 0 Ответы
- 7 Просмотры
-
Последнее сообщение Anonymous
-