A kind of software development methodology based on document of living
Technical field
The present invention relates to technical field of software development, specifically a kind of practical, based on the software development methodology of document of living.
Background technology
Along with mobile Internet, cloud computing fast development, Web application technology is also at development, and exploitation cooperation mode is also in development.Multiple person cooperational core is linked up according to being document, and document defines data layout, specification interface.Traditional documents has three deficiencies:
1) cooperating process can not be avoided to understand otherness;
2) only provide information, cannot test;
3) can not adjust in real time.
Document of living mainly solves this three problems, makes up the deficiency of simple TDD.
Based on this, now provide a kind of software development methodology based on document of living, the method has rearranged development process, encapsulate collaboration module CM, collaboration module CM drives modules to develop very well, contains interface definition, test in advance, and guarantee between last software function module, seamless connection.In the present invention, developer does not need to wait for that relating module personnel function completes, and can enter substantive exploitation, CM module provides interface can help to simulate in advance.CM model basin is provided uniform services, and ensure demand, interface, functional realiey, use-case tests dynamic consistance, intermodule connection problem Timeliness coverage, and adjustment is checking and debugging also.
Summary of the invention
Technical assignment of the present invention is for above weak point, provide a kind of practical, based on the software development methodology of document of living.
Based on a software development methodology for document of living, its specific implementation process is:
One, dispose collaboration module CM in development environment, this collaboration module CM comprises a unified model basin and demand, exploitation, verification three interface modules;
Two, prepare data, this Data Preparation Process comprises the analysis of completing user requirements use case, sets up data model;
Three, collaboration module CM is started;
Four, collaboration module CM is according to data model formation object model, is submitted to model basin;
Five, development system generates test data structure and test data by business data model, and provides URL access services;
Six, developer's stand-alone development, the module completed moves to production environment; If Depending module function does not complete in performance history, from collaboration module, extract data, development and testing.
The course of work of described collaboration module CM is:
1) by database analysis data model, generate class object according to predefine, extract object model field;
2) analyze use-case, semantic according to predefine, affiliated partner model, analyzes systematic function interface according to standard use-case and object model;
3) according to object model and functional interface, generate automatic test data, complete data-interface preliminary work;
4) collaboration module CM provides interface accessing and data, services, module R&D personnel's stand-alone development, and according to the service that collaboration module provides, can carry out data test, uniting and adjustment, realizes specifically writing business;
In above-mentioned steps, demand change, data model, functional interface dynamically change, each self-isolation and mutually verifying.
The generative process of described automatic test data is: after described collaboration module CM carries out semantic analysis, precompile to typing standard requirement document, generate interface testing data, these interface testing data comprise the resource address of RESTful framework, class title and method interface.
A kind of software development methodology based on document of living of the present invention, has the following advantages:
A kind of software development methodology based on document of living of this invention adopts based on document method thinking of living, by the resource consolidation such as database design document, requirements use case, test data of traditionally on paper, by collaboration module CM by interface and test data unification, complete encapsulation, the request of http visit data is provided; Simultaneously can the interface that realized of collection procedure, complete test; By being originally defined in interface, data layout in exploitation document, being defined in and can running in module really, realize document mechanism of living; Practical, applied widely, be easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is collaboration module functional realiey figure of the present invention.
Accompanying drawing 2 is exploitation cooperating process schematic diagram of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The invention provides a kind of software development methodology based on document of living, by central cooperation module CM by software development document standard, mobilism.Relate to multiple links such as requirements review, Functional Design, code development, test because software requirement changes, how to keep document update consistency, participant's cognitive consistency, a document of living is crucial.Based on this, the mentality of designing of the method is: by data base data model, generates class object according to predefine, extracts object model; According to use-case model, take out default interface, affiliated partner model; Generate test data according to association, complete data-interface preliminary work.Start collaboration module, provide interface accessing and data, services, module R&D personnel can visit data, specifically writes business realizing.
As shown in accompanying drawing 1, Fig. 2, its specific implementation process is:
One, dispose collaboration module CM in development environment, this collaboration module CM comprises a unified model basin and demand, exploitation, verification three interface modules;
Two, prepare data, this Data Preparation Process comprises the analysis of completing user requirements use case, sets up data model;
Three, collaboration module CM is started;
Four, collaboration module CM is according to data model formation object model, is submitted to model basin;
Five, development system generates test data structure and test data by business data model, and provides URL access services;
Six, developer's stand-alone development, the module completed moves to production environment; If Depending module function does not complete in performance history, from collaboration module, extract data, development and testing;
Seven, each developer can as required, simulate integrated in advance;
Eight, demand adjustment, partial alteration, can upgrade fast in systems in which.
The course of work of described collaboration module CM is:
1) by database analysis data model, generate class object according to predefine, extract object model field;
2) use-case is analyzed, semantic according to predefine, affiliated partner model, analyze systematic function interface according to standard use-case and object model, this part needs developer manually to participate in, and is equal to the interface definition work of software development link;
3) according to object model and functional interface, generate automatic test data, complete data-interface preliminary work;
4) collaboration module CM provides interface accessing and data, services, module R&D personnel's stand-alone development, and according to the service that collaboration module provides, without the need to associating any module, can carry out data test, uniting and adjustment, realizes specifically writing business;
In above-mentioned steps, demand change, data model, functional interface dynamically change, each self-isolation and mutually verifying.
Nuclear interface standardizing, correlation function can be developed simultaneously, can complete combination after completing.
The generative process of described automatic test data is: after described collaboration module CM carries out semantic analysis, precompile to typing standard requirement document, generate interface testing data, these interface testing data comprise the resource address of RESTful framework, class title and method interface.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any according to the invention a kind of based on live document software development methodology claims and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.