TC中文文档.docx

上传人:b****4 文档编号:11586123 上传时间:2023-03-19 格式:DOCX 页数:44 大小:443.79KB
下载 相关 举报
TC中文文档.docx_第1页
第1页 / 共44页
TC中文文档.docx_第2页
第2页 / 共44页
TC中文文档.docx_第3页
第3页 / 共44页
TC中文文档.docx_第4页
第4页 / 共44页
TC中文文档.docx_第5页
第5页 / 共44页
点击查看更多>>
下载资源
资源描述

TC中文文档.docx

《TC中文文档.docx》由会员分享,可在线阅读,更多相关《TC中文文档.docx(44页珍藏版)》请在冰豆网上搜索。

TC中文文档.docx

TC中文文档

公告至A4大小的纸张用户:

此文件格式提供了在8.5x11美国信。

ItcanbeprintedonA4paper,buttherewillbewidebottommargins.它可以被打印在A4纸,但将有广泛的底部边缘。

ReformattingforA4paperrequiresonlyafewsimplesteps.One,inWordopenFile|LayoutandchooseA4fromtheSizetab.重新格式化为A4纸只需要几个简单的步骤。

一是在Word中打开文件|a4的布局,并选择选项卡的大小。

Two,gotothesecondpage(anywhereinContents)andpressF9toupdate.Three,gotothelastpage(anywhereintheIndex)andpressF9againtoreindex.二,进入第二页(目录中的任意位置),然后按F9键更新。

三,到最后一页指数(任何地方),然后按F9键再次重新索引。

Four,saveunderanewnameforconvenience.四,保存在一个方便的新名称。

ThePDFversionofthisfileisavailableat此文件PDF版本可在.。

*WindowsandtheWindowslogoaretrademarksoftheMicrosoftgroupofcompanies.*Windows和Windows徽标是公司的商标群体的Microsoft。

TableofContents目录

引入自动化测试和TESTCOMPLETE------------------------------------------------------------------3

自动化测试-----------------------------------------------------------------------------------------------------3

测试类型--------------------------------------------------------------------------------------------------------3

TestComplete项目和项目项--------------------------------------------------------------------------------4

TestComplete用户界面---------------------------------------------------------------------------------------5

TestComplete测试对象模型---------------------------------------------------------------------------------6

检查和存储器----------------------------------------------------------------------------------------------------8

创建您的第一个测试-------------------------------------------------------------------------------------------9

1创建一个测试项目------------------------------------------------------------------------------------------10

2。

定义应用程序来测试----------------------------------------------------------------------------------------11

3。

规划你的测试-------------------------------------------------------------------------------------------------12

4。

记录一个测试--------------------------------------------------------------------------------------------------13

5。

分析记录的测试------------------------------------------------------------------------------------------------22

6。

运行记录的测试------------------------------------------------------------------------------------------------25

7。

分析测试结果---------------------------------------------------------------------------------------------------26

下一步做什么-------------------------------------------------------------------------------------------------30

索引---------------------------------------------------------------------------------------------------------------------31

IntroducingAutomatedTestingandTestComplete引入自动化测试和TestComplete

AutomatedTesting自动化测试

Softwaretestingistheprocessofinvestigatinganapplicationandfindingerrorsinit.软件测试是它的过程的调查申请,并在发现错误。

Thedifferencebetweentestingandsimplyexploringisthattestinginvolvescomparingtheapplication'soutputtoanexpectedstandardanddeterminingwhethertheapplicationfunctionsasexpected.Inotherwords, thetestermayneednotonlytoensurethattheapplicationdisplaysalistofvalues,butalsotoverifythatthelistcontainstheappropriatevalues.此次测试的区别,只是探索的是,测试包括比较应用程序的输出到一个预期的标准,决定是否应用功能正常。

换言之,测试人员可能不仅需要确保应用程序显示一个值列表的,但也验证列表中包含适当的值。

So,thebasictestsequenceincludes--因此,包括基本的测试序列-

∙Definingtheexpectedoutput.确定预期的输出。

∙Performingtestactions(feedingtheappropriateinput).表演试验行动(喂食适当的输入)。

∙Gatheringtheapplicationoutputandcomparingittoexpectedresult(baselinedata).收集应用程序的输出和预期结果进行比较(基准数据)。

∙Notifyingdevelopersormanagersifthecomparisonfails.通知开发员或管理人员,如果比较失败。

Automatedtestingistheautomaticexecutionofsoftwaretestingbyaspecialprogramwithlittleornohumaninteraction.自动化测试是人机交互的软件自动执行测试或没有由一个特别程序很少。

Automatedexecutionguaranteesthatnotestactionwillbeskipped;itrelievestestersofhavingtorepeatthesameboringstepsoverandover.自动化测试执行的保证,没有采取行动将被跳过,它会减轻对测试人员有重复同样的步骤结束,沉闷。

TestCompleteprovidesspecialfeaturesforautomatingtestactions,definingbaselinedata,runningtestsandloggingtestresults.TestComplete提供测试自动化操作的特点,确定基准数据,运行测试并记录测试结果。

Italsoincludesspecialdialogsandwizardsthathelpyouautomatecomparisoncommands(orcheckpoints)inyourtests.它也包括特别对话和向导,帮助您自动比较命令(或检查站)在你的测试。

TestTypes测试类型

TestCompletesupportsvarioustestingtypesandmethodologies:

unittesting,functionalandGUItesting,regressiontesting,distributedtestingandothers(seeDifferentWaysofTestinginTestCompleteHelp).TestComplete支持多种类型和测试方法:

单元测试,功能和GUI测试,回归测试,分布式测试和其他人(见测试不同方式TestComplete帮助)。

Inthistutorial,wewillcreateafunctionaltest–thekindthatisusedmostoften.在本教程中,我们将创建一个功能测试-在经常使用的那种最。

Functionaltestschecktheinterfacebetweentheapplicationononesideandtherestofthesystemandusersontheotherside.Theyverifythattheapplicationfunctionsasexpected.功能测试检查用户的系统和应用程序之间的接口休息一边和另一边。

他们验证应用程序功能正常。

Atypicalfunctionaltestconsistsoftestcommandsthatperformvariousactionssuchassimulatingclicksandkeystrokes,runningtestcommandsinaloopandverifyingobjects'contents.一个典型的功能测试包括测试命令,执行各种操作和按键,如模拟点击,运行的内容,测试和验证的命令在循环对象。

InTestComplete,functionaltestscanbecreatedintheformofkeywordtestsandscripts.在TestComplete,功能测试中可以创建表格的脚本测试和关键字。

各Testsofbothkindscanberecordedorcreatedfromscratchwithbuilt-ineditors.种试验的都可以被记录或从头开始创建的内置的编辑器。

Creatingkeywordtestsisvisual,easyanddoesnotrequireaprogrammingbackground.创建关键字测试,直观,方便,不需要编程背景。

Scriptingrequiresunderstandingscriptcommands,butgivesyoutheabilitytocreatemorepowerfulandflexibletests.脚本需要了解的脚本命令,但让你能够创建更强大和灵活的测试。

TestCompletesupportsscriptinginVBScript,JScript,DelphiScript,C++ScriptandC#Script,soyoucancreatescriptsinthelanguageyouknowbest.TestComplete支持C脚本在VBScript,JScript中,DelphiScript,C++的脚本和C#脚本,所以你可以创建脚本语言中你最了解的。

Inthistutorial,wewillusethekeywordtestingfeature.在本教程中,我们将使用关键字测试功能。

TestCompleteProjectsandProjectItemsTestComplete项目和项目项

TestCompleteoperateswithtestprojectsandprojectsuites.TestComplete运作的试验项目和项目套。

Aprojectisastartingpointforcreatingtests.项目是一种创建测试的起点。

Itcontainsyourtests,baselinedataforcheckpoints,informationabouttestedapplicationsandotheritemsneededtoperformtesting.它包含了你的测试,检查站的基准数据,测试信息测试申请执行和其他项目需要。

Theprojectalsodefinestheexecutionsequenceofmultipletestsandcontainsacumulativelogofalltestrunssincethestartoftheproject.该项目还定义了多个测试执行顺序的,包含了所有测试项目的累计运行日志,因为一开始的。

Oneprojectcouldcontainallthetestsforyourapplication.一个项目可以包含您的应用程序的所有测试。

Forcomplexapplications,youmaychoosetodevoteaprojecttojustonepartoftheapplication,andotherprojectstootherparts(normally,modules).对于复杂的应用程序,您可以选择只投入一个项目,一个应用程序的一部分,和(通常以外的其他地区的项目,模块)。

Relatedprojectscanbeunitedintoaprojectsuitethatcontainsoneormoreprojects.相关项目可以团结成一个项目包,其中包含一个或多个项目。

TestCompleteautomaticallygeneratesaprojectsuitewhenyoucreateanewproject.TestComplete自动生成一个项目套件当您创建一个新的项目。

YoucanalsocreateemptyprojectsuitesandthenuseTestComplete'sdialogstofillthesuitewiththedesiredprojectfiles.您还可以创建空项目,然后使用TestComplete套的对话,以填补文件套所需的项目。

Projectitemsareprojectelementsthatperformorassistinperformingvarioustestingoperations.工程项目项目元素执行或协助执行各种测试操作。

Youcanviewandmanageprojects,projectsuitesandprojectitemsinTestComplete'sProjectExplorerpanel:

您可以查看和管理项目,项目和资源管理器面板套在TestComplete工程项目的项目:

ForcompleteinformationonprojectitemsavailableinTestComplete,seeAboutProjectItemsinTestCompleteHelp.对于TestComplete,提供完整的信息工程项目,在里面可以看到关于工程项目TestComplete帮助中。

TestCompleteUserInterfaceTestComplete用户界面

HereisasampleimageofTestComplete'smainwindow:

这里是一个主窗口样品图像TestComplete的:

Asyoucansee,TestComplete'suserinterfaceisorganizedintoanumberofpanels.TheProjectExplorer正如你可以看到,TestComplete的用户界面被组织成一个小组的人数。

项目资源管理器panel(ontheleftofthewindow)displaysthecontentsofprojectsandtheprojectsuite.面板窗口(在左侧)显示的项目内容和项目套件。

Italsoprovideslinkstothetestlognodes.它还提供了节点链接到测试日志。

TheWorkspace工作区panelisyourworkingdesktop:

itdisplaystheproject'sandprojectitems'editors,whereyoucreateandmodifytestsandviewtestresults.Forinstance,ontheimageaboveyoucanseetheKeywordTesteditoropenedintheWorkspace.面板是你的工作桌面上:

它显示该项目的项目和项目的编辑,在那里你创建和修改测试,测试结果的看法。

例如,在上图中你可以看到关键字测试编辑器打开工作区中。

BesidestheProjectExplorerandWorkspace,TestCompletecontainsotherpanels.Forexample,theWatchList,Locals,BreakpointsandCallStackpanelsareusedfortestdebugging.除了项目资源管理器和工作区,TestComplete包含其他面板。

例如,观察名单,当地人,断点和调用堆栈面板用于测试调试。

TheToDopanelmanagesalistoftaskstobedoneandtheCodeExplorerpanelprovidesaconvenientwaytoexplorescriptcontentsandnavigatethroughscriptunits.待办任务列表管理一个小组的工作要做和代码浏览器面板提供了一个方便的方法来探讨剧本的内容和浏览脚本单位。

TheObjectBrowser对象浏览器panelholdsonemajorTestCompletefunctionthatdoesnotbelongtoaspecificproject:

itshowsthelistofallprocessesandwindowsthatexistonthemachine.事务委员会认为一个主要TestComplete函数,不属于任何一个特定的项目:

它显示了机器的所有进程列表和窗户上的存在。

ForeachprocessandwindowitshowsmethodsandpropertiesaccessibleexternallythroughTestCompletefacilities.对于每个进程和窗口,通过它显示TestComplete设施的方法和属性访问外部。

Inotherwords,theObjectBrowsertellsyouwhichobjects,methodsandpropertiesareavailablefortesting,andhowtogettothem.换言之,对象浏览器告诉你哪些对象,方法和属性是可用于测试,以及如何才能上。

SeeExploringApplicationPropertiesinTestCompleteHelp.查看TestComplete帮助探索的应用性能。

Tolearnaboutapanel,clickwithinthispanelandthenpressF1.要了解一个小组,在这个面板中单击,然后按F1。

Thiswillopenthepanel'sdescription.这将打开面板的描述。

YouusemenusandtoolbarstocommandTestCompletetoperformcer

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 高等教育 > 管理学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1