Closed oscarintherocks closed 1 year ago
Thanks for reporting this bug. I am able to reproduce it and we will work on a fix for a future release.
After some tests, this is only affecting Windows test cases creation but not Linux test cases where the artifact variable is converted as expected.
This was fixed in ce-8.5.1. Sorry for the delay in updating this issue.
Describe the bug When you create a new test using artifacts and assigning a variable to them and then using this variable in the script configuration, if you click on preview you can see the converted value of the variable but after building the EXE file, the PS1 script generated inside the exe shows the variable name and not the converted value.
To Reproduce Steps to reproduce the behavior:
Script configuration
. ".\#{ppid_spoof2}" $ppid=Get-Process #{parent_process_name} | select -expand id PPID-Spoof -ppid $ppid -spawnto "#{spawnto_process_path}" -dllpath ".\#{calc_dll2}"
Script preview mode. ".\PPID-Spoof.ps1" $ppid=Get-Process explorer | select -expand id PPID-Spoof -ppid $ppid -spawnto "C:\Program Files\Internet Explorer\iexplore.exe" -dllpath ".\calc.dll"
Final ps1 file contents Standard variables are converted but not artifact variables. ".\#{ppid_spoof2}" $ppid=Get-Process explorer | select -expand id PPID-Spoof -ppid $ppid -spawnto "C:\Program Files\Internet Explorer\iexplore.exe" -dllpath ".\#{calc_dll2}"
Expected behavior I expect all variables are converted in final script as shown in preview
Desktop (please complete the following information):