Save log with currrent project name
I need to save my test result (logs) with the project name .
Is there any way to get the current project name something like Project.Name to display
the project name in log through scripting .
I am executing multiple projects and need to save the test logs to some location .
I have written fucntion for saving the logs using Log.SaveResultsAs() , but problem is
with the name to give to each project log .
I want to read the current project name and pass this name as a parameter to the Save log function .
Solved! Go to Solution.
You can use Project.FileName
Tried with this option but it gives full path with project names .
I want exactly project name not full path .
Of course it returns the full name of the file (with path), but you can extract what you need using regular expression or by another way.
will give you the current project name.
SmartBear Documentation Team Lead
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Hi Helen Kosova,
Thanks for the solution , I got exactly what I want .