CN104765684A - Automatic verification method and system for demand implementation - Google Patents

Automatic verification method and system for demand implementation Download PDF

Info

Publication number
CN104765684A
CN104765684A CN201510151474.0A CN201510151474A CN104765684A CN 104765684 A CN104765684 A CN 104765684A CN 201510151474 A CN201510151474 A CN 201510151474A CN 104765684 A CN104765684 A CN 104765684A
Authority
CN
China
Prior art keywords
demand
comparison data
information
demand information
confession
Prior art date
Application number
CN201510151474.0A
Other languages
Chinese (zh)
Inventor
李蕊
Original Assignee
闻泰通讯股份有限公司
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 闻泰通讯股份有限公司 filed Critical 闻泰通讯股份有限公司
Priority to CN201510151474.0A priority Critical patent/CN104765684A/en
Publication of CN104765684A publication Critical patent/CN104765684A/en

Links

Abstract

The invention discloses an automatic verification method and system for demand implementation. The automatic verification method includes steps that S1, acquiring demand information, generating detection content according to the demand information, and acquiring the corresponding status data to be detected according to the detection content; S2, acquiring comparison data corresponding to the demand information from a database; S3, comparing the status data of the step S1 with the corresponding comparison data, and automatically obtaining the test result. The automatic verification method and system for the demand implementation are capable of improving the verification efficiency and saving the manpower cost.

Description

Demand realizes automatic verification method and system

Technical field

The invention belongs to software testing technology field, relate to a kind of method for testing software, particularly relate to a kind of demand and realize automatic verification method; In addition, the invention still further relates to a kind of demand and realize automated verification system.

Background technology

Current version cannot accomplish Aulomatizeted Detect one by one for numerous and diverse customer demand, still adopt artificial contrast to identify, the realization of customer demand can be checked so more accurately, but for a large amount of same client demand, still adopting mode so, is very serious to the waste of manpower.

In view of this, nowadays in the urgent need to designing a kind of new method of testing, to overcome the above-mentioned defect of existing method of testing.

Summary of the invention

Technical matters to be solved by this invention is: provide a kind of demand to realize automatic verification method, can improve verification efficiency, saves human cost.

In addition, the present invention also provides a kind of demand to realize automated verification system, can improve verification efficiency, saves human cost.

For solving the problems of the technologies described above, the present invention adopts following technical scheme:

A kind of demand realizes automatic verification method, and described method comprises the steps:

Step S1, acquisition demand information, information generates Detection of content according to demand, and obtains status data corresponding to be detected according to Detection of content;

Step S2, the confession comparison data that acquisition is corresponding with described demand information from comparison data storehouse;

Step S3, by step S1 obtain status data compare with corresponding confession comparison data, automatically obtain test result.

As a preferred embodiment of the present invention, described demand information is the application of test standby wallpapers;

Obtain the windowmanager control of current phone;

According to the interface class of windowmanager control, obtain the bitmap wallpaper of current phone;

Document flow is converted to by bigmap wallpaper;

New files, is written to storage space by output stream conversion;

The picture placed in storage space and in application carries out a some pixel comparison and can judge that whether wallpaper is correctly preset.

As a preferred embodiment of the present invention, described method also comprises for comparison data generation step, and information generates for comparison data according to demand.

As a preferred embodiment of the present invention, described method specifically comprises:

Comparison data generation step, generates for comparison data according to each demand information, is stored in comparison data storehouse;

Obtain demand information list, therefrom obtain each demand information, and each demand information is sorted, detect respectively in order; When starting to detect, obtain corresponding status data according to each demand information;

The confession comparison data corresponding with described demand information is obtained from comparison data storehouse;

The status data of acquisition is compared with corresponding confession comparison data, automatically obtains test result.

A kind of demand realizes automated verification system, and described system comprises:

Demand information acquisition module, generates Detection of content in order to information according to demand, and obtains status data corresponding to be detected according to Detection of content;

Comparison data storehouse, in order to the confession comparison data that storage demand information is corresponding;

Comparing module, compares with corresponding confession comparison data in order to the status data obtained by described demand information acquisition module, automatically obtains test result.

As a preferred embodiment of the present invention, described system also comprises for comparison data generation module, generates for comparison data in order to information according to demand.

Beneficial effect of the present invention is: the demand that the present invention proposes realizes automatic verification method and system, can improve verification efficiency, saves human cost.The present invention is directed to customer demand table and form version detection mechanism corresponding with it, this version detection mechanism, by corresponding with demand, detect the detection application that demand code is formed, issues the initial stage, carry out Autonomous test to version, thus save human cost at version.

Accompanying drawing explanation

Fig. 1 is the process flow diagram that demand of the present invention realizes automatic verification method.

Fig. 2 is the composition schematic diagram that demand of the present invention realizes automated verification system.

Fig. 3 is the schematic diagram of the inventive method in embodiment two.

Embodiment

The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.

Embodiment one

Refer to Fig. 1, present invention is disclosed a kind of demand and realize automatic verification method, described method comprises the steps:

Step S1, acquisition demand information, information generates Detection of content according to demand, and obtains status data corresponding to be detected according to Detection of content;

Step S2, the confession comparison data that acquisition is corresponding with described demand information from comparison data storehouse;

Step S3, by step S1 obtain status data compare with corresponding confession comparison data, automatically obtain test result.Comparison data is wallpaper such as, compares to the pixel of wallpaper; Such as standby layout, catching screen shot effect by flutterring, comparing etc. to layout.

In addition, described method can also comprise step S0 before step S1: for comparison data generation step, and information generates for comparison data according to demand.As for wallpaper, the wallpaper that client provides directly can be entered into background data base, and after webpage clicks, generate the comparative information of a requirements comparison list with corresponding script, then PC carries out cooperation testing authentication.

In the present embodiment, described demand information is the application of test standby wallpapers; Certainly, the present invention can also be used to test other demand informations.The application of test standby wallpapers comprises the steps:

Obtain the windowmanager control of current phone;

According to the interface class of windowmanager control, obtain the bitmap wallpaper of current phone;

Document flow is converted to by bigmap wallpaper;

New files, is written to storage space by output stream conversion;

The picture placed in storage space and in application carries out a some pixel comparison and can judge that whether wallpaper is correctly preset.

Be described above the flow process that demand of the present invention realizes automatic verification method, the present invention, while the above-mentioned verification method of announcement, also discloses a kind of demand and realizes automated verification system; Refer to Fig. 2, described system comprises: demand information acquisition module 2, comparison data storehouse 3, comparing module 4, confession comparison data generation module 1.

Demand information acquisition module 2 generates Detection of content in order to information according to demand, and obtains status data corresponding to be detected according to Detection of content; Comparison data storehouse 3 is in order to confession comparison data corresponding to storage demand information; Comparing module 4 is compared with corresponding confession comparison data in order to the status data obtained by described demand information acquisition module, automatically obtains test result.Generate for comparison data in order to information according to demand for comparison data generation module 1.

Embodiment two

Refer to Fig. 3, demand of the present invention realizes automatic verification method and specifically comprises the steps:

Comparison data generation step, generates for comparison data according to each demand information, is stored in comparison data storehouse;

Obtain demand information list, therefrom obtain each demand information, and each demand information is sorted, detect respectively in order; When starting to detect, obtain corresponding status data according to each demand information;

The confession comparison data corresponding with described demand information is obtained from comparison data storehouse;

The status data of acquisition is compared with corresponding confession comparison data, automatically obtains test result.

In sum, the demand that the present invention proposes realizes automatic verification method and system, can improve verification efficiency, saves human cost.The present invention is directed to customer demand table and form version detection mechanism corresponding with it, this version detection mechanism, by corresponding with demand, detect the detection application that demand code is formed, issues the initial stage, carry out Autonomous test to version, thus save human cost at version.

Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or essential characteristic, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.

Claims (6)

1. demand realizes an automatic verification method, it is characterized in that, described method comprises the steps:
Step S1, acquisition demand information, information generates Detection of content according to demand, and obtains status data corresponding to be detected according to Detection of content;
Step S2, the confession comparison data that acquisition is corresponding with described demand information from comparison data storehouse;
Step S3, by step S1 obtain status data compare with corresponding confession comparison data, automatically obtain test result.
2. demand according to claim 1 realizes automatic verification method, it is characterized in that:
Described demand information is the application of test standby wallpapers;
Obtain the windowmanager control of current phone;
According to the interface class of windowmanager control, obtain the bitmap wallpaper of current phone;
Document flow is converted to by bigmap wallpaper;
New files, is written to storage space by output stream conversion;
The picture placed in storage space and in application carries out a some pixel comparison and can judge that whether wallpaper is correctly preset.
3. demand according to claim 1 realizes automatic verification method, it is characterized in that:
Described method also comprises for comparison data generation step, and information generates for comparison data according to demand.
4. demand according to claim 1 realizes automatic verification method, it is characterized in that:
Described method specifically comprises:
Comparison data generation step, generates for comparison data according to each demand information, is stored in comparison data storehouse;
Obtain demand information list, therefrom obtain each demand information, and each demand information is sorted, detect respectively in order; When starting to detect, obtain corresponding status data according to each demand information;
The confession comparison data corresponding with described demand information is obtained from comparison data storehouse;
The status data of acquisition is compared with corresponding confession comparison data, automatically obtains test result.
5. demand realizes an automated verification system, it is characterized in that, described system comprises:
Demand information acquisition module, generates Detection of content in order to information according to demand, and obtains status data corresponding to be detected according to Detection of content;
Comparison data storehouse, in order to the confession comparison data that storage demand information is corresponding;
Comparing module, compares with corresponding confession comparison data in order to the status data obtained by described demand information acquisition module, automatically obtains test result.
6. demand according to claim 5 realizes automated verification system, it is characterized in that:
Described system also comprises for comparison data generation module, generates for comparison data in order to information according to demand.
CN201510151474.0A 2015-04-01 2015-04-01 Automatic verification method and system for demand implementation CN104765684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510151474.0A CN104765684A (en) 2015-04-01 2015-04-01 Automatic verification method and system for demand implementation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510151474.0A CN104765684A (en) 2015-04-01 2015-04-01 Automatic verification method and system for demand implementation

Publications (1)

Publication Number Publication Date
CN104765684A true CN104765684A (en) 2015-07-08

Family

ID=53647528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510151474.0A CN104765684A (en) 2015-04-01 2015-04-01 Automatic verification method and system for demand implementation

Country Status (1)

Country Link
CN (1) CN104765684A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025114A (en) * 2017-04-17 2017-08-08 广州视源电子科技股份有限公司 A kind of software requirement information matches degree inspection method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7165191B1 (en) * 2004-01-29 2007-01-16 Sun Microsystems, Inc. Automated verification of user interface tests on low-end emulators and devices
US7339891B2 (en) * 2002-01-09 2008-03-04 Mverify Corporation Method and system for evaluating wireless applications
CN102541700A (en) * 2010-12-16 2012-07-04 卓望数码技术(深圳)有限公司 Terminal test method, test device and terminal agency
CN103136094A (en) * 2011-11-25 2013-06-05 阿里巴巴集团控股有限公司 Page testing method and device
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7339891B2 (en) * 2002-01-09 2008-03-04 Mverify Corporation Method and system for evaluating wireless applications
US7165191B1 (en) * 2004-01-29 2007-01-16 Sun Microsystems, Inc. Automated verification of user interface tests on low-end emulators and devices
CN102541700A (en) * 2010-12-16 2012-07-04 卓望数码技术(深圳)有限公司 Terminal test method, test device and terminal agency
CN103136094A (en) * 2011-11-25 2013-06-05 阿里巴巴集团控股有限公司 Page testing method and device
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025114A (en) * 2017-04-17 2017-08-08 广州视源电子科技股份有限公司 A kind of software requirement information matches degree inspection method and system

Similar Documents

Publication Publication Date Title
JP6710483B2 (en) Character recognition method for damages claim document, device, server and storage medium
TWI490772B (en) Method and apparatus for adapting custom control components to a screen
CN102665093B (en) Test method for set top box and test system thereof
US20200081963A1 (en) Automated file merging through content classification
US20150135169A1 (en) Testing device and testing method thereof
CN104035867B (en) Application function traversal method of testing based on Android
US20100211865A1 (en) Cross-browser page visualization generation
CN105138312B (en) A kind of table generation method and device
CN102708050B (en) Method and system for testing mobile application
US20170147562A1 (en) Visually differentiating strings for testing
CN104102574B (en) Applied program testing method and device
US20150324246A1 (en) Correlation of source code with system dump information
CN103761288A (en) Visual chart custom generation system and visual chart custom generation method
MX343495B (en) Methods and apparatus to correlate census measurement data with panel data.
US9454467B2 (en) Method and apparatus for mining test coverage data
CN103984612A (en) Unattended stress testing method based on HPL tool
CN101620565A (en) Method for automatically testing functions of terminal system
US9280406B2 (en) Automatic correction of application based on runtime behavior
CN102662846B (en) Testing method combining automatic tool and testing case
CN101221530B (en) Method for automatically leading in test cases
CN102831894A (en) Command processing method, command processing device and command processing system
US8448139B2 (en) Automatic correction of application based on runtime behavior
CN104866542A (en) POI data verification method and device
CN103593196A (en) Page layout self-adaptation method and device
JP2008293486A (en) Source code analysis device, analysis program, and analysis method

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
EXSB Decision made by sipo to initiate substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150708

RJ01 Rejection of invention patent application after publication