TestComplete---Overview
作者: Max.Bai时间: 2012/12
TC introduce
Automated
Web
HTTP Load/Performance
Web Services
GUI (Win32, .NET)
Unit
Distributed
Manual
Support Language
VBScript
Jscript
C# Script
C++ Script,
Delphi Script
- The size of a DelphiScript unit in a TestComplete cannot exceed 1 MB. There is no such alimitation for projects created in other scripting languages (VBScript, JScript, C++Script andC#Script).
- JScript does not support functions that obtain parameters by reference. The same applies toC++Script and C#Script since these languages work via the JScript engine.
- Any of the supported scripting languages let you call routines and variables defined in another unit. However, circular references between units are supported in VBScript and DelphiScript onlyand are not supported in JScript, C++Script and C#Script.
- JScript, C++Script and C#Script may handle exceptions incorrectly when the try{} block holdscalls to routines defined in other units. That is, the try... catch... finally block workscorrectly only when it does not hold calls to routines from other units.
- Some users consider that exception handling in JScript, C++Script, C#Script or DelphiScript maybe more convenient than exception handling in VBScript.
- The format of arrays in JScript, C++Script and C#Script differs from the DelphiScript and VBScript (see Supported Scripting Languages - Peculiarities of Usage). This affects the usage of some routines (for example, the Find and FindAllmethods) in JScript, C++Script and C#Scriptcode. For more information, see documentation for the specific method
TC Framework
Project Suit
Project (can be different script language)
Project Items
Project Items contains: Events, NetWorkSuite, Script, ODT, TestApps, Unit testing, UserForms, KeywordTests, ManualTest, NameMapping, Store and so on.
Project Item element
Project Item element such as: Jobs, Hosts, Unit, apps
Project Suit Log
Project Log
Folder structure:
ProjectSuite/Projects|Log /ProjectItems | Log
Object Manage
NameMapping
Condition mode for object
Name mapping template
Aliases
Aliases name can be specify the every object in name mapping
Object spy
Region
Store object can’t be identify can be use point to define.
Optical Character Recognition
OCR can get text and get area by text
Text Recognition
Identify the object by text. Add the winclass value to text recognition list in project property which can’t be identify.
TextObject(“description text”)
Keyword Case
Recording Case
Keyword Case to unit case
Parameter
Variables
String, DataTable...
Temporary Variable
Persistent Variable
CheckPoint
Object, Property, XML, File, picture...
Run action in keyword
Keyword case, script method, Networks...
DDT
Support DDT
Script Case
Unit Case
Unit Reference
Variables
String, DataTable...
Temporary Variable
Persistent Variable
Events
OnStartTest
OnStopTest
Network suite
Hosts
Jobs
Task
Variables
String, DataTable...
Temporary Variable
Persistent Variable
Execute
UI execute( Project, job, task, case, keyword case)
Command line ( Project, Network Suite, job, task, case, keyword case)
TestComplete.exe [file_name [/run
[(/project:project_name) |
(/project:project_name /projectitem:item_name) |
(/project:project_name /test:test_name) |
(/project:project_name /unit:unit_name /routine:routine_name)]
[/exit]][/SilentMode][/exportlog:File_name][/ForceConversion][/ns]