⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diagsrv.script

📁 Software Testing Automation Framework (STAF)的开发代码
💻 SCRIPT
📖 第 1 页 / 共 2 页
字号:
.***************************************************************************.* Software Testing Automation Framework (STAF).* (C) Copyright IBM Corp. 2001.*.* This software is licensed under the Common Public License (CPL) V1.0. .****************************************************************************.*************************-START-OF-PROLOG-****************************.*.*  File Name          : DelaySrv SCRIPT.*  Descriptive Name   : Software Test Automation Framework Delay Service.*  Detail:.*.*     This file describes the STAF Delay Service.*.**************************-END-OF-PROLOG-*****************************:i1.diag service:ih1.services:i2.Diagnostics (DIAG) service:h2 id=diagsrv.Diagnostics (DIAG) Service:h3.Description:p.The Diagnostics service, called DIAG, is an internal STAF servicewhich lets you record and list diagnostics data.  It provides thefollowing commands::ul compact.:li.RECORD - Records diagnostics data in the diagnostics map and keepsa count of the number of times each unique trigger/source combinationis recorded:li.LIST - Displays diagnostics data that has been recorded ordisplays the operational settings (e.g. enabled or disabled) for theservice:li.RESET - Clears all data from the diagnostics map:li.ENABLE - Enables recording diagnostics data:li.DISABLE - Disables recording diagnostics data:li.HELP - Returns syntax information:eul.:p.The purpose of the DIAG service is to allow you to recorddiagnostics data consisting of a trigger and its source.  The numberof times each trigger/source combination occurs is accumulated bythe DIAG service.  You may list the trigger(s)/source(s) and theircounts, as well as clear all data from the diagnostics map.:note.The commands for the DIAG service and their result formats aresubject to change..*:ih1.service commands:ih2.RECORD:i3.Diagnostics (DIAG) service:h3.RECORD:p.RECORD writes diagnostics data (a trigger and its source) to adiagnostics map where a count is kept of the number of times eachunique trigger/source combination occurs.:note.You must enable diagnostics before you can record diagnosticsdata.:h4.Syntax:xmp.RECORD TRIGGER <Trigger> SOURCE <Source>:exmp.:p.:xph.TRIGGER:exph. specifies the trigger (event) that you wantto record in the diagnostics map.  You can specify anything forthe trigger, but we recommend that you don't specify a semi-colon (;)in the trigger to make it easier to parse the list output which usesa semi-colon to separate fields.  &varres.:p.:xph.SOURCE:exph. specifies information about the originator ofthe trigger.  It is also recorded in the diagnostics map.  For example,you may want to include the originating machine's name, handle, andhandle name.  &varres.:h4.Security:p.&seclvl. 3.:note.This command is only valid if submitted to the local machine,not to remote machines.:h4.Return Codes:p.All return codes from RECORD are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain no data on a successful return from aRECORD command.:h4.Examples:sl compact.:li.:hp2.Goal::ehp2.&nbsp; Record trigger "PROCESS QUERY" and "myApp;machinea.ibm.com"as the source of the trigger in the diagnostics map.:li.:hp2.Syntax::ehp2.&nbsp; :xph.RECORD TRIGGER "PROCESS QUERY" SOURCE "myApp;machinea.ibm.com":exph.:esl..*:ih1.service commands:ih2.LIST:h3 id=diagList.LIST:i3.Diagnostics (DIAG) service:p.LIST allows you to list all the information in the diagnostics map,or just the triggers or sources, or a particular trigger or source.It also allows you to list current operational settings.:h4.Syntax:xmp.LIST   <[TRIGGER <Trigger> | SOURCE <Source> | TRIGGERS | SOURCES]        [SORTBYCOUNT | SORTBYTRIGGER | SORTBYSOURCE]> |       SETTINGS:exmp.:p.If no options are specified (other than a :xph.SORTBY:exph. option),it will list all the trigger/source combinations that were recordedand the number of times each was recorded.:p.:xph.TRIGGER:exph. indicates you want to list all the sources forthe specified trigger and the number of times each source was recordedfor this trigger.  &varres.:p.:xph.SOURCE:exph. indicates you want to list all the triggers forthe specified source and the number of times each trigger was recordedfor this source.  &varres.:p.:xph.TRIGGERS:exph. indicates you want to list all the triggers thathave been recorded and the number of times they were recorded.:p.:xph.SOURCES:exph. indicates you want to list all the sources thathave been recorded and the number of times they were recorded.:p.:xph.SORTBYCOUNT:exph. specifies to sort the listing by count indescending order.  This is the default.:p.:xph.SORTBYTRIGGER:exph. specifies to sort the listing by trigger inascending order.:p.:xph.SORTBYSOURCE:exph. specifies to sort the listing by source inascending order.:p.:xph.SETTINGS:exph. indicate you want to list the current operationalsettings for the service.:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from LIST are documented in :hdref refid=retcode..:h4.Results:p.If successful, the result buffer will contain informationabout the :xph.LIST:exph. request based on the options specified: :p.:ul.:li.:xph.LIST:exph.:p.The result buffer for a :xph.LIST:exph. request (without specifying options:xph.TRIGGER, SOURCE, TRIGGERS, SOURCES, or SETTINGS:exph.) will contain amarshalled :xph.<Map&colon.STAF/Service/Diag/AllDiagInfo>:exph.representing the disagnostics information for all of the uniquetrigger/source combinations.The maps are defined as follows::table cols='* * 2* *'.:tcap.Definition of map class STAF/Service/Diag/AllDiagInfo:tnote text='Description'.This map class represents the diagnosticsinformation for all of the unique trigger/source combinations.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.fromTimestamp:c.From Date-Time:c.&stringObj. | &noneObj.:c.&timestampFormat.:row.:c.toTimestamp:c.To Date-Time:c.&stringObj.:c.&timestampFormat.:row.:c.elapsedTime:c.Elapsed Time:c.&stringObj. | &noneObj.:c.:xph.<[H]HH&colon.MM&colon.SS>:exph.:row.:c.numberOfTriggers:c.Number of Triggers:c.&stringObj.:c.:row.:c.numberOfSources:c.Number of Sources:c.&stringObj.:c.:row.:c.comboList:c.Trigger/Source Combinations:c.:xph.<List> of <Map&colon.STAF/Service/Diag/ComboCount>:exph.:c.:tnote text='Notes'.:ol compact.:li."From Date-Time" specifies the date/time that diagnosticswere first enabled or last reset, or &noneObj. if diagnostics have neverbeen enabled.:li."To Date-Time" specifies the date/time that diagnosticswere disabled or, if still enabled, the current time.:li."Elapsed Time" specifies the difference between the"From Date-Time" and the "To Date-Time" in hours,minutes, and seconds, or &noneObj. if diagnostics have never been enabled.:li."Number of Triggers" specifies the number of uniquetriggers that have been recorded.:li."Number of Sources" specifies the number of unique sourcesthat have been recorded.:li.See table :tref refid=diagComboCountTable. for the map class definition of:xph.<Map&colon.STAF/Service/Diag/ComboCount>:exph..:eol.:etnote.:etable.:table cols='* * * *' id=diagComboCountTable.:tcap.Definition of map class STAF/Service/Diag/ComboCount:tnote text='Description'.This map class represents a unique trigger/sourcecombination and a count of how many times it was recorded.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.trigger:c.Trigger:c.&stringObj.:c.:row.:c.source:c.Source:c.&stringObj.:c.:row.:c.count:c.Count:c.&stringObj.:c.:tnote text='Notes'."Count" specifies the number of times each trigger/sourcecombination has been recorded.:etnote.:etable.:p.:li.:xph.LIST TRIGGERS:exph.:p.The result buffer for a :xph.LIST TRIGGERS:exph. request will contain amarshalled :xph.<Map&colon.STAF/Service/Diag/TriggersInfo>:exph.representing the diagnostics information for all of the unique triggersthat have been recorded.The maps are defined as follows::table cols='* * 2* *'.:tcap.Definition of map class STAF/Service/Diag/TriggersInfo:tnote text='Description'.This map class represents the diagnosticsinformation for all of the unique triggers that have been recorded.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.fromTimestamp:c.From Date-Time:c.&stringObj. | &noneObj.:c.&timestampFormat.:row.:c.toTimestamp:c.To Date-Time:c.&stringObj.:c.&timestampFormat.:row.:c.elapsedTime:c.Elapsed Time:c.&stringObj. | &noneObj.:c.:xph.<[H]HH&colon.MM&colon.SS>:exph.:row.:c.numberOfTriggers:c.Number of Triggers:c.&stringObj.:c.:row.:c.triggerList:c.Triggers:c.:xph.<List> of <Map&colon.STAF/Service/Diag/TriggerCount>:exph.:c.:tnote text='Notes'.:ol compact.:li."From Date-Time" specifies the date/time that diagnosticswere first enabled or last reset, or &noneObj. if diagnostics have neverbeen enabled.:li."To Date-Time" specifies the date/time that diagnosticswere disabled or, if still enabled, the current time.:li."Elapsed Time" specifies the difference between the"From Date-Time" and the "To Date-Time" in hours,minutes, and seconds, or &noneObj. if diagnostics have never been enabled.:li."Number of Triggers" specifies the number of uniquetriggers that have been recorded.:li.See table :tref refid=diagTriggerCountTable. for the map class definition of:xph.<Map&colon.STAF/Service/Diag/TriggerCount>:exph..:eol.:etnote.:etable.:table cols='* * * *' id=diagTriggerCountTable.:tcap.Definition of map class STAF/Service/Diag/TriggerCount:tnote text='Description'.This map class represents a triggerand a count of how many times it was recorded.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.trigger:c.Trigger:c.&stringObj.:c.:row.:c.count:c.Count:c.&stringObj.:c.:tnote text='Notes'."Count" specifies the number of times a trigger has been recorded.:etnote.:etable.:p.:li.:xph.LIST SOURCES:exph.:p.The result buffer for a :xph.LIST SOURCES:exph. request will contain amarshalled :xph.<Map&colon.STAF/Service/Diag/SourcesInfo>:exph.representing the diagnostics information for all of the unique sourcesthat have been recorded.The maps are defined as follows::table cols='* * 2* *'.:tcap.Definition of map class STAF/Service/Diag/SourcesInfo:tnote text='Description'.This map class represents the diagnosticsinformation for all of the unique sources that have been recorded.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.fromTimestamp:c.From Date-Time:c.&stringObj. | &noneObj.:c.&timestampFormat.:row.:c.toTimestamp:c.To Date-Time:c.&stringObj.:c.&timestampFormat.:row.:c.elapsedTime:c.Elapsed Time:c.&stringObj. | &noneObj.:c.:xph.<[H]HH&colon.MM&colon.SS>:exph.:row.:c.numberOfSources:c.Number of Sources:c.&stringObj.:c.:row.:c.sourceList:c.Sources:c.:xph.<List> of <Map&colon.STAF/Service/Diag/SourceCount>:exph.:c.:tnote text='Notes'.:ol compact.:li."From Date-Time" specifies the date/time that diagnosticswere first enabled or last reset, or &noneObj. if diagnostics have neverbeen enabled.:li."To Date-Time" specifies the date/time that diagnosticswere disabled or, if still enabled, the current time.:li."Elapsed Time" specifies the difference between the"From Date-Time" and the "To Date-Time" in hours,minutes, and seconds, or &noneObj. if diagnostics have never been enabled.:li."Number of Sources" specifies the number of uniquesources that have been recorded.:li.See table :tref refid=diagSourceCountTable. for the map class definition of:xph.<Map&colon.STAF/Service/Diag/SourceCount>:exph..:eol.:etnote.:etable.:table cols='* * * *' id=diagSourceCountTable.:tcap.Definition of map class STAF/Service/Diag/SourceCount:tnote text='Description'.This map class represents a sourceand a count of how many times it was recorded.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.source:c.Source:c.&stringObj.:c.:row.:c.count:c.Count:c.&stringObj.:c.:tnote text='Notes'."Count" specifies the number of times a source has been recorded.:etnote.:etable.:p.:li.:xph.LIST TRIGGER <Trigger>:exph.:p.The result buffer for a :xph."LIST TRIGGER <Trigger>":exph. requestwill contain a marshalled:xph.<Map&colon.STAF/Service/Diag/TriggerInfo>:exph.representing the diagnostics information for the unique sourcesthat have been recorded for the specified trigger.The maps are defined as follows::table cols='* * 2* *'.:tcap.Definition of map class STAF/Service/Diag/TriggerInfo:tnote text='Description'.This map class represents the diagnosticsinformation for the specified trigger.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.fromTimestamp:c.From Date-Time:c.&stringObj. | &noneObj.:c.&timestampFormat.:row.:c.toTimestamp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -