CN103593280B - Method of testing and test system applied to programming language unit testing framework - Google Patents

Method of testing and test system applied to programming language unit testing framework Download PDF

Info

Publication number
CN103593280B
CN103593280B CN201210289612.8A CN201210289612A CN103593280B CN 103593280 B CN103593280 B CN 103593280B CN 201210289612 A CN201210289612 A CN 201210289612A CN 103593280 B CN103593280 B CN 103593280B
Authority
CN
China
Prior art keywords
test
test case
taking
module
testing
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.)
Active
Application number
CN201210289612.8A
Other languages
Chinese (zh)
Other versions
CN103593280A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210289612.8A priority Critical patent/CN103593280B/en
Publication of CN103593280A publication Critical patent/CN103593280A/en
Application granted granted Critical
Publication of CN103593280B publication Critical patent/CN103593280B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of method of testing applied to programming language unit testing framework, it includes taking out test case in sequence;The test case of the taking-up is tested;Whether stand-by period when judging to test the test case of the taking-up reaches predetermined wait interval;The predetermined wait interval as described in reaching, then the test of the test case of the taking-up is skipped, to carry out the test of next test case.The present invention also provides a kind of corresponding test system for being applied to programming language unit testing framework.The method of testing and test system of the application programming linguistic unit test frame of the present invention are easy to use, and testing cost is relatively low, and testing efficiency is higher.

Description

Method of testing and test system applied to programming language unit testing framework
Technical field
The present invention relates to network technique field, more particularly to the method for testing applied to programming language unit testing framework And test system.
Background technology
Ocunit is a kind of programming language (such as Objective-C) unit testing framework, its can be used for Mac OS X, In Mac OS X Server, GNUSTEP, YellowBox/Cocoa and WebObjects/Objective-C etc. environment, with Create automatic test case and these test cases are tested automatically.
In the prior art, Ocunit is when testing test case, its be according to test case put in order according to Handle to sequence these test cases, that is to say, that only after a upper test case is disposed, Ocunit can just start pair Next test case is tested.Therefore, if some test case test when the used time it is more or occur it is wrong when, Then existing Ocunit method of testings can wait always stays, until the test case tested is disposed, its Next test case can be handled in sequence.Therefore, existing Ocunit measuring technologies are more stiff, it is impossible to meet actual Demand.
The content of the invention
It is an object of the present invention to overcome present in the existing measuring technology applied to programming language unit testing framework The defects of, and a kind of new method of testing and test system applied to programming language unit testing framework is provided, its user Just, and testing cost can be reduced and improve testing efficiency.
The object of the invention to solve the technical problems is realized using following technical scheme.
The present invention provides a kind of method of testing applied to programming language unit testing framework, and it includes:
Test case is taken out in sequence;
The test case of the taking-up is tested;
Whether stand-by period when judging to test the test case of the taking-up reaches predetermined wait interval;Such as Reach the predetermined wait interval, then the test of the test case of the taking-up is skipped, to carry out next test case Test.
The present invention a kind of test system applied to programming language unit testing framework is also provided, it include taking-up module, Test module and judge module.Wherein, module is taken out to take out test case in sequence;Test module, to described The test case of taking-up is tested;Judge module, to judge wait when testing the test case of the taking-up Whether the time reaches predetermined wait interval;The predetermined wait interval as described in reaching, then prompt the taking-up module and described Test module skips the test of the test case of the taking-up, to carry out the test of next test case.
The test system and method for testing applied to programming language unit testing framework of the present invention is tested in Ocunit Message processing facility is added on framework, to judge whether interior in predetermined time interval to complete to the test case of taking-up Test, if it is not, skipping the test to the test case of taking-up to carry out the test of next test case.Therefore, i.e., Making some test case, in test, the used time is more or mistake occurs, and of the invention is applied to programming language unit testing frame The test system and method for testing of frame can also skip test case that is more when accounting for or that mistake occur, not interfere with other surveys The test of example on probation, so as to realize the test that asynchronous message is realized on Ocunit test frames, its is easy to use, can reduce survey The cost of examination, and improve testing efficiency.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects, features and advantages of the present invention can Become apparent, below especially exemplified by preferred embodiment, and coordinate accompanying drawing, describe in detail as follows.
Brief description of the drawings
Fig. 1 is the schematic diagram of the test system applied to programming language unit testing framework of the embodiment of the present invention.
Fig. 2 is specific schematic diagram of the test system shown in Fig. 1 by Ocunit test frames progress network test.
Fig. 3 is the schematic flow sheet of the method for testing applied to programming language unit testing framework of the embodiment of the present invention.
Embodiment
Further to illustrate the present invention to reach the technological means and effect that predetermined goal of the invention is taken, below in conjunction with Accompanying drawing and preferred embodiment, to according to the method for testing proposed by the present invention applied to programming language unit testing framework and test System its embodiment, method, step, structure, feature and its effect, describe in detail as follows.
For the present invention foregoing and other technology contents, feature and effect, in the following preferable reality coordinated with reference to schema Applying in the detailed description of example to clearly appear from.By the explanation of embodiment, when predetermined mesh can be reached to the present invention The technological means taken and effect be able to more deeply and it is specific understand, but institute's accompanying drawings are only to provide with reference to saying It is bright to be used, not it is used for being any limitation as the present invention.
Fig. 1 is the schematic diagram of the test system applied to programming language unit testing framework of the embodiment of the present invention.Such as Fig. 1 It is shown, the test system 100 applied to programming language unit testing framework of the embodiment of the present invention, including take out module 110, survey Die trial block 120 and judge module 130.
Wherein, module 110 is taken out to be used to take out test case successively in sequence.Test module 120 is used for taking-up Test case is tested.And judge module 130 is for stand-by period when judging to test the test case of taking-up It is no to reach predetermined wait interval;If reaching predetermined wait interval, prompt to take out module 110 and test module 120 is jumped The test to the test case of taking-up is crossed to carry out the test of next test case;And if between not up to predetermined wait Every then after testing the test case of taking-up, directly carrying out the test of next test case.
In the present invention, above-mentioned programming language unit testing framework can be Ocunit test frames, and to test case The test of progress is network test.
Specifically, Fig. 2 is specific signal of the test system shown in Fig. 1 by Ocunit test frames progress network test Figure.As shown in Fig. 2 test system 200 includes terminal 210, server end 220 and message processing apparatus 230.
Ocunit test frames are run in terminal 210 to create automatic test case and these test cases are carried out certainly During dynamic test, it can in turn take out test case in sequence.Then, terminal 210 performs the test case taken out, so as to send out Test post is sent to server end 220, and notification message processing unit 230 enters wait state simultaneously.
Latent period can be preset in message processing apparatus 230, i.e. implementation of test cases returns after sending test post The maximum tolerance time of response, and constantly whether detection service device end 220 returns in above-mentioned latent period set in advance Response to test post;Such as return and respond at latent period server end 220 set in advance, then message processing apparatus 230 stop waiting, and terminal 210 receives the response returned and carries out follow-up verification according to the response of return;Such as presetting Latent period server end 220 do not return to response, then message processing apparatus 230 is no longer waited, directly return time-out Information to notify terminal 210 is skipped to test the test case of taking-up, and carries out next test case to terminal 210 Test.
That is, when the embodiment of the present invention carries out network test using Ocunit test frames, taking out module 110 can Realized by terminal 210, and test module 120 can be realized by the interaction of terminal 210 and server end 220, and judge Module 130 can be realized by message processing apparatus 230.Certainly, it will be appreciated by persons skilled in the art that Message Processing fills 230 are put to may alternatively be integrated within terminal 210.
The present invention also provides a kind of method of testing applied to programming language unit testing framework.Fig. 3 is implemented for the present invention The schematic flow sheet of the method for testing applied to programming language unit testing framework of example.As shown in figure 3, the embodiment of the present invention Method of testing applied to programming language unit testing framework includes:
Test case is in turn taken out in sequence;
The test case of taking-up is tested;
Whether stand-by period when judging to test the test case of taking-up reaches predetermined wait interval, such as reaches Predetermined wait interval, then the test to the test case of taking-up is skipped to carry out the test of next test case.
In the present invention, above-mentioned programming language unit testing framework can be Ocunit test frames, and to the survey of taking-up The test that example on probation is carried out is network test.
And the above-mentioned test case to taking-up is tested, during wait when judging to test the test case of taking-up Between the step of whether reaching scheduled wait interval, specifically include:
The test case taken out is performed, to send test post;
Judge the response whether returned to test post interior at preset time intervals;Do not returned Ru interior at preset time intervals Response to test post, then the test to the test case of taking-up is skipped, to carry out the test of next test case;And such as Fruit response of the interior return to test post at preset time intervals, then carry out follow-up verification according to the response of return.
In summary, the test system and method for testing applied to programming language unit testing framework of the invention be Message processing facility is added on Ocunit test frames, to judge whether interior in predetermined time interval to complete to taking-up The test of test case, if it is not, skipping the test to the test case of taking-up to carry out the survey of next test case Examination.Therefore, even if in test, the used time is more or mistake occurs for some test case, of the invention is applied to programming language The test system and method for testing of unit testing framework can also skip test case that is more when accounting for or that mistake occur, will not The test of other test cases is influenceed, so as to realize the test that asynchronous message is realized on Ocunit test frames, its user Just, the cost of test can be reduced, and improves testing efficiency.
It is described above, only it is the preferred embodiments of the present invention, any formal limitation not is made to the present invention, though So the present invention is disclosed above with preferred embodiment, but is not limited to the present invention, any to be familiar with this professional technology people Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification For the equivalent embodiment of equivalent variations, as long as being the technical spirit pair according to the present invention without departing from technical solution of the present invention content Any simple modification, equivalent change and modification that above example is made, in the range of still falling within technical solution of the present invention.

Claims (3)

  1. A kind of 1. test system applied to programming language unit testing framework, it is characterised in that including:
    Module is taken out, to take out test case in sequence;
    Test module, to test the test case of the taking-up;
    Whether judge module, stand-by period during judging to test the test case of the taking-up reach predetermined etc. Wait to be spaced;The predetermined wait interval as described in reaching, then the taking-up module and the test module is prompted to skip the taking-up Test case test, to carry out the test of next test case;
    Test system includes terminal, server end and message processing apparatus, takes out module and is realized by terminal, and test module Realized by the interaction at terminal kimonos device end, and judge module is realized by message processing apparatus;
    In testing results framework in terminal to create automatic test case and when being tested automatically these test cases, its meeting Test case is in turn taken out in sequence, and then, terminal performs the test case taken out, so as to send test post to service Device end, and notification message processing unit enters wait state simultaneously;
    Latent period can be preset in message processing apparatus, i.e. implementation of test cases returns to response most after sending test post Big patient time, and constantly whether detection service device end is returned to test post in above-mentioned latent period set in advance Response;Such as return and respond at latent period server end set in advance, then message processing apparatus stops waiting, and terminal receives The response of return simultaneously carries out follow-up verification according to the response of return;Do not returned at latent period server end set in advance such as Echo and answer, then message processing apparatus is no longer waited, and time-out information is directly returned to terminal, to notify terminal to skip to taking out Test case tested, and carry out the test of next test case.
  2. 2. test system according to claim 1, it is characterised in that the programming language unit testing framework is Ocunit Test frame.
  3. 3. test system according to claim 2, it is characterised in that the test carried out to the test case of the taking-up is Network test.
CN201210289612.8A 2012-08-15 2012-08-15 Method of testing and test system applied to programming language unit testing framework Active CN103593280B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210289612.8A CN103593280B (en) 2012-08-15 2012-08-15 Method of testing and test system applied to programming language unit testing framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210289612.8A CN103593280B (en) 2012-08-15 2012-08-15 Method of testing and test system applied to programming language unit testing framework

Publications (2)

Publication Number Publication Date
CN103593280A CN103593280A (en) 2014-02-19
CN103593280B true CN103593280B (en) 2017-12-01

Family

ID=50083431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210289612.8A Active CN103593280B (en) 2012-08-15 2012-08-15 Method of testing and test system applied to programming language unit testing framework

Country Status (1)

Country Link
CN (1) CN103593280B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001125784A (en) * 1999-10-25 2001-05-11 Hitachi Ltd System and method for estimating system performance
CN1805382A (en) * 2005-01-14 2006-07-19 中兴通讯股份有限公司 Repeatable automatic test method
CN101052020A (en) * 2007-05-21 2007-10-10 中兴通讯股份有限公司 Monitor method and system for automatically measuring executing process
CN101916224A (en) * 2010-08-20 2010-12-15 迈普通信技术股份有限公司 Test progress abnormality detection method and automatic test control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001125784A (en) * 1999-10-25 2001-05-11 Hitachi Ltd System and method for estimating system performance
CN1805382A (en) * 2005-01-14 2006-07-19 中兴通讯股份有限公司 Repeatable automatic test method
CN101052020A (en) * 2007-05-21 2007-10-10 中兴通讯股份有限公司 Monitor method and system for automatically measuring executing process
CN101916224A (en) * 2010-08-20 2010-12-15 迈普通信技术股份有限公司 Test progress abnormality detection method and automatic test control device

Also Published As

Publication number Publication date
CN103593280A (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN103533016B (en) A kind of broadband network tests the speed and intelligent analysis method
CN107025576B (en) Push control method, device and system for car washing service information
CN103500517B (en) A kind of parking position detection method and device
US20180132079A1 (en) Automatic goods consumption judgment system and method
DE602005015964D1 (en) SUPPORT OF CALIBRATION AND DIAGNOSIS IN A TEST SYSTEM WITH OPEN ARCHITECTURE
CN107730634A (en) Parking lot is without the parking fee on-line payment method, apparatus and system under network environment
CN108896545B (en) Gluing detection method and device and computer readable storage medium
CN104375912A (en) Method and device for measuring blockage of mobile terminal
CN103901490A (en) Human body security check device and human body security check method
CN107230284A (en) Water realization method and system is freely sent by the concern of intelligent Vending Machine barcode scanning
CN104714009A (en) Immunoassay detection system and detection method
CN101316203B (en) Method for monitoring embedded IP terminal internetwork connection condition
CN104535953A (en) Automatic detection system and method of liquid crystal display screen of intelligent ammeter
CN103593280B (en) Method of testing and test system applied to programming language unit testing framework
EP2857915A1 (en) Culture-medium information registration system, communication terminal, program, health management system, and film-type culture medium
CN108335724B (en) Automatic generation system for customer service management, laboratory process, quality control and report
CN105354778A (en) Awaiting diagnosis number calling method and apparatus and awaiting diagnosis number calling machine
CN111612088B (en) Method and device for detecting images of superimposed characters
CN107659598A (en) Mobile phone vision testing system
CN106896710A (en) Scene configurable time synchronization test system and implementation method
CN106021623A (en) Method and device for log dotting information
CN106844211A (en) A kind of method for testing software, apparatus and system
CN103974416B (en) Obtain location information of mobile terminal method, apparatus and system
CN204836245U (en) Inspect quick judgement system of agent soon
CN106470129A (en) Realize method, system, server and the terminal of webpage first screen latency measurement

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant