1 / 13

Testing of component-based application

Testing of component-based application. Richard Lipka Department of Computer Science and Engineering Faculty of Applied Sciences University of West Bohemia, Pilsen , Czech Republic. Agenda. File Manager – case study ReproTool and its ouptuts Scenarios. File manager.

valin
Télécharger la présentation

Testing of component-based application

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Testing of component-based application Richard Lipka Department of Computer Science and Engineering Faculty of Applied Sciences University of West Bohemia, Pilsen, Czech Republic

  2. Agenda • FileManager – case study • ReproToolanditsouptuts • Scenarios

  3. Filemanager • Case study ofcomponent-basedapplication • Java, OSGi, SpringDM

  4. File manager - communication • Methodcalls • Filemanipulation • Openingwindows • Events • Windowcontrol • Finishedtask

  5. Filemanager – FTP client • Comparisonof performance • Java-based FTP client • Ownimplementationof FTP • Marek Paška • Formalcheckingof FSM

  6. Reprotool • Toolforcreatingandtaggingusecases • Outputsshouldbeused as a basis forautomatedscenarioncreating • Still not finished – versionavailable in therepositorycannotbe run

  7. Usecases • Description in naturallanguage UseCase: Listing of directory Primary Actor: User Main success scenario specification 1. User select a directory from an available list and confirm his selection 2. System obtains representation of directory 3. Systems notifies the GUI that directory representation is available 4. GUI updates window with new content of directory Extensions: 1a. There is no available list of directories (there is unvalid default directory in the configuration) 1a1. System selects user's root directory. 1a2. Execution continues from point 2 with root directory 2a. Selected directory is not available at the moment 2a1. Warning for user is displayed 2a2. System tries to update list of files in current directory - continues from point 2 with current directory 2a2a. Current directory is not available 2a2a1. System continues from point 1a1

  8. Usecase – Reprotool - description <primaryActorhref="SampleSoftwareProject.xmi#//@actors.0"/> <mainScenario> <steps> <textNodescontent="User selects a directoryfroman available list andconfirms his selection "lemmaForm="User selectdirectoryfromavailable list andconfirmselection" posTag=""/> <extensions> <steps> <textNodescontent="Systemselects user's root directory"/> <actionxsi:type="action:Internal" actionName="…steps.0/@textNodes.0"/> </steps> <preconditions> <textNodescontent="There is no available list of directories (there is unvalid default directory in the configuration)"/> </preconditions> </extensions> …

  9. Usecase – Reprotool - LTS <lts:StateMachinexmi:version="2.0" initialState="//@allStates.0" abortState="//@allStates.1"> <allTransitionsxsi:type="lts:ActionTransition" source="//@allStates.0" target="//@allStates.2"> <sentencexsi:type="usecase:UseCaseStep" href="uc1.usecase#//@mainScenario/@steps.0"/> </allTransitions> <allTransitionsxsi:type="lts:ActionTransition“ source="//@allStates.2" target="//@allStates.3"> <sentencexsi:type="usecase:UseCaseStep" href="uc1.usecase#//@mainScenario/@steps.0/@extensions.0/@steps.0"/> </allTransitions> <allTransitionsxsi:type="lts:ActionTransition" source="//@allStates.2" target="//@allStates.4"> <sentencexsi:type="usecase:UseCaseStep" href="uc1.usecase#//@mainScenario/@steps.1"/> </allTransitions> …

  10. Usecase – Reprotool - LTS

  11. Usecases – basis forscenarios • Scenarioshouldcoverallbranchesdescribed in lts • Problemwithidentificationofactors • Depends on descriptionofusecasesandReprotool – Reprotoolcontainsdictionaryofactors • Problemwithidentificationofactions • Desriptionofusecasesisusually not exactenough • Insteadofusingnaturallanguagedenotemethodsandinterfaces?

  12. Scenarios • Description in XML • Initialstateofthesimulation • Descriptionofrandomnumbersgenerators • Simulatedevents • Nameofinvokedmethod • List ofparameters

  13. Thank you Questions?

More Related