IntelliJBehave icon indicating copy to clipboard operation
IntelliJBehave copied to clipboard

Composite Steps not being found

Open vgarmash opened this issue 9 years ago • 1 comments

JBehave has a feature called Composite Steps. I tried to use it but my IntelliJ Idea plugin shows my composite steps as not found. See the screenshot:

2016-02-22 12-06-29 login story - webtests - ideaprojects webtests

Here is the code (3 steps in the beginning are part of one composite step):

login.story

Scenario: Should be able to successfully register on website
Meta:
@scenario Registration
Given I am new to the website
Given I want to register for a user account
When I go to the registration form
And I complete all the required registration details correctly
Then I will be registered on the website
And I will be automatically logged in

LoginJbSteps.java

@Given("I am at the registration page")
    @Composite(steps = {"Given I am new to the website",
            "Given I want to register for a user account",
            "When I go to the registration form"})
    @net.thucydides.core.annotations.Pending
    public void goToRegistrationPage() {
        loginSrnSteps.openRegistrationPage();
    }

vgarmash avatar Feb 22 '16 17:02 vgarmash

Hi @vgarmash , feel free to contribute this change to the plugin as many contributers have stopped working on this plugin or don't have a lot of time. See the readme on how to setup the development environment.

JenoDK avatar Mar 04 '19 22:03 JenoDK