資源描述:
《Chapter 4 JSystem Framework Services》由會員上傳分享,免費在線閱讀,更多相關內容在學術論文-天天文庫。
1、Chapter4JSystemFrameworkServices?Inthischapter…JSystemFrameworkServicesOverviewPage2FrameworkServicesInteractionwithAutomationPage3LayersHowtoWriteaSystemObjectPage4SystemUnderTest(SUT)IndependencePage9ReportsPage18HTMLReporterPage22AnalyzersPage35MonitorsPage39FixturesPage40Multi-UserSuppor
2、tPage49AdditionalServicesPage73AdditionalLanguageSupportPage764.1JSystemFrameworkServicesOverviewTheJSystemFrameworkservicesrefertothesetofAPIsoftwareapplicationsprovidedbytheJSystemAutomationPlatformthatenabletheusertodevelopandprovideimprovedandstreamlinedprojectautomation.Figure1:JSystemS
3、ervicesIllustrationThedrawingillustratestheJSystemservicesinteractionwiththeautomationlayersandtheSUT.TheframeworkservicelayersarethebuildingblocksoftheJSystemAutomationPlatform.ThefollowingsectionexplainsindetailtheFrameworkServicesusingJavacodeexamplestoshowhowthesebuildingblocksareconstru
4、ctedandused.4.1.1FrameworkServicesInteractionwithAutomationLayersSUTIndependence-TheSUTIndependentFrameworkServiceinteractsdirectlywiththesystemobject.ThisserviceindependencereferstotheabilityoftheusertoapplythesametesttodifferentDUTandSUTproductsandchangeparameterswithinthetests.Reports–The
5、ReportsFrameworkServiceinteractsdirectlywiththesystemobjectlayerandthetest/fixtureslayer,providingtransparentinformationaccesstoallotherautomationlayers.WhenascenarioisrunbyJSystemthetestcaselayeroperatesthesystemobjectsontheSUTorDUTthereportframeworkservicethenextractstheresults.Theseresult
6、saredeliveredtothereportsframeworkserviceandarecollatedinthecentralmanagementreportmechanismcalledtheJReporterapplication.Analysis–TheAnalysisFrameworkServiceextractsstatisticsfromtheReportFrameworkServiceconnectingdirectlytoresultsproducedbytheTest/Fixturelayer.TheTest/Fixturelayersendsareq
7、uesttotheSystemObjectlayerforananalysisofaspecificfunction;theresultsarethencollatedviatheReportFrameworkServiceandsenttotheuser.Monitor–TheMonitorFrameworkServicerunsaservicethatisperformedinparalleltothetestbeingperformed.TheMonitorFrameworkServi