CN103544107A - Method and device for generating test case document - Google Patents

Method and device for generating test case document Download PDF

Info

Publication number
CN103544107A
CN103544107A CN201310535872.3A CN201310535872A CN103544107A CN 103544107 A CN103544107 A CN 103544107A CN 201310535872 A CN201310535872 A CN 201310535872A CN 103544107 A CN103544107 A CN 103544107A
Authority
CN
China
Prior art keywords
tested
test
state
test case
testing procedure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310535872.3A
Other languages
Chinese (zh)
Inventor
段蔚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN TONGLI TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN TONGLI TECHNOLOGY DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN TONGLI TECHNOLOGY DEVELOPMENT Co Ltd filed Critical SHENZHEN TONGLI TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201310535872.3A priority Critical patent/CN103544107A/en
Publication of CN103544107A publication Critical patent/CN103544107A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and a device for generating a test case document. The method comprises obtaining test step data of a system to be tested according to functional specifications of the system to be tested and generating the test case document of the system to be tested based on the test step data and a preset test case template. According to the method and the device for generating the test case document, the test step data are deduced out according to the functional specifications of the system to be tested and accordingly the test requirements of the system to be tested can be reflected by the obtained test case document comprehensively, accurately and reasonably; the format of the final test case document which is generated according to the test case template can be standardized and normalized; a test does not need to perform manual writing and accordingly the workload of the tester is greatly reduced.

Description

The method of generating test use case document and device
Technical field
The present invention relates to software testing technology field, relate in particular to a kind of method and device of generating test use case document.
Background technology
At present, the test case document of software systems still relies on Test Engineer's hand-coding mostly, recently be widely used in automated test tool in software test and also mainly lay particular emphasis on and record the test case document that Test Engineer writes, then automatically perform the test case script recording.
Therefore, the test case document generating in prior art only to write Test Engineer's self the personal experience of this test case document and relevant to the subjective factors such as familiarity of test macro, and can not objectively reflect the actual testing requirement of system to be tested itself, easily bring deviation due to Test Engineer's subjective understanding cause test case document not comprehensively, the nonstandard problem of form, and bring very large workload to Test Engineer.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of method and device of generating test use case document, is intended to improve accuracy and the standardization of test case document.
In order to achieve the above object, the present invention proposes a kind of method of generating test use case document, comprising:
According to the functional specification of system to be tested, obtain the testing procedure data of system to be tested;
Based on described testing procedure data and default test case masterplate, generate the test case document of system to be tested.
Preferably, the step that the described functional specification according to system to be tested obtains the testing procedure data of system to be tested comprises:
According to the functional specification of system to be tested, utilize unified modeling language instrument to treat test macro and carry out modeling, set up the state-event figure of system to be tested;
Described state-event figure is resolved to input and output and the state transitions information of obtaining system to be tested, and be every kind of state transitions labeled test cost of system to be tested;
Obtain initial state, done state and maximum cost threshold value that system to be tested need be tested, according to the test cost value search of the input and output of described system to be tested, state transitions information and every kind of state transitions mark, meet the testing procedure data of described initial state, done state, maximum cost threshold value.
Preferably, described according to the functional specification of system to be tested, to utilize unified modeling language instrument to treat test macro and carry out modeling, the step of setting up the state-event figure of system to be tested also comprises afterwards:
The state-event figure of foundation is led into extensible markup language form and preserves.
Preferably, the described step that generates the test case document of system to be tested based on described testing procedure data and test case masterplate comprises:
Utilize template to replace processor read test use-case document template storehouse, and from described test case document template storehouse, find out the test case document template that meets call format according to described testing procedure data;
By the placeholder in test case template described in described testing procedure data replacement, obtain the test case document of system to be tested.
Preferably, described input and output and the state transitions information of obtaining system to be tested that described state-event figure is resolved, and also comprise after the step for every kind of state transitions labeled test cost of system to be tested:
The test cost value of the input and output of the system to be tested of obtaining, state transitions information and every kind of state transitions mark is deposited in database.
The present invention also proposes a kind of device of generating test use case document, comprising:
Derivation module, for obtaining the testing procedure data of system to be tested according to the functional specification of system to be tested;
Generation module, for generating the test case document of system to be tested based on described testing procedure data and default test case masterplate.
Preferably, described derivation module comprises:
Modeling unit, for according to the functional specification of system to be tested, utilizes unified modeling language instrument to treat test macro and carries out modeling, sets up the state-event figure of system to be tested;
Resolving acquiring unit, for described state-event figure being resolved to input and output and the state transitions information of obtaining system to be tested, and is every kind of state transitions labeled test cost of system to be tested;
Search unit, for obtaining initial state, done state and the maximum cost threshold value that system to be tested need be tested, according to the test cost value search of the input and output of described system to be tested, state transitions information and every kind of state transitions mark, meet the testing procedure data of described initial state, done state, maximum cost threshold value.
Preferably, described derivation module also for:
The state-event figure of foundation is led into extensible markup language form and preserves.
Preferably, described generation module comprises:
Read and search unit, for utilizing template to replace processor read test use-case document template storehouse, and from described test case document template storehouse, find out the test case template that meets call format according to described testing procedure data;
Replacement unit, for by the placeholder of test case template described in described testing procedure data replacement, obtains the test case document of system to be tested.
Preferably, described derivation module also for:
The test cost value of the input and output of the system to be tested of obtaining, state transitions information and every kind of state transitions mark is deposited in database.
Method and the device of a kind of generating test use case document that the present invention proposes, according to the functional specification of system to be tested, treat test macro and carry out modeling, by the state-event figure setting up is resolved to input and output and the state transitions information of obtaining system to be tested, again according to the initial state of the test of tester's input, done state and maximum cost threshold value are derived and are obtained the testing procedure data of system to be tested, finally described testing procedure nest is used to enter to meet in the test case template of call format, can obtain the test case document of system to be tested, because being derives testing procedure data according to the functional specification of system to be tested, therefore the test case document obtaining can be more comprehensively, standard, the testing requirement that reflects accurately system to be tested, more reasonable, and due to without tester's hand-coding, greatly reduced tester's workload.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method preferred embodiment of generating test use case document of the present invention;
Fig. 2 is the schematic flow sheet of step S101 in the method preferred embodiment of generating test use case document of the present invention;
Fig. 3 is the schematic flow sheet of step S102 in the method preferred embodiment of generating test use case document of the present invention;
Fig. 4 is the specific implementation process flow diagram of the method preferred embodiment of generating test use case document of the present invention;
Fig. 5 is the structural representation of the device preferred embodiment of generating test use case document of the present invention;
Fig. 6 is the structural representation of derivation module in the device preferred embodiment of generating test use case document of the present invention;
Fig. 7 is the structural representation of generation module in the device preferred embodiment of generating test use case document of the present invention.
In order to make technical scheme of the present invention clearer, clear, below in conjunction with accompanying drawing, be described in further detail.
Embodiment
The solution of the embodiment of the present invention is mainly: according to the functional specification of system to be tested, treat test macro and carry out modeling, by the state-event figure setting up is resolved to input and output and the state transitions information of obtaining system to be tested, according to initial state, done state and the maximum cost threshold value of the test of tester's input, derive and obtain the testing procedure data of system to be tested again, finally described testing procedure nest is used to enter to meet in the test case template of call format, can obtain the test case document of system to be tested.
As shown in Figure 1, preferred embodiment of the present invention proposes a kind of method of generating test use case document, comprising:
Step S101, obtains the testing procedure data of system to be tested according to the functional specification of system to be tested;
Read the predefined functional specification for accurate description systemic-function behavior to be tested, this functional specification is jointly defined and determine according to user's demand and user by systems analyst (System Analyst) or product manager (PM), accurately complete description and defined the correct behaviour of a system of functional specification can objectively reflect the characteristic of system self comprehensively.According to the functional specification of system to be tested, can know specification, the requirement of system to be tested, functional specification based on system to be tested is treated test macro and is carried out modeling, obtain input and output and the state transitions information of system to be tested, thereby generate the testing procedure data of system to be tested.
Step S102, generates the test case document of system to be tested based on described testing procedure data and default test case masterplate.
For example, according to the call format of enterprise document (specification, form etc.) can preset the test case template that meets call format, because the testing procedure data of the system to be tested generating are one group of highly compact and the data of not indicating implication, therefore, related data in testing procedure data need be carried out to the placeholder (Place Holder) in replacement test use-case template, be about to testing procedure nest with entering to meet in the test case template of call format, finally generate the required test case document of system to be tested.
The present embodiment is owing to being to derive testing procedure data according to the functional specification of system to be tested, therefore the test case document obtaining can reflect the testing requirement of system to be tested more comprehensively, accurately, more reasonable, according to test case masterplate, generate form standardization more, the standardization that final test case document can make test case document, and due to without tester's hand-coding, greatly reduced tester's workload.
Particularly, as shown in Figure 2, above-mentioned steps S101 can comprise:
Step S1011, according to the functional specification of system to be tested, utilizes unified modeling language instrument to treat test macro and carries out modeling, sets up the state-event figure of system to be tested;
According to the functional specification of system to be tested, utilize unified modeling language (Unified Modeling Language, abbreviation UML) instrument is treated test macro and is carried out modeling, can make the model of setting up accurately objectively reflect requirement and the feature of system to be tested, according to the model of setting up, set up the state-event figure (UML State Diagram) of system to be tested, like this, this state-event figure can embody the various status informations of system to be tested.Further, the state-event figure of foundation is exported to extensible markup language (Extensive Makeup Language, abbreviation XML) form is preserved, because XML form can be stated content more accurately, convenient search of crossing over kinds of platform, has simplified exchange and the expression of data in network, the standard format of Chang Zuowei exchanges data effectively, therefore exporting to XML form preserves to be beneficial to and reduces in subsequent operation the read-write of data, the complexity of transmission is more simple and convenient.
Step S1012, resolves input and output and the state transitions information of obtaining system to be tested to described state-event figure, and is every kind of state transitions labeled test cost of system to be tested;
Utilize Extensible Stylesheet Language (XSL) conversion (Extensible Style sheet Language Transformations, abbreviation XSLT) processor is resolved the XML form constitutional diagram of preserving, the XML form constitutional diagram of preserving by parsing can be obtained the various status informations of system to be tested, also obtain input and output and the state transitions information of system to be tested, and be test cost value of every kind of state transitions mark of system to be tested, can treat test macro various rational test conditions are set.
Step S1013, obtain initial state, done state and maximum cost threshold value that system to be tested need be tested, according to the test cost value search of the input and output of described system to be tested, state transitions information and every kind of state transitions mark, meet the testing procedure data of described initial state, done state, maximum cost threshold value.
The need that obtain tester input are treated the maximum cost threshold value of initial state, done state and test that test macro tests, wherein, the maximum cost threshold value of described initial state, done state and test can be arranged according to the functional specification of system to be tested and the concrete test case for the treatment of test macro by tester.Then, according to the test cost value search of the input and output of the system to be tested of preserving and state transitions information, every kind of state transitions mark, generate and meet initial state, the done state of tester's input, all testing procedure data of the maximum cost threshold value of test.Particularly, the core concept that the false code that the algorithm of the testing procedure data of this system to be tested uses is obtained in derivation is the method that adopts recurrence, search for all need that meet input and test the initial state of system to be tested, done state, all testing procedure data of the maximum cost threshold value of test, and in generating the process of testing procedure data, the cost of accumulative total testing procedure data, filter out the too high testing procedure data that surpass maximum cost threshold value of test cost, like this, tester only need arrange corresponding initial state according to test case, the maximum cost threshold value of done state and test, all testing procedure data between can generating from initial state to done state, and in generating the process of testing procedure data, to exceeding the testing procedure data of the maximum cost threshold value of setting, filter, make the final testing procedure data that generate can embody the characteristic of system to be tested and the condition that tester arranges completely, reach best test effect.
As shown in Figure 3, above-mentioned steps S102 can comprise:
Step S1021, utilizes template to replace processor read test use-case document template storehouse, and from described test case document template storehouse, finds out the test case template that meets call format according to described testing procedure data;
Step S1022, by the placeholder in test case template described in described testing procedure data replacement, obtains the test case document of system to be tested.
Utilize the template of system to replace processor instrument read test use-case document template storehouse, described test case document template comprises some default test case templates in storehouse, wherein, the form of some default test case templates is all not identical, according to described testing procedure data, can know the form of the test case template that it need be applied mechanically, from test case document template storehouse, find the test case template that meets call format, because the testing procedure data of obtaining according to algorithmic derivation are one group of highly compact and the data of not indicating implication, therefore, related data in testing procedure data need be carried out to the placeholder (Place Holder) in replacement test use-case template, be about to testing procedure nest with entering to meet in the test case template of call format, the final required test case document of system to be tested that generates.The form of test case template can be in advance for example, according to the call format of enterprise document (specification, form etc.) define, as pdf form, html form etc., like this, identical testing procedure nest, with entering in the test case template of different-format, can generate the test case document of the system to be tested of final different ways of presentation.
In an optional embodiment of the present embodiment, obtaining input and output and the state transitions information of system to be tested, and after being test cost value of every kind of state transitions mark of system to be tested, further, also the input and output of the system to be tested of obtaining and state transitions information can be saved in a database, like this, for this system to be tested, generating for the first time after the test case document of system to be tested, if follow-up, also need according to the initial state of tester's input, done state and maximum cost threshold value generate new test case document, get final product directly input and output and the state transitions information of the system to be tested of reading and saving from database, and without treating again test macro modeling, the steps such as parsing, shortened the flow process of generating test use case document, time and resource have been saved, convenient, fast.
In order further to explain, Figure 4 shows that the specific implementation process flow diagram of the method for preferred embodiment generating test use case document of the present invention.
First, according to the functional specification S1 of system and to utilize UML modeling tool S2 be also that unified modeling language instrument carries out modeling to system, set up after the state-event figure S3 of system, state-event figure is exported to XML form and deposit.
Then, utilize Extensible Stylesheet Language (XSL) code-switching processor XSLT S4 to resolve and the constitutional diagram of changing XML form, and the information of the system input and output that parsing is obtained and state transitions deposits in database S5, and it is test cost value of every kind of state transitions mark.Obtain the maximum cost threshold value S7 of test initial state, done state and the test of test man's input, based on the test maximum cost threshold value S7 of initial state, done state and test and the information of the system input and output in database S5 and state transitions, carry out the derivation of testing procedure automatic deduction algorithm S6, automatically generate testing procedure S8.
Finally, by read test use-case document template database, S10 obtains the test case template that meets call format, according to the template of system, replace processor again the testing procedure S8 of generation is applied mechanically into meeting in the test case template of call format, generate the actual test case document of final system.Further, also the test case document of generation can be stored in system testing use-case document database S11, so that follow-up, transfer use, convenient.
As shown in Figure 5, preferred embodiment of the present invention proposes a kind of device of generating test use case document, comprising: derivation module 401 and generation module 402, wherein:
Derivation module 401, for obtaining the testing procedure data of system to be tested according to the functional specification of system to be tested;
Read the predefined functional specification for accurate description systemic-function behavior to be tested, this functional specification is jointly defined and determine according to user's demand and user by systems analyst (System Analyst) or product manager (PM), accurately complete description and defined the correct behaviour of a system of functional specification can objectively reflect the characteristic of system self comprehensively.According to the functional specification of system to be tested, can know specification, the requirement of system to be tested, functional specification based on system to be tested is treated test macro and is carried out modeling, obtain input and output and the state transitions information of system to be tested, thereby generate the testing procedure data of system to be tested.
Generation module 402, for generating the test case document of system to be tested based on described testing procedure data and default test case masterplate.
For example, according to the call format of enterprise document (specification, form etc.) can preset the test case template that meets call format, because the testing procedure data of the system to be tested generating are one group of highly compact and the data of not indicating implication, therefore, related data in testing procedure data need be carried out to the placeholder (Place Holder) in replacement test use-case template, be about to testing procedure nest with entering to meet in the test case template of call format, finally generate the required test case document of system to be tested.
The present embodiment is owing to being to derive testing procedure data according to the functional specification of system to be tested, therefore the test case document obtaining can reflect the testing requirement of system to be tested more comprehensively, accurately, more reasonable, according to test case masterplate, generate form standardization more, the standardization that final test case document can make test case document, and due to without tester's hand-coding, greatly reduced tester's workload.
Particularly, as shown in Figure 6, described derivation module 401 can comprise: modeling unit 4011, parsing acquiring unit 4012 and search unit 4013, wherein:
Modeling unit 4011, for according to the functional specification of system to be tested, utilizes unified modeling language instrument to treat test macro and carries out modeling, sets up the state-event figure of system to be tested;
According to the functional specification of system to be tested, utilize unified modeling language (Unified Modeling Language, abbreviation UML) instrument is treated test macro and is carried out modeling, can make the model of setting up accurately objectively reflect requirement and the feature of system to be tested, according to the model of setting up, set up the state-event figure (UML State Diagram) of system to be tested, like this, this state-event figure can embody the various status informations of system to be tested.Further, the state-event figure of foundation is exported to extensible markup language (Extensive Makeup Language, abbreviation XML) form is preserved, because XML form can be stated content more accurately, convenient search of crossing over kinds of platform, has simplified exchange and the expression of data in network, the standard format of Chang Zuowei exchanges data effectively, therefore exporting to XML form preserves to be beneficial to and reduces in subsequent operation the read-write of data, the complexity of transmission is more simple and convenient.
Resolving acquiring unit 4012, for described state-event figure being resolved to input and output and the state transitions information of obtaining system to be tested, and is every kind of state transitions labeled test cost of system to be tested;
Utilize Extensible Stylesheet Language (XSL) conversion (Extensible Style sheet Language Transformations, abbreviation XSLT) processor is resolved the XML form constitutional diagram of preserving, the XML form constitutional diagram of preserving by parsing can be obtained the various status informations of system to be tested, also obtain input and output and the state transitions information of system to be tested, and be test cost value of every kind of state transitions mark of system to be tested, can treat test macro various rational test conditions are set.
Search unit 4013, for obtaining initial state, done state and the maximum cost threshold value that system to be tested need be tested, according to the test cost value search of the input and output of described system to be tested, state transitions information and every kind of state transitions mark, meet the testing procedure data of described initial state, done state, maximum cost threshold value.
The need that obtain tester input are treated the maximum cost threshold value of initial state, done state and test that test macro tests, wherein, the maximum cost threshold value of described initial state, done state and test can be arranged according to the functional specification of system to be tested and the concrete test case for the treatment of test macro by tester.Then, according to the test cost value search of the input and output of the system to be tested of preserving and state transitions information, every kind of state transitions mark, generate and meet initial state, the done state of tester's input, all testing procedure data of the maximum cost threshold value of test.Particularly, the core concept that the false code that the algorithm of the testing procedure data of this system to be tested uses is obtained in derivation is the method that adopts recurrence, search for all need that meet input and test the initial state of system to be tested, done state, all testing procedure data of the maximum cost threshold value of test, and in generating the process of testing procedure data, the cost of accumulative total testing procedure data, filter out the too high testing procedure data that surpass maximum cost threshold value of test cost, like this, tester only need arrange corresponding initial state according to test case, the maximum cost threshold value of done state and test, all testing procedure data between can generating from initial state to done state, and in generating the process of testing procedure data, to exceeding the testing procedure data of the maximum cost threshold value of setting, filter, make the final testing procedure data that generate can embody the characteristic of system to be tested and the condition that tester arranges completely, reach best test effect.
As shown in Figure 7, described generation module 402 can comprise: read and search unit 4021 and replacement unit 4022, wherein:
Read and search unit 4021, for utilizing template to replace processor read test use-case document template storehouse, and from described test case document template storehouse, find out the test case template that meets call format according to described testing procedure data;
Replacement unit 4022, for by the placeholder of test case template described in described testing procedure data replacement, obtains the test case document of system to be tested.
Utilize the template of system to replace processor instrument read test use-case document template storehouse, described test case document template comprises some default test case templates in storehouse, wherein, the form of some default test case templates is all not identical, according to described testing procedure data, can know the form of the test case document template that it need be applied mechanically, from test case document template storehouse, find the test case document template that meets call format, because the testing procedure data of obtaining according to algorithmic derivation are one group of highly compact and the data of not indicating implication, therefore, related data in testing procedure data need be carried out to the placeholder (Place Holder) in replacement test use-case template, be about to testing procedure nest with entering to meet in the test case document template of call format, the final required test case document of system to be tested that generates.The form of test case template can be in advance for example, according to the call format of enterprise document (specification, form etc.) define, as pdf form, html form etc., like this, identical testing procedure nest, with entering in the test case template of different-format, can generate the test case document of the system to be tested of final different ways of presentation.
In an optional embodiment of the present embodiment, obtaining input and output and the state transitions information of system to be tested, and after being test cost value of every kind of state transitions mark of system to be tested, further, also the input and output of the system to be tested of obtaining and state transitions information can be saved in a database, like this, for this system to be tested, generating for the first time after the test case document of system to be tested, if follow-up, also need according to the initial state of tester's input, done state and maximum cost threshold value generate new test case document, get final product directly input and output and the state transitions information of the system to be tested of reading and saving from database, and without treating again test macro modeling, the steps such as parsing, shortened the flow process of generating test use case document, time and resource have been saved, convenient, fast.
The method of above-mentioned generating test use case document and device, according to the functional specification of system to be tested, treat test macro and carry out modeling, by the state-event figure setting up is resolved to input and output and the state transitions information of obtaining system to be tested, again according to the initial state of the test of tester's input, done state and maximum cost threshold value are derived and are obtained the testing procedure data of system to be tested, finally described testing procedure nest is used to enter to meet in the test case template of call format, can obtain the test case document of system to be tested, because being derives testing procedure data according to the functional specification of system to be tested, therefore the test case document obtaining can be more comprehensively, standard, the testing requirement that reflects accurately system to be tested, more reasonable, and due to without tester's hand-coding, greatly reduced tester's workload.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or flow process conversion that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical field, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method for generating test use case document, is characterized in that, comprising:
According to the functional specification of system to be tested, obtain the testing procedure data of system to be tested;
Based on described testing procedure data and default test case masterplate, generate the test case document of system to be tested.
2. method according to claim 1, is characterized in that, the step that the described functional specification according to system to be tested obtains the testing procedure data of system to be tested comprises:
According to the functional specification of system to be tested, utilize unified modeling language instrument to treat test macro and carry out modeling, set up the state-event figure of system to be tested;
Described state-event figure is resolved to input and output and the state transitions information of obtaining system to be tested, and be every kind of state transitions labeled test cost of system to be tested;
Obtain initial state, done state and maximum cost threshold value that system to be tested need be tested, according to the test cost value search of the input and output of described system to be tested, state transitions information and every kind of state transitions mark, meet the testing procedure data of described initial state, done state, maximum cost threshold value.
3. method according to claim 2, is characterized in that, described according to the functional specification of system to be tested, utilizes unified modeling language instrument to treat test macro and carries out modeling, and the step of setting up the state-event figure of system to be tested also comprises afterwards:
The state-event figure of foundation is led into extensible markup language form and preserves.
4. method according to claim 1, is characterized in that, the described step that generates the test case document of system to be tested based on described testing procedure data and test case masterplate comprises:
Utilize template to replace processor read test use-case document template storehouse, and from described test case document template storehouse, find out the test case template that meets call format according to described testing procedure data;
By the placeholder in test case template described in described testing procedure data replacement, obtain the test case document of system to be tested.
5. according to the method in claim 2 or 3, it is characterized in that, described input and output and the state transitions information of obtaining system to be tested that described state-event figure is resolved, and also comprise after the step for every kind of state transitions labeled test cost of system to be tested:
The test cost value of the input and output of the system to be tested of obtaining, state transitions information and every kind of state transitions mark is deposited in database.
6. a device for generating test use case document, is characterized in that, comprising:
Derivation module, for obtaining the testing procedure data of system to be tested according to the functional specification of system to be tested;
Generation module, for generating the test case document of system to be tested based on described testing procedure data and default test case masterplate.
7. device according to claim 6, is characterized in that, described derivation module comprises:
Modeling unit, for according to the functional specification of system to be tested, utilizes unified modeling language instrument to treat test macro and carries out modeling, sets up the state-event figure of system to be tested;
Resolving acquiring unit, for described state-event figure being resolved to input and output and the state transitions information of obtaining system to be tested, and is every kind of state transitions labeled test cost of system to be tested;
Search unit, for obtaining initial state, done state and the maximum cost threshold value that system to be tested need be tested, according to the test cost value search of the input and output of described system to be tested, state transitions information and every kind of state transitions mark, meet the testing procedure data of described initial state, done state, maximum cost threshold value.
8. device according to claim 7, is characterized in that, described derivation module also for:
The state-event figure of foundation is led into extensible markup language form and preserves.
9. device according to claim 6, is characterized in that, described generation module comprises:
Read and search unit, for utilizing template to replace processor read test use-case document template storehouse, and from described test case document template storehouse, find out the test case template that meets call format according to described testing procedure data;
Replacement unit, for by the placeholder of test case template described in described testing procedure data replacement, obtains the test case document of system to be tested.
10. according to the device described in claim 7 or 8, it is characterized in that, described derivation module also for:
The test cost value of the input and output of the system to be tested of obtaining, state transitions information and every kind of state transitions mark is deposited in database.
CN201310535872.3A 2013-11-01 2013-11-01 Method and device for generating test case document Pending CN103544107A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310535872.3A CN103544107A (en) 2013-11-01 2013-11-01 Method and device for generating test case document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310535872.3A CN103544107A (en) 2013-11-01 2013-11-01 Method and device for generating test case document

Publications (1)

Publication Number Publication Date
CN103544107A true CN103544107A (en) 2014-01-29

Family

ID=49967579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310535872.3A Pending CN103544107A (en) 2013-11-01 2013-11-01 Method and device for generating test case document

Country Status (1)

Country Link
CN (1) CN103544107A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298727A (en) * 2014-09-26 2015-01-21 广州金山移动科技有限公司 Template matching method and device based on document
CN105224461A (en) * 2015-10-23 2016-01-06 网易(杭州)网络有限公司 A kind of generation method and apparatus of integration testing use-case
CN106227062A (en) * 2016-08-23 2016-12-14 株洲中车时代电气股份有限公司 Diesel locomotive microcomputer controls semi-matter simulating system and method
CN106681921A (en) * 2016-12-27 2017-05-17 腾讯科技(深圳)有限公司 Method and device for achieving data parameterization
CN109587351A (en) * 2019-01-23 2019-04-05 北京三快在线科技有限公司 A kind of call test method, device, equipment and storage medium
CN111045917A (en) * 2018-10-12 2020-04-21 汉能移动能源控股集团有限公司 Method and device for converting format of test case
CN111475410A (en) * 2020-03-31 2020-07-31 北京经纬恒润科技有限公司 Test case generation method and device
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040111727A1 (en) * 2002-12-05 2004-06-10 Gunter Schwarzbauer Automatic context management for web applications with client side code execution
CN101571802A (en) * 2009-06-19 2009-11-04 北京航空航天大学 Visualization automatic generation method of embedded software test data and system thereof
CN101661580A (en) * 2009-07-22 2010-03-03 中国农业银行股份有限公司 Method and system for testing software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040111727A1 (en) * 2002-12-05 2004-06-10 Gunter Schwarzbauer Automatic context management for web applications with client side code execution
CN101571802A (en) * 2009-06-19 2009-11-04 北京航空航天大学 Visualization automatic generation method of embedded software test data and system thereof
CN101661580A (en) * 2009-07-22 2010-03-03 中国农业银行股份有限公司 Method and system for testing software

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298727A (en) * 2014-09-26 2015-01-21 广州金山移动科技有限公司 Template matching method and device based on document
CN104298727B (en) * 2014-09-26 2018-11-16 广州金山移动科技有限公司 A kind of template matching method and device based on document
CN105224461A (en) * 2015-10-23 2016-01-06 网易(杭州)网络有限公司 A kind of generation method and apparatus of integration testing use-case
CN105224461B (en) * 2015-10-23 2018-01-26 网易(杭州)网络有限公司 A kind of generation method and device of integration testing use-case
CN106227062A (en) * 2016-08-23 2016-12-14 株洲中车时代电气股份有限公司 Diesel locomotive microcomputer controls semi-matter simulating system and method
CN106681921A (en) * 2016-12-27 2017-05-17 腾讯科技(深圳)有限公司 Method and device for achieving data parameterization
CN111045917A (en) * 2018-10-12 2020-04-21 汉能移动能源控股集团有限公司 Method and device for converting format of test case
CN109587351A (en) * 2019-01-23 2019-04-05 北京三快在线科技有限公司 A kind of call test method, device, equipment and storage medium
CN111475410A (en) * 2020-03-31 2020-07-31 北京经纬恒润科技有限公司 Test case generation method and device
CN112052169A (en) * 2020-09-01 2020-12-08 深圳创维-Rgb电子有限公司 Test management method, system, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103544107A (en) Method and device for generating test case document
WO2020233330A1 (en) Batch testing method, apparatus, and computer-readable storage medium
US8990157B2 (en) Replication support for structured data
CN108628748B (en) Automatic test management method and automatic test management system
US20180307594A1 (en) System, method and storage device for cim/e model standard compliance test
CN104133772A (en) Automatic test data generation method
CN102043719B (en) Method for testing IEC61850 configuration description file
CN104932480A (en) Automobile diagnostic system design method and apparatus
CN104123227A (en) Method for automatically generating testing cases
CN108446190A (en) interface test method and device
CN109086199A (en) A kind of automation generates the method for test script, terminal and can storage medium
CN105070321B (en) The quick test circuit and method of memory device
EP3443460B1 (en) Method, apparatus, and computer-readable medium for performing functional testing of software
CN101859303A (en) Metadata management method and management system
CN110737594A (en) Database standard conformance testing method and device for automatically generating test cases
CN109376093A (en) The test method and device of insurance products, storage medium and electronic equipment
CN103095726A (en) Processing method and device of protocol interpreter
CN108664625B (en) Cross-system data synchronization method and device
WO2015154474A1 (en) Query interface generation method and device
CN103810090B (en) The method of nuclear plant digital code installation and debugging checking, rise version method and platform
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
US8131728B2 (en) Processing large sized relationship-specifying markup language documents
KR102160379B1 (en) Testing method for decentralized application based on blockchain and testing apparatus
CN105117334A (en) XML based test demand description and realization method
CN111427582A (en) Management method, device and equipment of RT L code and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140129