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

📄 utils.script

📁 Software Testing Automation Framework (STAF)的开发代码
💻 SCRIPT
字号:
.***************************************************************************.* 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          : Utils SCRIPT.*  Descriptive Name   : Software Test Automation Framework Services.*  Detail:.*.*     This is the high level file which imbeds the other utilities.*     descriptions.*.**************************-END-OF-PROLOG-*****************************:i1.Log Utilities:ih1.utilities:h1 id=utils.Log Utilities:p.Some utilities are provided to assist in viewing and formatting STAFlog files and the JVM Log files.For each utility the following sections are listed.:ul compact.:li.Description - an overview of what the utility provides:li.Commands - there will be one section for each of the major commands theutility supports.  This section will contain the following subsections.:ul compact.:li.Syntax - a description of the command syntax:li.Examples - examples of how to use this command:eul.:eul..*.*---------------------------------------------------------------------.*:i1.Log Viewer:i1.STAFLogViewer command:ih1.commands:i2.STAFLogViewer:ih1.utilities:i2.View STAF log:h2 id=STAFLogViewer.STAF Log Viewer Class:h3.DescriptionThe STAFLogViewer class provides a Java GUI that can display any STAF log onany machine currently running STAF.A STAF log is a binary log file that has been created by the STAF Log service.This Java class submits requests to STAF, so STAF has to be running.:p. This Java class can be run as an application via the command line or can berun via another Java program.:p.:ih1.utility commands:ih2.STAFLogViewer:i3.STAFLogViewer utilityFor more information on how to use the STAFLogViewer class, see section"3.6.1 Class STAFLogViewer" in the.*b2h html <A HREF="http://staf.sourceforge.net/current/STAFJava.htm#Header_STAFLogViewer">STAF Java User's Guide</A>.:p..*.*---------------------------------------------------------------------.*:i1.JVM Log Viewer:i1.STAFJVMLogViewer command:ih1.commands:i2.STAFJVMLogViewer:ih1.utilities:i2.View STAF JVM log:h2 id=STAFJVMLogViewer.JVM Log Viewer Class:h3.DescriptionThe :xph.STAFJVMLogViewer:exph. class provides a Java GUI that can display aJVM Log for any STAF Java service that is currently registered.Each Java service that is registered with STAF runs in a JVM (Java Virtual Machine).A JVM Log is a text log file that is asociated with each JVM created by STAF.Note that more than one Java service may use the same JVM (and thus share the sameJVM Log file) depending on the options used when registering the service.Section :hdref refid=serviceregcfg. provides more information on registeringSTAF Java services using the JSTAF library.:p.A JVM Log file contains JVM start information such as the date/time when the JVMwas created, the JVM executable, and the J2 options used to start the JVM.It also any other information logged by the JVM.  This includes anyerrors that may have occurred while the JVM was running and any debug informationoutput by a Java service.  Also, the JVM Log for the STAX service contains theoutput from any print statements that are used within a :xph.<script>:exph. elementin a STAX xml job file which is useful when debugging Python code contained ina :xph.<script>:exph. element.  When a problem occurs with a STAF Java service,you should always check it's JVM Log as it may contain information to help debugthe problem.:p.STAF stores JVM Log files in the :xph.{STAF/DataDir}/lang/java/jvm/&lt;JVMName>:exph.directory.   STAF retains a configurable number of JVM Logs (five by default) for eachJVM.  The current JVM log file is named :xph.JVMLog.1:exph. and older saved JVM logfiles, if any, are named :xph.JVMLog.2:exph. to :xph.JVMLog.<MAXLOGS>:exph..When a JVM is started, if the size of the :xph.JVMLog.1:exph. file exceeds themaximum configurable size (1M by default), the :xph.JVMLog.1:exph. file is copiedto :xph.JVMLog.2:exph. and so on for any older JVM Logs, and a new :xph.JVMLog.1:exph.file will be created.:p.When using the :xph.STAFJVMLogViewer:exph., you can specify the machine where theSTAF JVM log resides (e.g. where the Java service is registered) and you canspecify/select the name of the STAF service whose JVM Log you want to display.This Java class submits requests to STAF, so STAF has to be running. This Java class can be run as an application via the command line or can berun via another Java program.:p.Note that the STAX Monitor Java application uses the :xph.STAFJVMLogViewer:exph.class to display the JVM log for the STAX service and for other services.:p.:ih1.utility commands:ih2.STAFJVMLogViewer:i3.STAFJVMLogViewer utilityFor more information on how to use the STAFJVMLogViewer class, see section"3.6.2 Class STAFJVMLogViewer" in the.*b2h html <A HREF="http://staf.sourceforge.net/current/STAFJava.htm#Header_STAFJVMLogViewer">STAF Java User's Guide</A>.:p..*.*---------------------------------------------------------------------.*.im FLogUtil

⌨️ 快捷键说明

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