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

CloudServer:$4/月KVM-2GB/50GB/5TB/三个数据中心

CloudServer是一家新的VPS主机商,成立了差不多9个月吧,提供基于KVM架构的VPS主机,支持Linux或者Windows操作系统,数据中心在美国纽约、洛杉矶和芝加哥机房,都是ColoCrossing的机器。目前商家在LEB提供了几款特价套餐,最低月付4美元(或者$23.88/年),购买更高级别套餐还能三个月费用使用6个月,等于前半年五折了。下面列出几款特别套餐配置信息。CPU:1cor...

Puaex:香港vds,wtt套餐,G口带宽不限流量;可解流媒体,限量补货

puaex怎么样?puaex是一家去年成立的国人商家,本站也分享过几次,他家主要销售香港商宽的套餐,给的全部为G口带宽,而且是不限流量的,目前有WTT和HKBN两种线路的方面,虽然商家的价格比较贵,但是每次补一些货,就会被抢空,之前一直都是断货的状态,目前商家进行了补货,有需要这种类型机器的朋友可以入手。点击进入:puaex商家官方网站Puaex香港vds套餐:全部为KVM虚拟架构,G口的带宽,可...

趣米云(18元/月)香港三网CN2云服器低至;1核1G/30G系统盘+20G数据盘/10M带宽

趣米云怎么样?趣米云是创建于2021年的国人IDC商家,虽然刚刚成立,但站长早期为3家IDC提供技术服务,已从业2年之久,目前主要从事出售香港vps、香港独立服务器、香港站群服务器等,目前在售VPS线路有三网CN2、CN2 GIA,该公司旗下产品均采用KVM虚拟化架构。由于内存资源大部分已售,而IP大量闲置,因此我们本月新增1c1g优惠套餐。点击进入:趣米云官方网站地址香港三网CN2云服务器机型活...

pathinfo为你推荐
敬请参阅最后一页特别声明xp如何关闭445端口系统怎么关闭445端口canvas2Canvas ~セピア色のモチーフ~ 这个动画片的中文翻译是什么?从哪看?ms17-010win10华为 slatl10是什么型号csshack什么是Css Hack?ie6,7,8的hack分别是什么googleadsensegoogle adsense 和google adwords有什么区别?适合什么样的人群?googleadsenceGoogle AdSense 帐户状态是什么意思!css选择器CSS的常见选择器有哪几种google统计怎样将Google分析转换成中文显示Google中文专题交流搜狗浏览器2.2搜狗浏览器怎么恢复以前的版本?
深圳虚拟主机 俄罗斯vps 80vps linode代购 42u机柜尺寸 密码泄露 网通代理服务器 本网站服务器在美国 bgp双线 韩国名字大全 怎样建立邮箱 股票老左 免费phpmysql空间 卡巴斯基破解版 东莞服务器 免费网页空间 环聊 沈阳主机托管 论坛主机 php服务器 更多