enabledpathinfo
pathinfo 时间:2021-05-19 阅读:(
)
SilkTest2010TestingFlexApplicationsExtensionKitfor.
NETBorlandSoftwareCorporation4HuttonCentreDr.
,Suite900SantaAna,CA92707Copyright2009-2010MicroFocus(IP)Limited.
AllRightsReserved.
SilkTestcontainsderivativeworksofBorlandSoftwareCorporation,Copyright1992-2010BorlandSoftwareCorporation(aMicroFocuscom-pany).
MICROFOCUSandtheMicroFocuslogo,amongothers,aretrademarksorregisteredtrademarksofMicroFocus(IP)LimitedoritssubsidiariesoraffiliatedcompaniesintheUnitedStates,UnitedKingdomandothercountries.
BORLAND,theBorlandlogoandSilkTestaretrademarksorregisteredtrademarksofBorlandSoftwareCorporationoritssubsidiariesoraffiliatedcompaniesintheUnitedStates,UnitedKingdomandothercountries.
Allothermarksarethepropertyoftheirrespectiveowners.
July2010SilkTest2010TestingFlexApplicationsiiiContentsContentsIntroduction5OverviewofAdobeFlexSupport5LimitationsforFlex6SampleApplications6Chapter1EnablingYourFlexApplicationforTesting7EnablingYourApplicationforTesting7LoadingAutomationPackagesatRunTime.
.
8CompilingAutomationPackagesPriortoRunTime9Chapter2TutorialforFlexApplicationTesting13PrerequisitesforTestingOurAdobeFlexApplications13SilkTestTutorial14LaunchingtheControlExplorer15CreatingaNewProject15ConfiguringaFlexApplication16RecordingaTestcase17ReplayingaTestcase19Silk4JQuickTour20ImportingSilk4JSampleScripts20RunningaSampleTestcase21ivSilkTest2010TestingFlexApplicationsSilkTest2010TestingFlexApplications5IntroductionIntroductionThischapterprovidesanoverviewofAdobeFlexsupportforSilkTestClassicandSilk4J,thelimitationsforFlexsupport,andthesampleapplicationsprovidedwithSilkTest.
WhatyouwilllearnThisbookcontainsthefollowingchapters:OverviewofAdobeFlexSupportSilkTestprovidesbuilt-insupportfortestingAdobeFlexapplicationsusingthe4Testscriptinglanguage.
YoucanalsotestAdobeFlexapplicationswiththeSilk4JEclipseplug-inusingtheJavaprogramminglanguage.
Silk4Jisanoptionalprogram.
Duringinstallation,youmustspecifythatyouwanttoinstallSilk4Jinordertouseit.
SectionPageEnablingYourFlexApplicationforTesting7TutorialforFlexApplicationTesting136SilkTest2010TestingFlexApplicationsINTRODUCTIONLimitationsforFlexLimitationsforFlexThefollowinglimitationsexistwhenusingAdobeFlexwithSilkTest.
Functions/classesinthewinclass.
incfilethataremarkedwiththe"supported_ca"keywordaresupportedontheClassicAgentonly.
CertainfunctionsandmethodsrunontheClassicAgentonly.
Whenthesearereplayed,theydefaulttotheClassicAgentautomatically.
YoucanusetheseinanenvironmentthatusestheOpenAgent.
SilkTestwillautomaticallyusetheappropriateAgent.
Foradditionalinformation,refertotheSilkTestonlinehelp.
FordetailsaboutknownFlexissues,refertotheReleaseNotes.
SampleApplicationsSilkTestprovidesseveralsampleAdobeFlextestapplications.
YoucanusethesesampleapplicationstorecordtestswithSilkTestandSilk4J.
YoumustdownloadtheFlexsampleapplicationsfromhttp://techpubs.
borland.
com/silk_gauntlet/SilkTest/.
Afteryouhaveinstalledthesampleapplications,chooseStart/Programs/Silk/SilkTest/SampleApplications/AdobeFlex/FlexSampleApplicationsandselectthesampleapplicationthatyouwanttouse.
TheQuickTourchapterusestheControlExplorersampleapplicationtowalkyouthroughtestingaFlexapplication.
However,ifyouprefer,youcanuseyourownFlexapplicationtoperformthesesteps.
Ifyouuseyourownapplication,followthestepsinthe"EnablingYourFlexApplicationforTesting"chapterbeforeyoubegintheQuickTour.
SilkTest2010TestingFlexApplications71Chapter1EnablingYourFlexApplicationforTestingIntroductionThischapterdetailshowtousetheAdobeFlexAutomationAPItoprepareyourFlexapplicationforautomationtestingusingSilkTest.
Flexdevelopersarethetargetaudienceforthisdocument.
ForinformationaboutwhichversionofFlextouseandwhichbrowsersandoperatingenvironmentsaresupportedfortesting,refertotheSilkTestReleaseNotes.
EnablingYourApplicationforTestingToenableyourFlexapplicationfortesting,youmustincludethefollowingcomponentsinyourapplication:"AdobeFlexAutomationPackage""SilkTestAutomationPackage"Youcanloadthesepackagesatruntimeorpriortoruntimebyprecompilingyourapplication.
Whenyouloadtheautomationpackagesatruntime,yourapplicationisnotmodified.
However,thismethodisdifficulttouseinapplicationsthataretestedinawebbrowser.
Fordetailsabouttheselimitations,see"Limitations"onpage8.
Incontrast,precompilingyourapplicationmodifiesyourapplicationandincreasesthefilesize,whichmeansthatyoumustcreatetwobuilds,onefortestingandoneforrelease.
However,thismethodworksforallapplications.
Formoredetailsaboutthedifferencesbetweentheruntimeandprecompiledapproaches,refertotheAdobeguidelineathttp://download.
macromedia.
com/pub/documentation/en/flex/2/at_api.
pdf.
8SilkTest2010TestingFlexApplications1ENABLINGYOURFLEXAPPLICATIONFORTESTINGEnablingYourApplicationforTestingNoteIfyouareusingaFlexsampleapplication,youdonotneedtoperformthesesteps.
Thesampleapplicationshavealreadybeenenabledfortesting.
LoadingAutomationPackagesatRunTimeYoucanloadautomationsupportatruntimeusingtheSilkTestFlexAutomationLauncher.
ThisapplicationiscompiledwiththeautomationlibrariesandloadsyourapplicationwiththeSWFLoaderclass.
ThisautomaticallyenablesyourapplicationfortestingwithoutcompilingautomationlibrariesintoyourSWFfile.
TheSilkTestFlexAutomationLauncherisavailableinHTMLandSWFfileformats.
LimitationsTheFlexAutomationLauncherApplicationautomaticallybecomestherootapplication.
Ifyourapplicationmustbetherootapplication,youcannotloadautomationsupportwiththeSilkTestFlexAutomationLauncher.
Forotheroptions,see"CompilingAutomationPackagesPriortoRunTime"onpage9.
Testingapplicationsthatloadexternallibraries–ApplicationsthatloadotherSWFfilelibrariesrequireaspecialsettingforautomatedtesting.
Alibrarythatisloadedatruntime(includingrun-timesharedlibraries(RSLs))mustbeloadedintotheApplicationDomainoftheloadingapplication.
IftheSWFfileusedintheapplicationisloadedinadifferentapplicationdomain,automatedtestingrecordandplaybackwillnotfunctionproperly.
ThefollowingexampleshowsalibrarythatisloadedintothesameApplicationDomain:importflash.
display.
*;importflash.
net.
URLRequest;importflash.
system.
ApplicationDomain;importflash.
system.
LoaderContext;varldr:Loader=newLoader();varurlReq:URLRequest=newURLRequest("RuntimeClasses.
swf");varcontext:LoaderContext=newLoaderContext();context.
applicationDomain=ApplicationDomain.
currentDomain;loader.
load(request,context);SilkTest2010TestingFlexApplications91ENABLINGYOURFLEXAPPLICATIONFORTESTINGEnablingYourApplicationforTestingTousetheFlexAutomationLauncherforrun-timeloading1CopythecontentoftheSilk\SilkTest\ng\AutomationSDK\Flex\\FlexAutomationLauncherdirectoryintothedirectoryoftheFlexapplicationthatyouaretesting.
2OpenFlexAutomationLauncher.
htmlinWindowsExplorerandaddthefollowingparameterasasuffixtothefilepath:automationurl=YourApplication.
swfwhereYourApplication.
swfisthenameofthe.
swffileforyourFlexapplication.
3Addfile:///asaprefixtothefilepath.
Forexample,ifyourfileURLincludesaparameter,suchas:automationurl=explorer.
swf,type:file:///C:/Program%20Files/Silk/SilkTest/ng/samples/Flex/3.
2/FlexControlExplorer32/FlexAutomationLauncher.
htmlautomationurl=explorer.
swf.
Fordetailsaboutcreatingeventsandcustomcomponentstosupportautomatedtesting,referto"InstrumentingFlexEventsandComponents"intheSilkTestonlinehelp.
CompilingAutomationPackagesPriortoRunTimeYoucanprecompileapplicationsthatyouplantotest.
Thefunctionaltestingclassesareembeddedintheapplicationatcompiletime,andtheapplicationhasnoexternaldependenciesforautomatedtestingatruntime.
WhenyouembedfunctionaltestingclassesinyourapplicationSWFfileatcompiletime,thesizeoftheSWFfileincreases.
IfthesizeoftheSWFfileisnotimportant,usethesameSWFfileforfunctionaltestinganddeployment.
IfthesizeoftheSWFfileisimportant,generatetwoSWFfiles,onewithfunctionaltestingclassesembeddedandonewithout.
UsetheSWFfilethatdoesnotincludetheembeddedtestingclassesfordeployment.
10SilkTest2010TestingFlexApplications1ENABLINGYOURFLEXAPPLICATIONFORTESTINGEnablingYourApplicationforTestingWhenyouprecompiletheFlexapplicationfortesting,intheinclude-librariescompileroption,referencethefollowingfiles:automation.
swcautomation_agent.
swcFlexTechDomain.
swcautomation_charts.
swc(includeonlyifyourapplicationuseschartsandFlex2.
0)automation_dmv.
swc(includeonlyifyourapplicationuseschartsandFlex3.
x)automation_flasflexkit.
swc(includeonlyifyourapplicationusesembeddedflashcontent)WhenyoucreatethefinalreleaseversionofyourFlexapplication,yourecompiletheapplicationwithoutthereferencestotheseSWCfiles.
FormoreinformationaboutusingtheautomationSWCfiles,seetheAdobeFlexReleaseNotes.
Ifyoudonotdeployyourapplicationtoaserver,butinsteadrequestitbyusingthefileprotocolorrunitfromwithinAdobeFlexBuilder,youmustincludeeachSWFfileinthelocal-trustedsandbox.
Thisrequiresadditionalconfigurationinformation.
Addtheadditionalconfigurationinformationbymodifyingthecompiler'sconfigurationfileorusingacommand-lineoption.
ModifyingtheCompiler'sConfigurationFiletoAddConfigurationInformation1Includetheautomation.
swc,automation_agent.
swc,andFlexTechDomain.
swclibrariesinthecompiler'sconfigurationfilebyaddingthefollowingcodetotheconfigurationfile:.
.
.
/libs/automation.
swc/libs/automation_agent.
swcpathinfo/FlexTechDomain.
swcNoteIfyourapplicationusescharts,youmustalsoaddtheautomation_charts.
swcfiletotheinclude-librariescompileroption.
2Specifythelocationoftheautomation.
swc,automation_agent.
swc,andFlexTechDomain.
swclibrariesusingtheinclude-librariescompileroptionwiththecommand-linecompiler.
SilkTest2010TestingFlexApplications111ENABLINGYOURFLEXAPPLICATIONFORTESTINGEnablingYourApplicationforTestingTheconfigurationfilesarelocatedat:Thefollowingexampleaddstheautomation.
swcandautomation_agent.
swcfilestotheapplication:mxmlc-include-libraries+=.
.
/frameworks/libs/automation.
swc;.
.
/frameworks/libs/automation_agent.
swc;pathinfo/FlexTechDomain.
swcMyApp.
mxmlNoteExplicitlysettingtheinclude-librariesoptiononthecommandlineoverwrites,ratherthanappends,theexistinglibraries.
Ifyouaddtheautomation.
swcandautomation_agent.
swcfilesusingtheinclude-librariesoptiononthecommandline,ensurethatyouusethe+=operator.
Thisappendsratherthanoverwritestheexistinglibrariesthatareincluded.
NoteTheSilkTestFlexAutomationSDKisbasedontheAutomationAPIforFlex.
TheSilkTestAutomationSDKsupportsthesamecomponentsinthesamemannerthattheAutomationAPIforFlexsupportsthem.
Forinstance,whenanapplicationiscompiledwithautomationcodeandsuccessive.
swffilesareloaded,amemoryleakoccursandtheapplicationrunsoutofmemoryeventually.
TheFlexControlExplorersampleapplicationisaffectedbythisissue.
Theworkaroundistonotcompiletheapplication.
swffilesthatExplorerloadswithautomationlibraries.
Forexample,compileonlytheExplorermainapplicationwithautomationlibraries.
Anotheralternativeistousethemoduleloaderinsteadofswfloader.
FormoreinformationaboutusingtheFlexAutomationAPI,seetheAdobeFlexReleaseNotes.
Fordetailsaboutcreatingeventsandcustomcomponentstosupportautomatedtesting,referto"InstrumentingFlexEventsandComponents"intheSilkTestonlinehelp.
ProductFilelocationAdobeFlex2SDK/frameworks/flex-config.
xmlAdobeFlexDataServices/flex/WEB-INF/flex/flex-config.
xmlTable1:Configurationfilelocations12SilkTest2010TestingFlexApplications1ENABLINGYOURFLEXAPPLICATIONFORTESTINGEnablingYourApplicationforTestingSilkTest2010TestingFlexApplications132Chapter2TutorialforFlexApplicationTestingIntroductionThischapterguidesyouthroughthestepsoftestinganAdobeFlexapplication.
QualityAssurancetestersarethetargetaudienceforthischapter.
ForinformationaboutwhichversionofFlextouseandwhichbrowsersandoperatingenvironmentsaresupportedfortesting,refertotheReleaseNotes.
WhatyouwilllearnThischaptercontainsthefollowingsections:PrerequisitesforTestingOurAdobeFlexApplicationsBeforeyoulaunchanAdobeFlexapplicationthatrunsasalocalapplicationforthefirsttime,youmustconfiguresecuritysettingsforyourlocalFlashPlayer.
YoumustmodifytheAdobespecificsecuritysettingstoenablethelocalapplicationaccesstothefilesystem.
ToconfiguresecuritysettingsforyourlocalFlashplayer1OpentheFlexSecuritySettingsPagebychoosingStart/Programs/Silk/SilkTest/SampleApplications/AdobeFlex/FlexSecuritySettings.
2ClickAlwaysallow.
SectionPagePrerequisitesforTestingOurAdobeFlexApplications13SilkTestTutorial14Silk4JQuickTour2014SilkTest2010TestingFlexApplications2TUTORIALFORFLEXAPPLICATIONTESTINGSilkTestTutorial3FromtheEditLocationsdrop-downmenu,clickAddLocation.
4ClickBrowseforfolderandnavigatetothefolderwhereyourlocalapplicationisinstalled.
TheControlExplorersampleapplicationislocatedinthe\ng\sampleapplications\flexfolderonyourlocaldrive.
Bydefault,theislocatedatProgramFiles\Silk\SilkTest.
5ClickConfirmandthenclosethebrowser.
SilkTestTutorialThistutorialexplainseachofthestepsinvolvedintestinganAdobeFlexapplicationwithSilkTest.
TheseproceduresusetheControlExplorersampleapplication.
However,ifyouhaveanotherFlexapplicationthatyouprefertouse,makesurethatthestepsinthepreviouschapterhavebeencompletedandthenfollowthesesteps.
Thestepsinclude:"LaunchingtheControlExplorer""CreatingaNewProject""ConfiguringaFlexApplication""RecordingaTestcase""ReplayingaTestcase""Silk4JQuickTour"SilkTest2010TestingFlexApplications152TUTORIALFORFLEXAPPLICATIONTESTINGSilkTestTutorialLaunchingtheControlExplorerCompiledwiththeAdobeAutomationSDKandtheSilkTestspecificautomationimplementation,theControlExplorerispreconfiguredfortesting.
TolaunchtheControlExplorerChooseStart>Programs>Silk>SilkTest>SampleApplications>AdobeFlex>Flex>FlexControlExplorer>ControlExplorerwithAutomation.
Theapplicationlaunchesinyourdefaultbrowserandlookssimilartothefollowingimage:CreatingaNewProjectTotestthesampleSilkTestFlexapplication,beginbycreatinganewproject.
Tocreateaproject1InSilkTest,chooseFile/NewProject,orclickOpenProject/NewProjectontheBasicworkflowbar.
2OntheNewProjectdialog,underRichInternetApplications,clickAdobeFlex.
3ClickOK.
4OntheCreateProjectdialog,typetheProjectnameandDescription.
16SilkTest2010TestingFlexApplications2TUTORIALFORFLEXAPPLICATIONTESTINGSilkTestTutorial5ClickOKtosaveyourprojectinthedefaultlocation,\Projects.
Ifyoudonotwanttosaveyourprojectinthedefaultlocation,clickBrowseandspecifythefolderinwhichyouwanttosaveyourproject.
6SilkTestcreatesyourprojectanddisplaysnodesontheFilesandGlobaltabsforthefilesandresourcesassociatedwiththisproject.
ConfiguringaFlexApplicationConfiguretheapplicationtosetuptheenvironmentthatSilkTestwillcreateeachtimeyourecordorreplayatestcase.
Whenyouconfigureanapplication,SilkTestautomaticallycreatesabasestatefortheapplication.
Anapplication'sbasestateistheknown,stablestatethatyouexpecttheapplicationtobeinbeforeeachtestbeginsexecution,andthestatetheapplicationcanbereturnedtoaftereachtesthasendedexecution.
LaunchtheControlExplorerbeforeyouperformthisstep.
1IntheSilkTestBasicWorkflowbar,clickConfigureApplicationsontheBasicWorkflowbar.
TheNewTestFramedialogboxopens.
2Double-clickWebSiteTestConfiguration.
TheNewWebSiteConfigurationpageopens.
3FromtheBrowserTypelist,selectInternetExplorer.
YoucanuseFirefoxtoreplaytestsbutnottorecordthem.
4Performoneofthefollowingsteps:Useexistingbrowser–Clickthisoptionbuttontouseabrowserwindowthatisalreadyopentoconfigurethetest.
Forexample,iftheWebpagethatyouwanttotestisalreadydisplayedinthebrowserwindow,youmightwanttousethisoption.
Startnewbrowser–Clickthisoptionbuttontostartanewbrowserinstancetoconfigurethetest.
Then,intheBrowsetoURLtextboxspecifytheWebpagetoopen.
5ClickFinish.
TheChoosenameandfolderofthenewframefilepageopens.
SilkTestconfigurestherecoverysystemandnamesthecorrespondingfileframe.
incbydefault.
6Navigatetothelocationinwhichyouwanttosavetheframefile.
SilkTest2010TestingFlexApplications172TUTORIALFORFLEXAPPLICATIONTESTINGSilkTestTutorial7IntheFilenametextbox,typethenamefortheframefilethatcontainsthedefaultbasestateandrecoverysystem.
Then,clickSave.
SilkTestautomaticallycreatesabasestatefortheapplication.
Whenyouconfigureanapplication,SilkTestaddsanincludefilebasedonthetechnologyorbrowsertypethatyouenabletotheUsefileslocationintheRuntimeOptionsdialog.
Forinstance,ifyouconfigureanAdobeFlexapplication,afilenamedflex.
incisadded.
SilkTestopenstheincludefile.
Recordthetestcasewheneveryouareready.
RecordingaTestcaseAtestcase:Drivestheapplicationfromtheinitialstatetothestateyouwanttotest.
Verifiesthattheactualstatematchestheexpected(correct)state.
Cleansuptheapplication,inpreparationforthenexttestcase,byundoingthestepsperformedinthefirststage.
Torecordatestcase1ClickRecordTestcaseontheBasicWorkflowbar.
2IntheRecordTestcasedialog,typethenameofyourtestcaseintheTestcasenametextbox.
Testcasenamesarenotcasesensitive;theycanbeanylengthandconsistofanycombinationofalphabeticcharacters,numerals,andunderscorecharacters.
3FromtheApplicationStatelistbox,selectDefaultBaseStatetohavethebuilt-inrecoverysystemrestorethedefaultbasestatebeforethetestcasebeginsexecuting.
Thetestcaseisrecordedinthescriptfileas:testcasetestcase_name().
4ClickStartRecording.
SilkTestclosestheRecordTestcasedialoganddisplaystheFlexControlExplorerapplication.
5WhentheRecordStatuswindowopens,recordthefollowingscenariousingtheFlexControlExplorerapplication.
18SilkTest2010TestingFlexApplications2TUTORIALFORFLEXAPPLICATIONTESTINGSilkTestTutorialaClickthearrownexttotheVisualComponentstreeelementtoexpandthelist.
bClickthearrownexttotheGeneralControlstreeelementtoexpandthelist.
cClicktheAlerttreeelement.
dPointtotheAlerttreeandpressCtrl+Alttoaddaverificationtothescript.
Youcanaddaverificationforanyoftheinformationthatappears.
TheVerifyPropertiesdialogboxopens.
ChecktheVisiblecheckboxandthenclickOK.
Averificationactionisaddedtothescriptforthetree.
SilkTest2010TestingFlexApplications192TUTORIALFORFLEXAPPLICATIONTESTINGSilkTestTutorialeIntheAlertControlExamplesection,clicktheClickMebuttonandthenclickOKintheHelloWorldmessagebox.
fClickthearrownexttotheGeneralControlstreeelementtohidethelist.
gClickthearrownexttotheVisualComponentstreeelementtohidethelist.
6IntheRecordingstatuswindow,clickStopRecording.
SilkTestopenstheRecordTestcasedialog,whichcontainsthe4Testcodethathasbeenrecordedforyou.
7ClickPastetoEditor.
8ChooseFile/Save.
9Specifythefilenameandlocation.
10WhenSilkTestpromptsyoutoaddthefiletotheproject,clickYes.
ReplayingaTestcaseWhenyourunatestcase,SilkTestinteractswiththeapplicationbyexecutingalltheactionsyouspecifiedinthetestcaseandtestingwhetherallthefeaturesoftheapplicationperformedasexpected.
Torunatestcase1Makesurethatthetestcaseyouwanttorunisintheactivewindow.
2ClickRunTestcaseontheBasicWorkflowbar.
3SilkTestdisplaystheRunTestcasedialog,whichlistsallthetestcasescontainedinthecurrentscript.
4Selectthetestcasethatyoucreated.
5Towaitonesecondaftereachscriptlineisexecuted,checktheAnimatedRunMode(Slow-Motion)checkbox.
20SilkTest2010TestingFlexApplications2TUTORIALFORFLEXAPPLICATIONTESTINGSilk4JQuickTourTypically,youwillonlyusethischeckboxifyouwanttowatchthetestcaserun.
Forinstance,ifyouwanttodemonstrateatestcasetosomeoneelse,youmightwanttocheckthischeckbox.
6ClickRun.
SilkTestrunsthetestcaseandgeneratesaresultsfile.
Theresultsfiledescribeswhetherthetestpassedorfailed,andprovidessummaryinformation.
Silk4JQuickTourSilk4JprovidesaJavaruntimelibrarythatincludestestclassesforalltheclassesthatSilk4Jsupportsfortesting.
ThisruntimelibraryiscompatiblewithJUnit,whichmeansyoucanleveragetheJUnitinfrastructureandrunandcreatetestsusingJUnit.
YoucanalsouseallavailableJavalibrariesinyourtestcases.
ThisquicktourexplainshowtousetheAdobeFlexsamplescriptsprovidedwithSilk4J.
Usethesamplescriptfilesinthesampleapplicationtoviewtypicalscriptconfigurationsandtestcaseexecution.
Thisquicktourincludes:"ImportingSilk4JSampleScripts""RunningaSampleTestcase"ForaGettingStartedtutorialforSilk4J,refertotheSilk4JUserGuide.
ImportingSilk4JSampleScriptsSilk4JcanusetheSilkTestsampleFlexapplicationsandprovidesseveralFlexscriptsthatworkwithSilk4J.
ImporttheFlexscriptstoviewhowSilk4JworkswithFlex.
1IntheEclipseworkspace,chooseFile>Import.
TheImportwizardopens.
2Inthemenutree,clicktheplussign(+)toexpandtheGeneralfolderandselectExistingProjectsintoWorkspace.
3ClickNext.
TheImportProjectsdialogopens.
4IntheSelectrootdirectorytextbox,clickBrowse.
TheBrowseForFolderdialogopens.
5NavigatetotheDocumentsandSettings\AllUsers\SharedDocuments\SilkTest\samples\Silk4Jfolder.
SilkTest2010TestingFlexApplications212TUTORIALFORFLEXAPPLICATIONTESTINGSilk4JQuickTourForWindowsVistaandWindows7.
0operatingsystems,thefilelocationisUsers\Public\Documents\SilkTest\samples\Silk4J\ratherthanDocumentsandSettings\AllUsers\SharedDocuments\SilkTest\samples.
6SelecttherootdirectoryforthesampleandthenclickOK.
7IntheProjectssection,selecttheprojectthatyouwanttoimportandthenclickFinish.
ThesampleprojectshowsinthePackageExplorerview.
RunningaSampleTestcaseUsethesampletestcasesthatSilk4Jprovidestoviewscriptcontentsandtestexecutionresults.
Beforeyourunatestcase,starttheSilkTestOpenAgent.
1NavigatetotheFlexsampleproject.
2Chooseoneofthefollowing:aRight-clickthepackagenametorunalltestsintheproject.
Forexample,right-clickcom.
borland.
flex.
store.
bRight-clicktheclassnametorunalltestsforonlythatclass.
Forexample,right-clickFlexStoreTest.
javainthecom.
borland.
flex.
storepackage.
3ChooseRunAs>JUnitTest.
ThetestresultsdisplayintheJUnitviewasthetestruns.
Ifalltestspass,thestatusbarisgreen.
Ifoneormoretestsfail,thestatusbarisred.
YoucanclickafailedtesttodisplaythestacktraceintheFailureTracearea.
FordetailedproceduresaboutcreatingSilk4Jscripts,refertotheSilk4JUserGuide.
22SilkTest2010TestingFlexApplications2TUTORIALFORFLEXAPPLICATIONTESTINGSilk4JQuickTour
Hostodo在九月份又发布了两款特别套餐,开设在美国拉斯维加斯、迈阿密和斯波坎机房,基于KVM架构,采用NVMe SSD高性能磁盘,最低1.5GB内存8TB月流量套餐年付34.99美元起。Hostodo是一家成立于2014年的国外VPS主机商,主打低价VPS套餐且年付为主,基于OpenVZ和KVM架构,美国三个地区机房,支持支付宝或者PayPal、加密货币等付款。下面列出这两款主机配置信息。CP...
青云互联怎么样?青云互联美国洛杉矶cn2GIA云服务器低至19元/月起;香港安畅cn2云服务器低至19元/月起;日本cn2云主机低至35元/月起!青云互联是一家成立于2020年的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务。青云互联本站之前已经更新过很多相关文章介绍了,青云互联的机房有香港和洛杉矶,都有CN2 GIA线路、洛杉矶带高防,商家承诺试用7天,打死全额退款点击进入:青云互联...
georgedatacenter怎么样?GeorgeDatacenter是一家2017年成立的美国商家,正规注册公司(REG: 10327625611),其实是oneman。现在有优惠,有几款特价VPS,基于Vmware。支持Paypal付款。GeorgeDatacenter目前推出的一款美国vps,2核/8GB内存/250GB NVMe空间/2TB流量/1Gbps端口/Vmware/洛杉矶/达拉...
pathinfo为你推荐
alargarios5支出127点击ipad支持ipad设置media支持ipad支持ipad支持ipad支持ipad支持ipad
免费网站域名注册 万网域名空间 万网域名代理 亚洲大于500m duniu 瓦工 联通c套餐 uk2 香港cdn 南昌服务器托管 网通服务器托管 gtt 河南移动梦网 服务器防火墙 阿里云手机官网 重庆服务器 存储服务器 美国asp空间 建站技术 卡巴斯基免费版 更多