Test ID

Need new test, action, option? Post request here.
Post Reply
gdvl
Posts: 103
Joined: Thu Apr 04, 2002 6:00 pm
Location: Belgium
Contact:

Test ID

Post by gdvl »

Alex,

Cause it's possible to use the same name for two differents tests, I think there is a unique ID to represent each test. Is this ID available in a macro, so I can use in in our logging DB.
Now, I loose the connection with previous records when a test is renamed.

Regards,
Gert
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are right, each test has unique ID. If you need macro variable that represent this ID, download update (www.ks-soft.net/download/hm411.zip) and use %TestID% macro.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Is this ID unique like a database primary key or just for the current settings. In other words, if a test is deleted can the ID be used by another test?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

When you delete a test and create new one, new test will have another ID.
But if you delete a test, save changes and reload HostMonitor (or HML file), new test may have the same ID.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

Most ideal would be an ID that is never reused when the test is deleted. It wil prevent conflicts with historical logging..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Agree, but we never published ID before. So there was no any difference how ID assigned by HostMonior.
To change this mechanism now we need to change (a little) HML file format. I think we will do that but when we will have one more reason (e.g. new test method will be implemented).
BTW internal IDs that HostMonitor uses for report profiles, mail profiles, alerts, etc always unique.

Regards
Alex
User avatar
Marcus
Posts: 367
Joined: Mon Nov 18, 2002 6:00 pm

Post by Marcus »

OK, since you have some time now :wink:

Is it also possible to create an export mechanism to export ID and Testname to a seperate SQL table?? By this I mean a HostMonitor function which wil update a SQL table when a test name is changed?

It would be a start for the database part of the following discussion: Suggestions for improvements
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sounds familiar. I remember we already talked about HostMonitor and ODBC tables instead of HML files; different modules, distributed monitoring... Must be very useful for huge corporations but I don't think it will be implemented in version 4. More likely in version 5

Regards
Alex
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Ok, now each test has unique ID that is never reused within HML file.
There is unofficial update at www.ks-soft.net/download/hm411.zip

Regards
Alex
Igorek
Posts: 47
Joined: Wed Jul 06, 2005 8:55 pm
Location: Russia

Post by Igorek »

Marcus wrote:Is it also possible to create an export mechanism to export ID and Testname to a seperate SQL table?? By this I mean a HostMonitor function which wil update a SQL table when a test name is changed?
I vote
Post Reply