|
View previous topic :: View next topic |
Author |
Message |
rasc
Joined: 11 Oct 2009 Posts: 95
|
Posted: Fri Nov 23, 2012 10:45 am Post subject: create folders when doing File | Import from Textfile |
|
|
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! |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Nov 23, 2012 2:10 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
rasc
Joined: 11 Oct 2009 Posts: 95
|
Posted: Fri Nov 23, 2012 2:17 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|