CN106874192A - The method of testing and test system of a kind of standard compliance towards digital publishing - Google Patents
The method of testing and test system of a kind of standard compliance towards digital publishing Download PDFInfo
- Publication number
- CN106874192A CN106874192A CN201710002362.8A CN201710002362A CN106874192A CN 106874192 A CN106874192 A CN 106874192A CN 201710002362 A CN201710002362 A CN 201710002362A CN 106874192 A CN106874192 A CN 106874192A
- Authority
- CN
- China
- Prior art keywords
- test
- value
- testing
- interface
- standard
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 499
- 238000010998 test method Methods 0.000 title abstract description 8
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000009472 formulation Methods 0.000 claims abstract description 6
- 239000000203 mixture Substances 0.000 claims abstract description 6
- 238000004519 manufacturing process Methods 0.000 claims description 9
- 230000008520 organization Effects 0.000 claims description 4
- 238000003860 storage Methods 0.000 claims description 4
- 238000012856 packing Methods 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 238000010200 validation analysis Methods 0.000 claims description 3
- TZCXTZWJZNENPQ-UHFFFAOYSA-L barium sulfate Chemical compound [Ba+2].[O-]S([O-])(=O)=O TZCXTZWJZNENPQ-UHFFFAOYSA-L 0.000 claims description 2
- 238000007726 management method Methods 0.000 description 22
- 150000001875 compounds Chemical class 0.000 description 12
- 238000012795 verification Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000004575 stone Substances 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000006837 decompression Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000009826 distribution Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000003556 assay Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 230000008521 reorganization Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of method of testing test system of the standard compliance towards digital publishing, the method for testing includes:According to the standard that test object selection needs to follow, and determine corresponding testing requirement, and test object is registered, generate log-on message;Test plan is formulated according to the testing requirement;Corresponding testing tool is downloaded according to the test object;The test of standard compliance is carried out to the test object according to the testing tool and the test plan;The test result of Standard conformance test is generated into test report.Method of testing of the present invention according to the testing requirement of test side, follow the unified test plan of standard formulation, and download testing tool, the test of standard compliance is carried out to test object according to testing tool and test plan, the unified test report of generation, so that it is guaranteed that data output is consistent before system aggregate.
Description
Technical field
The present invention relates to Standard conformance test field, meet more particularly, to a kind of standard towards digital publishing
The method of testing and test system of property.
Background technology
In software industry prosperity and development, in the epoch let a hundred schools contend, the necessity of software conformance to standards is carried out
As industry common recognition.The software conformance to standards work sutdy of China is started late, and data shows, from eight or five systems soft wares
The great brainstorm project that domesticizes just starts to carry out the research work of software conformance to standards.And Standard conformance test is different
In general software test, according to targetedly standard is come from, the exploitation of testing tool is often by with mark for its test
Standard manages or drafts government unit's commission of qualification, so Standard conformance test instrument is different from other software product, in state
Interior no blanket marketable product.
And because digital publishing is because of the industrial nature of its own, it is more strict to form, format, operation flow requirement,
Therefore the data output of the software of its business, interface definition are served in exploitation also has certain complexity and diversity.Towards
The series of engineering technical instrument in digital publishing field is developed by not commensurate, and constituent parts are due to development language, data base call
Mode, interface format, operation platform are different, it is easy to which being stranded occur when integrated in the Software tool or system for each exploitation occur
It is difficult.
The content of the invention
In order to solve above mentioned problem of the prior art, the Software tool or system that solve each exploitation have been integrated
When encounter difficulties, the invention provides a kind of method of testing and test system of the standard compliance towards digital publishing.
To achieve the above object, the invention provides following scheme:
The method of testing of a kind of standard compliance towards digital publishing, it is characterised in that the method for testing includes:
According to the standard that test object selection needs to follow, and determine corresponding testing requirement, and test object is carried out
Registration, generates log-on message;Wherein, the test object includes test interface and/or test data;
Test plan is formulated according to the testing requirement;
Corresponding testing tool is downloaded according to the test object, wherein, the testing tool is accorded with including interface class standard
Conjunction property testing tool and/or data class Standard conformance test instrument;
The test of standard compliance is carried out to the test object according to the testing tool and the test plan;
The test result of Standard conformance test is generated into test report.
Optionally, the generation log-on message includes:
Interface description is obtained, and is described according to the interface, Mass production all standing test case;And/or tested
The test information of data.
Optionally, the interface description includes:Obtain the XML document of interface description, the interface preserved in parsing XML document
Description information is simultaneously stored in database, or directly fills in interface description information in web form and be stored in database.
Optionally, the method for the Mass production all standing test case includes:
S11:Connection database, transfers the parameter list of the database;
S12:Described according to the interface, the relevant information of each parameter of corresponding interface description obtained from the parameter list,
The relevant information of each parameter includes data type, constraint information, test case type and the test value of parameter;
S13:Judge whether the test value is empty, if it is, data type, constraint information and survey according to parameter
Example type on probation, is the test value of each parameter various test case types of generation of interface;Otherwise directly use corresponding number
Value performs next step as test value;
S14:Test value and corresponding test case type according to different parameters generate the n power bar test cases of x;
Wherein, n is expressed as the number of parameter, and x represents the species of the corresponding test case type of the test value of each parameter;
S15:Whole test case sequences are turned into the output of XM forms.
Optionally, each test case includes that test case value and use-case are identified;
Wherein, the test case value is the combination of the test value of each parameter of corresponding interface;The use-case mark uses n
X system numbers represent, the test case type of jth position j-th parameter of the represented interface of use-case mark.
Optionally, the data type includes at least one of numeric type, character string type and time type.
Optionally, the test case type includes effective random test use-case (being represented with 0), invalid random test use-case
(being represented with 1), left boundary value type (being represented with 2) and right boundary value type (being represented with 3).
Optionally, (1) for numeric type, described each parameter for interface generates the test value of various test case types
Including:
The random number of respective value type in minimum value and maximum range is generated at random as effective random test
Value, minimum value are as left boundary value, maximum as right boundary value;
A numerical value r for respective value type is generated at random1, then (minimum value-r is taken at random1) or (maximum+r1)
Value is used as invalid random test value;Wherein, r1>0;
(2) for character string type, the test value that described each parameter for interface generates various test case types includes:
The integer random number l in the range of minimum length and maximum length, the integer random number l works are generated at random
It is the length of character string to be generated, random generation length is the character string of l as effective random test value;
With minimum length as the length of character string to be generated, the character string of the length is generated at random as left margin
Value;
With maximum length as the length of character string to be generated, the character string of the length is generated at random as right margin
Value;
A numerical value r for integer is generated at random2, then (minimum length-r is taken at random2) or (maximum length+r2) value make
It is the length of character string to be generated, the character string of the length is generated at random as invalid random test value;Wherein, 0<r2<Most
Small length;
(3) for time type, the test value that described each parameter for interface generates various test case types includes:
Time started and deadline are converted into the millisecond number of long according to time format;
Generate the long random number in the range of time started and deadline at random, then by the long random number
The time for meeting time format is converted into as effective random test value;
Time started is used as left boundary value;
Deadline is used as right boundary value;
A numerical value r for long is generated at random3, then (time started-r is taken at random3) or (deadline+r3) value,
And the value is converted into meets time of time format as invalid random test value;Wherein, 0<r3<Time started.
Optionally, it is described that the test that the test object carries out standard compliance is included:
S411:Project to be measured is selected according to the test plan;
S412:The interface testing use-case for needing to be tested is selected from the test case of the project to be measured;
S413:The interface class standard compliance test instrument reads whole interface testing use-case and correspondences in order
Expected results;
S414:Using the test input in the interface testing use-case as the |input paramete of interface, test interface is called to carry
For or open external interface, carry out interface interchange test;
S415:Compare the result expected results corresponding with the interface testing use-case of interface interchange test, determine interface
The test result of test case.
Optionally, it is described that the test that the test object carries out standard compliance is included:
S421:According to test data and test plan, XML Schema files and test data are loaded into the number
According on class standard compliance test instrument;
S422:By the form of test data described in the data class Standard conformance test Tool validation, name, packing
Each file designation and content in mode, storage organization and test data, the data type of each data item also in file
And the matching degree that form specifies with standard;
S423:Determine test result.
Embodiments in accordance with the present invention, the invention discloses following technique effect:
The present invention towards the standard compliance of digital publishing method of testing according to the testing requirement of test side, follow standard
Unified test plan is formulated, and downloads testing tool, standard symbol is carried out to test object according to testing tool and test plan
The test of conjunction property, generates unified test report, so that it is guaranteed that data output is consistent before system aggregate, contributes to as much as possible
The interface error rate of each software systems is reduced, total collection operating efficiency is improved, it is ensured that the data of Hybrid document publishing system engineering developme,
Software, system and the accordance of corresponding standard, while contributing to practicality of the test stone in engineering, ensure that country is combined out
The standardization and standardization of edition system engineering.
To achieve the above object, the invention provides following scheme:
A kind of test system of standard compliance towards digital publishing, the test system includes:
Standard management module, for being tested the standard that root needs to follow according to test object selection, and determines corresponding survey
Examination demand, and test object is registered, generate log-on message;Wherein, the test object includes test interface and/or survey
Examination data;
Module is formulated, for formulating test plan according to the testing requirement;
Download module, for downloading corresponding testing tool according to the test object, wherein, the testing tool includes
Interface class standard compliance test instrument and/or data class Standard conformance test instrument;
Test module, meets for carrying out standard to the test object according to the testing tool and the test plan
The test of property;
Generation module, for the test result of Standard conformance test to be generated into test report.
Optionally, the standard management module is participated in performing by tested side;The formulation module, download module, test mould
Block and generation module are participated in performing by test side.
Embodiments in accordance with the present invention, the invention discloses following technique effect:
The test system of the standard compliance towards digital publishing of the invention is by setting standard management module, formulating mould
Block, download module, test module and generation module, can follow the unified test plan of standard formulation according to testing requirement, and
Testing tool is downloaded, the test of standard compliance is carried out to test object according to testing tool and test plan, generation unification
Test report, so that it is guaranteed that data output is consistent before system aggregate, helps to reduce connecing for each software systems as much as possible
Mouthful error rate, improves total collection operating efficiency, it is ensured that the data of Hybrid document publishing system engineering developme, software, system and corresponding standard
Accordance, while contribute to practicality of the test stone in engineering, ensure the standardization of national Hybrid document publishing system engineering
And standardization.
Brief description of the drawings
Fig. 1 is flow chart of the present invention towards the method for testing of the standard compliance of digital publishing;
Fig. 2 is Mass production all standing method of test example flow chart in the present invention;
Fig. 3 is the parameter testing value generation method schematic diagram of different types of data in one embodiment of the invention;
Fig. 4 is interface class testing tool system Organization Chart in the present invention;
Fig. 5 is data class testing tool system architecture diagram in the present invention;
Fig. 6 is modular structure schematic diagram of the present invention towards the test system of the standard compliance of digital publishing.
Symbol description:
Standard management module -1, formulates module -2, download module -3, test module -4, generation module -5.
Specific embodiment
The preferred embodiment of the present invention described with reference to the accompanying drawings.It will be apparent to a skilled person that this
A little implementation methods are used only for explaining know-why of the invention, it is not intended that limit the scope of the invention.
As shown in figure 1, the present invention includes towards the method for testing of the standard compliance of digital publishing:
Step 100:According to the standard that test object selection needs to follow, and determine corresponding testing requirement, and to test
Object is registered, and generates log-on message.
Step 200:Test plan is formulated according to the testing requirement.
Step 300:Corresponding testing tool is downloaded according to the test object.
Step 400:Standard compliance is carried out to the test object according to the testing tool and the test plan
Test.
Step 500:The test result of Standard conformance test is generated into test report.
Wherein, in step 100, the test object includes test interface and/or test data.The generation log-on message bag
Include:Interface description is obtained, and is described according to the interface, Mass production all standing test case;And/or obtain test data
Test information.
Further, the interface description includes:The XML document of interface description is obtained, what is preserved in parsing XML document connects
Mouth description information is simultaneously stored in database, or directly fill in interface description information in web form and be stored in database.
As shown in Fig. 2 the method for the Mass production all standing test case includes:
Step 110:Connection database, transfers the parameter list of the database;Step 120:Described according to the interface, from
The parameter list obtains the relevant information of each parameter of corresponding interface description;Step 130:Judge whether the test value is sky,
If it is, performing step 140;Otherwise directly use corresponding numerical value as test value, perform step 150;Step 140:Root
It is that each parameter of interface generates various test case classes according to the data type of parameter, constraint information and test case type
The test value of type;Step 150:The n powers bar of test value and corresponding test case type the generation x according to different parameters is surveyed
Example on probation (wherein, n is expressed as the number of parameter, and x represents the species of the corresponding test case type of the test value of each parameter);
Step 160:Whole test case sequences are turned into XML format output.
Record has the relevant information of parameters, including parameter name, parameter data type, minimum in the parameter list
Whether value, maximum, essential, parameter default, parameter format etc., preserve these information, and recording parameters number.
The relevant information of each parameter includes data type, constraint information, test case type and the test of parameter
Value.
The data type of the parameter includes numeric type (boolean, short, int, long, float, double), word
Symbol serial type (string) and time type (date, time).The constraint information of the parameter include minimum value, maximum, whether
Essential, parameter format, these information can be obtained in initialization from parameter list.The test case type includes four classes:0 represents
Effective random test use-case, 1 represent that invalid random test use-case, 2 represent that left boundary value, 3 represent right boundary value.
In the Mass production all standing method of test example, the method for the parameter generation test value of different types of data is not
Together.
Specifically, as shown in figure 3, described each parameter for interface generates the test value bag of various test case types
Include:
(1) for numeric type, test value is generated according to maximum, minimum value and test case type.Specifically:
The random number of respective value type in minimum value and maximum range is generated at random as effective random test
Value, minimum value are as left boundary value, maximum as right boundary value.
A numerical value r for respective value type is generated at random1, then (minimum value-r is taken at random1) or (maximum+r1)
Value is used as invalid random test value;Wherein, r1>0。
(2) for character string type, test value is generated according to maximum length, minimum length and test case type.Specifically
,
The integer random number l in the range of minimum length and maximum length, the integer random number l works are generated at random
It is the length of character string to be generated, random generation length is the character string of l as effective random test value.
With minimum length as the length of character string to be generated, the character string of the length is generated at random as left margin
Value.
With maximum length as the length of character string to be generated, the character string of the length is generated at random as right margin
Value.
A numerical value r for integer is generated at random2, then (minimum length-r is taken at random2) or (maximum length+r2) value make
It is the length of character string to be generated, the character string of the length is generated at random as invalid random test value;Wherein, 0<r2<Most
Small length.
(3) for time type, according to time started, deadline and time format and the generation test of test case type
Value.Specifically:
Time started and deadline are converted into the millisecond number of long according to time format;
Generate the long random number in the range of time started and deadline at random, then by the long random number
The time for meeting time format is converted into as effective random test value;Time started is used as left boundary value;Deadline conduct
Right boundary value.
A numerical value r for long is generated at random3, then (time started-r is taken at random3) or (deadline+r3) value,
And the value is converted into meets time of time format as invalid random test value;Wherein, 0<r3<Time started.
Each test case includes that test case value and use-case are identified;Wherein, the test case value is corresponding interface
Each parameter test value combination;The use-case mark represents that the jth position of use-case mark is represented described with n x system number
The test case type of j-th parameter of interface.
Certain interface a, there is three parameters, b, c, d, it is contemplated that the combination of the test parameter of the various test-types of generation, that
The test case quantity that the interface should be generated is 4*4*4=64.The use-case of the 6th article of test case is designated 6 quaternary
Number 012, is expressed as first parameter b and generates effective random test use-case, is that second parameter c generates invalid random test use
Example, it is that the 3rd parameter d generates left boundary value as test case.
Test case type is obtained by use-case mark in the Mass production all standing method of test example, use-case mark
Test case type represented by jth position, is determined as j-th test value of parameter generation of the interface.For example:Use-case is designated
012, first 0 is effective random test use-case, then is expressed as first parameter b and generates effective random test value.
In described Mass production all standing method of test example, if certain parameter has designated value, this is specified
The corresponding use-case mark place value of the parameter is changed to 4 (designated value is represented with 4) by value as test value.For example:Use-case mark is former
Be 012, such as first parameter b have designated value, then using the designated value as parameter b test value, and by use-case mark be changed to
412。
Further, the testing requirement include demand numbering, demand title, test object, process state (it is processed/
It is untreated), whether regression test, former demand numbering, submit user, treatment user, process time etc. to.Wherein, selection needs are abided by
The standard followed, determine corresponding testing requirement and test object register it is general participate in performing by tested side, and step 200
Operation to step 500 is general by test man's participation execution.
In step 200, the test plan includes plan number, testing requirement, test parameter set (if test is right
As if interface), test mode (completed/do not completed), test parameter perform percent of pass (if test object is interface).
In step 300, the testing tool includes interface class standard compliance test instrument and (such as Fig. 4 and the institutes of Biao 1
Show)/or data class Standard conformance test instrument (such as Fig. 5 and Biao 2) shown in.
The building block and its function of the interface class standard compliance test instrument of table 1
The building block and its function of the data class Standard conformance test instrument of table 2
Further, the interface class standard compliance test instrument is mainly in the interface for being obtained in that implementing result
Implementation is tested, and the interface mode of its covering includes:WebService, RESTful and SDK.
The instrument of the interface class standard compliance test tool needle pair includes with system:Printed page understanding technical tool, version
Face edit tool collection, XML edit tools collection, intelligent calibration system, the compound collecting and editing system of publishing house, compound the gathering and editing of Periodical Press are
System, books and periodicals collaboration collecting and editing system, the compound collecting and editing system of newspaper office, media coordinated work system, the full media of structuring treat compliation manuscipt depositary management
Reason system, the books selected topic and distribution analysis system, the news content selected topic and evaluation system, XML composing systems, Rich Media's e-book
Tools, publishing business on-line study platform, full media asset management system, copyright and the copyright asset management system, Shao Shuomin
Race word publishing resource management system, minority language publish aid collection, release management system, file distributing with demand
It is print system, content dynamic reorganization system, publisher's operation service system, publisher operation data support system, compound
Publishing Data transmission system, numeral resource identification management and analysis service system, national publication content exchange system, library's letter
Breath and socialization data acquisition service system, publication planning service system, data exchange cell system, polymorphic ad distribution system
System, full text similarity analysis system, field vocabulary build integrated with management system, engineering with management system, domain body structure.
The premise that the interface class standard compliance test instrument is tested the interface of certain Software tool or system
It is that the interface that will need test is registered to Standard conformance test Integrated Service System, the specific letter that system can be registered according to interface
Breath generation all standing test parameter set, these test parameter set can be exported to locally, then using corresponding from system
Interface class standard compliance test instrument complete docking port automatic test.
In step 400, standard symbol is carried out to the test interface by the interface class standard compliance test instrument
The test of conjunction property includes:Step 411:Project to be measured is selected according to the test plan;Step 412:From the project to be measured
The interface testing use-case for needing to be tested is selected in test case;Step 413:The interface class standard compliance test instrument
Whole interface testing use-cases and corresponding expected results are read in order;Step 414:By in the interface testing use-case
Test input calls test interface to provide or open external interface as the |input paramete of interface, carries out interface interchange test;
Step 415:Compare the result expected results corresponding with the interface testing use-case of interface interchange test, determine that interface testing is used
The test result of example.
The data class Standard conformance test instrument includes:Across media data link specification testing tool, compound document
The compound text of foundation structure testing tool, chapter compound document structured testing instrument, entry compound document structured testing instrument, news
Mark structure testing tool, paper compound document structured testing instrument, courseware compound document structured testing instrument, publication product format
Normative testing instrument, resource database management regulation testing tool, engineering software system coding normative testing instrument, digital publishing
Product encapsulates normative testing instrument;The data object form of expression is:File, data item or digital product etc..
The test bag of standard compliance is carried out to the test data by the data class Standard conformance test instrument
Include:Step 421:According to test data and test plan, XML Schema files and test data are loaded into the data
On class standard compliance test instrument;Step 422:Number is tested by described in the data class Standard conformance test Tool validation
According to form, each file designation and content in name, packing manner, storage organization and test data, also in file
The matching degree that the data type and form of each data item specify with standard;Step 423:Determine test result.
As a example by verifying compound document packet, the execution step of data class Standard conformance test instrument includes:
S421 ':Whether verification compressed file format correct, filename name whether the title one with compound document NameSpace
Cause, back-checking result.
S422 ':Decompression, and returning result.If being unable to successful decompression, error log (error.log) is returned to, due to
Compression unsuccessfully causes the subsequent step cannot to carry out, therefore test leaves it at that.
S423 ':Whether the name of verification essential document folder and file and storage path are correct, back-checking result.Due to
The mistake can cause to can not find specified file in subsequent step, therefore step S424 '-S426 ' are for specified file content
Verification cannot be carried out, and directly redirect S427 '.
S424 ':Whether the content for verifying specified file meets standard requirement, back-checking result.
S425 ':Whether verification specifies XML file by corresponding XML Schema, back-checking result.
S426 ':Verification specifies whether the content in XML file label meets standard requirement, back-checking result.
S427 ':Every assay is exported with XML.
Standard compliance testing method of the present invention helps to find that unit possibility is undertaken the construction of in each technology subpackage before system aggregate
The data output inconsistence problems of appearance, help to reduce the interface error rate of each software module as much as possible, improve total collection
Operating efficiency, it is ensured that the accordance of the data of Hybrid document publishing system engineering developme, software, system and corresponding standard, while helping
Practicality in test stone in engineering, ensures the standardization and standardization of national Hybrid document publishing system engineering.
Wherein, in the present invention, user role is divided into four classes:It is system manager, test administrator, test man, general
General family, different role has different operating rights.
1st, system manager
System manager is mainly responsible for deployment and operation maintenance to system, and is responsible for setting user role and authority
Put and manage.
2nd, test administrator
Test administrator is responsible for carrying out the critical data such as the testing standard in system, testing tool, test parameter information
Management.Specifically, the specific works of test administrator are as follows:
(1) testing standard management
It is responsible for the registration of items testing standard, uploads and manage.For the ease of checking, all standards are according to art point
Class is managed, and externally provides the retrieval service of standard.
(2) testing tool management
It is responsible for the registration of testing tool, uploads and manage.Testing tool after all uploads all with a pair of testing standard 1
Should.
(3) test parameter management
It is responsible for generating all of test case for all standard, and according to business demand by the access right of test case
Be divided into official testing use-case, user to test oneself test case.Official testing use-case is mainly used in official testing business, commonly
User does not have authority to browse and uses the test case.User's test case of testing oneself issues external disclosure, each software development side
May browse through and download these test cases, for the Built-In Self-Test in software development process.
3rd, test man
Test man is the professional people for being responsible for carrying out the test object that software development side provides Standard conformance test specially
Member.Test man has permission and browses, downloads test case library and testing tool that test needs according to testing requirement, and registration is tested
Examination object, carries out third-party testing.The test result information of acquisition is uploaded to and is tested in integrated system, ultimately generated formal
Test report.
4th, test oneself user
The user that tests oneself refers to software development side, and domestic consumer has permission the test for browsing, downloading and using the system to provide
Instrument and user test oneself test parameter collection.Test oneself what test case was developed to oneself based on the testing tool and user downloaded
Software systems and digital publishing product carry out Built-In Self-Test.
Additionally, the present invention also provides a kind of test system of the standard compliance towards digital publishing.As shown in fig. 6, this
Invention towards the standard compliance of digital publishing test system include standard management module 1, formulate module 2, download module 3,
Test module 4 and generation module 5.
Wherein, the standard management module 1 is used to be tested the standard that root needs to follow according to test object selection, and determines
Corresponding testing requirement, and test object is registered, generate log-on message;Wherein, the test object connects including test
Mouth and/or test data;The formulation module 2 is used to formulate test plan according to the testing requirement;The download module 3 is used
In downloading corresponding testing tool according to the test object, wherein, the testing tool includes the survey of interface class standard accordance
Trial work tool and/or data class Standard conformance test instrument;The test module 4 is used for according to the testing tool and the survey
Examination plan carries out the test of standard compliance to the test object;The generation module 5 is used for Standard conformance test
Test result generates test report, and the test report is XML format.
Further, the standard management module 1 is participated in performing by tested side;The formulation module 2, download module 3, survey
Die trial block 4 and generation module 5 are participated in performing by test side.
The standard management module 1 has addition, the function of deleting, change and inquire about;The He of standard management module 1
The standard document available for download of download module 3 and various interface classes and data class testing instrument.
Relative to prior art, the present invention towards the standard compliance of digital publishing test system with above-mentioned towards numeral
The beneficial effect of the method for testing of the standard compliance of publication is identical, will not be repeated here.
So far, combined preferred embodiment shown in the drawings describes technical scheme, but, this area
Technical staff is it is easily understood that protection scope of the present invention is expressly not limited to these specific embodiments.Without departing from this
On the premise of the principle of invention, those skilled in the art can make equivalent change or replacement to correlation technique feature, these
Technical scheme after changing or replacing it is fallen within protection scope of the present invention.
Claims (12)
1. the method for testing of a kind of standard compliance towards digital publishing, it is characterised in that the method for testing includes:
According to the standard that test object selection needs to follow, and determine corresponding testing requirement, and test object registered,
Generation log-on message;Wherein, the test object includes test interface and/or test data;
Test plan is formulated according to the testing requirement;
Corresponding testing tool is downloaded according to the test object, wherein, the testing tool includes interface class standard accordance
Testing tool and/or data class Standard conformance test instrument;
The test of standard compliance is carried out to the test object according to the testing tool and the test plan;
The test result of Standard conformance test is generated into test report.
2. the method for testing of the standard compliance towards digital publishing according to claim 1, it is characterised in that the life
Include into log-on message:
Interface description is obtained, and is described according to the interface, Mass production all standing test case;And/or
Obtain the test information of test data.
3. the method for testing of the standard compliance towards digital publishing according to claim 2, it is characterised in that described to connect
Mouth description includes:The XML document of interface description is obtained, the interface description information preserved in parsing XML document is simultaneously stored in database,
Or in web form directly fill in interface description information and be stored in database.
4. the method for testing of the standard compliance towards digital publishing according to claim 2, it is characterised in that described batch
The method of amount generation all standing test case includes:
S11:Connection database, transfers the parameter list of the database;
S12:Described according to the interface, the relevant information of each parameter of corresponding interface description, each institute are obtained from the parameter list
Stating the relevant information of parameter includes data type, constraint information, test case type and the test value of parameter;
S13:Judge whether the test value is empty, if it is, the data type, constraint information and test according to parameter are used
Example type, is the test value of each parameter various test case types of generation of interface;Otherwise directly made using corresponding numerical value
It is test value, performs next step;
S14:Test value and corresponding test case type according to different parameters generate the n power bar test cases of x;Its
In, n is expressed as the number of parameter, and x represents the species of the corresponding test case type of the test value of each parameter;
S15:Whole test case sequences are turned into XML outputs.
5. the method for testing of the standard compliance towards digital publishing according to claim 4, it is characterised in that each described
Test case includes that test case value and use-case are identified;
Wherein, the test case value is the combination of the test value of each parameter of corresponding interface;The use-case mark is entered with n x
Number processed represents, the test case type of jth position j-th parameter of the represented interface of use-case mark.
6. the method for testing of the standard compliance towards digital publishing according to claim 4, it is characterised in that the number
Include at least one of numeric type, character string type and time type according to type.
7. the method for testing of the standard compliance towards digital publishing according to claim 6, it is characterised in that the survey
Example type on probation includes effective random test use-case, invalid random test use-case, left boundary value type and right boundary value type,
And sequentially represented with 0,1,2,3 respectively.
8. the method for testing of the standard compliance towards digital publishing according to claim 7, it is characterised in that
(1) for numeric type, the test value that described each parameter for interface generates various test case types includes:
Generate at random the random number of respective value type in minimum value and maximum range as effective random test value, most
Small value is as left boundary value, maximum as right boundary value;
A numerical value r for respective value type is generated at random1, then (minimum value-r is taken at random1) or (maximum+r1) value make
It is invalid random test value;Wherein, r1>0;
(2) for character string type, the test value that described each parameter for interface generates various test case types includes:
Integer random number l, the integer random number l in the range of minimum length and maximum length are generated at random as treating
The length of the character string of generation, random generation length is the character string of l as effective random test value;
With minimum length as the length of character string to be generated, the character string of the length is generated at random as left boundary value;
With maximum length as the length of character string to be generated, the character string of the length is generated at random as right boundary value;
A numerical value r for integer is generated at random2, then (minimum length-r is taken at random2) or (maximum length+r2) value as treating
The length of the character string of generation, generates the character string of the length as invalid random test value at random;Wherein, 0<r2<Minimum is long
Degree;
(3) for time type, the test value that described each parameter for interface generates various test case types includes:
Time started and deadline are converted into the millisecond number of long according to time format;
The long random number in the range of time started and deadline is generated at random, then the long random number is converted
To meet the time of time format as effective random test value;
Time started is used as left boundary value;
Deadline is used as right boundary value;
A numerical value r for long is generated at random3, then (time started-r is taken at random3) or (deadline+r3) value, and will
The value is converted into the time for meeting time format as invalid random test value;Wherein, 0<r3<Time started.
9. the method for testing of the standard compliance towards digital publishing according to claim 2, it is characterised in that described right
The test that the test object carries out standard compliance includes:
S411:Project to be measured is selected according to the test plan;
S412:The interface testing use-case for needing to be tested is selected from the test case of the project to be measured;
S413:The interface class standard compliance test instrument reads whole interface testing use-case and corresponding pre- in order
Phase result;
S414:Will in the interface testing use-case test input as interface |input paramete, call test interface provide or
Open external interface, carries out interface interchange test;
S415:Compare the result expected results corresponding with the interface testing use-case of interface interchange test, determine interface testing
The test result of use-case.
10. the method for testing of the standard compliance towards digital publishing according to claim 2, it is characterised in that described
The test that the test object carries out standard compliance is included:
S421:According to test data and test plan, XML Schema files and test data are loaded into the data class
On Standard conformance test instrument;
S422:By the form of test data described in the data class Standard conformance test Tool validation, name, packing side
Each file designation and content in formula, storage organization and test data, also in file the data type of each data item and
The matching degree that form specifies with standard;
S423:Determine test result.
The test system of 11. a kind of standard compliances towards digital publishing, it is characterised in that the test system includes:
Standard management module, for being tested the standard that root needs to follow according to test object selection, and determines that corresponding test is needed
Ask, and test object is registered, generate log-on message;Wherein, the test object includes test interface and/or test number
According to;
Module is formulated, for formulating test plan according to the testing requirement;
Download module, for downloading corresponding testing tool according to the test object, wherein, the testing tool includes interface
Class standard compliance test instrument and/or data class Standard conformance test instrument;
Test module, for carrying out standard compliance to the test object according to the testing tool and the test plan
Test;
Generation module, for the test result of Standard conformance test to be generated into test report.
The test system of 12. standard compliances towards digital publishing according to claim 11, it is characterised in that described
Standard management module is participated in performing by tested side;The formulation module, download module, test module and generation module are by test side
Participate in performing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710002362.8A CN106874192B (en) | 2017-01-03 | 2017-01-03 | Digital publication-oriented standard conformance testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710002362.8A CN106874192B (en) | 2017-01-03 | 2017-01-03 | Digital publication-oriented standard conformance testing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106874192A true CN106874192A (en) | 2017-06-20 |
CN106874192B CN106874192B (en) | 2020-02-04 |
Family
ID=59164424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710002362.8A Active CN106874192B (en) | 2017-01-03 | 2017-01-03 | Digital publication-oriented standard conformance testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874192B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908888A (en) * | 2018-09-17 | 2020-03-24 | 百度在线网络技术(北京)有限公司 | Server testing method and device |
CN116069573A (en) * | 2022-11-16 | 2023-05-05 | 北京东方通科技股份有限公司 | Testing method and system based on API (application program interface) testing platform |
CN118194000A (en) * | 2024-05-14 | 2024-06-14 | 中科数测(无锡)科技有限公司 | Multi-mode data consistency verification method, device and medium based on data standard |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030187724A1 (en) * | 2002-03-28 | 2003-10-02 | Xerox Corporation | Method for generating a rating for assessing accessibility standards compliance |
CN104317709A (en) * | 2014-10-21 | 2015-01-28 | 工业和信息化部电子第五研究所 | Method and system for testing performance of software |
CN104461907A (en) * | 2014-12-30 | 2015-03-25 | 成都金盘电子科大多媒体技术有限公司 | Health information data set standard conformance automated testing method and system |
-
2017
- 2017-01-03 CN CN201710002362.8A patent/CN106874192B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030187724A1 (en) * | 2002-03-28 | 2003-10-02 | Xerox Corporation | Method for generating a rating for assessing accessibility standards compliance |
CN104317709A (en) * | 2014-10-21 | 2015-01-28 | 工业和信息化部电子第五研究所 | Method and system for testing performance of software |
CN104461907A (en) * | 2014-12-30 | 2015-03-25 | 成都金盘电子科大多媒体技术有限公司 | Health information data set standard conformance automated testing method and system |
Non-Patent Citations (1)
Title |
---|
崔艳婷: ""面向标准符合性测试的接口标准建模方案"", 《中国传媒大学学报自然科学版》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110908888A (en) * | 2018-09-17 | 2020-03-24 | 百度在线网络技术(北京)有限公司 | Server testing method and device |
CN116069573A (en) * | 2022-11-16 | 2023-05-05 | 北京东方通科技股份有限公司 | Testing method and system based on API (application program interface) testing platform |
CN116069573B (en) * | 2022-11-16 | 2023-09-22 | 北京东方通科技股份有限公司 | Testing method and system based on API (application program interface) testing platform |
CN118194000A (en) * | 2024-05-14 | 2024-06-14 | 中科数测(无锡)科技有限公司 | Multi-mode data consistency verification method, device and medium based on data standard |
Also Published As
Publication number | Publication date |
---|---|
CN106874192B (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Greenberg | Understanding metadata and metadata schemes | |
CN104462547B (en) | A kind of method and system of configurable collecting webpage data | |
CN107807878A (en) | Automatic test engine based on keyword | |
MY143418A (en) | Method and system for converting a schema-based hirarchical data structure into a flat data structure | |
CN101452503A (en) | Isomerization clinical medical information shared system and method | |
CN107783950A (en) | Package insert processing method and processing device | |
CN106874192A (en) | The method of testing and test system of a kind of standard compliance towards digital publishing | |
CN110334088A (en) | Educational data management system | |
CN104298705A (en) | Converting method of relational data and unstructured data | |
CN109614084A (en) | Web program and its Quick Development Framework, development approach and relevant device | |
CN110956029B (en) | Technical document processing method and system | |
Wiley | Why trees are important | |
CN105701524B (en) | A kind of application method with two dimensional code connection paper media and picture and text audio-video | |
Ferro et al. | CLEF 2009: Grid@ CLEF pilot track overview | |
CN101908174A (en) | Method, device and EAP (Enterprise Application Platform) system for processing part object information in drawing file | |
Choi et al. | Development process and data management of TurnSTEP: a STEP-compliant CNC system for turning | |
He et al. | Automatic extraction of web search interfaces for interface schema integration | |
CN103810259A (en) | Urinalysis prototype constructing and data storage method based on OpenEHR | |
Prause et al. | Unifying learning object repositories in mace | |
CN103488632A (en) | Universal dynamic adjustment method for multi-data-item display | |
CN106529774A (en) | Translation method for distributing software UI entries according to modules | |
CN114077315B (en) | Method for generating Chinese character spelling confusion item and computer readable storage medium | |
Verdejo et al. | Improving learning object description mechanisms to support an integrated framework for ubiquitous learning scenarios | |
CN107480361A (en) | A kind of method, storage medium and device for generative circuit plate machining information | |
CN102750279A (en) | Classification association networked sharing method and system for electronic document |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |