Знакомство с TestComplete 7

  • View
    1.672

  • Download
    2

Embed Size (px)

Transcript

A4. , : 1) Microsoft Word; 2) ; 3)

2

TestComplete

. F9 , . . * Windows Windows Microsoft.

www.automatedqa.com

TestComplete by AutomatedQA Corporation

TestComplete

3

TESTCOMPLETE..............4 ............................................................................................4 ....................................................................................................................................4 TestComplete ....................................................................................5 TestComplete..................................................................................7 TestComplete...................................................................................8 (heckpoints) Stores.................................................................10 .....................................................................................11 1. ..................................................................................................12 2. ...........................................................................13 3. ....................................................................................................14 4. .............................................................................................................................16 5. .........................................................................................................24 6. ...............................................................................................27 7. .........................................................................................28 ? ...................................................................................................................................31 ..........................................................................................................33

2009 AutomatedQA Corp.

www.automatedqa.com/support

4

TestComplete . , , , . , , , - , , . , : . ( ). ( ). .

- , . ; . TestComplete , , . , ( ; checkpoints) .

TestComplete : (unit testing), (functional testing), (GUI testing), (regression testing), (distributed testing) . ( Different Ways of Testing TestComplete). , . . . , , . , , , , .

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

5

TestComplete (keyword tests) . TestComplete . keyword . , , , . TestComplete VBScript, JScript, DelphiScript, C++Script C#Script, , . keyword .

TestComplete TestComplete (projects) (project suites). . , , , . , . . , (, ). (project suite), . TestComplete . TestComplete, . (project items) , .

2009 AutomatedQA Corp.

www.automatedqa.com/support

6

, , Project Explorer.

TestComplete About Project Items .

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

7

TestComplete TestComplete :

, TestComplete . Project Explorer ( ) . . Workspace TestComplete: , , . , keyword , Workspace. Project Explorer Workspace, TestComplete . , Watch List, Locals, Breakpoints Call Stack . To Do , Code Explorer . Object Browser TestComplete, : , . , TestComplete. , Object Browser , , , . , Exploring Application Properties TestComplete. - , F1. TestComplete . 2009 AutomatedQA Corp. www.automatedqa.com/support

8

Windows, TestComplete . Microsoft Visual Studio . , , , . Toolbars Customization TestComplete.

TestComplete Object Browser:

TestComplete . Sys desktop PDA , , Windows Mobile . . process, application, Windows.

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

9

( , ):

(), , . , , , . , . TestComplete , -. Black-box applications , black-box applications. , . , , :

White-box applications , , TestComplete , white-box applications Open Applications ( ). TestComplete ( ) Object Browser ( ).

2009 AutomatedQA Corp.

www.automatedqa.com/support

10

, TestComplete , , , . , , C# Microsoft WinForms, MainForm, TestComplete : WinFormsObject("MainForm"):

, Naming Objects TestComplete. : , , , black-box . , , , . , , .NET, WPF, Visual Basic, Java Web , TestComplete. . Open Applications TestComplete.

(heckpoints) Stores . , - , , . . - , , , . , , . (, , ..) . TestComplete, . checkpoints (checkpoint ). , . TestComplete : , , , XML , .. TestComplete Stores, . , , . , : . Checkpoints TestComplete.

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

11

, , TestComplete, , . . . - Orders, TestComplete. , , .

: Windows 7, Windows Vista Windows Server 2008: C:\Users\Public\Documents\TestComplete 7 Samples\Open Apps\OrdersDemo Windows XP, Windows Server 2003 Windows 2000: C:\Documents and Apps\OrdersDemo Settings\All Users\Documents\TestComplete 7 Samples\Open

, Windows Explorer, , , All Users\Documents All Users\Shared Documents. OrdersDemo Orders, : C#, Visual C++, Visual Basic, Delphi, C++Builder, Swing .. Orders, Visual C#.

2009 AutomatedQA Corp.

www.automatedqa.com/support

12

1. : 1. TestComplete , . File | Close TestComplete. 2. File | New | New Project TestComplete. Create New Project. : Simple Classic. Simple, , , , . Classic . Simple, , Classic.

3. , : Orders Project name.

TestComplete , , Location. , TestComplete : keyword , , , Stores .. Location. . Language , , , VBScript.

, , . keyword , , . , , , , keyword . . , VBScript JScript Notepad www.automatedqa.com TestComplete by AutomatedQA Corporation

7.

13

: Process("Notepad"). DelphiScript : Process ('Notepad'); C++Script C#Script, Process : ["Process"]("Notepad"). TestComplete : VBScript, JScript, DelphiScript, C++Script C#Script, , . TestComplete. , , , , ( Supported Scripting Languages Peculiarities of Usage TestComplete). Selecting the Scripting Language TestComplete. , , . , , Visual C++, JScript, , Delphi, VBScript. , (Connected application) (Self-Testing), , , . , Visual C++ C++Builder, C++Script; Visual Basic, VBScript, .. Connected SelfTesting . 4. , , , Create. TestComplete , Orders.mds, . Project Explorer.

2. (tested applications). , , , . , , . , , . , TestComplete . , , Windows - . , TestComplete Run Tested Application . , , , .

2009 AutomatedQA Corp.

www.automatedqa.com/support

14 :

1. TestedApps Project Explorer:

2. Add | New Item . Open File. 3. , Orders.exe Open. , - Orders, C#, TestComplete. Orders.exe : Windows 7, Vista Windows Server 2008: C:\Users\Public\Documents\TestComplete 7 Samples\Open Apps\OrdersDemo\C#\bin\Debug\Orders.exe Windows XP, Windows 2000 Windows Server 2003: C:\Documents and Settings\All Users\Documents\TestComplete 7 Samples\Open Apps\OrdersDemo\C#\bin\Debug\Orders.exe 4. , , . Run Modes TestComplete. , . 5. File | Save TestComplete, .

3. :

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

15

, . , . , , . , . , . , . . , ( , - ). , . , . , - , : , , .. , , . . . , , . , TestComplete ( test log). test log , , . , . , . , test log. Test Log TestComplete.

Orders - Orders . , , Edit Order . : : , Edit Order . : . , . , . : , . , . , . test log, . www.automatedqa.com/support

2009 AutomatedQA Corp.

16

4. TestComplete TestComplete : 1. , Test | Record | Record Keyword Test Test | Record | Record Script Te