# Change name output and report

**URL:** <https://forum.robotframework.org/t/change-name-output-and-report/7510>\
**Category:** Robot Framework\
**Created:** [3 July 2024 10:45 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510 "2024-07-03T10:45:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian333](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Adrian333](https://forum.robotframework.org/u/Adrian333)\
**Post date:** [3 July 2024 10:45 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/1 "2024-07-03T10:45:57Z")

</div>

Hello,  
I tried to change the name of output and report files with a variable global and ride that the user write but y tried this and the name is ${name\_test\_user}.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/8/8c41985dc0cfd2f9dc7ea86eb6aff7502d487424.png)

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [3 July 2024 11:14 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/2 "2024-07-03T11:14:17Z")

</div>

Hi Adrian,

- Which application is this screenshot from?
- does it support this variable syntax?

`${name_test_user}` is not a valid variable on either the windows or \*nix (MacOS or Linux) command lines, so if the application you’re using just passes this value through to robot’s command line you would probably end up file called `${name_test_user}` if it worked at all.

I’m not aware of robot framework being able to evaluate these variables before the file is written, with the `--output ` this is especially unlikely as the file is probably opened for writing before the first line of the robot file is even processed.

I hope that helps?

Dave.

---

<div class="post-metadata">

**Author:** ![Adrian333](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Adrian333](https://forum.robotframework.org/u/Adrian333)\
**Post date:** [3 July 2024 11:20 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/3 "2024-07-03T11:20:29Z")

</div>

Hi dave, the screenshot is from RIDE in the ‘run’ tab

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [3 July 2024 11:31 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/4 "2024-07-03T11:31:26Z")

</div>

Hi Adrian,

OK I don’t use RIDE myself but one of the maintainers of RIDE (@HelioGuilherme66) frequents this forum so he should be able to help you soon.

Dave.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [3 July 2024 11:45 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/5 "2024-07-03T11:45:18Z")

</div>

Like @damies13 mentioned, you have to use variables defined at operating system level.  
If you have Windows, you can use: `%USERNAME%`  
On other **good** operating systems you can use: `$USER`

The Arguments field in RIDE is just the same as you would use in a command window/shell/terminal.

---

<div class="post-metadata">

**Author:** ![Adrian333](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Adrian333](https://forum.robotframework.org/u/Adrian333)\
**Post date:** [3 July 2024 11:53 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/6 "2024-07-03T11:53:27Z")

</div>

I’ve tried this %USERNAME% but as you can see it still doesn’t work. The variable is defined in a test case and then set as global.

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/f/f84adb59e28cbfb47ef43f96967f9aa755f155ef.png)

---

<div class="post-metadata">

**Author:** ![Adrian333](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Adrian333](https://forum.robotframework.org/u/Adrian333)\
**Post date:** [3 July 2024 11:54 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/7 "2024-07-03T11:54:27Z")

</div>

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/1/1ca5786d22b840b4c72633785d6737316a0b664c.png)

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [3 July 2024 12:03 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/8 "2024-07-03T12:03:33Z")

</div>

You did not read right what I wrote:  
It must use the syntax for the operating system, **exactly** as I wrote.  
And the arguments to robot are passed before knowing anything from the test case.  
Even if you define a variable to be in environment from inside the test case, it cannot be used in the arguments for `robot` because they were already processed.  
You can do that for another subsequent test case run.

---

<div class="post-metadata">

**Author:** ![Adrian333](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Adrian333](https://forum.robotframework.org/u/Adrian333)\
**Post date:** [3 July 2024 12:05 UTC](https://forum.robotframework.org/t/change-name-output-and-report/7510/9 "2024-07-03T12:05:27Z")

</div>

Ok thanks.
