欢迎来到天天文库
浏览记录
ID:39356955
大小:2.89 MB
页数:51页
时间:2019-07-01
《Chapter 11 JSystem Quick Start Project》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Chapter11JSystemAutomationFrameworkQuickStartProject➣Inthischapter…QuickStartProjectOverviewPage2Step1:EnabletheCLIAgentPage3Step2:CreatingaNewEclipseWorkspacePage3Step3:ImportingtheJRunnerintotheWorkspacePage3Step4:CreatingaNewSystemObjectProjectPage6Step5:CreatingTestsProjectPage9Step6:Writin
2、gaPingTestandScenarioPage12Step7:AddingTestParametersPage21Step8:WritingtheSystemObjectSkeletonPage23Step9:ImplementingthePingCommandPage32Step10:PerformingAnalysisPage42Step11:WritingtheFixturesPage46ImplementationofaFixturePage48AssociatingaScenariowithaFixturePage5011.1QuickStartProjectOverv
3、iewWelcometotheQuickStartproject,thissectionisdesignedtoprovidethetestauthorwiththenecessarytoolsrequiredtowriteascenariothatinstallsapatchonadeviceundertest(DUT),alteritshoststableandverifiesthatthemachinehasapingtoaremoteaddress.Note:TheoperationsareactivatedusingtheJSystemconnectivitypackage
4、(telnet/SSH).Youwillthereforebeabletoactivatethetestsoneitherthelocalmachineoranyothermachineinthesetup.Figure1:QuickStartIllustrationTheexamplesetupincludestwomachines,thefirstisinstalledwiththeJRunner,thesecondisthedeviceundertest(DUT),inthistestcasetheDUTisanotherwindows/linuxmachine.11.1.1P
5、reparingyourSystemOncetheplanninganddesigningstageoftheautomationprojectiscompletethesystemobjectthatmodelstheDUTisimplemented.Inthefollowingexampleprojectfollowthestepbystepinstructions,startbypreparingyoursystembyopeningtheCLIclientandcreateanewworkspaceandanewsystemobjectproject.11.1.1.1Unde
6、rstandingtheProcessOnceyourinitialsetupiscompleteyouarenowreadytobeginwritingyourfirsttestinthescenario.Aftercompletingthefirsttestyouwilllearnhowtoextendthefunctionalityofthetestenablingitto“getpingdestination”and“pingpacketsize”fromtheJRunnerbycreatinginputfieldsinthe“parameters”sectionofthe“
7、testinfotab”inthe“testtab”thattheusercaninputthe“pingdestination”andthe“packetsize”.OncetheskeletonofthescenarioisreadyyouwillbeabletoaddaskeletonofthesystemobjectwhichmodelstheDUT.Aftercompletion,implementthe“pingcommand”usingthe
此文档下载收益归作者所有