create folders when doing File | Import from Textfile

Need new test, action, option? Post request here.
Post Reply
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

create folders when doing File | Import from Textfile

Post by rasc »

Hi,

as mentioned in another thread I see it as a viable option to edit many items at once (if the GUI doesn't allow it like for parameters of 'External Test') to export to text, then edit by notepad, the delete 'original' tests, then re-import.
Unfortunately import throws errors if folder structure does not (no longer) exist.

Could you please create the necessary folders while importing from text (sometimes the user had a thought when checking the 'include folder information' box while exporting ;) )

Thank you!
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We don't think DestFolder or DefaultFolder parameters should create folders.
There are special command for this CreateFolder
-------------
CreateFolder = Root\USA Branch\Support\part2\
; creates new folder(s). The value of this parameter should specify the full
; path to the folder that you want to create.
; E.g. CreateFolder = Root\USA Branch\Support\part2\ will successively create
; folders USA Branch (in the Root folder), Support (in USA Branch subfolder)
; and part2 (in Support subfolder). Of course if some (or all) of specified
; folders already exist, HostMonitor will not create second copy of them.
-------------

Why do you remove folders before import procedure?
Usually this is bad idea because even if you create new folder structure automatically using Import file or HM Script, you will not be able to restore folder settings: variables, reports, GUI settings, etc.

If you want to change test parameters, I think its better to use "ImportMode = Modify" command without removing test items and especially without removing folders.
---------------------
; - ImportMode = Modify - in this mode application adds new test if
; the test with specified name doesn't exist in the folder. Otherwise,
; HostMonitor replaces the test settings by those provided in the imported
; file. Statistical information (dead ratio, alive ratio, etc) is kept intact;
; - ImportMode = Replace - adds new test if the test with provided name
; doesn't exist in the specified folder. Otherwise, HostMonitor replaces
; the test settings with the settings that are specified in the imported
; file and resets all statistical information (similar to the effect of
; complete removing of an old test and then creating the new one instead.
---------------------

Regards
Alex
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

Post by rasc »

KS-Soft wrote:Why do you remove folders before import procedure
Well, Alex, because I do not "know it better" :)

Besides it was a good idea to support my 'modify externally using notepad' idea. Wasn't it?
Post Reply