Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add functionality which can execute cucumber steps from code #653

Closed
pavlo-kartavkin opened this issue Dec 1, 2021 · 2 comments

Comments

@pavlo-kartavkin
Copy link

pavlo-kartavkin commented Dec 1, 2021

Hello everyone. It would be very useful to have such feature

And('Step name 1', () => {logic});
And('Step name 2', () => {logic});
And('Step name 3', () => {logic});

And('My big step which uses logic from previous steps', () => {
...
//it would be perfect to have the following function, something like:
cucumber.executeStep('Step name 1');
cucumber.executeStep('Step name 2');
cucumber.executeStep('Step name 3');
.......
});

@pavlo-kartavkin pavlo-kartavkin changed the title Feature Request - add functionality which can execute cucumber steps from code [Feature Request] - add functionality which can execute cucumber steps from code Jan 21, 2022
@pavlo-kartavkin pavlo-kartavkin changed the title [Feature Request] - add functionality which can execute cucumber steps from code [Feature Request] Add functionality which can execute cucumber steps from code Jan 21, 2022
@amitguptagwl
Copy link

@pavlo-kartavkin What would be the advantage of doing that. You can probably create 3 functions to achieve it;

And('Step name 1', func1 );
And('Step name 2', func2 );
And('Step name 3', func3 );

And('My big step which uses logic from previous steps', () => {
...
//it would be perfect to have the following function, something like:
func1();
func2();
func3();
.......
});

@badeball
Copy link
Owner

Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.

Read more about the transfer of ownership here.

The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants