ProgrammingOperationsProgrammingStatementsOverviewProgrammingstatementscancontain:
Testobjectoperations.ThesearemethodsandpropertiesdefinedbyQuickTest.Theycanbeoperationsthatausercanperformonanobject,operationsthatcanretrieveorsetinformation,oroperationsthatperformoperationstriggeredbyanevent.
Nativeoperations.Thesearemethodsandpropertiesdefinedwithintheobjectyouaretesting,andthereforearer...[
阅读全文]
RunningandAnalyzingTestsRunPreferences
QuickTestalwaysrunsatestfromthefirststep,unlessyouspecifyotherwise.Youcan:
➤Runtheentiretestfromthebeginning.
➤RunonlyapartofatestusingtheRunfromStep,RunfromAction,RuntoSteporRuntoActionoptions.
DebugasectionofatestusingtheDebugfromsteporDebugfromActionoption.
RunaniterationofasingleactionusingtheRunCurrentActionoption.
R...[
阅读全文]
OutputValuesOutputValuesOverview
QuickTestenablesyoutoretrievevaluesinyourtestandstoretheminoutputvalueobjects.Anoutputvaluestepisastepinwhichoneormorevaluesarecapturedataspecificpointinyourtestandstoredforthedurationoftherunsession.Thevaluescanlaterbeusedasinputatadifferentpointintherunsession.Youcanoutputthepropertyvaluesofanyobject.Youcanalsooutputvaluesfromtextstrings,tablecells,databases,...[
阅读全文]
DataTablePane
DataTableOverview
QuickTestenablesyoutoinsertandrunstepsthataredrivenbydatastoredinthedatatable.Thedatayourtestusesisstoredinthedesign-timedatatable,whichisdisplayedintheDataTablepane.ThedatatablehasthecharacteristicsofaMicrosoftExcelspreadsheet,enablingyoutostoreandusedatainitscellsandalsoperformmathematicalformulaswithinthecells.YoucanusetheDataTable,DTSheetandDTParameterut...[
阅读全文]
Browser("Mercury").Page("ListOfSales").WebEdit("Soldto").
SetParameter("SoldToCode")
Browser("Mercury").Page("ListOfSales").WebEdit("Materials").
SetParameter("MaterialCode")
Browser("Mercury").Page("ListOfSales").WebButton("Enter").Click
NumTableRows=Browser("Mercury").Page("ListOfSales").
WebTable("Orders").RowCount
Parameter("TotalValue")=Browser("Mercury").Page("Lis...[
阅读全文]
http://www.softwaretestinggenius.com/articalDetails.php?qry=969[
阅读全文]
ActionandTestIterationsUsingtheDataTable
Whenyouusethedatatabletooutputavalueortoaddaparametertoyourtestoraction,youcanspecifywhethertostorethedataintheGlobaldatasheetorintheactiondatasheet.
Globalsheet.Enablesyoutodefineparametersforanyaction.Whenyourunyourtest,QuickTestinsertsoroutputsavaluefromortothecurrentrowoftheGlobaldatasheetduringeachglobaliteration.Thisenablesyoutopassinformation...[
阅读全文]
CheckpointsOverview
Acheckpointisaverificationthatcomparesthecurrentvalueforspecifiedpropertiesorcurrentstateofothercharacteristicsofanobjectwiththeexpectedvalueorcharacteristics.Thishelpsyoutoidentifywhetheryourapplicationisfunctioningcorrectly.
Whenyouaddacheckpoint,QTPaddsaCheckCheckPointstatementintheExpertView.
QuickTestenablesyoutoreuseexistingcheckpoints.Ifeachpageofyourapplicat...[
阅读全文]
ActionsActionshelpdivideyourtestintologicalunits.Atestcomprisescallstoactions.Whenyoucreateanewtest,itcontainsa
calltoasingleaction.Bycreatingteststhatcallmultipleactions,youcandesignteststhataremoremodularandefficient.Anactionconsistsofitsowntestscript,includingallofthestepsinthataction,andanyobjectsinitslocalobjectrepository.Actionsshould
ideallycontainnomorethanafewdozenteststeps.
Y...[
阅读全文]
ihgckocigna1
TheKeywordViewenablesyoutocreateandviewthestepsofyourtestina
modular,table-likeformat.YoucanusetheKeywordViewtoaddnewstepstoyourtestandtoviewand
modifyexistingsteps.TypesofStepstoAddtoYourTest:Youcaninsertthefollowingtypesofstepsusingtherelevantoptionsfrom
theInsertmenu.Astandardstatementstep.Acheckpointstep.Anoutputvaluestep.Comments.Astepthatusesprogramminglogic.Step...[
阅读全文]