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

Calling other step from steps definition #292

Closed
h2non opened this issue Jan 4, 2015 · 7 comments
Closed

Calling other step from steps definition #292

h2non opened this issue Jan 4, 2015 · 7 comments

Comments

@h2non
Copy link

h2non commented Jan 4, 2015

I know that's possible in the Ruby implementation, but how is that programmatically possible in the JavaScript implementation?

Getting the Cucumber AST scenario/step instance is possible from step definitions or hooks?

@h2non h2non changed the title Calling steps from steps Calling step from steps Jan 4, 2015
@h2non h2non changed the title Calling step from steps Calling other steps from step definition Jan 4, 2015
@h2non h2non changed the title Calling other steps from step definition Calling other step from steps definition Jan 4, 2015
@jbpros
Copy link
Member

jbpros commented Jan 6, 2015

It's not possible in Cucumber.js. See #11.

This is an issue tracker. Please use the cukes group for support.

@jbpros jbpros closed this as completed Jan 6, 2015
@h2non
Copy link
Author

h2non commented Jan 6, 2015

And there are no plans to support it in the future? It's a really missing feature from Cucumber's Ruby.
Maybe exposing the AST instance in the World inherited scope in order to be also available from the steps would be a reasonable solution

@hackhat
Copy link

hackhat commented Feb 26, 2015

Hy! I've created a lib which does exactly what you are asking (call a step from another step), take a look here: https://github.com/hackhat/cucumber-pro
Feedback is welcome!

@h2non
Copy link
Author

h2non commented Feb 26, 2015

Cool! Thanks for sharing. I'll take a look

@bmsoko
Copy link

bmsoko commented Oct 29, 2015

@hackhat this seems to be awesome! can this be integrated or used with Protractor?
Thanks!

@hackhat
Copy link

hackhat commented Oct 29, 2015

@bmsoko I don't know much about Protractor.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants