Selim, ElafGhanam, YaserBurns, ChrisSeyed, TeddyMaurer, Frank2015-08-172015-08-172011http://hdl.handle.net/1880/5095710.11575/PRISM/46195In agile approaches such as Extreme Programming, time is not spent on making sure that system components can be reused in similar systems. Therefore, there is a need to investigate whether reuse can be achieved by extracting reusable assets from existing applications. This paper presents an approach that relies on refactoring and testing practices for extracting reusable assets from existing applications. The approach creates reusable APIs in a bottom-up fashion, on demand when a new application might benefit from component in an existing application. The extraction process is guided and supported by the usage examples and the testing scenarios in the existing application and the new one. The paper presents a case study, where the approach was used to extract components from the user interface of an existing application, wrap these components in an API, and use this API in the existing and new applications.A Test-Driven Approach for Extracting Libraries of Reusable Components from Existing Applicationsunknown10.1007/978-3-642-20677-1_17