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

spinservers:圣何塞物理机7.5折,$111/月,2*e5-2630Lv3/64G内存/2T SSD/10Gbps带宽

spinservers美国圣何塞机房的独立服务器补货120台,默认接入10Gbps带宽,给你超高配置,这价格目前来看好像真的是无敌手,而且可以做到下单后30分钟内交货,都是预先部署好了的。每一台机器用户都可以在后台自行安装、重装、重启、关机操作,无需人工参与! 官方网站:https://www.spinservers.com 比特币、信用卡、PayPal、支付宝、webmoney、Payssi...

搬瓦工VPS:高端线路,助力企业运营,10Gbps美国 cn2 gia,1Gbps香港cn2 gia,10Gbps日本软银

搬瓦工vps(bandwagonhost)现在面向中国大陆有3条顶级线路:美国 cn2 gia,香港 cn2 gia,日本软银(softbank)。详细带宽是:美国cn2 gia、日本软银,都是2.5Gbps~10Gbps带宽,香港 cn2 gia为1Gbps带宽,搬瓦工是目前为止,全球所有提供这三种带宽的VPS(云服务器)商家里面带宽最大的,成本最高的,没有第二家了! 官方网站:https...

妮妮云(100元/月)阿里云香港BGP专线 2核 4G

妮妮云的来历妮妮云是 789 陈总 张总 三方共同投资建立的网站 本着“良心 便宜 稳定”的初衷 为小白用户避免被坑妮妮云的市场定位妮妮云主要代理市场稳定速度的云服务器产品,避免新手购买云服务器的时候众多商家不知道如何选择,妮妮云就帮你选择好了产品,无需承担购买风险,不用担心出现被跑路 被诈骗的情况。妮妮云的售后保证妮妮云退款 通过于合作商的友好协商,云服务器提供2天内全额退款,超过2天不退款 物...

pathinfo为你推荐
支持ipad城乡居民社会养老保险人脸识别生存认证ipad如何上网ipad怎么设置网络?iphone连不上wifi我的苹果手机连不上无线,其它手机能,怎么回事?只是家里的连不上ipad上网为什么我的ipad 显示无法连接到网络iphonewifi苹果手机怎么扫二维码连wifi联通版iphone4s苹果4S移动版和联通版有什么不同chromeframechrome需要frame吗kb4012598win7怎么查看电脑是否安装了 ms17 010google分析google分析打不开了?
org域名 备案未注册域名 java主机 便宜建站 parseerror 网通代理服务器 南昌服务器托管 bgp双线 免费防火墙 国外代理服务器地址 广州服务器 福建铁通 双线空间 深圳域名 ssl加速 架设代理服务器 godaddy退款 bwg rewrite规则 赵荣 更多