רעÓÚ×Ô¶¯»¯²âÊÔ,ÐÔÄܲâÊÔ.......

TestCompleteÖеÄSys¶ÔÏóµÄÊôÐԺͷ½·¨(1)

ÉÏһƪ / ÏÂһƪ  2008-06-03 06:24:53 / ¸öÈË·ÖÀࣺTestComplete

5QFHUZ*f1K1H^J/n02.SYS¶ÔÏó51TestingÈí¼þ²âÊÔÍøoe e?iu

 51TestingÈí¼þ²âÊÔÍøIf2o'[A-U7ZS

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:

U2zw)pRc1w0

VBscr¨©ptCopy Code51TestingÈí¼þ²âÊÔÍø4g X,`mC(MIiz

Setcl = Sys.Clipboard51TestingÈí¼þ²âÊÔÍøv}"[I;ho

Jscr¨©ptCopy Code51TestingÈí¼þ²âÊÔÍøs:yF QkH:e

cl = Sys.Clipboard();

-joZ["qYR+a0

Delphiscr¨©pt, DelphiCopy Code

"O ^y7gKO%G0

cl: = Sys.Clipboard;

*gi @4L E'AW0

C++scr¨©pt, C#scr¨©pt, C++, C#Copy Code51TestingÈí¼þ²âÊÔÍøI0_`| AIU;N

cl = Sys["Clipboard"]();51TestingÈí¼þ²âÊÔÍø%GTwF;u&Oj

Sys Properties51TestingÈí¼þ²âÊÔÍø9uI^L e1c\+p

Sys PropertiesSys Properties51TestingÈí¼þ²âÊÔÍøe+?-h Xg iry

Name51TestingÈí¼þ²âÊÔÍø&V:WVUJu

Descr¨©ption51TestingÈí¼þ²âÊÔÍød/k'f#]#XB:X

_NewEnum(inherited fromCommon)51TestingÈí¼þ²âÊÔÍøLX'[p]-G

Returns an enumerator for the collection of children that belongs to the current object.

2L4RG,c"H0

ChildCount(inherited fromCommon)51TestingÈí¼þ²âÊÔÍødg.Bu5A9x |

Returns the number of child objects of the current object.51TestingÈí¼þ²âÊÔÍøP/wnU#qFG(CN"ab

·µ»Øµ±Ç°¶ÔÏóµÄ×Ó¶ÔÏóµÄÊýÄ¿

Oo_6b3c5t0

Clipboard

N2mG6z*F0

Puts text or images to the clipboard or retrieves the clipboard data.51TestingÈí¼þ²âÊÔÍø1^w^#Ht)R'[

°ÑÎı¾»òÕßͼƬ·ÅÈë¼ôÌù°å»òÕß»ñÈ¡¼ôÌù°åÖеÄÊý¾Ý51TestingÈí¼þ²âÊÔÍøJz"~SvJ'n

CORBA

,FjCL`@W?0

Returns theCORBAobject, which lets you work with CORBA objects that reside on the local or remote computer.51TestingÈí¼þ²âÊÔÍø^ g%E soye'q

·µ»ØCORBA¶ÔÏó,ÈÃÄã¿ÉÒÔ²Ù×÷±¾»ú»òÕßÔ¶³ÌµÄCORBA¶ÔÏó51TestingÈí¼þ²âÊÔÍøU7{4`i"d'uI

CPU51TestingÈí¼þ²âÊÔÍøQr2n%TS+UaCB

Stores the model and frequency of the computer¡¯s processor(s).

Z)ig ivG e0

´æ´¢¼ÆËã»ú´¦ÀíÆ÷µÄÐͺźÍƵÂÊ51TestingÈí¼þ²âÊÔÍø#Uz*G7\9T]

CPUCount51TestingÈí¼þ²âÊÔÍøq*G-VS\8M\3k0W5Q

Returns the number of CPUs installed on your computer.51TestingÈí¼þ²âÊÔÍø~OKZM.?

·µ»Ø±¾»úCPUµÄ¸öÊý

s(_ D+f1@-_0

CPUUsage51TestingÈí¼þ²âÊÔÍø {#m3os,y p)UNV"^/e7q ?

Returns the current approximate percentage of CPU time used by the operating system and all running processes.

.E&S3{c7TBjZoBJ0

·µ»Ø´ó¸ÅµÄµ±Ç°±»²Ù×÷ϵͳÒÔ¼°ËùÓнø³ÌÕ¼ÓõÄCPU°Ù·Ö±È51TestingÈí¼þ²âÊÔÍø5j*Qzeb(qwL${Ku

Desktop51TestingÈí¼þ²âÊÔÍø*z%pUtj!f4@:v9uL

Returns the desktop as theDesktopobject.

jZ\8H$y:R F3?!_0

·µ»Ø×ÀÃæ¶ÔÏó51TestingÈí¼þ²âÊÔÍøa/Rj"@\kN }P

DomainName51TestingÈí¼þ²âÊÔÍøQ.J@U2g6k3{

Returns the name of the domain to which the current computer belongs.51TestingÈí¼þ²âÊÔÍø:@9K"J T+eZT

·µ»Ø±¾»úËùÊôÓòµÄÃû×Ö

*Z@:gw y2~:MZ#{!G0

Exists(inherited fromCommon)

:L1zM#H#KOQ0

Tells whether an object exists in the system.

2` L$J1S/xZ5O\K|&k0

¼ìÑé¶ÔÏóÊÇ·ñ³öÏÖ51TestingÈí¼þ²âÊÔÍø/Y|']bTP

FullName(inherited fromCommon)

7t3t JG+[-d#A C#f;o[0

Specifies the full name that uniquely identifies the object in TestComplete.

xYd j#D6Y[F0

Ϊ¶ÔÏóÔÚTCÖÐÖ¸¶¨¶ÀÒ»ÎÞ¶þµÄ¹ØÁªÃû³Æ

W(KbHto0AV8e0

HostName51TestingÈí¼þ²âÊÔÍø#K$~ s%s"v qB%o rF

The name of the current computer.

&T"WevR0

±¾µØ¼ÆËã»úÃû51TestingÈí¼þ²âÊÔÍø}%yW h tA ~(TO \[

Id(inherited fromCommon)

Y&~l] ZY0

Returns ID of the current object.

"k zSdqXM7E}C0

µ±Ç°¶ÔÏóID

X#F/S PZ*I([_y0

MappedName(inherited fromCommon)51TestingÈí¼þ²âÊÔÍø {Cugu/]

Returns the custom name that is mapped to the original name of the current object, as a string.51TestingÈí¼þ²âÊÔÍø*S9ag7wT'@

·µ»ØÓ³ÉäÃû³Æ51TestingÈí¼þ²âÊÔÍøwB^IJCxr Ia0m

MemUsage

kj:T*X a6q0

Returns the integral size of memory occupied by the processes which are children of the sys object.

#b/r:JS1d"T0

·µ»Ø½ø³ÌÕ¼ÓеĽø³Ì´óС

dL%uq#l MF&Z6f.hP0

Name(inherited fromCommon)51TestingÈí¼þ²âÊÔÍøH;E9Z+SO F

Returns the name of the object as a string.51TestingÈí¼þ²âÊÔÍøFt*wt*K%lm!y#?6\

·µ»Ø¶ÔÏóÃû³Æ

'h.Ff vO)bL+DNyO0

OleObject51TestingÈí¼þ²âÊÔÍø&f E:V q_q|1P'z L*_

Returns an OLE object specified by name.51TestingÈí¼þ²âÊÔÍøMm*vI(U6MNk^-el

·µ»ØOLE¶ÔÏó51TestingÈí¼þ²âÊÔÍø4D(i6G*h^HJ O2b?

OSInfo51TestingÈí¼þ²âÊÔÍø!N%|7r:Uf9ht?J+E.Tz

Returns the information on the currently installed operating system asOSInfoobject.51TestingÈí¼þ²âÊÔÍøg1dt2@(s

·µ»Øµ±Ç°°²×°ÏµÍ³µÄÐÅÏ¢51TestingÈí¼þ²âÊÔÍø YwRk#rv)N's

Parent(inherited fromCommon)51TestingÈí¼þ²âÊÔÍø&D7}z ]}{\?

Returns the parent object of the current one.

S;W qIW0q'd6x0]0

·µ»Øµ±Ç°¶ÔÏóµÄ¸¸¶ÔÏó51TestingÈí¼þ²âÊÔÍø9``V4by;],fc#K#c

UserName51TestingÈí¼þ²âÊÔÍøMA?*n+}Aat

The name of the user under whose account you are currently working.

9i2u n:bol0

·µ»Øµ±Ç°Óû§Ãû³Æ51TestingÈí¼þ²âÊÔÍø+H3rq;u7y5I}*G`

Sys Methods51TestingÈí¼þ²âÊÔÍø;a dGn1v q.j^

Sys MethodsSys Methods

"}8qr\!ch0

Name51TestingÈí¼þ²âÊÔÍød0]2@4k$@f"a

Descr¨©ption

wtH:_"EL+Dd3|J5K0

Child(inherited fromCommon)

E*x1d2D;D1o8g0

Returns one child object by its index.51TestingÈí¼þ²âÊÔÍø"\ ^#x%lW hW(f4Wa?

ͨ¹ýIndex·µ»Ø×Ó¶ÔÏó

2Nl?3g(OUX)G?7K0

Find(inherited fromCommon)

``/B$M4e0

Returns an object by the values of the specified properties.

$v;yxacz"x7}X0

ͨ¹ýÖ¸¶¨ÊôÐÔÖµ·µ»Ø¶ÔÏó51TestingÈí¼þ²âÊÔÍø7f0B*{+{v7u

FindAll(inherited fromCommon)51TestingÈí¼þ²âÊÔÍøsEG/j:|3}mo

Returns an array of objects by the values of the specified properties.

0sCJv#rk j[)c0

ͨ¹ýÖ¸¶¨ÊôÐÔÖµ·µ»Ø¶ÔÏóÊý×é

G/@tN u0

FindAllChildren(inherited fromCommon)

F3|+?f+r6@ yquYxL0

Returns an array of child objects by the specified property values.51TestingÈí¼þ²âÊÔÍø[I)V/Uy_

ͨ¹ýÖ¸¶¨ÊôÐÔÖµ·µ»Ø×Ó¶ÔÏóÊý×é51TestingÈí¼þ²âÊÔÍø8M7r$X?,v]2mR fP[

FindChild(inherited fromCommon)51TestingÈí¼þ²âÊÔÍø'DR,oz1|

Returns a child object by the specified property values.51TestingÈí¼þ²âÊÔÍø0ewZJl%mJC+N3D/h

ͨ¹ýÖ¸¶¨ÊôÐÔÖµ·µ»Ø×Ó¶ÔÏó51TestingÈí¼þ²âÊÔÍø&C"Z/O{&S7bw Y J^

FindId(inherited fromCommon)51TestingÈí¼þ²âÊÔÍøI O3k@7N M3uv

Returns an object by its ID.51TestingÈí¼þ²âÊÔÍø+dPv%{q~j e7N

ͨ¹ýID·µ»Ø¶ÔÏó51TestingÈí¼þ²âÊÔÍø ]l-h l zD&lz9A

HighlightObject

$YKj sc4h0

Highlights a visible onscreen object with a flashing color rectangle.51TestingÈí¼þ²âÊÔÍø1h'E D_J

¶ÔÏó¸ßÁÁ51TestingÈí¼þ²âÊÔÍø'J#G}Te.]2J

Keys51TestingÈí¼þ²âÊÔÍøo.s:W]5J

Simulates one or several key presses.

you1G(^ bb0

Ä£ÄâÊäÈë51TestingÈí¼þ²âÊÔÍø-b ].CL^

ObjectFromPoint

1V W6cW+E(s/E:~0

Returns the visual object that contains the pixel with the specified coordinates.51TestingÈí¼þ²âÊÔÍø,Nnn+`W!fR%c

·µ»ØÖ¸¶¨×ø±êµÄ¶ÔÏóͼÏñ

.Q\#}8e-v-G0

Process51TestingÈí¼þ²âÊÔÍø+@_b|f?)z

Returns a

TAG: TestComplete ²âÊÔ¹¤¾ß

 

ÆÀ·Ö£º0

ÎÒÀ´ËµÁ½¾ä

wxf_xsfy

wxf_xsfy

×Ô¶¯»¯²âÊÔµÄÓµ´ØÕß,ÉÆÓÚ×Ô¶¯»¯²âÊԵĿò¼ÜºÍ¹¤¾ß¿ª·¢£¬TIB¹¤×÷ÊÒºËÐijÉÔ±

ÈÕÀú

« 2024-04-19  
ÈÕ Ò» ¶þ Èý ËÄ Îå Áù
 123456
78910111213
14151617181920
21222324252627
282930    

Êý¾Ýͳ¼Æ

  • ·ÃÎÊÁ¿: 381326
  • ÈÕÖ¾Êý: 79
  • ͼƬÊý: 1
  • ÎļþÊý: 1
  • ÊéÇ©Êý: 3
  • ½¨Á¢Ê±¼ä: 2007-09-19
  • ¸üÐÂʱ¼ä: 2018-01-30

RSS¶©ÔÄ