CN104008046A - Method and device for testing programs - Google Patents

Method and device for testing programs Download PDF

Info

Publication number
CN104008046A
CN104008046A CN201310059321.4A CN201310059321A CN104008046A CN 104008046 A CN104008046 A CN 104008046A CN 201310059321 A CN201310059321 A CN 201310059321A CN 104008046 A CN104008046 A CN 104008046A
Authority
CN
China
Prior art keywords
system time
target program
program
gear ratio
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310059321.4A
Other languages
Chinese (zh)
Inventor
吕渊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Oak Pacific Interactive Technology Development Co Ltd
Original Assignee
Beijing Oak Pacific Interactive Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Oak Pacific Interactive Technology Development Co Ltd filed Critical Beijing Oak Pacific Interactive Technology Development Co Ltd
Priority to CN201310059321.4A priority Critical patent/CN104008046A/en
Publication of CN104008046A publication Critical patent/CN104008046A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for testing programs. The method comprises the steps of utilizing a program interface to obtain requests of an object program for calling system time; utilizing the program interface to call the system time, and generating disguise system time according to the system time; utilizing the program interface to transmit the disguise system time to the object program so as to respond to the requests; and enabling running results of the object program responding to the disguise system time to be recorded in a test log. The invention further discloses a device for testing the programs. By utilizing the method and the device, the problem of program errors caused by artificial negligence can be solved, accuracy in modifying the system time in the program testing process can be improved, and working efficiency in program testing is improved.

Description

The method of testing of program and for the equipment of test procedure
Technical field
The present invention relates to the measuring technology of computer software programs, relate in particular to a kind of method of testing of program and the equipment for test procedure.
Background technology
Concerning the exploitation of software program, after the code completion of this software program, it being moved to test is to ensure the requisite step of difficulty action accomplishment.Its design original intention of some software programs is aimed at some, and discrete particular moment is triggered fixed function, for example particular moment in every day or specific date in time.Typically for example server program, some times that this server program comprises cross over very large function logic, and in order to simulate above-mentioned time span very large time lapse of process, the test of these function logics often needs to spend more energy.
Common described server program is realized described time lapse of process by the system time of call operation system, way in existing measuring technology is the artificial directly time of retouching operation system, the system time that this server program is called is an artificial amended designated value, thereby its system time calling has been passed to the particular point in time of specifying after manual amendment for this server program, then server program is processed all tasks in the time period calculating according to this particular point in time.
But there are some defects in above-mentioned method of testing: on the one hand, this test process needs manual amendment's system time, if need to repeatedly adjust the time, due to human negligence probably time of occurrence cross over excessive problem or be artificially the time early than current operation system by the set of time of operating system, all may cause server program to occur some unforeseen mistakes, on the other hand, manual amendment's system is difficult to reach the accuracy requirement of test, the task of for example certain time correlation should be to carry out once every 10 minutes, in test process, need manually repeatedly to revise system time and easily occur deviation, but not carrying out manual operation cannot complete again test at short notice, again on the one hand, for tested program, cannot realize the real-time monitoring of the short period task to repeatedly carrying out, for example just carried out once task every 5 seconds, if the report of each execution is carried out to real-time follow-up, so before people can read the report of one-period, may pile up report for several times, in addition revise system time and easily occur the spinoff of program without response, if the task that tested program internal memory need to be carried out repeatedly at some, for example carried out once task every 1 minute, crossed over for 1 all day if make system time after manual amendment's time, this task just need to be carried out 1440 times so, can cause program to be calculated for a long time and not response.Above-mentioned defect is to be all unfavorable for that measuring technology personnel complete the negative factor of program test process.
Summary of the invention
In order to overcome above-mentioned defect of the prior art, the invention provides a kind of method of testing of program, the method comprises:
Routine interface obtains the request of target program calling system time;
System time described in described program interface call, and generate the dazzle system time according to this system time;
Described routine interface by described dazzle system time tranfer to described target program, with in response to described request;
Described target program is recorded in test log in response to the operation result of described dazzle system time.
According to an aspect of the present invention, described in described method of testing, generating dazzle system time according to this system time comprises: obtain gear ratio; According to described gear ratio, described system time is carried out to computational transformation to generate the described dazzle system time.
According to another aspect of the present invention, in described method of testing user by the human-computer interaction interface that operates described routine interface and provide to preset described gear ratio.
According to another aspect of the present invention, target program described in described method of testing is adjusted the execution number of times of comprising in this target program/this target program of task within the unit interval according to described gear ratio.
According to another aspect of the present invention, routine interface described in described method of testing according to comprising in described target program/described target program of task the execution number of times within the unit interval determine described gear ratio.
Correspondingly, the present invention also provides a kind of equipment for test procedure, and this equipment comprises:
Acquisition request module, for obtaining the request of target program calling system time;
Time modification module, for calling described system time, and generates the dazzle system time according to this system time;
Respond module, for by described dazzle system time tranfer to described target program, with in response to described request;
Logging modle, for being recorded in described target program in test log in response to the operation result of described dazzle system time.
According to an aspect of the present invention, the described time modification module in this equipment comprises: parameter acquiring unit, for obtaining gear ratio; Computing unit, for carrying out computational transformation to generate the described dazzle system time according to described gear ratio to described system time.
According to another aspect of the present invention, this equipment also comprises module is set, for human-computer interaction interface is provided, and according to user the default described gear ratio of operation for described human-computer interaction interface.
According to another aspect of the present invention, this equipment also comprises adjusting module, for adjust the execution number of times of comprising in described target program/described target program of task within the unit interval according to described gear ratio.
According to another aspect of the present invention, this equipment also comprises gear ratio module, for according to comprising in described target program/described target program of task the execution number of times within the unit interval determine described gear ratio.
The method of testing of program provided by the invention and revise system time by the mode of robotization for the equipment of test procedure, avoid repeatedly needing the step of manual amendment's system time, can prevent because of the program that artificial carelessness the brings problem of makeing mistakes, can also promote and in program test process, relate to accuracy and the accuracy of revising system time, and promote the work efficiency of program test.
Brief description of the drawings
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 is according to the process flow diagram of the method for testing of program of the present invention embodiment;
Fig. 2 is according to the structural representation of the equipment for test procedure of the present invention embodiment;
Fig. 3 can realize the method for testing of program provided by the invention and the structural representation for the computer equipment of the equipment of test procedure;
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
For a better understanding and interpretation of the present invention, below in conjunction with accompanying drawing, the present invention is described in further detail.
First please refer to Fig. 1, Fig. 1 is that this method of testing comprises according to the process flow diagram of the method for testing of program of the present invention embodiment:
Step S100, routine interface obtains the request of target program calling system time;
Step S200, system time described in described program interface call, and generate dazzle system time according to this system time;
Step S300, described routine interface by described dazzle system time tranfer to described target program, with in response to described request;
Step S400, is recorded in described target program in test log in response to the operation result of described dazzle system time.
Particularly, method, function and/or task that its inside of described target program comprises need the calling system time in the normal course of operation of this target program so that in specific time point triggers described method, function and/or task corresponding service logic.In prior art, be that the system time that this target program is obtained by the method for manual amendment's system time becomes the value after manual amendment.In this embodiment, provide a routine interface to replace above-mentioned manual amendment's step.Typically, in step S100, this routine interface obtains the request of described target program calling system time, for example this routine interface can be designed as the situation of calling for system timing function in persistent surveillance target program, if find, described target program triggers the call request (being the request of described target program calling system time) for described system timing function, described system timing function and this target program are isolated, and transfer this routine interface inter-process to, now the response results of described system timing function for described call request not yet received in described target program inside.Next carry out step S200, system time described in this program interface call, and generate the dazzle system time according to this system time, this dazzle system time converts gained according to preset rules to described system time, for substituting described system time with in response to described call request at step S300, described preset rules can be determined according to the actual demand of program test.After step S100 carries out to step S300, described target program moves and exports operation result based on the described dazzle system time.In step S400, described target program is recorded in test log in response to the operation result of described dazzle system time, whether described test log is analyzed described target program for measuring technology personnel and is moved correctly.
Taking Windows operating system as example description of step S100 is to step S300, the request that described routine interface monitors described target program and calls common system timing function, for example, for timeGetTime function, timeGetSystemTime function, the call request of the system timing functions such as QueryPerformanceCounter function and GetTickCount function, described routine interface is blocked communicating by letter of described target program and said system timing function, and the system time that said system timing function is returned carries out conversion process to generate the described dazzle system time, and by this dazzle system time tranfer to described target program with in response to described call request.
Further preferably, the concrete grammar according to the system time generation dazzle system time of mentioning in step S200 comprises the steps: first to obtain gear ratio; Then according to described gear ratio, described system time is carried out to computational transformation to generate the described dazzle system time.The definition of described gear ratio is: for described target program, the speed that passs the actual time of described system time representative and described dazzle system time representative false time lapse speed ratio, typically, the scope of this gear ratio value can be 0.001 to 10000, the value of for example described gear ratio is 0.1 o'clock, the time of described program interface call system time feedback is 10 minutes, and this routine interface is treated to 1 minute by this time and feeds back to described target program; Similarly, the value of described gear ratio is 100 o'clock, and the time of described program interface call system time feedback is 1 minute, and this time of this routine interface is treated to 100 minutes and feeds back to described target program.Described target program can only obtain the time through amendment by described routine interface as shown in the above description, and directly calling system timing function obtains real system time, therefore realize described target program with respect to the Accelerating running of real time passage process or run slowly.
Accelerating running/the state that runs slowly of independently controlling described target program for the ease of tester, described routine interface provides a human-computer interaction interface, for the default described gear ratio of described tester.Because can being treated to, described routine interface is independent of described target program, therefore do not interrupting under the condition of the normal operation of described target program, tester can revise at any time by operating described human-computer interaction interface the concrete numerical value of described gear ratio, to be adapted to for described target program testing requirement and to control testing progress.
Based on above-mentioned explanation, step S100 is designed to meet and following several application scenarioss to step S400:
Scene one, target program was carried out once and Output rusults every 10 minutes, tester wishes to test this target program normal operation whether in 10000 minutes within a short period of time, its method of testing that depends on described routine interface is as follows: starting described target program and described routine interface and presetting gear ratio is 100, described target program continues the calling system time, due to the effect of described routine interface, in response to the dazzle system time of described target program be not actual system time, whenever the real time of system passage 10 minutes, for described target program, be 10 minutes 100 times time lapse, 1000 minutes, therefore by the function of described routine interface, the all execution Output rusults of described target program after 100 minutes real times of operation are equal to this target program at all execution Output rusults that move after 10000 minutes, above-mentioned execution Output rusults is recorded in test log and analyzes for tester, therefore make a very large class target program of the cycle of operation can complete quickly the test of test one-period.
Scene two, target program carries out once and exports operation result every 10 seconds, need to expend tester's time in 60 seconds and read once in detail described operation result, therefore tester wishes that not interrupting having plenty of time in the situation that of execution at described target program reads this operation result, its method of testing that depends on described routine interface is as follows: starting described target program and described routine interface and presetting gear ratio is 0.1, described target program continues the calling system time, due to the effect of described routine interface, in response to the dazzle system time of described target program be not actual system time, passed for 100 seconds whenever the real time of system, for described target program, be 0.1 times of 100 seconds time lapse, i.e. 10 seconds, therefore by the function of described routine interface, described target program is only carried out once and exports operation result after operation 100 seconds of real time, above-mentioned operation result is recorded in test log and analyzes for tester, and described target program to export operation result next time will be after 100 seconds, therefore make tester there is plenty of time and analyze and read the operation result that described target program is exported each time.
For some comparatively complicated target programs of implementation status, consider on the one hand, preferably this embodiment also provides following steps: described target program/routine interface is adjusted the execution number of times of comprising in this target program/this target program of task within the unit interval according to described gear ratio, its objective is and in the time that the execution number of times of comprising in described target program/this target program of task within the unit interval exceedes predetermined threshold, reduce the task of comprising in described target program/this target program execution number of times within the unit interval, to prevent that described target program from causing the number of times of executing the task to add up excessive and causing test job failure without response in the time that gear ratio numerical value is excessive.The setting of this step is in order to meet following application scenarios: target program is taking 200 minutes as one complete performance period, in therein first 100 minutes, carried out once every 1 minute, in wherein latter 100 minutes, carry out once every 1 second, if tester is preset as 100 by gear ratio, once it is constant that described gear ratio is maintained numerical value 100, real time, passage was after 2 minutes, the actual execution number of times of described target program is 100 times of the real time passage 2 minutes execution number of times in 200 minutes, this execution number of times is 100+60*100=6100 time, and be limited to the hardware performance of the running environment of described target program, be easy to cause described target program to take computational resource completely and without response.Therefore according to the actual conditions of this target program, the described unit interval is defined as to 1 minute, in the described unit interval, the predetermined threshold of the execution number of times of described target program is defined as 10 times, for described latter 100 minutes, it is 60 times that described target program is carried out number of times within the described unit interval (1 minute), this execution number of times is greater than described predetermined threshold, in these latter 100 minutes, ensure again that in order to be adapted to described gear ratio described target program there will not be the situation without response simultaneously, described target program or described routine interface dynamically reduce the task of comprising in described target program/this target program execution number of times within the unit interval according to described gear ratio, make this execution number of times be less than described predetermined threshold, for example in described latter 100 minutes, target program is adjusted into every 10 seconds and carries out once, it is 6 that described target program after adjusting was carried out number of times in 1 minute, it is less than described predetermined threshold, avoided this target program because of the number of times accumulative total of executing the task excessive without response.
Consider on the other hand, this embodiment preferably provides following steps: described routine interface according to comprising in described target program/described target program of task the execution number of times within the unit interval adjust described gear ratio, its objective is according to the ruuning situation of target program dynamic adjustable gear ratio is provided, so that further accelerate test speed.The setting of this step is in order to meet following application scenarios: when in the process of described target program continuous service, the execution number of times of comprising in described target program/described target program of task within the unit interval is in the time of situation of change, the execution frequency of this target program is in the time of situation of change, correspond in the time period of described target program high frequency execution, lock the upper limit of described gear ratio, to prevent that described target program from causing the number of times of executing the task to add up excessive and causing test job failure without response in the time that gear ratio numerical value is excessive; In the time period of carrying out with respect to described target program low frequency, improve described gear ratio, expend time in to reduce for the actual of test job of described target program.Particularly point out, described routine interface is adjusted the process of described gear ratio, and by the built-in rule of this routine interface, in conjunction with comprising in described target program/described target program of task, the execution number of times within the unit interval completes automatically, does not need tester to participate in arranging.
In a preferred embodiment, described routine interface is embodied as a kind of computer program, any recording medium that the embodiment of above-mentioned computer program can be used for computer-readable information by use is realized, and described recording medium comprises magnetic medium, light medium or other applicable media.The embodiment of described computer program not only may operate in independently on physical equipment, also may operate on many physical equipments of collaborative work to realize function that each several part is had and logical relation each other in this routine interface.
It should be noted that, although described in the accompanying drawings the operation of the inventive method with particular order, but this not requires or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expecting.On the contrary, the step of describing in process flow diagram can change execution sequence.Additionally or alternatively, can omit some step, multiple steps be merged into a step and carry out, and/or a step is decomposed into multiple steps carries out.
The invention also discloses a kind of equipment for test procedure, please refer to Fig. 2, Fig. 2 is that this equipment 100 comprises according to the structural representation of the equipment for test procedure of the present invention embodiment:
Acquisition request module 110, for obtaining the target program request of 200 calling system times;
Time modification module 120, for calling described system time, and generates the dazzle system time according to this system time;
Respond module 130, for by described dazzle system time tranfer to described target program 200, with in response to described request;
Logging modle 140, for being recorded in described target program 200 in test log in response to the operation result of described dazzle system time.
Particularly, in the system time source 300 that the time modification module 120 in equipment 100 provides from operating system, call described system time, described system time source 300 is the system modules that comprise system timing function.
Alternatively, time modification module 120 comprises: parameter acquiring unit 121, for obtaining gear ratio; Computing unit 122, for carrying out computational transformation to generate the described dazzle system time according to described gear ratio to described system time.
Alternatively, this equipment 100 also comprises module 150 is set, for human-computer interaction interface is provided, and according to user the default described gear ratio of operation for described human-computer interaction interface.
Preferably, in this embodiment, equipment 100 also comprises: adjusting module 170, and for adjust the execution number of times of comprising in target program 200 described in described target program 200/ of task within the unit interval according to described gear ratio.
Further preferably, equipment 100 also comprises: gear ratio module 160, for according to comprising in target program 200 described in described target program 200/ of task the execution number of times within the unit interval adjust described gear ratio.
In a preferred embodiment, each several part in equipment 100 is embodied as a kind of computer program, any recording medium that the embodiment of above-mentioned computer program can be used for computer-readable information by use is realized, and described recording medium comprises magnetic medium, light medium or other applicable media.The embodiment of described computer program not only may operate in independently on physical equipment, also may operate on many physical equipments of collaborative work to realize function that each several part is had and logical relation each other in equipment 100.Certainly in other preferred embodiments, each several part in equipment 100 may be embodied as and comprises hardware components and can be by the software section of execution that this hardware components is explained, above-mentioned hardware components and software section collaborative work are to realize the function of each several part in equipment 100.
Term and the noun that this part occurs with above in identical term or noun there is consistent implication, such as described system time, described dazzle system time and described target program etc., above-mentioned term or noun and the principle of work relating to thereof all can be with reference to description and the explanations of middle relevant portion above, in order not repeat them here for simplicity.
What particularly point out is, the target program of mentioning in this instructions is typically designed to a kind of program in server end operation, in some embodiment, this target program can only operate on a station server, also can distribute and operate on distribution multiple servers on the internet; In other embodiment, each functional module of separating from this target program operates in respectively different servers, and above-mentioned different server is communication mutually each other, make described modules can collaborative work realize described target program for function.Typically, the network data services that the server that moves described target program is applicable to B/S framework or C/S framework supplies a pattern, this target program communicates by the terminal of wide area network/LAN (Local Area Network)/internet and access, described terminal includes but not limited to: personal computer terminal, Windows operating system has for example been installed, the personal computer terminal of (SuSE) Linux OS or Mac OS, and Symbian is for example installed, Windows Mobile, iOS, Android, Maemo, WebOS, the intelligent terminal of the terminal operating systems such as Palm OS or Blackberry OS, also or multimedia terminal, for example internet television.
With reference to figure 3, Fig. 3 can realize the method for testing of program provided by the invention and the structural representation for the computer equipment of the equipment of test procedure, this computer equipment at least comprises following part: CPU(central processing unit) 501, RAM(random access memory) 502, ROM(ROM (read-only memory)) 503, system bus 500, hard disk control module 504, hard disk 505, man-machine interaction peripheral equipment control unit 506, man-machine interaction external unit 507, serial line interface control module 508, serial line interface external unit 509, parallel interface control module 510, parallel interface external unit 511, display device control module 512 and display device 513.Wherein, CPU501, RAM502, ROM503, hard disk control module 504, man-machine interaction peripheral equipment control unit 506, serial line interface control module 508, parallel interface control module 510 and display device control module 512 are connected with system bus 500, and communication before realizing each other by system bus 500.In addition, hard disk control module 504 is connected with hard disk 505; Man-machine interaction peripheral equipment control unit 506 is connected with man-machine interaction external unit 507, and typically this man-machine interaction external unit is mouse, trace ball, touch-screen or keyboard; Serial line interface control module 508 is connected with serial line interface external unit 509; Parallel interface control module 510 is connected with parallel interface external unit 511; Display device control module 512 is connected with display device 513.
Structured flowchart described in Fig. 3 only shows the structure of a kind of computer equipment that can put into practice each embodiment of the present invention, and is not the restriction to practical environment of the present invention.In some cases, can add as required or reduce some equipment in this computer equipment.For example, the equipment shown in Fig. 3 can remove man-machine interaction external unit 507 and display device 513, its concrete example be only one can be by the server of external device access.Certainly the computer equipment shown in Fig. 3 can be realized the environment of the present invention's operation individually, also can be interconnected the applicable running environment of each embodiment of the present invention is provided by network, for example modules of the present invention and/step can distribute and realize in interconnected each computer equipment.
The method of testing of program provided by the invention can realize by programmable logic device (PLD), also may be embodied as computer software, can be for example a kind of computer program according to embodiments of the invention, move this program product computing machine is carried out for demonstrated method.Described computer program comprises computer-readable recording medium, comprises computer program logic or code section on this medium, for realizing each step of said method.Described computer-readable recording medium can be the removable medium (for example hot-plugging technology memory device) that is installed in the built-in medium in computing machine or can dismantles from basic computer.Described built-in medium includes but not limited to rewritable nonvolatile memory, for example RAM, ROM, flash memory and hard disk.Described removable medium includes but not limited to: optical storage media (for example CD-ROM and DVD), magneto-optic storage media (for example MO), magnetic recording medium (for example tape or portable hard drive), have the media (for example storage card) of built-in rewritable nonvolatile memory and have the media (for example ROM box) of built-in ROM.
It will be appreciated by those skilled in the art that any computer system with suitable programmer all can carry out all steps of the method for the present invention being included in program product.Although most embodiments of describing in this instructions all lay particular emphasis on software program, the alternate embodiment that realizes method provided by the invention as firmware and hardware is equally within the scope of protection of present invention.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that not deviating from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims instead of above-mentioned explanation, is therefore intended to all changes that drop in the implication and the scope that are equal to important document of claim to be included in the present invention.Any Reference numeral in claim should be considered as limiting related claim.In addition, obviously miscellaneous part, unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.Multiple parts, unit or the device of stating in system claim also can be realized by software or hardware by parts, unit or device.
The method of testing of program provided by the invention and revise system time by the mode of robotization for the equipment of test procedure, avoid repeatedly needing the step of manual amendment's system time, can prevent because of the program that artificial carelessness the brings problem of makeing mistakes, can also promote and in program test process, relate to accuracy and the accuracy of revising system time, and promote the work efficiency of program test.
Above disclosed is only preferred embodiments more of the present invention, the interest field that certainly can not limit the present invention with this, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (10)

1. a method of testing for program, the method comprises:
Routine interface obtains the request of target program calling system time;
System time described in described program interface call, and generate the dazzle system time according to this system time;
Described routine interface by described dazzle system time tranfer to described target program, with in response to described request;
Described target program is recorded in test log in response to the operation result of described dazzle system time.
2. method of testing according to claim 1, wherein, describedly generates dazzle system time according to this system time and comprises:
Obtain gear ratio;
According to described gear ratio, described system time is carried out to computational transformation to generate the described dazzle system time.
3. method of testing according to claim 2, wherein:
User by the human-computer interaction interface that operates described routine interface and provide to preset described gear ratio.
4. method of testing according to claim 3, wherein:
Described target program/routine interface is adjusted the execution number of times of comprising in this target program/this target program of task within the unit interval according to described gear ratio.
5. method of testing according to claim 2, wherein:
Described routine interface according to comprising in described target program/described target program of task the execution number of times within the unit interval adjust described gear ratio.
6. for an equipment for test procedure, this equipment comprises:
Acquisition request module, for obtaining the request of target program calling system time;
Time modification module, for calling described system time, and generates the dazzle system time according to this system time;
Respond module, for by described dazzle system time tranfer to described target program, with in response to described request;
Logging modle, for being recorded in described target program in test log in response to the operation result of described dazzle system time.
7. equipment according to claim 6, wherein, described time modification module comprises:
Parameter acquiring unit, for obtaining gear ratio;
Computing unit, for carrying out computational transformation to generate the described dazzle system time according to described gear ratio to described system time.
8. equipment according to claim 7, this equipment also comprises:
Module is set, for human-computer interaction interface is provided, and presets described gear ratio according to user for the operation of described human-computer interaction interface.
9. equipment according to claim 8, this equipment also comprises:
Adjusting module, for adjusting the execution number of times of comprising in described target program/described target program of task within the unit interval according to described gear ratio.
10. equipment according to claim 7, this equipment also comprises:
Gear ratio module, for according to comprising in described target program/described target program of task the execution number of times within the unit interval adjust described gear ratio.
CN201310059321.4A 2013-02-26 2013-02-26 Method and device for testing programs Pending CN104008046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310059321.4A CN104008046A (en) 2013-02-26 2013-02-26 Method and device for testing programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310059321.4A CN104008046A (en) 2013-02-26 2013-02-26 Method and device for testing programs

Publications (1)

Publication Number Publication Date
CN104008046A true CN104008046A (en) 2014-08-27

Family

ID=51368707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310059321.4A Pending CN104008046A (en) 2013-02-26 2013-02-26 Method and device for testing programs

Country Status (1)

Country Link
CN (1) CN104008046A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741906A (en) * 2017-09-29 2018-02-27 平安科技(深圳)有限公司 Monetary fund system automation method of testing, device, equipment and storage medium
CN108829589A (en) * 2018-05-30 2018-11-16 平安普惠企业管理有限公司 Date data exchange method, device, computer equipment and storage medium
CN109445924A (en) * 2018-11-06 2019-03-08 网易(杭州)网络有限公司 Time virtual method, device, medium and electronic equipment
CN109992515A (en) * 2019-04-02 2019-07-09 网易(杭州)网络有限公司 Test method and device, electronic equipment
CN111078525A (en) * 2019-10-11 2020-04-28 中国平安财产保险股份有限公司 Method and device for adjusting system running time, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862505A (en) * 2005-05-12 2006-11-15 国际商业机器公司 On-board guard-band chamber environment emulator
CN101202027A (en) * 2006-12-13 2008-06-18 群康科技(深圳)有限公司 Control system and control method for display screen
US20120278660A1 (en) * 2009-10-21 2012-11-01 Florian Mangold Method and device for testing a system comprising at least a plurality of software units that can be executed simultaneously
CN102780800A (en) * 2012-07-25 2012-11-14 广东欧珀移动通信有限公司 Method for realizing time lapse acceleration for cellphone test
CN105388991A (en) * 2015-10-23 2016-03-09 福州瑞芯微电子股份有限公司 Timing wake-up processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862505A (en) * 2005-05-12 2006-11-15 国际商业机器公司 On-board guard-band chamber environment emulator
CN101202027A (en) * 2006-12-13 2008-06-18 群康科技(深圳)有限公司 Control system and control method for display screen
US20120278660A1 (en) * 2009-10-21 2012-11-01 Florian Mangold Method and device for testing a system comprising at least a plurality of software units that can be executed simultaneously
CN102780800A (en) * 2012-07-25 2012-11-14 广东欧珀移动通信有限公司 Method for realizing time lapse acceleration for cellphone test
CN105388991A (en) * 2015-10-23 2016-03-09 福州瑞芯微电子股份有限公司 Timing wake-up processing system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107741906A (en) * 2017-09-29 2018-02-27 平安科技(深圳)有限公司 Monetary fund system automation method of testing, device, equipment and storage medium
CN107741906B (en) * 2017-09-29 2019-05-17 平安科技(深圳)有限公司 Monetary fund system automation test method, device, equipment and storage medium
CN108829589A (en) * 2018-05-30 2018-11-16 平安普惠企业管理有限公司 Date data exchange method, device, computer equipment and storage medium
CN109445924A (en) * 2018-11-06 2019-03-08 网易(杭州)网络有限公司 Time virtual method, device, medium and electronic equipment
CN109992515A (en) * 2019-04-02 2019-07-09 网易(杭州)网络有限公司 Test method and device, electronic equipment
CN111078525A (en) * 2019-10-11 2020-04-28 中国平安财产保险股份有限公司 Method and device for adjusting system running time, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
EP3754495B1 (en) Data processing method and related products
US10459435B2 (en) Test manager for industrial automation controllers
CN104008046A (en) Method and device for testing programs
US9239773B1 (en) Method and system for debugging a program that includes declarative code and procedural code
CN111459700A (en) Method and apparatus for diagnosing device failure, diagnostic device, and storage medium
US10671061B2 (en) Devices, methods, and systems for a distributed rule based automated fault detection
CN104391780A (en) Method for automatically testing stability of redundancy function of power supply of server
CN112463432A (en) Inspection method, device and system based on index data
CN108572892B (en) PowerPC multi-core processor-based offline test method and device
CN111830390B (en) Test method and related product
CN102096591A (en) Method for quickening start of embedded Linux system
CN106843822B (en) Execution code generation method and equipment
CN102306109A (en) Method for realizing logic programming in communication management machine
KR101335657B1 (en) System and method using realtime simulator and programmed system switching for the validation of large-scaled dcs
EP4148584A1 (en) Method and system for generating and optimizing test cases for an engineering program
CN105005210A (en) Mechanical-electrical integration simulation system and use method thereof
CN103559134A (en) Configuration method and device for benchmark test component
CN114385496A (en) Test method, test device, electronic equipment and computer readable storage medium
US20230350392A1 (en) Method and system for seamless transition of runtime system from controller device to digitalization platform
US20230315613A1 (en) Method and system for eradicating programmatical errors from engineering programs in a technical installation
EP4328681A1 (en) Method and system for managing technical installation during occurrence of error state in a controller
US20220057769A1 (en) Programmable microgrid control system
CN113238491B (en) Simulation test method and device of execution mechanism, intelligent arm support and engineering vehicle
RU2787274C1 (en) Method for ensuring the stable functioning of a complex hardware and software object of a complex functional-dynamic system
CN112162533B (en) Instruction control method and device based on distributed control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140827