开发数据库系统的高效和快捷,因此对将本系成功能更新更高效、通用性更强有了新的期待。
参考文献
[1]周绪,管丽娜,白海波编著.SQLServer2000中文版[M].北京:清华大学出版社,2001.5
[2]杭国英主编.VisualBasic程序设计[M].北京:北京机械工业出版社,2003.8
[3]岂兴明,矫津毅,银华强编著.VisualBasic.NET项目开发宝典[M].北京:电子工业出版社,2007.1
[4]陈语林编著.VisualBasic.NET程序设计教程[M].北京:中国水利水电出版社,2005.9
[5]郝佳波等主编.VisualBasic.NET实用教程[M].陕西:西安电子科技大学出版社,2006.1
[6]潘英,陈君等译.VisualBasic.NET专业项目实例开发[M].北京:中国水利水电出版社,2003.1
[7]王栋主编.VisualBasic课程设计[M].北京:清华大学出版社,2004.4
[8]萨师煊王珊编著.数据库系统概论[M].北京:高等教育出版社,2002.2
[9]王千祥等译.实用软件体系结构[M].北京:电子工业出版社,2004.9
[10]史济民,顾春华,李昌武苑荣编著.软件工程原理、方法与应用[M].北京:高等教育出版社,2002.12
致谢
本课题在选题及研究过程中得到杨玉宾老师的悉心指导。每个星期都与我学术交流,并为我指点迷津,在我开拓研究思路。他一丝不苟的治学作风,严谨探究的态度,不仅教会我在学习上如何探讨研究,还让我明白了做人处世的诚诚恳恳。在此我对杨玉宾老师表示衷心感谢。同时也感谢班主任苏洁老师,谢谢她几年来对我学习、生活上的照顾。
UsingIBMRationalPerformanceTesterv6.1
ToGenerateDynamicRequests
ForperformancetestingWebapplications,youneedtheabilitytomakeyourrecordingsofinteractionswiththeseapplicationshighlydynamic.Thisin-deptharticleshowsyouhowtoworkwithdatapoolsanddatacorrelationinIBMRationalPerformanceTester.
TestingtheperformanceofaWebapplicationisn'tasimplematterofrecordingascenarioandplayingitbacktosimulateanumberofdifferentusershittingtheapplication.ManymodernWebapplicationsandWebapplicationframeworksconstructpagescontainingcomplexURLsthatarebuiltdynamicallyandsocan'tberecordedstaticallyinatestscenario.Thismeansthatyoumustbeabletocreatetestscenariosthatareflexibleenoughtogeneraterequestsforanykindofclient/servercombinationregardlessofthecomplexityanddynamicnatureoftheserver'sresponse.WithIBM(r)Rational(r)PerformanceTester6.1,youcanmakerecordingsofinteractionswithWebapplicationshighlydynamicthroughtheuseofdatapoolsanddatacorrelation.Thisarticleshowsyouhow,afterwalkingyouthroughtheprocessofrecordingabasicscenariowithPerformanceTester.
Recordingatestscenario
PerformanceTesterisbuiltontheEclipseframeworkandusestheunderlyingEclipseIDEfortheexecutionoftestscenariosthatarebasedontheexecutionofJava(tm)code.WhenyouinstallIBMRationalPerformanceTester6.1,afullversionofEclipse3.0isalsoinstalled.IthappilycoexistswithotherinstallationsofEclipsethatmaybepresentonyourtestmachine.WhenyoufirststartPerformanceTester,you'representedwithastandardEclipsedisplaywithanewperspectivecalledTestandseveralnewviews,themostimportantofwhichistheTestNavigator,asshowninFigure1.
Figure1.PerformanceTesterstart-upscreen
Allcomponentsofyourtestlivewithinthecontextofaperformancetestproject,whichyoucreatebyselectingFile>New>PerformanceTestProject.ThisisdifferentfromanEclipseproject.Thetestcomponentswon'tbeproperlyrecognizedunlessthey'recontainedinaperformancetestproject.
Onceyou'vecreatedaperformancetestproject,youneedtodefineaperformancetest.Youcandothiseitherbyrecordinganinteractionwiththeserveryou'retestingorbycreatinganemptytestandbuildingitfromscratch.IfyouhaveaverysimplescenariowithasmallnumberofrelativelystaticURLsoraverydynamicscenariothatrequirescustomcodingofrequests,itmaymakesensetodothelatter.HereI'lldetailtheprocessofperformingarecordingsoyoucanseewhatafullypopulatedtestlookslike.
Afteryoucreateaperformancetestproject,PerformanceTesterofferstostarttheHTTPrecordertorecordanewperformancetest.Youcaneitheraccepttheofferandrecordaperformancetestrightaway,ordoitlaterbyselectingFile>New>RecordPerformanceTestwhenyou'reready.
Anoteaboutbrowsersandrecording
OnMicrosoft(r)Windows(r)machines,bydefault,PerformanceTesterusesInternetExplorer(IE)asthebrowserforrecording.ItautomaticallyconfigurestheproxysettingsofIEsothatHTTPrecordingoccurscorrectly.IfyouwanttouseabrowsersuchasMozillaorFirefox,youmusttellPerformanceTesternottouseIE.Fromthemenu,selectWindows>Preferences>Test>HTTPProxyRecorderandchangethe"Applicationtorecord"settingfromInternetExplorertoNone.(OnLinuxthedefaultisNone,sothisstepisunnecessaryonthatplatform.)
YouthenneedtostartthebrowsermanuallyandsettheproxysettingscorrectlysothatitsendsinformationthroughtheIBMRationalAgentController.YoucanfinddetailedinstructionsonconfiguringaMozilla-basedbrowserintheproducthelpfileandcanadapttheseforanybrowser.OncethebrowserisconfiguredcorrectlyyoucanstarttherecordingfromPerformanceTester.
Torecordaperformancetest,justtypeinyourinitialURLandinteractwiththeserverasneededtodefineyourscenario.Onceyou'vecompletedthis,closethebrowserthatyou'reworkingwith,andPerformanceTesterwillknowthatyou'vefinishedwithyourrecordingandwillcreatetheperformancetest.
Figure2showsanexampleofaperformancetestdefinedbybrowsingasiterunningIBM(r)WebSphere(r)Portal5.1:
Figure2.Anexampleperformancetestdefinition
Thetestiscontainedwithintheproject,asyoucanseeintheTestNavigatorview.Withintheperformancetestaretheindividualstepsofthescenario,whichyoucanseeintheTestContentspaneoftheexpandedperformancetest.Eachhigh-levelstepislabeledwiththenameofthereturnedpage(IBMWebSpherePortal,IBMWebSpherePortal{1},andsoforth).Ifyouweretoexpandahigh-levelstep,youwouldseetheindividualHTTPrequeststhatcomprisetheWebpage,theinitialonebeingtheURLissuedfromtheclientandtherestbeingimageandJavaScript(tm)programminglanguagerequeststhattheclientissuestocompleteconstructionoftherequestedpage.
Usingdatapools
Duringrecordingoftheperformancetest,thespecificURLsandrequestparametersissuedbytheclientarerecordedaswell.Butwhenyouplaybacktheperformancetesttogenerateloadwithmanysimulatedusers,youmaynotwantthesameURLsandrequ
上一篇:
VB_net+SQL房地产评估系统(论文和程序)
下一篇:
医学论文英语标题写作的修辞原则