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

  • Published on
    27-Nov-2014

  • 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 TestComplete Test Engine. , Record a New Test Start. TestComplete, : keyword , , HTTP . , , , , : keyword . , . , . , TestComplete , Recording: INCLUDEPICTURE "../AppData/Local/Microsoft/Windows/Temporary%20Internet %20Files/Content.IE5/AppData/Local/Microsoft/Windows/Temporary%20Internet %20Files/Content.Outlook/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/Local %20Settings/Temporary%20Internet%20Files/Content.IE5/Local%20Settings/Temporary%20Internet %20Files/Content.IE5/TestComplete/Images/GettingStarted/RecordingToolbar.gif" \*

MERGEFORMAT , , , (keyword , , Windows PDA HTTP ). 2. , , : ( ) - , , - .. 3. , , , INCLUDEPICTURE "../AppData/Local/Microsoft/Windows/Temporary%20Internet %20Files/Content.IE5/AppData/Local/Microsoft/Windows/Temporary%20Internet %20Files/Content.Outlook/Local%20Settings/Temporary%20Internet %20Files/Content.IE5/Local%20Settings/Temporary%20Internet%20Files/Content.IE5/Local %20Settings/Temporary%20Internet %20Files/Content.IE5/TestComplete/Images/Buttons/Stop_b.gif" \* MERGEFORMAT Stop Recording. , Recording in TestComplete TestComplete.

Orders keyword - Orders. , , . : , . ,

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7. , .

17

, , . , . : 1. Test | Record | Record Keyword Test TestComplete. TestComplete Recording. Interactive Help , TestComplete . 2. , , Orders : Run Tested Applications

TestComplete . , . 3. , :

Interactive Help , , . TestComplete . 4. Orders File | Open . Open File.

2009 AutomatedQA Corp.

www.automatedqa.com/support

18

5. MyTable.tbl. . Windows 7, Windows Vista Windows Server 2008 C:\Users\Public\Documents\TestComplete 7 Samples\Open Apps\OrdersDemo. C:\Documents and Settings\All Users\Documents\TestComplete 7 Samples\Open Apps\OrdersDemo. File name Open File , . , Open File . 6. , File name, Open. Orders :

7. Samuel Clemens.

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7. 8. Orders Order:

19 Edit order.

9. Customer Name, . Select All , Mark Twain . : , , , , , . Select All . (, CTRL+A) . 10. OK, . TestComplete , . 11. . , - Mark Twain. TestComplete , ( Checkpoints TestComplete). property checkpoint. , . . Create Property Checkpoint Checkpoint Recording: 2009 AutomatedQA Corp. www.automatedqa.com/support

20

property checkpoint. :

Finder tool ( .

)

, TestComplete , Orders. TestComplete , .

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7. , :

21

, , , TestComplete Object:

Next, . . , TestComplete, , . , C#, .NET . .NET. 2009 AutomatedQA Corp. www.automatedqa.com/support

22

, TestComplete, : , . Standard. , tree view ( , , ). w. Extended. wItem. tree view. wItem ( Extended). Params. :

, Mark Twain: o o o Integer Type. 5 Item (5 Mark Twain tree view. ). OK.

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

23

TestComplete :

Next, . property checkpoint , , , Value, :

Finish property checkpoint. TestComplete Property Checkpoint . 12. Orders, X . , . No. Orders .

2009 AutomatedQA Corp.

www.automatedqa.com/support

24

13. Stop , . TestComplete .

5. , , TestComplete keyword keyword :

, . , , . , , , Visual C++ Delphi. , , Orders . . Run TestedApp. keyword ( , Orders). TestComplete , , TestComplete .

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7. File | Open .

25

, Open File, Order:

, , .., Simulating User Actions TestComplete. , :

2009 AutomatedQA Corp.

www.automatedqa.com/support

26

, , Orders, , No .

, TestComplete , , . , , . (Orders), , , , . , , , :

, , , . , . , Process("Orders"), , Orders; WinFormsObject("MainForm"), , MainForm, .. : TestComplete , . (name mapping). TestComplete , , , . , , . . Name Mapping TestComplete.

www.automatedqa.com

TestComplete by AutomatedQA Corporation

7.

27

6. , , TestComplete . , , . , , . , , , . , Run TestedApp , . , TestComplete. , : Run Test

TestComplete . , . : . , TestComplete, . , TestComplete,...