私は2日以来これと戦ってきました。私のテストは合格と表示されますが、テストはセルニウムのwebdriverテストのためにキュウリ+ javaで実行されていません。コンソールでは、私はまた、プロジェクトシナリオを取得し、Javaでキュウリで未定義のステップ
のディレクトリ構造と機能のファイルのスクリーンショットを添付すれば、以下の通りランナークラス
package stepDefinition;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
monochrome=true,
features = "src/main/resources/feature",
glue="src/test/java/stepDefinition",
tags={"@tag2"},
dryRun = false)
public class TestRunner {
}
1 Scenarios (1 undefined)
4 Steps (4 undefined)
0m0.000s
You can implement missing steps with the snippets below:
@Given("^User navigate to shopping page$")
public void user_navigate_to_shopping_page() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^user enters data$")
public void user_enters_data() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@When("^clicks on search button$")
public void clicks_on_search_button() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
@Then("^product should be displayed$")
public void product_should_be_displayed() throws Throwable {
// Write code here that turns the phrase above into concrete actions
throw new PendingException();
}
は私が書いたメッセージ次
される取得しています[![Feature: Checking Functionality
This is a demo test
@tag2
Scenario: Test Login
Given User navigate to shopping page
When user enters data
And clicks on search button
Then product should be displayed
/testブランチの下で機能を移そうとしましたか?また、intelliJでは、モジュールの設定やテストフォルダ、コードフォルダのマークを設定することができますが、Eclipseには同じことがありますか? – Morvader
私はフィーチャーファイルをテストしましたが役に立たなかった:(私はあなたの2番目の質問についてはわかりません –