Unique ID of a Test:

General chat about HostMonitor
Post Reply
mos-eisley
Posts: 76
Joined: Wed Mar 21, 2007 5:51 am
Location: Klarup (AAlborg), Demark

Unique ID of a Test:

Post by mos-eisley »

Hi,

I am looking at the description of the %TestID% macro:

"Represents unique ID of the test. TestID is always unique within an HML file"

Does this mean that:

1. The ID is a constant for each test in the tree

or

2. A sequencenumber for each test done, like 1,2,3,4 ......n

What I am looking for is binding a test entry (one single performed test) together with an SMS sendt, the performance of the test makes an entry in my database, and a action on the test also makes and entry in my database, so I want a "key" to say, this test spawned this SMS.

Hope that this is understandable(?)
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Unique ID of a Test:

Post by KS-Soft Europe »

mos-eisley wrote:1. The ID is a constant for each test in the tree
Correct.
When you create a test, HostMonitor assigns unique number to the test - TestID. This number represents the test until the test will be deleted. Unlike TestName, you cannot change TestID.
mos-eisley wrote:What I am looking for is binding a test entry (one single performed test) together with an SMS sendt, the performance of the test makes an entry in my database, and a action on the test also makes and entry in my database, so I want a "key" to say, this test spawned this SMS.
Performed test does not have the sequence ID and TestID does not represent the sequence of the performed tests. Probably, you may use other statistical information, like: %TotalTests%, %FailedCnt%, %PassedCnt%, etc.

Regards,
Max
Post Reply