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

Substitute variables in step title in report #267

Open
asos-neilsyrett opened this issue Jul 17, 2018 · 1 comment
Open

Substitute variables in step title in report #267

asos-neilsyrett opened this issue Jul 17, 2018 · 1 comment

Comments

@asos-neilsyrett
Copy link

I have a method that looks like this:

[Given("I create a customer with {0} addresses")]
public void GivenICreateACustomerWithAddresses(int addressCount)
{ }

The report shows this as:
Given I create a customer with addresses 5

I would expect the variable value to be substituted into the step title and look like this:
Given I create a customer with 5 addresses

@galmicrosoft
Copy link

Seems to work when using it like this:

[Given]
[StepTitle("I create a customer with {0} addresses", includeInputsInStepTitle: false)]
public void GivenICreateACustomerWithAddresses(int addressCount)
{ }

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

2 participants