Skip to content

Substitute variables in step title in report #267

Closed

Description

@asos-neilsyrett

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

Activity

  1. galmicrosoft commented on Aug 22, 2018

    @galmicrosoft

    Seems to work when using it like this:

    [Given]
    [StepTitle("I create a customer with {0} addresses", includeInputsInStepTitle: false)]
    public void GivenICreateACustomerWithAddresses(int addressCount)
    { }
    
  2. added theissue type on Oct 26, 2025
  3. SonOfSardaar commented on May 26, 2026

    @SonOfSardaar
    Contributor

    fixed by #296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions