Macro variable for parent folders

Need new test, action, option? Post request here.
Post Reply
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

Macro variable for parent folders

Post by Kapz »

Hi !

The new %Folder% variable that can be used in a tests name is great -however I would like to know if it can be extended so that parent folder names used higher in the tree can be used as well ?

Example:

When I setup a new server in HM I use the following schema (sorry for the formatting, hope you get the idea anyway :wink: ):

Root
|--- Joe the plummers Company
.............|----- JoeServer01
......................|----------- Drives
......................|----------- Processes
......................|----------- Services
........................................|-------------------- JoeServer01 Print Spooler Service
......................|----------- ... and so on

A test placed in the 'Services' folder would have the name 'JoeServer01 Print Spooler Service' when entered manually as we are used to.

If I use the new macro %Folder% in my test it will end up having the name 'Services Print Spooler Service' because the parent folder for this test is called "Services" where I actually needed the name "JoeServer01".

This could perhaps be solved by a macro called e.g. %ParentFolderX% where %ParentFolder1% would be "Services", %ParentFolder2% would be "JoeServer01" and so forth.

I hope that this could be taken into consideration.

Thanks in advance !

/Kasper

PS - I acknowledge that I could create a user defined macro fvar_ServerName with the value "JoeServer01" on the folder 'Services' and use this variable in the test name, but I think this goes against the idea of having templates that one shouldn't have to fiddle to much with when used with a new server.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I am not sure we will do that :roll: At least not in version 7

Regards
Alex
Kapz
Posts: 216
Joined: Mon Dec 06, 2004 2:33 pm
Location: Denmark

Post by Kapz »

Alex,

> I am not sure we will do that At least not in version 7
Okay, I can live with that. :wink: - although I think it seriously limits the way that users can organize their tree structure.

/Kasper
User avatar
greyhat64
Posts: 246
Joined: Fri Mar 14, 2008 9:10 am
Location: USA

Post by greyhat64 »

Agreed. There's always room for improvement! But why did you have to bring politics into this forum :wink: Joe is WAY past his 15min of fame.
Post Reply