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

轻云互联-618钜惠秒杀,香港CN2大宽带KVM架构云服务器月付22元,美国圣何塞精品云月付19元爆款!海量产品好货超值促销进行中!

官方网站:点击访问青云互联活动官网优惠码:终身88折扣优惠码:WN789-2021香港测试IP:154.196.254美国测试IP:243.164.1活动方案:用户购买任意全区域云服务器月付以上享受免费更换IP服务;限美国区域云服务器凡是购买均可以提交工单定制天机防火墙高防御保护端口以及保护模式;香港区域购买季度、半年付、年付周期均可免费申请额外1IP;使用优惠码购买后续费周期终身同活动价,价格不...

创梦网络-四川大带宽、镇江电信服务器云服务器低至56元

达州创梦网络怎么样,达州创梦网络公司位于四川省达州市,属于四川本地企业,资质齐全,IDC/ISP均有,从创梦网络这边租的服务器均可以备案,属于一手资源,高防机柜、大带宽、高防IP业务,一手整C IP段,四川电信,一手四川托管服务商,成都优化线路,机柜租用、服务器云服务器租用,适合建站做游戏,不须要在套CDN,全国访问快,直连省骨干,大网封UDP,无视UDP攻击,机房集群高达1.2TB,单机可提供1...

80VPS:香港服务器月付420元;美国CN2 GIA独服月付650元;香港/日本/韩国/美国多IP站群服务器750元/月

80vps怎么样?80vps最近新上了香港服务器、美国cn2服务器,以及香港/日本/韩国/美国多ip站群服务器。80vps之前推荐的都是VPS主机内容,其实80VPS也有独立服务器业务,分布在中国香港、欧美、韩国、日本、美国等地区,可选CN2或直连优化线路。如80VPS香港独立服务器最低月付420元,美国CN2 GIA独服月付650元起,中国香港、日本、韩国、美国洛杉矶多IP站群服务器750元/月...

pathinfo为你推荐
enter苹果5访问chrome重庆重庆Source163设置media支持ipad支持ipadcss3圆角css实现圆角的几种方法是什么?itunes备份怎么使用iTunes备份win7telnetwindows7的TELNET服务在哪里开启啊
虚拟主机管理系统 哈尔滨域名注册 美国和欧洲vps linuxapache虚拟主机 淘宝抢红包攻略 locvps fastdomain linkcloud 免备案cdn 42u标准机柜尺寸 天互数据 tna官网 中国linux 贵阳电信 hostease asp空间 hdroad wordpress空间 湖南铁通 低价 更多