# Override "Name" when publishing result

**URL:** <https://forum.opentap.io/t/override-name-when-publishing-result/2160>\
**Category:** General\
**Created:** [October 3, 2024, 3:17pm UTC](https://forum.opentap.io/t/override-name-when-publishing-result/2160 "2024-10-03T15:17:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_B](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Jim\_B](https://forum.opentap.io/u/Jim_B)\
**Post date:** [October 3, 2024, 3:17pm UTC](https://forum.opentap.io/t/override-name-when-publishing-result/2160/1 "2024-10-03T15:17:03Z")

</div>

Hi, I’m wondering if this is as intended, and if so is there a way to do what I’m trying to?

I have created a type results that should match a specific string value (which has a display attribute set to “StringValue”). In a test step, if I call `Results.Publish(someResult)` where someResult is that type the the CSV result listener outputs something like this:

| Name | StepDuration | PlanName | ResultType | Result | Expected |
| --- | --- | --- | --- | --- | --- |
| MyStepName | 0.0079539 | TestPlanName | String Value | ResultString | ExpectedString |

I use this multiple times throughout a test plan and have the CSV listener configured wth a path of `Results/<PN>_<DUT ID>_<ResultName>_<Date>_<Verdict>.csv`. I landed on this format because using “ResultType” rather than “ResultName” results in a file with “TBD” in the name.

This normally works fine for my use case, but now I am trying to create a TestStep that publishes multiple results and I’m trying to figure out if it is possible to override the “Name” column. Calling `Results.Publish("MyIntendedName", someResult)` results in a CSV file with these contents:

| Name | StepDuration | PlanName | ResultType | Result | Expected |
| --- | --- | --- | --- | --- | --- |
| MyStepName | 0.0266622 | TestPlanName | MyIntendedName | ResultString | ExpectedString |

Rather than overriding the “name” column, the “name” parameter in the Publish method changes the contents of the Result Type column. **In addition** , it also appears to affect the ResultName macro string so now each of these results is stored in a different file rather than being appended to the existing file for results of that type.

Is there a way to accomplish what I am trying to, which is to override the step name in the “Name” column?
