CN113377660B - Test method and device - Google Patents
Test method and device Download PDFInfo
- Publication number
- CN113377660B CN113377660B CN202110696459.XA CN202110696459A CN113377660B CN 113377660 B CN113377660 B CN 113377660B CN 202110696459 A CN202110696459 A CN 202110696459A CN 113377660 B CN113377660 B CN 113377660B
- Authority
- CN
- China
- Prior art keywords
- function
- branch unit
- branch
- conflict
- unit
- 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
Links
- 238000010998 test method Methods 0.000 title claims description 26
- 238000012360 testing method Methods 0.000 claims abstract description 88
- 238000000034 method Methods 0.000 claims abstract description 22
- 230000004044 response Effects 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 209
- 230000015654 memory Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 description 8
- 230000010354 integration Effects 0.000 description 8
- 238000012986 modification Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention provides a testing method and a testing device, which relate to the technical field of integrated testing, and the testing method provided by the embodiment of the invention is characterized in that an objective function of each branch unit combined into a total branch unit and a corresponding upward call chain are obtained, wherein the objective function is used for indicating a modified function; in response to determining that there is a branch unit with conflict in each branch unit, performing integrated test on the functional module with conflict branch units in the total branch units, wherein the branch unit with conflict comprises two branch units, and an objective function existing in one branch unit appears in an upward call chain corresponding to the objective function of the other branch unit. The method improves the accuracy and pertinence of the integrated test.
Description
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of integrated testing, and particularly relates to a testing method and device.
Background
In the development and online process of a large project, development and unit testing are generally performed on branches, and then the branches passing through the testing are integrated into the same branch for integrated testing and then are online.
Currently, the effect of file level and function level among multiple branches can be analyzed by relying on the git source code, namely, if multiple branches modify a certain file or a certain function at the same time, the branches are considered to be mutually conflicting.
Disclosure of Invention
The embodiment of the disclosure provides a test method, a test device, test equipment and a storage medium.
In a first aspect, embodiments of the present disclosure provide a test method, the method comprising: acquiring an objective function of each branch unit combined to the total branch unit and a corresponding upward call chain, wherein the objective function is used for indicating the modified function; in response to determining that there is a branch unit with conflict in each branch unit, performing integrated test on the functional module with conflict branch units in the total branch units, wherein the branch unit with conflict comprises two branch units, and an objective function existing in one branch unit appears in an upward call chain corresponding to the objective function of the other branch unit.
In a second aspect, embodiments of the present disclosure provide a test apparatus, the apparatus comprising: the acquisition module is configured to acquire target functions of all branch units combined into the total branch unit and corresponding upward call chains, wherein the target functions are used for indicating modified functions; and the testing module is configured to perform integrated testing on the functional module with the conflict branch unit in the total branch unit in response to determining that the conflict branch unit exists in each branch unit, wherein the conflict branch unit comprises two branch units, and an objective function exists in one branch unit and appears in an upward call chain corresponding to the objective function of the other branch unit.
In a third aspect, embodiments of the present disclosure provide an electronic device comprising one or more processors; and a storage device having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the test method as in any of the embodiments of the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a test method as in any of the embodiments of the first aspect.
In a fifth aspect, embodiments of the present disclosure provide a computer program product comprising a computer program which, when executed by a processor, implements a test method as in any of the embodiments of the first aspect.
The method and the device can effectively improve accuracy and pertinence of integrated test.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
FIG. 1 is an exemplary system architecture diagram to which the present disclosure may be applied;
FIG. 2 is a flow chart of one embodiment of a test method according to the present disclosure;
FIG. 3 is a schematic illustration of one application scenario of the test method according to the present disclosure;
FIG. 4 is a flow chart of yet another embodiment of a test method according to the present disclosure;
FIG. 5 is a schematic diagram of one embodiment of a testing device according to the present disclosure;
Fig. 6 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 in which embodiments of the test methods of the present disclosure may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as a test class application, a communication class application, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to mobile phones and notebook computers. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., to provide test services), or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, for example, obtaining an objective function of each branch unit incorporated into the total branch unit and a corresponding upward call chain, where the objective function is used to indicate a modified function; in response to determining that there is a branch unit with conflict in each branch unit, performing integrated test on the functional module with conflict branch units in the total branch units, wherein the branch unit with conflict comprises two branch units, and an objective function existing in one branch unit appears in an upward call chain corresponding to the objective function of the other branch unit.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster formed by a plurality of servers, or as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., to provide test services), or as a single software or software module. The present invention is not particularly limited herein.
It should be noted that the test method provided by the embodiment of the present disclosure may be performed by the server 105, may be performed by the terminal devices 101, 102, 103, or may be performed by the server 105 and the terminal devices 101, 102, 103 in cooperation with each other. Accordingly, each part (for example, each unit, sub-unit, module, sub-module) included in the test apparatus may be all provided in the server 105, may be all provided in the terminal devices 101, 102, 103, or may be provided in the server 105 and the terminal devices 101, 102, 103, respectively.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 shows a flow diagram 200 of an embodiment of a test method. The test method comprises the following steps:
step 201, obtain the objective function of each branch unit incorporated into the total branch unit and the corresponding upward call chain.
In this embodiment, the execution body (for example, the server 105 or the terminal devices 101, 102, 103 in fig. 1) may analyze each branch unit integrated into the total branch unit from the submission history of the function code library, and analyze relevant information of each branch unit, such as commit information, a branch name, and the like, so as to analyze an objective function based on the git source code according to the relevant information of each branch unit, and analyze an upward call chain of the objective function, that is, an upward function call chain, according to the objective function.
Here, the objective function is used to indicate a modified function.
Specifically, the branch units combined into the total branch unit are a branch unit 1, a branch unit 2 and a branch unit 3 respectively, wherein an objective function in the branch unit 1 is a function B, and an upward call chain corresponding to the function B is a function B-function C-function D (the function B is called by the function C, and the function C is called by the function D); the target function in the branch unit 2 is a function E, and the upward call chain corresponding to the function E is a function E-function B (the function E is called by the function B); the objective function in the branching unit 3 is a function F, and the upward call chain corresponding to the function F is a function F.
It should be noted that the objective function of each branch unit may be one or more, which is not limited in the present application.
In response to determining that there is a branching unit with a conflict in each branching unit, an integration test is performed on the functional modules with conflicting branching units in the total branching unit, step 202.
In this embodiment, after the execution body obtains each branch unit that is integrated into the total branch unit, each branch unit may be judged two by two to determine whether there is a branch unit with a conflict, and if so, in the total branch unit, the functional module with the conflict branch unit is subjected to an integration test.
The branch units with conflict comprise two branch units, wherein an objective function exists in one branch unit and appears in an upward call chain corresponding to the objective function of the other branch unit.
Specifically, branch units combined into the total branch unit are a branch unit 1, a branch unit 2 and a branch unit 3 respectively, wherein an objective function in the branch unit 1 is a function B, and an upward call chain corresponding to the function B is a function B-a function C-a function D; the target function in the branch unit 2 is a function E, and the upward call chain corresponding to the function E is a function E-function B; the objective function in the branching unit 3 is a function F, and the upward call chain corresponding to the function F is a function F.
The execution body judges the branching unit 1, the branching unit 2, and the branching unit 3 two by two, that is, the branching unit 1 and the branching unit 2, the branching unit 1 and the branching unit 3, the branching unit 2, and the branching unit 3, and determines whether there is a branching unit having a conflict therein.
For both branch unit 1 and branch unit 2, branch unit 1 and branch unit 2 are branch units with conflicts, since the objective function B in branch unit 1 appears in the upward call chain corresponding to the objective function in branch unit 2 (modification to function B in branch unit 1, modification to function E in branch unit 2, and function B call to function E, there may be two modifications to function B, namely both branch unit 1 and branch unit 2 modify function B). For the branching unit 1 and the branching unit 3, since the objective function B in the branching unit 1 does not appear in the upward call chain corresponding to the objective function F in the branching unit 3, and the objective function F in the branching unit 3 does not appear in the upward call chain corresponding to the objective function B of the branching unit 1, there is no conflict between the branching unit 1 and the branching unit 3. For the branching unit 2 and the branching unit 3, since the objective function E in the branching unit 2 does not appear in the upward call chain corresponding to the objective function F in the branching unit 3, and the objective function F in the branching unit 3 does not appear in the upward call chain corresponding to the objective function E of the branching unit 2, there is no conflict between the branching unit 2 and the branching unit 3. There is a pair of branching units having a conflict among branching unit 1, branching unit 2, and branching unit 3, namely branching unit 1 and branching unit 2.
Further, the execution body may perform an integrated test on the functional modules of the at least one pair of branch units having a conflict in the total branch unit. If the test result is the same as the preset result, the subsequent application operation is executed on the total branching unit, and if the test result is different from the preset result, the conflict elimination operation is executed.
Here, the manner in which the execution body performs the integrated test on the functional modules of the branch units having the conflict may be to perform the integrated test on the functional modules corresponding to all functions in the branch units that may be affected by the objective function, or may be to perform the test on the functional modules corresponding to the common functions included in the branch units having the conflict; the test may be performed on functional modules corresponding to functions other than the common function in the upward call chain to which the common function belongs according to the call relationship indicated by the upward call chain to which the common function belongs included in the branch unit having the conflict.
In some alternatives, performing an integrated test on a functional module having conflicting branching units includes: and testing functional modules corresponding to other functions except the common function in the upward call chain to which the common function belongs according to the call relation indicated by the upward call chain to which the common function belongs in the branch unit with conflict.
In this embodiment, the execution body may test the function modules corresponding to one or more functions other than the common function in the upward call chain to which the common function belongs according to the call relationship indicated by the upward call chain to which the common function belongs included in the branch unit having the conflict, and if the test result of the other functions is the same as the first preset result, execute the subsequent application operation on the total branch unit, where the common function is the target function of one of the branch units having the conflict.
Specifically, the objective function of the branching unit 4 is a function M, the upward call chain corresponding to the function M is a function M, the objective function of the branching unit 5 is a function P, and the upward call chain corresponding to the function P is a function P-function N-function M (function N calls function P, function M calls function N). For the branch unit 4 and the branch unit 5 with conflicts, the execution body may be a function module corresponding to the direct test function N, and if the test result is the same as the first preset result (for example, modification of the function P has no effect on the function N, and the function M calls the function N, so that the function M is not affected by modification of the function P), the test is passed.
According to the implementation method, the function modules corresponding to other functions except the common function in the upward call chain to which the common function belongs are tested according to the call relation indicated by the upward call chain to which the common function contained in the branch unit with conflict belongs, so that the integrated test of the function modules corresponding to the other functions is facilitated when the common function test contained in the branch unit with conflict is complex or difficult to realize, and the effectiveness of the integrated test is improved.
In some alternatives, the method further comprises: and outputting alarm information to remind related personnel to eliminate conflict in response to the fact that the result of the integrated test is different from the preset result.
In this implementation manner, after the execution body obtains each branch unit that is integrated into the total branch unit, each branch unit may be judged two by two, and it is determined whether there is a branch unit with a conflict, if yes, in the total branch unit, an integration test is performed on the functional module of the branch unit with the conflict, and if the test result is different from the preset result, alarm information needs to be output to remind related personnel to eliminate the conflict.
Here, the alarm information may include information such as a branch name of a branch unit, an objective function, an upward call chain corresponding to the objective function, etc. that needs a relevant person to resolve the conflict.
According to the implementation mode, the alarm information is output to remind related personnel to eliminate the conflict by responding to the fact that the integrated test result is different from the preset result, so that the conflict can be eliminated in time, and the effectiveness of the integrated test is improved.
In some alternatives, in response to determining that there are no branching units with conflicts in the branching units, no integrated testing of the total branching unit is required.
In this implementation manner, after the execution body obtains each branch unit integrated into the total branch unit, each branch unit can be judged two by two, whether the branch unit with conflict exists or not is determined, if not, the total branch unit is not required to be subjected to an integrated test, and subsequent application operation can be directly executed on the total branch unit.
The implementation method is beneficial to timely applying the total branch units when the branch units do not have conflict by responding to the fact that the branch units with conflict do not exist in the branch units, and the integrated test of the total branch units is not needed.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the test method according to the present embodiment. The execution body 301 obtains an objective function and a corresponding upward call chain of each branch unit that are integrated into the total branch unit, where the objective function is used to indicate a modified function, for example, the objective function in the branch unit 302 is a function K, and the upward call chain corresponding to the function K is a function K-function L-function R; the objective function in the branching unit 303 is a function S, and the upward call chain corresponding to the function S is a function S-function K; the objective function in the branching unit 304 is a function U, and the upward call chain corresponding to the function U is a function U-function V; the execution body determines that the branch unit 302, the branch unit 303, and the branch unit 304 are two by two, and in response to determining that there is a branch unit with a conflict among the branch units, for example, the objective function K in the branch unit 302 appears in the upward call chain corresponding to the objective function in the branch unit 303, so the branch unit 302 and the branch unit 303 are the branch unit 305 with a conflict (neither the branch unit 302 nor the branch unit 304 nor the branch unit 303 and the branch unit 304 have a conflict). In the total branching unit, an integration test 306 is performed on the functional modules with conflicting branching units, and if the test result is the same as the preset result, the total branching unit performs a subsequent application operation.
According to the test method provided by the embodiment of the disclosure, the objective function of each branch unit combined into the total branch unit and the corresponding upward call chain are obtained, wherein the objective function is used for indicating the modified function; in response to determining that the branch units with conflicts exist in the branch units, in the total branch units, the functional modules with the conflicting branch units are subjected to integrated test, so that the accuracy and pertinence of the integrated test are improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of a test method is shown. The test method flow 400 may include the steps of:
Step 401, obtain the objective function of each branch unit incorporated into the total branch unit and the corresponding upward call chain.
In this embodiment, step 401 is substantially identical to step 201 in the corresponding embodiment of fig. 2, and will not be described herein.
In step 402, in response to determining that there is a branch unit with conflict in each branch unit, in the total branch units, an integration test is performed on the functional modules corresponding to the common functions included in the branch units with conflict.
In this embodiment, after the execution body obtains each branch unit that is integrated into the total branch unit, each branch unit may be judged two by two to determine whether there is a branch unit with a conflict, if so, in the total branch unit, an integration test is performed on a functional module corresponding to a common function included in the branch unit with a conflict, and if the test result of the common function is the same as the second preset result, a subsequent application operation is performed on the total branch unit. Wherein the common function is an objective function of one of the branch units having a conflict.
Specifically, the objective function of the branching unit 4 is a function M, the upward call chain corresponding to the function M is a function M, the objective function of the branching unit 5 is a function D, and the upward call chain corresponding to the function D is a function P-function N-function M (function N calls function P, function M calls function N). For the branch units with conflict, namely the branch unit 4 and the branch unit 5, the execution main body can directly test the functional module corresponding to the function M in the total branch unit, if the test result is the same as the second preset result, the test is passed, and the subsequent application operation can be executed on the total branch unit.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the testing method in this embodiment highlights that in response to determining that there is a branch unit with a conflict in each branch unit, in the total branch unit, the functional modules corresponding to the common functions included in the branch unit with a conflict are subjected to integrated testing, so that testing of the functional modules corresponding to all the functions affected by the common functions in the branch unit with a conflict is effectively avoided, and the effectiveness and efficiency of the integrated testing are effectively improved.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of a testing apparatus, which corresponds to the method embodiment shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the test apparatus 500 of the present embodiment includes: an acquisition module 501 and a test module 502.
The obtaining module 501 may be configured to obtain the objective function of each branch unit integrated into the total branch unit and the corresponding upward call chain.
The test module 502 may be configured to perform an integrated test on the functional modules having conflicting branch units in the total branch unit in response to determining that there are conflicting branch units in each branch unit.
In some alternatives of this embodiment, the test module is further configured to: and carrying out integration test on the functional modules corresponding to the common functions contained in the branch units with conflict, wherein the common functions are target functions of one branch unit in the branch units with conflict.
In some alternatives of this embodiment, the test module is further configured to: and testing functional modules corresponding to other functions except the common function in the upward call chain to which the common function belongs according to the call relation indicated by the upward call chain to which the common function contained in the branch unit with the conflict belongs, wherein the common function is an objective function of one branch unit in the branch units with the conflict.
In some alternatives of this embodiment, the apparatus further comprises: and a determining module configured to eliminate the need for an integration test on the total branching unit in response to determining that no branching unit with a conflict exists among the branching units.
In some alternatives of this embodiment, the apparatus further comprises: and the output module is configured to output alarm information to remind related personnel to eliminate conflict in response to the fact that the result of the integrated test is different from the preset result.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
As shown in fig. 6, is a block diagram of an electronic device of a test method according to an embodiment of the present disclosure.
600 Is a block diagram of an electronic device tested according to a test method of an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the electronic device includes: one or more processors 601, memory 602, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 601 is illustrated in fig. 6.
Memory 602 is a non-transitory computer-readable storage medium provided by the present disclosure. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the test methods provided by the present disclosure. The non-transitory computer readable storage medium of the present disclosure stores computer instructions for causing a computer to perform the test methods provided by the present disclosure.
The memory 602 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the acquisition module 501, the test module 502 shown in fig. 5) corresponding to the test method in the embodiments of the present disclosure. The processor 601 executes various functional applications of the server and data processing, i.e., implements the test methods in the method embodiments described above, by running non-transitory software programs, instructions, and modules stored in the memory 602.
The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created by the use of the face tracked electronic device, and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 602 may optionally include memory remotely located relative to the processor 601, which may be connected to the lane line detection electronics via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the test method may further include: an input device 603 and an output device 604. The processor 601, memory 602, input device 603 and output device 604 may be connected by a bus or otherwise, for example in fig. 6.
The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the lane line detected electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, track ball, joystick, and like input devices. The output means 604 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the disclosure, the accuracy and pertinence of the integrated test are improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present application may be performed in parallel or sequentially or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (9)
1. A method of testing, comprising:
Acquiring an objective function of each branch unit combined to the total branch unit and a corresponding upward call chain, wherein the objective function is used for indicating a modified function;
In response to determining that a branch unit with conflict exists in each branch unit, in a total branch unit, performing integrated test on a function module corresponding to a common function contained in the branch unit with conflict, and/or testing on function modules corresponding to other functions except for the common function in an upward call chain to which the common function belongs according to a call relation indicated by the upward call chain to which the common function contained in the branch unit with conflict belongs, wherein the common function is an objective function of one branch unit with conflict, the branch unit with conflict comprises two branch units, and the objective function exists in the upward call chain corresponding to the objective function of the other branch unit in one branch unit.
2. The method of claim 1, the method further comprising:
In response to determining that there are no branch units with conflicts in the branch units, no integrated test is required for the total branch unit.
3. The method of claim 1, the method further comprising:
And outputting alarm information to remind related personnel to eliminate conflict in response to the fact that the result of the integrated test is different from the preset result.
4. A test apparatus comprising:
the acquisition module is configured to acquire target functions of all branch units combined into the total branch unit and corresponding upward call chains, wherein the target functions are used for indicating modified functions;
And the testing module is configured to respond to the determination that the branch units with conflict exist in the branch units, perform integrated testing on the function module corresponding to the common function contained in the branch unit with conflict in the total branch units, and/or perform testing on the function module corresponding to other functions except the common function in the upward call chain to which the common function belongs according to the call relation indicated by the upward call chain to which the common function contained in the branch unit with conflict belongs, wherein the common function is an objective function of one branch unit with conflict, the branch unit with conflict comprises two branch units, and the objective function exists in the upward call chain corresponding to the objective function of the other branch unit in one branch unit.
5. The apparatus of claim 4, further comprising:
And the determining module is configured to respond to the determination that the branch units with conflicts do not exist in the branch units, so that the integrated test of the total branch units is not needed.
6. The apparatus of claim 4, further comprising:
and the output module is configured to output alarm information to remind related personnel to eliminate conflict in response to the fact that the result of the integrated test is different from the preset result.
7. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3.
9. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110696459.XA CN113377660B (en) | 2021-06-23 | 2021-06-23 | Test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110696459.XA CN113377660B (en) | 2021-06-23 | 2021-06-23 | Test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113377660A CN113377660A (en) | 2021-09-10 |
CN113377660B true CN113377660B (en) | 2024-05-14 |
Family
ID=77578560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110696459.XA Active CN113377660B (en) | 2021-06-23 | 2021-06-23 | Test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113377660B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987797A (en) * | 2005-12-23 | 2007-06-27 | 国际商业机器公司 | Method and system for avoiding software conflict |
CN108073501A (en) * | 2016-11-14 | 2018-05-25 | 阿里巴巴集团控股有限公司 | A kind of code conflicts detection method and equipment |
CN109117364A (en) * | 2018-07-03 | 2019-01-01 | 中国科学院信息工程研究所 | A kind of object-oriented method for generating test case and system |
CN110597717A (en) * | 2019-08-29 | 2019-12-20 | 凡普数字技术有限公司 | Code testing method, device and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10733087B2 (en) * | 2018-10-17 | 2020-08-04 | Servicenow, Inc. | Environment for continuous testing and integration of software |
-
2021
- 2021-06-23 CN CN202110696459.XA patent/CN113377660B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987797A (en) * | 2005-12-23 | 2007-06-27 | 国际商业机器公司 | Method and system for avoiding software conflict |
CN108073501A (en) * | 2016-11-14 | 2018-05-25 | 阿里巴巴集团控股有限公司 | A kind of code conflicts detection method and equipment |
CN109117364A (en) * | 2018-07-03 | 2019-01-01 | 中国科学院信息工程研究所 | A kind of object-oriented method for generating test case and system |
CN110597717A (en) * | 2019-08-29 | 2019-12-20 | 凡普数字技术有限公司 | Code testing method, device and storage medium |
Non-Patent Citations (1)
Title |
---|
复杂系统中不可达函数调用路径检测方法研究;潘璐;牟永敏;张志华;;计算机仿真;20160915(09);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113377660A (en) | 2021-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112270399B (en) | Operator registration processing method and device based on deep learning and electronic equipment | |
CN110706147B (en) | Image processing environment determination method, device, electronic equipment and storage medium | |
CN111666206A (en) | Method, device, equipment and storage medium for acquiring influence range of change code | |
CN112487973B (en) | Updating method and device for user image recognition model | |
EP4075283A1 (en) | Method and apparatus for continuous integration testing | |
CN110737560B (en) | Service state detection method and device, electronic equipment and medium | |
CN112288128A (en) | Information prediction method and device | |
CN116303013A (en) | Source code analysis method, device, electronic equipment and storage medium | |
CN111538656B (en) | Monitoring method, device and equipment for gradient inspection and storage medium | |
CN111522599B (en) | Method and device for transmitting information | |
CN113377660B (en) | Test method and device | |
CN115481594B (en) | Scoreboard implementation method, scoreboard, electronic equipment and storage medium | |
CN112149807B (en) | User characteristic information processing method and device | |
CN111694686B (en) | Processing method and device for abnormal service, electronic equipment and storage medium | |
CN112735601B (en) | Test method, device and equipment for determining infectious disease close-contact population by using Bluetooth | |
CN112307372B (en) | Data processing method and device | |
CN111292223B (en) | Graph calculation processing method and device, electronic equipment and storage medium | |
CN111582480A (en) | Method and device for pruning a model | |
CN114912522B (en) | Information classification method and device | |
CN113535533B (en) | Method, apparatus, device and storage medium for testing code | |
CN111831319B (en) | Method, device, equipment and storage medium for posterior difference data | |
CN111930748B (en) | Method, device, equipment and storage medium for tracking data of streaming computing system | |
CN112506762B (en) | Application program interface parameter screening method, device, equipment and storage medium | |
CN115145730B (en) | Operation monitoring method and device, electronic equipment and storage medium | |
CN113096799B (en) | Quality control method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |