CN101510172A - Test system and method - Google Patents

Test system and method Download PDF

Info

Publication number
CN101510172A
CN101510172A CNA2009101293418A CN200910129341A CN101510172A CN 101510172 A CN101510172 A CN 101510172A CN A2009101293418 A CNA2009101293418 A CN A2009101293418A CN 200910129341 A CN200910129341 A CN 200910129341A CN 101510172 A CN101510172 A CN 101510172A
Authority
CN
China
Prior art keywords
test
picture
module
log
operating 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.)
Granted
Application number
CNA2009101293418A
Other languages
Chinese (zh)
Other versions
CN101510172B (en
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN2009101293418A priority Critical patent/CN101510172B/en
Publication of CN101510172A publication Critical patent/CN101510172A/en
Application granted granted Critical
Publication of CN101510172B publication Critical patent/CN101510172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a test system comprising an acquiring module for acquiring images of the test operation executed by a testing case; an associated module used for establishing association between the acquired images and a test log; a verification module used for carrying out error point positioning to the test operation with error execution in the testing case so as to play the images which are acquired from the test operation execution beginning to the error point of the testing case and related to the test log. The invention also discloses a test method. With the test system and the method, the reason and the process of error generation of the testing case with execution errorn can be reflected authentically.

Description

Test macro and method
Technical field
The present invention relates to the software test field, particularly a kind of test macro and method.
Background technology
Any software product all needs to test before putting goods on the market, and test process needs the participation of test case.Test case is meant one group of test input of developing for specific objective, executive condition and expected results.Its target can be certain Program path of test or examine and whether satisfy certain specific demand.
Present software test is analyzed occurring wrong test operation in the test case by test log usually, but this measuring technology can not truly reflect reason and process that mistake produces.
Summary of the invention
One of purpose of the present invention provides a kind of mistake of carrying out the test case of makeing mistakes that can truly reflect and produces the test macro and the method for reason and process.
The invention provides a kind of test macro, can comprise: acquisition module, the test operation that test case is carried out carries out picture and obtains; Relating module, the picture that foundation is obtained is related with test log; Authentication module, to carrying out the test operation the make mistakes point location of makeing mistakes in the described test case, with play from described test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.
The present invention also provides a kind of method of testing, can comprise: the test operation that test case is carried out carries out picture and obtains; Related between the picture that foundation is obtained and the test log; To producing the wrong test operation point location of makeing mistakes in the test case, with play from test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.
According to the present invention, by play from test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log, can reflect truly that test case carries out the mistake generation reason and the process of makeing mistakes.
Description of drawings
Fig. 1 is the structured flowchart of one embodiment of the invention automatization test system;
Fig. 2 is the structured flowchart of authentication module in the system shown in Figure 1;
Fig. 3 is the schematic flow sheet of one embodiment of the invention automated testing method.
The object of the invention, function and advantage will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
As shown in Figure 1, a kind of test macro comprises acquisition module 101, relating module 102 and authentication module 104.Acquisition module 101, relating module 102 and authentication module 104 can be located at the test terminal 10 of implementation of test cases.Test terminal 10 also can comprise first memory module 103, authentication module 104 and removing module 105.Test macro also can comprise the logging modle 201 and second memory module 202.The logging modle 201 and second memory module 202 can be located at service end 20 or test terminal 10.Logging modle 201 is used to write down the test log that test case produces in the process of implementation.The test log content can comprise the test terminal name that sends test request, and the test case sequence number is sent request time, receives whether response time and test successfully wait.
Wherein, acquisition module 101 is used for that the test operation that test case is carried out is carried out picture and obtains.Test operation comprises test operating procedure and test operating procedure execution result.Test operating procedure and test operating procedure execution result that acquisition module 101 is carried out test case by sectional drawing software carry out the sectional drawing operation, thereby obtain picture.
Relating module 102 is used for setting up between the test log of the picture that obtains and logging modle 201 records related.When the test operation of implementation of test cases was carried out, relating module 102 carried out identification distribution to the test log of carrying out the test operating procedure generation.For example, the test log of carrying out the test operating procedure generation is carried out identification distribution.The test log that the test operating procedure execution result is produced carries out identification distribution.Relating module 102 is also named sectional drawing respectively according to sign.
Picture is obtained and the picture that obtains and test log are set up related process below in conjunction with the test case of user's login authentication and describe.When carrying out this test operation of input username and password, at first, the daily record of carrying out this test operating procedure generation of input username and password by 102 pairs of relating modules distributes a sign (for example, sign A).Allocation identification (for example, sign A) time, acquisition module 101 carries out the sectional drawing operation by sectional drawing software to this test operating procedure.Relating module 102 is named sectional drawing according to above-mentioned sign (for example, sign A).Secondly, the username and password of input is verified (promptly importing the result that this test operating procedure of username and password is carried out).102 pairs of test logs that this checking produced of relating module distribute a sign (for example, sign B).In allocation identification, acquisition module 101 carries out the sectional drawing operation by sectional drawing software to this checking.Relating module 102 is named this sectional drawing according to above-mentioned sign (for example, sign B).
Sequential storage and the related picture of test log that first memory module 103 is obtained according to picture.
Authentication module 104 is used for whether the test operation (being the test operating procedure execution result) that test case is carried out is made mistakes and detected.If, the point location of then makeing mistakes, and send the point location information of makeing mistakes to second memory module 202.If not, then send no error message to removing module 106.
The point location information of makeing mistakes that second memory module, 202 Receipt Validation modules 104 send begins to carry out test operation to the picture of storage between makeing mistakes a little with first memory module 103 from test case and stores.Test case quantity is along with the carrying out of test can be increased, and each test case generally all comprises several test operations.If all pictures that obtain are kept at test terminal 10 or service end 20, test terminal 10 or service end 20 memory capacity performances all there is very high requirement.Therefore, only storage begins to carry out test operation to the picture between makeing mistakes a little from test case, can reduce the storage load of test terminal 10 or service end 20.
Removing module 106 is used for the no error message (this interval scale test case is finished smoothly) that Receipt Validation module 104 sends, and deletes the picture related with test log of first memory module, 103 storages.In addition, first memory module 103 is begun from test case carry out after test operation to the picture of storage between makeing mistakes a little stores in second memory module 202,103 storages of removing module 106 deletions first memory module with the related picture of test log.
When 10 unit operations of test terminal, (do not comprise service end 20 in the test macro, the logging modle 201 and second memory module 202 are arranged at test terminal 10), the tester can be in the test terminal 10 that play 202 storages of second memory module by a playout software and the related pictures of test log.When test macro comprises service end 20 (service end 20 is provided with the logging modle 201 and second memory module 202), test terminal 10 can connect by LAN (Local Area Network) and/or wide area network and service end 20, and play 202 storages of second memory module by a playout software with the related picture of test log.In addition, because extracting is the picture of band cursor of mouse operation, playout software can the vivid operation scenario that shows each test operation when playing with the related picture of test log.
As shown in Figure 2, authentication module 104 can comprise detection module 1041 and locating module 1042.Detection module 1041 is used for whether the test operation that test case is carried out made mistakes and detects.If not, then send no error message to removing module.If then control test operation that 1042 pairs of execution of locating module the make mistakes point location of makeing mistakes.Locating module 1042 sends point location information to the second memory module 202 of makeing mistakes after the point location of makeing mistakes.
Below in conjunction with Fig. 3 flow process according to the method for testing of one embodiment of the present invention is described exemplarily, this method can realize that this method can comprise by test macro shown in Figure 1:
Step S1, the test operation that 101 pairs of test cases of acquisition module are carried out carries out picture and obtains.
Step S2, the picture that relating module 102 foundation are obtained is related with test log.
Step S3,103 storages and the related picture of test log of first memory module.
Step S4, whether the test operation that 104 pairs of test cases of authentication module are carried out is made mistakes and is detected.If make mistakes, execution in step S5 then; If not, then send no bomp information to removing module 106, and execution in step S8.
Step S5 carries out the test operation the make mistakes point location of makeing mistakes in 104 pairs of test cases of authentication module, and sends the point location information of makeing mistakes to second memory module 202.
Step S6, the point location information of makeing mistakes that second memory module, 202 Receipt Validation modules 104 send, storage from test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.The tester can be in the test terminal 10 that play 202 storages of second memory module by a playout software and the related pictures of test log.
Step S7, removing module 106 after test operation correct execution that test case is carried out or second memory module 202 are carried out storage operations and are finished, delete 103 storages of first memory module with the related picture of test log.
This method of testing can play this test case from begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.The tester when watching playing pictures, can synchronous read with obtain the related test log of picture, thereby reappear test operation is made mistakes and produced in the test case process and reason, make that the correctness of error analysis and location is effectively guaranteed.
The foregoing description is a preferred implementation of the present invention; but embodiments of the present invention are not restricted to the described embodiments; other any do not deviate from change, the modification done under spirit of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.

Claims (10)

1. test macro comprises:
Acquisition module, the test operation that test case is carried out carries out picture and obtains;
Relating module, the picture that foundation is obtained is related with test log;
Authentication module, to carrying out the test operation the make mistakes point location of makeing mistakes in the described test case, with play from described test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.
2. system according to claim 1, described test operation comprises the result that test operating procedure and test operating procedure are carried out.
3. system according to claim 2, described test terminal also comprises:
First memory module, the storage acquisition module obtain with the related picture of test log.
4. system according to claim 3, described service end comprises:
Second memory module when described test operating procedure execution result is made mistakes, is stored the picture of first memory module storage.
5. system according to claim 4, described test terminal also comprises:
Removing module is when described test operating procedure execution result is correct or after the end of second memory module execution storage operation, with the picture deletion of first memory module storage.
6. according to each described system of claim 1 to 5, described authentication module comprises:
Detection module, whether the test operation that test case is carried out is made mistakes and is detected;
Locating module is carried out the test operation the make mistakes point location of makeing mistakes to test case.
7. method of testing comprises:
The test operation that test case is carried out carries out picture and obtains;
Related between the picture that foundation is obtained and the test log;
To producing the wrong test operation point location of makeing mistakes in the test case, with play from test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.
8. method according to claim 7, described test operation comprise the result that test operating procedure and test operating procedure are carried out.
9. method according to claim 8, described method also comprises:
When described test operating procedure execution result is made mistakes, play from test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.
10. method according to claim 8, described method also comprises:
When described test operating procedure execution result is made mistakes, storage from test case begin to carry out test operation to obtain between makeing mistakes a little with the related picture of test log.
CN2009101293418A 2009-03-23 2009-03-23 Test system and method Active CN101510172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101293418A CN101510172B (en) 2009-03-23 2009-03-23 Test system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101293418A CN101510172B (en) 2009-03-23 2009-03-23 Test system and method

Publications (2)

Publication Number Publication Date
CN101510172A true CN101510172A (en) 2009-08-19
CN101510172B CN101510172B (en) 2011-06-29

Family

ID=41002575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101293418A Active CN101510172B (en) 2009-03-23 2009-03-23 Test system and method

Country Status (1)

Country Link
CN (1) CN101510172B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859413A (en) * 2010-06-11 2010-10-13 用友软件股份有限公司 Method and system for collecting defects of enterprise resource planning (ERP) product
CN104572041A (en) * 2013-10-15 2015-04-29 镇江雅迅软件有限责任公司 Detection instrument screen capture management software system
CN106776328A (en) * 2016-12-21 2017-05-31 郑州云海信息技术有限公司 A kind of method that BUG is associated with test case
WO2018120720A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Method for locating test error of client program, electronic device, and storage medium
CN110188045A (en) * 2019-05-31 2019-08-30 武汉市灯塔互动文化传播有限公司 A kind of method and apparatus that statistics APP performance indicator is automated based on iOS system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859413A (en) * 2010-06-11 2010-10-13 用友软件股份有限公司 Method and system for collecting defects of enterprise resource planning (ERP) product
CN104572041A (en) * 2013-10-15 2015-04-29 镇江雅迅软件有限责任公司 Detection instrument screen capture management software system
CN106776328A (en) * 2016-12-21 2017-05-31 郑州云海信息技术有限公司 A kind of method that BUG is associated with test case
CN106776328B (en) * 2016-12-21 2019-06-28 郑州云海信息技术有限公司 A kind of BUG and the associated method of test case
WO2018120720A1 (en) * 2016-12-30 2018-07-05 上海壹账通金融科技有限公司 Method for locating test error of client program, electronic device, and storage medium
CN110188045A (en) * 2019-05-31 2019-08-30 武汉市灯塔互动文化传播有限公司 A kind of method and apparatus that statistics APP performance indicator is automated based on iOS system

Also Published As

Publication number Publication date
CN101510172B (en) 2011-06-29

Similar Documents

Publication Publication Date Title
CN103678105B (en) A kind of test method and device of page code
US9483386B2 (en) Information interaction test device and method based on automatic generation of associated test cases
CN108628748B (en) Automatic test management method and automatic test management system
CN101510172B (en) Test system and method
CN101576846A (en) Method for testing software performance
CN106547658B (en) Automatic testing method and device
CN116204438A (en) Test case generation method, automatic test method and related device
CN112905437B (en) Method, device and storage medium for testing cases
CN109614430B (en) Configurable data acquisition and data verification system and method based on WLAN
CN114817022A (en) Railway electronic payment platform test method, system, equipment and storage medium
CN112882957B (en) Test task validity checking method and device
CN105871660A (en) Quality detection method and equipment
CN109815139A (en) Interface test method, device, computer equipment and storage medium
CN117499287A (en) Web testing method, device, storage medium and proxy server
CN116405421B (en) Communication test method, system and storage medium of simulation chip test sorting machine
CN111949537A (en) Interface test method, device, equipment and medium
CN106445812A (en) Regression test system and regression test method
CN101715180A (en) Method and system for card detection management
CN115878448A (en) Database test method, distributed database and storage medium
CN112187708B (en) Automatic supplementing method and equipment for certificate chain of digital certificate
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN110532186B (en) Method, device, electronic equipment and storage medium for testing by using verification code
CN108255715B (en) Test result processing method and terminal equipment
CN105988917A (en) Method and device for obtaining abnormal information
CN100501698C (en) Method and system for automatic checking for man-machine command

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant