TestCompleteÖеÄSys¶ÔÏóµÄÊôÐԺͷ½·¨(1)
ÉÏһƪ / ÏÂһƪ 2008-06-03 06:24:53 / ¸öÈË·ÖÀࣺTestComplete
5QFHUZ*f1K1H^J/n02.SYS¶ÔÏó |
The Sys object ¡°represents¡± the system in your scr¨©pts -- everything outside TestComplete. Its methods and properties allow you to control scr¨©pt execution, interact with active windows, simulate key presses, etc. For instance, the following code assigns the clipboard contents to cl:
VBscr¨©pt
Setcl = Sys.Clipboard
Jscr¨©pt
cl = Sys.Clipboard();
Delphiscr¨©pt, Delphi
cl: = Sys.Clipboard;
C++scr¨©pt, C#scr¨©pt, C++, C#
cl = Sys["Clipboard"]();
Name | Descr¨©ption |
Returns an enumerator for the collection of children that belongs to the current object. | |
ChildCount(inherited fromCommon) | Returns the number of child objects of the current object. ·µ»Øµ±Ç°¶ÔÏóµÄ×Ó¶ÔÏóµÄÊýÄ¿ |
N2mG6z*F0 | Puts text or images to the clipboard or retrieves the clipboard data. °ÑÎı¾»òÕßͼƬ·ÅÈë¼ôÌù°å»òÕß»ñÈ¡¼ôÌù°åÖеÄÊý¾Ý |
,FjCL`@W ?0 | Returns theCORBAobject, which lets you work with CORBA objects that reside on the local or remote computer. ·µ»ØCORBA¶ÔÏó,ÈÃÄã¿ÉÒÔ²Ù×÷±¾»ú»òÕßÔ¶³ÌµÄCORBA¶ÔÏó |
CPU | Stores the model and frequency of the computer¡¯s processor(s). ´æ´¢¼ÆËã»ú´¦ÀíÆ÷µÄÐͺźÍƵÂÊ |
CPUCount | Returns the number of CPUs installed on your computer. ·µ»Ø±¾»úCPUµÄ¸öÊý |
CPUUsage | Returns the current approximate percentage of CPU time used by the operating system and all running processes. ·µ»Ø´ó¸ÅµÄµ±Ç°±»²Ù×÷ϵͳÒÔ¼°ËùÓнø³ÌÕ¼ÓõÄCPU°Ù·Ö±È |
Desktop | Returns the desktop as theDesktopobject. ·µ»Ø×ÀÃæ¶ÔÏó |
DomainName | Returns the name of the domain to which the current computer belongs. ·µ»Ø±¾»úËùÊôÓòµÄÃû×Ö |
:L1zM#H#KOQ0 | Tells whether an object exists in the system. ¼ìÑé¶ÔÏóÊÇ·ñ³öÏÖ |
FullName(inherited fromCommon) | Specifies the full name that uniquely identifies the object in TestComplete. Ϊ¶ÔÏóÔÚTCÖÐÖ¸¶¨¶ÀÒ»ÎÞ¶þµÄ¹ØÁªÃû³Æ |
HostName | The name of the current computer. ±¾µØ¼ÆËã»úÃû |
Y&~l] ZY0 | Returns ID of the current object. µ±Ç°¶ÔÏóID |
MappedName(inherited fromCommon) | Returns the custom name that is mapped to the original name of the current object, as a string. ·µ»ØÓ³ÉäÃû³Æ |
kj:T*X a6q0 | Returns the integral size of memory occupied by the processes which are children of the sys object. ·µ»Ø½ø³ÌÕ¼ÓеĽø³Ì´óС |