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

Central美国65折优惠,美国达拉斯机房VPS季付赠送双倍内存

Central美国独立日活动正在进行中,旗下美国达拉斯机房VPS 65折优惠,季付赠送双倍内存(需要发工单),Central租用的Hivelocity的机房,只支持信用卡和加密货币付款,不支持paypal,需要美国独服的可以谨慎入手试试。Central怎么样?Central便宜服务器,Central自称成立于2019年,主营美国达拉斯机房Linux vps、Windows vps、专用服务器和托管...

萤光云(13.25元)香港CN2 新购首月6.5折

萤光云怎么样?萤光云是一家国人云厂商,总部位于福建福州。其成立于2002年,主打高防云服务器产品,主要提供福州、北京、上海BGP和香港CN2节点。萤光云的高防云服务器自带50G防御,适合高防建站、游戏高防等业务。目前萤光云推出北京云服务器优惠活动,机房为北京BGP机房,购买北京云服务器可享受6.5折优惠+51元代金券(折扣和代金券可叠加使用)。活动期间还支持申请免费试用,需提交工单开通免费试用体验...

可抵御99%的攻击中国单域版cdn:9元/月7T防御 cloudsecre

官方网站:点击访问CDN客服QQ:123008公司名:贵州青辞赋文化传媒有限公司域名和IP被墙封了怎么办?用cloudsecre.com网站被攻击了怎么办?用cloudsecre.com问:黑客为什么要找网站来攻击?答:黑客需要找肉鸡。问:什么是肉鸡?答:被控的服务器和电脑主机就是肉鸡。问:肉鸡有什么作用?答:肉鸡的作用非常多,可以用来干违法的事情,通常的行为有:VPN拨号,流量P2P,攻击傀儡,...

pathinfo为你推荐
livewinrar5日照职业技术学院RIZHAO支持ipad支持ipadcolumnios5重庆网通重庆联通现在有哪些资费???勒索病毒win7补丁求问win7 64位旗舰版怎么预防勒索病毒tcpip上的netbios禁用tcp/ip上的netbios对网络应用软件的正常运行有没有影响?迅雷下载速度迅雷下载速度与什么有关?迅雷雷鸟雷鸟手机谁用过性能怎样样?
免费国际域名 查询ip地址 注册cn域名 企业主机 dns是什么 lunarpages 圣迭戈 香港托管 空间打开慢 tk域名 777te 100x100头像 架设服务器 建立邮箱 日本bb瘦 免费防火墙 泉州移动 天翼云盘 linux使用教程 shopex主机 更多