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

📄 procsrv.script

📁 Software Testing Automation Framework (STAF)的开发代码
💻 SCRIPT
📖 第 1 页 / 共 5 页
字号:
:c.pid:c.PID:c.&stringObj.:c.:row.:c.startTimestamp:c.Start Date-Time.br(Start D-T):c.&stringObj.:c.&timestampFormat.:row.:c.endTimestamp:c.End Date-Time.br(End D-T):c.&stringObj. | &noneObj.:c.&timestampFormat.:row.:c.rc:c.Return Code.br(RC):c.&stringObj | &noneObj.:c.:tnote text='Notes'.:ol compact.:li.The "PID" value will contain the process id assigned by the operating system.:li.The value for "End Date-Time" and "Return Code" will be &noneObj. ifthe process is still running.:eol.:etnote.:etable.:p.:li.If option :xph.SETTINGS:exph. is specified, the result buffer will containa marshalled :xph.<Map&colon.STAF/Service/Process/Settings>:exph.representing the current settings for the Process service.The map is defined as follows::table cols='* * * *'.:tcap.Definition of map class STAF/Service/Process/Settings:tnote text='Description'.This map class represents the operationalsettings for the Process service.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.defaultStopUsing:c.Default Stop Using Method:c.&stringObj.:c.:row.:c.defaultConsoleMode:c.Default Console Mode:c.&stringObj.:c.:xph.'New' | 'Same':exph.:row.:c.defaultFocus:c.Default Focus:c.&stringObj.:c.:xph.'Background' | 'Foreground' | 'Minimized':exph.:row.:c.processAuthMode:c.Process Auth Mode:c.&stringObj.:c.:row.:c.defaultAuthUsername:c.Default Auth Username:c.&stringObj. | &noneObj.:c.:row.:c.defaultAuthPassword:c.Default Auth Password:c.&stringObj. | &noneObj.:c.&maskPrivate.:row.:c.defaultAuthDisabledAction:c.Default Auth Disabled Action:c.&stringObj.:c.:xph.'Ignore' | 'Error':exph.:row.:c.defaultShell:c.Default Shell:c.&stringObj. | &noneObj.:c.:row.:c.defaultNewConsoleShell:c.Default New Console Shell:c.&stringObj. | &noneObj.:c.:row.:c.defaultSameConsoleShell:c.Default Same Console Shell:c.&stringObj. | &noneObj.:c.:tnote text='Notes'.:ol compact.:li.If the "Default Auth Username" is not set, it's value will bedisplayed as &noneObj..:li.If the "Default Auth Password" is not set, it's value will bedisplayed as &noneObj..  If a password has been set, :xph.'*******':exph.will be displayed instead of the actual password.:li.The values for "Default Shell", "Default New Console Shell", and"Default Same Console Shell" will display as &noneObj. if thecorresponding default shell is not set (e.g. not overridden).:eol.:etnote.:etable.:eul.:p.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. List all processes:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST:exph. (or :xph.LIST HANDLES:exph.):p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Handle Command                Start Date-Time   End Date-Time     RC------ ---------------------- ----------------- ----------------- ------17     notepad.exe            20051205-11:33:14 20040912-11:37:55 025     java TestProcess 5 5 0 20051205-11:53:18 20040912-11:53:18 129     java TestA             20051205-12:01:05 20040912-12:05:23 043     java TestB             20051205-12:32:38 <None>            <None>47     C:/tests/MyTest.exe    20051205-12:32:56 <None>            <None>56     C:/tests/tc1.exe       20051205-12:33:24 20040912-12:35:32 3:exmp.:p.:li.:hp2.Goal::ehp2. List all the processes that have completed.:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST COMPLETED HANDLES:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Handle Command                Start Date-Time   End Date-Time     RC------ ---------------------- ----------------- ----------------- --17     notepad.exe            20051205-11:33:14 20040912-11:37:55 025     java TestProcess 5 5 0 20051205-11:53:18 20040912-11:53:18 129     java TestA             20051205-12:01:05 20040912-12:05:23 056     C:/tests/tc1.exe       20051205-12:33:24 20040912-12:35:32 3:exmp.:p.:li.:hp2.Goal::ehp2. List all the processes that are still running:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST RUNNING HANDLES:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Handle Command             Start Date-Time   End Date-Time RC------ ------------------- ----------------- ------------- ------43     java TestB          20051205-12:32:38 <None>        <None>47     C:/tests/MyTest.exe 20051205-12:32:56 <None>        <None>:exmp.:p.:li.:hp2.Goal::ehp2. List detailed information about all the processes:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST LONG:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.H# Workload Command          PID  Start Date-Time   End Date-Time     RC     -- -------- ---------------- ---- ----------------- ----------------- --------- 17 <None>   notepad.exe      1444 20051205-11:33:14 20040912-11:37:55 0     25 <None>   java TestProcess 2836 20051205-11:53:18 20040912-11:53:18 1                  5 5 029 My Test  java TestA       3376 20051205-12:01:05 20040912-12:05:23 0     43 My Test  java TestB       2776 20051205-12:32:38 <None>            <None>47 My Test  C:/tests/MyTest. 2448 20051205-12:32:56 <None>            <None>            exe56 TC1      C:/tests/tc1.exe 2840 20040912-12:33:24 20040912-12:35:32 3:exmp.:p.:li.:hp2.Goal::ehp2. List all the processes with workload MyWorkload :p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST WORKLOAD "My Test":exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in table format, could look like::xmp.Handle Command             Start Date-Time   End Date-Time RC     ------ ------------------- ----------------- ------------- ------43     java TestB          20051205-12:32:38 <None>        <None>47     C:/tests/MyTest.exe 20051205-12:32:56 <None>        <None>:exmp.:p.:li.:hp2.Goal::ehp2. List the current operational settings for theProcess service:p.:hp2.Syntax::ehp2.&nbsp; :xph.LIST SETTINGS:exph.:p.:hp2.Results::ehp2.  If the request is submitted from thecommand line, the result, in default format, could look like::xmp.Default Stop Using Method   : SigKillDefault Console Mode        : NewDefault Focus               : BackgroundProcess Auth Mode           : DisabledDefault Auth Username       : <None>Default Auth Password       : <None>Default Auth Disabled Action: IgnoreDefault Shell               : <None>Default New Console Shell   : <None>Default Same Console Shell  : <None>:exmp.:eul..*.*---------------------------------------------------------------------.*:ih1.service commands:ih2.QUERY:i3.process service:h3.QUERY:p.QUERY allows you to obtain detailed information about a process with aspecified handle that was started via STAF.:h4.Syntax:xmp.QUERY HANDLE <Handle>:exmp.:p.:xph.HANDLE:exph. specifies the handle number of the processyou want information on.  &varres.:h4.Security:p.&seclvl. 2.:h4.Return Codes:p.All return codes from QUERY are documented in :hdref refid=retcode..:h4.Results:p.The result buffer will contain a marshalled:xph.Map&colon.STAF/Service/Process/ProcessInfo>:exph., representinginformation about the process specified to be queried.The map is defined as follows::table cols='* * * 3*'.:tcap.Definition of map class STAF/Service/Process/ProcessInfo:tnote text='Description'.This map class represents a process.:thd.:c.Key Name:c.Display Name:c.Type:c.Format / Value:ethd.:row.:c.handle:c.Handle:c.&stringObj.:c.:row.:c.handleName:c.Handle Name:c.&stringObj. | &noneObj.:c.:row.:c.title:c.Title:c.&stringObj. | &noneObj.:c.:row.:c.workload:c.Workload:c.&stringObj. | &noneObj.:c.:row.:c.shell:c.Shell:c.&stringObj. | &noneObj.:c.:xph.<Default Shell>:exph. if no value is specified:row.:c.command:c.Command:c.&stringObj.:c.&maskPrivate.:row.:c.parms:c.Parms:c.&stringObj. | &noneObj.:c.&maskPrivate.:row.:c.workdir:c.Workdir:c.&stringObj. | &noneObj.:c.:row.:c.focus:c.Focus:c.&stringObj.:c.:xph.'Background' | 'Foreground' | 'Minimized':exph.:row.:c.userName:c.User Name:c.&stringObj. | &noneObj.:c.:row.:c.key:c.Key:c.&stringObj. | &noneObj.:c.:row.:c.pid:c.PID:c.&stringObj.:c.:row.:c.startMode:c.Start Mode:c.&stringObj. :c.:xph.'Async' | 'Wait':exph.:row.:c.startTimestamp:c.Start Date-Time:c.&stringObj.:c.&timestampFormat.:row.:c.endTimestamp:c.End Date-Time:c.&stringObj. | &noneObj.:c.&timestampFormat.:row.:c.rc:c.Return Code:c.&stringObj. | &noneObj.:c.:tnote text='Notes'.:ol compact.:li.The value for "PID" will be the process ID assigned by the operating system.:li.The value for "End Date-Time" and "Return Code" will be &noneObj. ifthe process is still running.:eol.:etnote.:etable.:p.:h4.Examples:p.:ul.:li.:hp2.Goal::ehp2. Query a process with handle 17 that is stillrunning.:p.:hp2.Syntax::ehp2.&nbsp; :xph.QUERY HANDLE 17:exph.:p.:hp2.Results::ehp2.  If the request is issued from the command line,the result, in default format, could look like::xmp.Handle         : 17Handle Name    : <None>Title          : NotepadWorkload       : MyWorkloadShell          : <None>Command        : notepad.exeParms          : <None>Workdir        : <None>Focus          : BackgroundUser Name      : <None>Key            : <None>PID            : 3280Start Mode     : AsyncStart Date-Time: 20051205-11:33:14

⌨️ 快捷键说明

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