软件测试实验五.docx
《软件测试实验五.docx》由会员分享,可在线阅读,更多相关《软件测试实验五.docx(47页珍藏版)》请在冰点文库上搜索。
软件测试实验五
实验五RationalTestManager使用
Contents
Lab1–IntroductiontoTestManagerandProjects1-1
Lab2–ManagingTestPlanningandDesign2-1
Lab3–DevelopingandExecutingManualTestsandSuites3-1
Lab4–DeterminingandReportingTestResults4-1
Lab1
IntroductiontoTestManagerandProjects
RationalAdministratoristhetoolthatallowsyoutoworkwithRationalProjects.WithAdministrator,youcancreatenewProjects,registerProjects,upgradeProjectassets,creategroupsandusers,andassignpermissions.
Objectives
Whenyoucompletethislab,youshouldbeableto:
ØConnecttoaProjectinRationalAdministrator.
ØCreategroupsandusers.
ØAssigngrouppermissions.
ØImportaClearQuestProfilefile.
Exercise1.1ExploretheTestManagerInterface
StartTestManagerandLogintoaProject
Steps
Comments
1.StartRationalTestManager.
Start>Programs>RationalSoftware>RationalTestManager.
TheRationalTestLoginboxappears.
2.TypeadminastheUserName,ifnotalreadythere,andleavethePasswordboxblank.
3.LogintotheTM-Trainingprojectasadminwithnopassword.
IftheprojectdoesnotappearintheProjectlist,clickBrowsetolocateandselect:
Toconnecttoadifferentproject,clickBrowselocatedtotherightoftheProjectbox,thenbrowsefortheproject.
C:
\TM-Training\TM-Training.rsp.
4.ClickOK.
ExploretheTestManagerMainWindow
TestAssetWorkspace
LaunchotherTeamTesttools
Tabstoswitchbetweendifferentviewsoftestassets
EachtabintheTestAssetWorkspaceprovidesaviewofthetestassetsmostimportanttothatparticularpartofthetestingproject:
TestAssetWorkspaceTab
Providesaviewoftheseassets
Planningtab
Testplans,Iterations
Executiontab
Suites,Computers,ComputerLists
Resultstab
Builds,TestLogfolders,TestLogs
Analysistab
Reports
Steps
Comments
1.IntheTestAssetWorkspace,selectthePlanningtab.
Thetabsareinthelowerleftcorner.YoumayneedtoenlargetheTestAssetWorkspacetoreadthem.
2.ExpandtheTestPlansfoldertoseethetestplansintheproject.
3.ExpandtheIterationsfoldertoseeiterationsavailableinyourproject.
4.ExploretheExecution,Results,andAnalysistabsintheTestAssetWorkspace.
5.CloseTestManager.
Exercise1.2ConfigureaProject
CreateGroupsandAssignPrivileges
Steps
Comments
1.StartRationalAdministrator.
Start>Programs>RationalSoftware>RationalAdministrator.
2.InRationalAdministrator,right-clicktheTM-TrainingProjectintheleftpane,thenclickConnectfromtheshortcutmenu.
TocreategroupsinProject,youmustbeconnectedtothatProject.Ifyouarepromptedforapassword,enteradminaspasswordintheConnectdialog.
3.ExpandtheRationalTestDatastorebranch.
4.ExpandtheTestGroupsicontoshowthedefaultgroups.
5.Toinsertanewgroup,right-clicktheTestGroupsicon,thenclickInsertTestGroup.
TestGroupsareusedtomanageusersandassignprivileges.Userswhoaremembersofagroupinherittheprivilegesofthegroup.
6.TypeManagersintheNamebox,andclickSelectAlltoassignfullprivileges.ClickOK.
InsertagroupnamedManagerswiththefullWriteandfullAdministrationprivileges.
7.AddasecondgroupcalledTesters.Assignthemallwriteprivileges,butnoadministrativeprivileges.
InsertagroupnamedTesterswithwriteprivilegesonly.
8.ClickOK.
AddUsers
Steps
Comments
1.Right-clicktheTestUsersicon,andclickInsertTestUser.
2.TypeSeniorQAintheUserIDboxandSeniorQAinthePasswordbox.
3.AssignSeniorQAtotheManagersgroupbyclickingtheGroupstabandselectingManagers.Double-clickManagerstomoveittotherightpane.Ifnecessary,double-clickPublictomoveittotheleftpane.
Usersinherittheprivilegesofthegrouptowhichtheyareassigned.
Note:
Passwordsarecasesensitive.
4.ClickOK.
5.InsertaseconduserwithaUserIDofJuniorQAandaPasswordofJuniorQA.AssignJuniorQAtotheTestersgrouponly.
6.ClickOK.
7.ExpandtheTestUsersicon.Youshouldseetheusersyoucreated,plustheadminuser.
8.
SelectaUserandright-clicktoviewProperties.
Userpropertiescanbemodifiedfromthisscreen.
9.ClosetheTestUserPropertiesdialog.
ImportaClearQuestProfileFile
Steps
Comments
1.InRationalAdministrator,clickTools>RationalClearQuestMaintenanceTool.
TheClearQuestMaintenanceTooldialogboxappears.
2.ClickFile>ImportProfile.
3.Browseto:
AClearQuestAdministratortypicallysetsthisupforyoubasedonuserprofilesforappropriateprivilegelevels.
C:
\TM-Training\ChangeRequests\cqprofile.ini
4.ClickOpen.
ThefilenameappearsintheFileNamebox.
5.ClickNext.
6.ClickFinish.
Acceptthedefaults.
7.Ifanotherdialogappears,clickYestoproceed.
8.ClickDone.
Noticethedatabasename:
CQMaster.mdb.ThiswillbedifferentbasedonthenamingconventionsthatyourClearQuestAdministratorusesandthetypeofdatabaseinuse.
9.ClickExit.
10.CloseRationalAdministrator.
Lab2
ManagingTestPlanningandDesign
RationalTestManagerallowsyoutocentralizeandorganizeyourtestinginformationforusebymembersofatestteam.Inthislab,youwillplan,design,organize,andmanagetests.
Objectives
Whenyoucompletethislab,youshouldbeableto:
ØRegisteranMSExcelspreadsheetasatestinputsource.
ØManageconfigurationsandconfigurationattributes.
ØAddanewtestplan.
ØAssociateanexternaldocumentwithatestplan.
ØAddtestcasefolderstoatestplan.
ØCreateandconfiguretestcases.
ØViewsuspecttestcasesinTestInputsView,intheTestPlanwindow,andinTestCaseProperties.
ØCleartestcasesuspicionstatus.
ØUseTestManagertodesignatestcase.
ØOutlineimplementationstepsandverificationpointsinTestManagerDesignEditor.
ØSpecifytestpreconditions,post-conditions,andacceptancecriteria.
Exercise2.1ManagingTestPlanning
RationalTestManagerallowsyoutocollectandorganizeyourtestinginformation,andlocateitinacentralplacethatallmembersoftheteamcanaccess.
Inthisexercise,yousetupTestManagerwithplanninginformationthathelpsyouruntherighttestsattherighttime.YouregisteranExcelspreadsheetthatcontainsusecaseflowdetailsasatestinputsource.Youalsoeditexistingconfigurationsandaddanewone.
RegisteraTestInputSource
Inthissectionoftheexercise,youregisteranExcelspreadsheetasatestinputsource.ThespreadsheetintheexampleoutlinesscenariosforthePlaceanOrderusecase.Laterinthelab,youcreatetestcasesbasedonthePlaceanOrderusecase,andyouassociatevaluesinthespreadsheetastestinputstothosetestcases.
Youcanviewthespreadsheet:
C:
\TM-Training\samples\UCSEC-TCSprocesssales.xls.
Thisisasamplefromtheusecaseflow:
Steps
Comments
1.StartRationalTestManagerandlogintotheTM-Trainingproject.
IftheprojectdoesnotappearintheProjectlist,clickBrowsetolocateandselect:
AdministheUsernameandleavethePasswordboxempty.
C:
\TM-Training\TM-Training.rsp.
2.FromtheTestManagermainmenu,clickTools>Manage>TestInputTypes.
TheManageTestInputTypesdialogboxappears.
3.SelectMicrosoftExcel,thenclickEdit.
TheTestInputPropertiesdialogboxappears.
4.SelecttheSourcestab,thenclickInsert.
TheNewTestInputSourcedialogboxappears.
5.OntheGeneraltab,intheNamefield,typePlaceanOrderusecase.
Descriptionisoptional.Youcanleavetheownerasadmin.
6.SelecttheConnectionDatatab,thenclickBrowse.Browseto:
C:
\TM-Training\samples\UCSEC-TCSprocesssales.xls.
7.ClickOpen.
8.ClickSetConfiguration.
9.Youarepromptedtosavethetestinputsourcebeforeconfiguringit,clickYes.
TheSetConfigurationdialogboxappears.
Dataisorientedinrowsinexample.
10.IntheSetConfigurationdialogbox,enterthefollowingvaluesthatreflecttheconfigurationofthesamplespreadsheet:
Inputnameisincolumn2.
Datewheninputwaslastmodifiedisincolumn3.
EachvalueinthespreadsheetmusthaveauniqueID.Inthisexample,column1containstheID.
Dataareaofthespreadsheet.
Firstrowcontainscolumnheadings.
11.ClickOK.
12.ClickOKintheNewTestInputSourcePropertiesdialog.
13.ClickOKintheTestInputTypePropertiesdialogbox.
14.ClickCloseintheManageTestInputTypedialogbox.
EditConfigurationAttributes
1.Fromthemainmenu,selectTools>Manage>ConfigurationAttributes.
2.ClickNewintheManageConfigurationAttributesdialogbox.
TestManagercomeswithanumberofpre-setconfigurationattributes.Youcanaddvaluestoanyoftheattributesonthelistorcreatenewattributes.
3.TypeDatabaseTypeintheNameboxoftheNewConfigurationAttributedialogbox.
Thedescriptionfieldisoptional.
4.IntheSourceofvaluesbox,clickList.
5.IntheListvaluesbox,typeMSAccess,thenclickAdd.
MSAccessisaddedtothelist.
6.AddSQLServerandOracletothelist.
Refertostep5above.
7.ClickOK.
8.Addthevalues48,64,and128totheMemorySizeattribute.
ClickEdit,thenrefertothestepsabovetoaddvaluestotheattribute.
9.ClickOK.
10.ClickClose.
CreateaNewConfiguration
1.Fromthemainmenu,selectTools>Manage>Configurations.
TestManagercomeswiththreepredefinedconfigurations.
2.ClickNew.
3.TypeWindows98intheNamebox.
Adescriptionisoptional.
4.ClicktheAttribut