behave icon indicating copy to clipboard operation
behave copied to clipboard

Allow Context to be used in step names and text

Open luto opened this issue 4 years ago • 3 comments

Insert the data inside context into step names and texts, so they can be used like variables from Scenario Outlines. Refer to the included docs for details.

If you'd like anything implemented differently, just tell me. I am happy to adapt this to your liking.

luto avatar May 12 '20 13:05 luto

I am not quite sure if I can accept the PR as it is right now.

No worries! I am happy to rework this, so it meets your standards :)

What happens if the referenced context variable does not exist ?

I'd say we error and abort in that case. What do you think?

It would be cleaner to distinguish between both, like using ctx:context_variable_name or context:context_variable_name to specify that the placeholder should be retrieved from the context stack.

Fine by me! @bittner does that work for you too?

luto avatar Dec 05 '20 12:12 luto

Fine by me! @bittner does that work for you too?

I would prefer if you replied to my comments directly. Jens' comments are Jens', mine are mine.

bittner avatar Dec 05 '20 12:12 bittner

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 26 '21 03:06 stale[bot]