CN110046095B - System integration method and device based on test flow improvement - Google Patents

System integration method and device based on test flow improvement Download PDF

Info

Publication number
CN110046095B
CN110046095B CN201910203383.5A CN201910203383A CN110046095B CN 110046095 B CN110046095 B CN 110046095B CN 201910203383 A CN201910203383 A CN 201910203383A CN 110046095 B CN110046095 B CN 110046095B
Authority
CN
China
Prior art keywords
integrated
target
code
test
system integration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910203383.5A
Other languages
Chinese (zh)
Other versions
CN110046095A (en
Inventor
陈晰亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianhang Changying Jiangsu Technology Co ltd
Original Assignee
Tianhang Changying Jiangsu Technology 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 Tianhang Changying Jiangsu Technology Co ltd filed Critical Tianhang Changying Jiangsu Technology Co ltd
Priority to CN201910203383.5A priority Critical patent/CN110046095B/en
Publication of CN110046095A publication Critical patent/CN110046095A/en
Application granted granted Critical
Publication of CN110046095B publication Critical patent/CN110046095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

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 invention relates to the field of test flow improvement, and discloses a system integration method and device based on test flow improvement, wherein the method comprises the following steps: when a system integration instruction is detected, integrating the initial code to be integrated according to the system integration instruction, and acquiring the integration speed of integrating the initial code to be integrated; determining timing test time of system integration according to the integration speed; in the process of system integration, freezing a target code to be integrated at the current moment every other timing test time; starting a target test script to test the target code to be integrated, and judging whether the target code to be integrated passes the test; when the target code to be integrated passes the test, the unfreezing operation is executed on the target code to be integrated, so that the system integration is continued, and the target code to be integrated at the current moment is frozen every other timing test time in the process of the system integration until the system integration is completed. The method solves the problem of low system integration accuracy.

Description

System integration method and device based on test flow improvement
Technical Field
The present invention relates to the field of test flow improvement technologies, and in particular, to a system integration method and apparatus based on test flow improvement.
Background
At present, the system test is widely applied to service systems in different fields, and the problems of the service systems can be found out in time and solved by carrying out the system test on the service systems, so that the operation reliability of the service systems is improved.
In the system integration, a plurality of systems related to the system integration are required to be subjected to system testing, so that the stability of operation after the system integration is ensured. And when the systems are integrated, the systems are related to each other, and when the systems are tested, not only are each system related to the integration required to be tested independently, but also the systems are required to be tested in a whole process which covers all the systems. In general, a system integration environment is simulated before the system is formally integrated, and the formalized system integration is performed after the test is passed, but the simulation system integration environment and the real system integration environment always have certain deviation, so that the problem of low integration accuracy exists in the current system integration.
To sum up, the drawbacks of the prior art are: the system integration accuracy is low.
Disclosure of Invention
In order to solve the problem of low system integration accuracy in the related art, the invention provides a system integration method and device based on test flow improvement.
A system integration method based on test flow improvement, the method comprising:
when a system integration instruction is detected, integrating an initial code to be integrated according to the system integration instruction, and acquiring the integration speed of the initial code to be integrated;
determining timing test time of system integration according to the integration speed;
in the process of system integration, freezing a target code to be integrated at the current moment every the timing test time, wherein the target code to be integrated and the initial code to be integrated are codes to be integrated of different versions under different time;
starting a target test script to test the target code to be integrated, and judging whether the target code to be integrated passes the test;
when the target code to be integrated passes the test, executing the defrosting operation on the target code to be integrated to continue the system integration, and executing the process of the system integration, and freezing the target code to be integrated at the current moment every the timing test time until the system integration is completed.
As an optional implementation manner, the starting the target test script to perform a system test on the target code to be integrated includes:
determining the service node covered by the target code to be integrated;
generating a target test script for testing the service node;
and starting the target test script to test the service node covered by the code to be integrated.
As an optional implementation manner, the generating a target test script for testing the service node includes:
acquiring a target programming language category matched with the target code to be integrated;
and generating a target test script of the service node according to the target service class of the service node and the target programming language class.
As an optional implementation manner, the generating the target test script of the service node according to the target service class and the target programming language class of the service node includes:
judging whether an initial test script matched with a target service class of the service node exists in a preset test script database, wherein the preset test script database comprises the service class and the test script which are correspondingly stored;
when judging that the initial test script exists in the preset test script database, judging whether the programming language type of the initial test script is the target programming language type or not;
when the programming language type of the initial test script is judged to be the target programming language type, determining the initial test script as a target test script;
and when judging that the programming language type of the initial testing script is not the target programming language type, performing programming language conversion on the initial testing script to obtain a target testing script with the programming language type being the target programming language type.
As an optional implementation manner, after the determining the service node to be covered by the target to-be-integrated code, the method further includes:
inquiring a service association system with a service relation with the service node in a preset service association database;
and sending prompt information for prompting to suspend the service function corresponding to the service node to the service association system.
As an optional implementation manner, after determining that the target code to be integrated passes the test, the method further includes:
and storing the target code to be integrated as backtracking code to be integrated.
As an optional implementation manner, after determining that the target code to be integrated fails the test, the method further includes:
determining a modified code according to the target code to be integrated and the backtracking code to be integrated;
judging whether a target problem reason matched with the change code exists in a test problem database, wherein the test problem database comprises a corresponding stored problem reason and a corresponding code;
and outputting the target problem reason when judging that the target problem reason matched with the changed code exists in the test problem database, so that a developer changes the target code to be integrated according to the target problem reason.
A system integration device based on test flow improvement, the device comprising:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for integrating an initial code to be integrated according to a system integration instruction when the system integration instruction is detected, and acquiring the integration speed of the initial code to be integrated;
the determining unit is used for determining the timing test time of system integration according to the integration speed;
the freezing unit is used for freezing the target code to be integrated at the current moment every other the timing test time in the system integration process, wherein the target code to be integrated and the initial code to be integrated are different versions of codes to be integrated under different time;
the judging unit is used for starting a target test script to test the target code to be integrated and judging whether the target code to be integrated passes the test;
and the defrosting unit is used for executing defrosting operation on the target code to be integrated when judging that the target code to be integrated passes the test, and is used for continuing system integration and triggering the freezing unit to execute the process of system integration, and freezing the target code to be integrated at the current moment every the timing test time until the system integration is completed.
An electronic device, the electronic device comprising:
a processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement a method as described above.
A computer-readable storage medium storing a computer program that causes a computer to perform the method as described above.
The technical scheme provided by the embodiment of the invention can comprise the following beneficial effects:
when a system integration instruction is detected, integrating an initial code to be integrated according to the system integration instruction, and acquiring the integration speed of the initial code to be integrated; determining timing test time of system integration according to the integration speed; in the process of system integration, every other timing test time, freezing a target code to be integrated at the current moment, wherein the target code to be integrated and the initial code to be integrated are different versions of codes to be integrated under different times; starting a target test script to test the target code to be integrated, and judging whether the target code to be integrated passes the test; when the target code to be integrated passes the test, the unfreezing operation is executed on the target code to be integrated, so that the system integration is continued, and the target code to be integrated at the current moment is frozen every other timing test time in the process of the system integration until the system integration is completed.
Under the method, based on the test flow improvement technology, the timing test time can be determined based on the integration speed of the initial code to be integrated in the process of system integration, so that the system integration is realized while the test is performed, and the integration can be continued only when the test is passed, thereby ensuring that the finally completed system integration passes the test in the real system integration environment, and having high accuracy.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic diagram of a system integration device based on test flow improvement, according to an example embodiment;
FIG. 2 is a flow chart illustrating a system integration method based on test flow improvement according to an example embodiment;
FIG. 3 is a flow chart illustrating another system integration method based on test flow improvement according to an example embodiment;
FIG. 4 is a block diagram of a system integration device based on test flow improvement, according to an example embodiment;
FIG. 5 is a block diagram of another system integration device based on test flow improvement, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
The implementation environment of the invention can be a portable mobile device, such as a smart phone, a tablet computer, a desktop computer.
FIG. 1 is a schematic diagram of a system integrated device based on test flow improvement, according to an example embodiment. The apparatus 100 may be the portable mobile device described above. As shown in fig. 1, the apparatus 100 may include one or more of the following components: a processing component 102, a memory 104, a power supply component 106, a multimedia component 108, an audio component 110, a sensor component 114, and a communication component 116.
The processing component 102 generally controls overall operation of the device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations, among others. The processing component 102 may include one or more processors 118 to execute instructions to perform all or part of the steps of the methods described below. Further, the processing component 102 can include one or more modules to facilitate interactions between the processing component 102 and other components. For example, the processing component 102 may include a multimedia module for facilitating interaction between the multimedia component 108 and the processing component 102.
The memory 104 is configured to store various types of data to support operations at the apparatus 100. Examples of such data include instructions for any application or method operating on the device 100. The Memory 104 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM), electrically erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. Also stored in the memory 104 are one or more modules configured to be executed by the one or more processors 118 to perform all or part of the steps in the methods shown below.
The power supply assembly 106 provides power to the various components of the device 100. The power components 106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 100.
The multimedia component 108 includes a screen between the device 100 and the user that provides an output interface. In some embodiments, the screen may include a liquid crystal display (Liquid Crystal Display, LCD for short) and a touch panel. If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. The screen may also include an organic electroluminescent display (Organic Light Emitting Display, OLED for short).
The audio component 110 is configured to output and/or input audio signals. For example, the audio component 110 includes a Microphone (MIC) configured to receive external audio signals when the device 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 104 or transmitted via the communication component 116. In some embodiments, the audio component 110 further comprises a speaker for outputting audio signals.
The sensor assembly 114 includes one or more sensors for providing status assessment of various aspects of the device 100. For example, the sensor assembly 114 may detect an on/off state of the device 100, a relative positioning of the assemblies, the sensor assembly 114 may also detect a change in position of the device 100 or a component of the device 100, and a change in temperature of the device 100. In some embodiments, the sensor assembly 114 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 116 is configured to facilitate communication between the apparatus 100 and other devices in a wired or wireless manner. The device 100 may access a Wireless network based on a communication standard, such as WiFi (Wireless-Fidelity). In one exemplary embodiment, the communication component 116 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 116 further includes a near field communication (Near Field Communication, NFC) module for facilitating short range communications. For example, the NFC module may be implemented based on radio frequency identification (Radio Frequency Identification, RFID) technology, infrared data association (Infrared Data Association, irDA) technology, ultra Wideband (UWB) technology, bluetooth technology, and other technologies.
In an exemplary embodiment, the apparatus 100 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated ASIC), digital signal processors, digital signal processing devices, programmable logic devices, field programmable gate arrays, controllers, microcontrollers, microprocessors or other electronic components for executing the methods described below.
FIG. 2 is a flow chart illustrating a method of system integration based on test flow improvement according to an example embodiment. As shown in fig. 2, the method comprises the steps of:
and 201, when a system integration instruction is detected, integrating the initial code to be integrated according to the system integration instruction, and acquiring the integration speed of integrating the initial code to be integrated.
In the embodiment of the invention, the system integration instruction is used for indicating to integrate the initial code to be integrated, and the system integration process is a continuous integration process, namely, the code to be integrated under different time is different code versions, and the initial code to be integrated is the code version of the initial version. Specifically, when the initial code to be integrated is integrated according to the system integration instruction, the integration speed of the testing environment at the current moment for integrating the initial code to be integrated can be obtained.
Step 202, determining the timing test time of system integration according to the integration speed.
In the embodiment of the invention, the timing test time integrated by the system can be determined according to the integration speed, when the integration speed is higher, the timing test time is higher, when the integration speed is lower, the timing test time is lower, and the timing test time is automatically set in a manner that the integration speed is in direct proportion to the timing test time, so that the correctness of setting the timing test time is ensured.
And 203, freezing the target code to be integrated at the current moment every other time test time in the process of system integration, wherein the target code to be integrated and the initial code to be integrated are different versions of codes to be integrated under different time.
And step 204, starting a target test script to test the target code to be integrated, judging whether the target code to be integrated passes the test, and if so, executing step 205.
In the embodiment of the invention, the target test script is used for testing the target code to be integrated, a test result can be obtained after the test, and when the test result indicates that the target code to be integrated passes the test, the thawing operation can be executed on the target code to be integrated so as to continue the system integration.
And 205, executing a defrosting operation on the target code to be integrated to continue the system integration, and executing the process of the system integration, wherein the target code to be integrated at the current moment is frozen every other time test time until the system integration is completed.
Under the method, based on the test flow improvement technology, the timing test time can be determined based on the integration speed of the initial code to be integrated in the process of system integration, so that the system integration is realized while the test is performed, and the integration can be continued only when the test is passed, so that the finally completed system integration is ensured to pass the test in the real system integration environment, and the accuracy is high.
FIG. 3 is a flow chart illustrating another system integration method based on test flow improvement according to an example embodiment. As shown in fig. 3, the method comprises the steps of:
step 301, when a system integration instruction is detected, integrating the initial code to be integrated according to the system integration instruction, and obtaining the integration speed of integrating the initial code to be integrated.
Step 302, determining the timing test time of system integration according to the integration speed.
Step 303, freezing the target code to be integrated at the current moment every a fixed test time in the process of system integration, wherein the target code to be integrated and the initial code to be integrated are different versions of codes to be integrated under different time.
Step 304, determining the service node covered by the target code to be integrated.
As an alternative embodiment, after determining the service node to be covered by the integrated code, the following steps may be performed:
inquiring a service association system with a service relation with a service node in a preset service association database;
and sending prompt information for prompting the service function corresponding to the suspended service node to the service association system.
By implementing the alternative implementation mode, corresponding prompt information can be sent to the service association systems with service relations with the service nodes covered by the target codes to be integrated, so that the service association systems pause corresponding service functions according to the prompt information, and the probability of abnormal function access conditions caused by system integration is reduced.
In the embodiment of the invention, the number of the service nodes covered by the target code to be integrated may be one or more, the embodiment of the invention is not limited, and a service association system with a service relationship of each service node is stored in a preset service association database. For example, when the service node is a service for a certain financial product, the preset service association database stores a plurality of systems having a service relationship with the financial product service, wherein the systems can handle the service related to the financial product service. At this time, a prompt message for suspending the service function corresponding to the service node can be sent to the service association system, so that the probability of occurrence of access abnormality caused by invalid access is reduced.
Step 305, generating a target test script for testing the service node.
As an alternative embodiment, generating the target test script for testing the service node may include:
acquiring a target programming language category matched with a target code to be integrated;
and generating a target test script of the service node according to the target service class and the target programming language class of the service node.
By implementing the alternative implementation mode, the test script can be generated according to the target programming language type matched with the target code to be integrated, so that the test script generation of different programming language types is realized, and the intelligent degree of the test script generation is improved.
As another alternative embodiment, generating the target test script for the service node from the target service class and the target programming language class of the service node may include:
judging whether an initial test script matched with a target service class of a service node exists in a preset test script database, wherein the preset test script database comprises the service class and the test script which are correspondingly stored;
when judging that the initial test script exists in the preset test script database, judging whether the programming language type of the initial test script is a target programming language type;
when the programming language type of the initial test script is judged to be the target programming language type, determining the initial test script as the target test script;
and when judging that the programming language type of the initial testing script is not the target programming language type, performing programming language conversion on the initial testing script to obtain the target testing script with the programming language type being the target programming language type.
By implementing the alternative implementation mode, the initial test script matched with the target service class of the service node can be queried in the preset test script database, and if the programming language class of the initial test script is not the target programming language class, the programming language conversion can be performed on the initial test script, so that the target test script with the programming language class being the target programming language class is obtained. The process realizes the conversion of the test scripts of different programming language types, thereby improving the intelligent degree of the test script generation.
And step 306, starting a target test script to test the service node to be covered by the integrated codes.
Step 307, determining whether the target code to be integrated passes the test, if yes, executing step 308, and if no, executing steps 309 to 310.
And 308, when the target code to be integrated passes the test, storing the target code to be integrated as a backtracking code to be integrated, and executing a defrosting operation on the target code to be integrated to continue the system integration, and executing the process of the system integration, wherein the target code to be integrated at the current moment is frozen every time of the test time until the system integration is completed.
And step 309, determining the modified code according to the target code to be integrated and the backtracking code to be integrated.
In the embodiment of the invention, the code of the current target code to be integrated, which passes the test last time, is the backtracking code to be integrated, and the modified code with the difference between the code of the current test and the code of the last test can be determined according to the modification between the current target code to be integrated and the backtracking code to be integrated.
Step 310, judging whether the target problem reason matched with the change code exists in the test problem database, if yes, executing step 311, and if not, ending the flow.
In the embodiment of the invention, the test problem database comprises the corresponding stored problem reasons and corresponding codes.
And 311, outputting the target problem reason so that the developer changes the target code to be integrated according to the target problem reason.
Under the method, based on the test flow improvement technology, the timing test time can be determined based on the integration speed of the initial code to be integrated in the process of system integration, so that the system integration is realized while the test is performed, and the integration can be continued only when the test is passed, so that the finally completed system integration is ensured to pass the test in the real system integration environment, and the accuracy is high.
The following are device embodiments of the present invention.
FIG. 4 is a block diagram illustrating a system integration device based on test flow improvement, according to an example embodiment. As shown in fig. 4, the apparatus includes:
the acquiring unit 401 is configured to integrate the initial code to be integrated according to the system integration instruction when the system integration instruction is detected, and acquire an integration speed of integrating the initial code to be integrated.
In the embodiment of the invention, the system integration instruction is used for indicating to integrate the initial code to be integrated, and the system integration process is a continuous integration process, namely, the code to be integrated under different time is different code versions, and the initial code to be integrated is the code version of the initial version. Specifically, when the initial code to be integrated is integrated according to the system integration instruction, the integration speed of the testing environment at the current moment for integrating the initial code to be integrated can be obtained.
A determining unit 402, configured to determine a timing test time of system integration according to the integration speed.
In the embodiment of the invention, the timing test time integrated by the system can be determined according to the integration speed, when the integration speed is higher, the timing test time is higher, when the integration speed is lower, the timing test time is lower, and the timing test time is automatically set in a manner that the integration speed is in direct proportion to the timing test time, so that the correctness of setting the timing test time is ensured.
And the freezing unit 403 is configured to freeze, during system integration, the target code to be integrated at the current moment every a fixed test time, where the target code to be integrated and the initial code to be integrated are different versions of codes to be integrated at different times.
And the judging unit 404 is used for starting the target test script to test the target code to be integrated and judging whether the target code to be integrated passes the test.
In the embodiment of the invention, the target test script is used for testing the target code to be integrated, a test result can be obtained after the test, and when the test result indicates that the target code to be integrated passes the test, the thawing operation can be executed on the target code to be integrated so as to continue the system integration.
As an alternative embodiment, the determining unit 404 starts the target test script to test the target code to be integrated may include:
the judging unit 404 determines a service node covered by the target code to be integrated;
the judging unit 404 generates a target test script for testing the service node;
the judging unit 404 starts the target test script to test the service node to be covered by the integrated code.
By implementing the alternative implementation mode, corresponding prompt information can be sent to the service association systems with service relations with the service nodes covered by the target codes to be integrated, so that the service association systems pause corresponding service functions according to the prompt information, and the probability of abnormal function access conditions caused by system integration is reduced.
In the embodiment of the invention, the number of the service nodes covered by the target code to be integrated may be one or more, the embodiment of the invention is not limited, and a service association system with a service relationship of each service node is stored in a preset service association database. For example, when the service node is a service for a certain financial product, the preset service association database stores a plurality of systems having a service relationship with the financial product service, wherein the systems can handle the service related to the financial product service. At this time, a prompt message for suspending the service function corresponding to the service node can be sent to the service association system, so that the probability of occurrence of access abnormality caused by invalid access is reduced.
As another alternative embodiment, the generating, by the determining unit 404, the target test script for testing the service node may include:
the judging unit 404 obtains a target programming language class matched with the target code to be integrated;
the judging unit 404 generates a target test script of the service node according to the target service class and the target programming language class of the service node.
By implementing the alternative implementation mode, the test script can be generated according to the target programming language type matched with the target code to be integrated, so that the test script generation of different programming language types is realized, and the intelligent degree of the test script generation is improved.
As another alternative embodiment, the determining unit 404 may generate the target test script of the service node according to the target service class and the target programming language class of the service node, which may include:
the judging unit 404 judges whether an initial test script matched with the target service class of the service node exists in a preset test script database, and the preset test script database comprises the service class and the test script which are correspondingly stored;
when it is determined that the initial test script exists in the preset test script database, the determination unit 404 determines whether the programming language class of the initial test script is the target programming language class;
when it is determined that the programming language class of the initial test script is the target programming language class, the determination unit 404 determines the initial test script as the target test script;
when it is determined that the programming language class of the initial test script is not the target programming language class, the determining unit 404 performs programming language conversion on the initial test script to obtain a target test script whose programming language class is the target programming language class.
By implementing the alternative implementation mode, the initial test script matched with the target service class of the service node can be queried in the preset test script database, and if the programming language class of the initial test script is not the target programming language class, the programming language conversion can be performed on the initial test script, so that the target test script with the programming language class being the target programming language class is obtained. The process realizes the conversion of the test scripts of different programming language types, thereby improving the intelligent degree of the test script generation.
And the defrosting unit 405 is configured to execute a defrosting operation on the target code to be integrated when it is determined that the target code to be integrated passes the test, and is configured to continue system integration, trigger the freezing unit 403 to perform the above-described process of system integration, and freeze the target code to be integrated at the current moment every time a regular test time until the system integration is completed.
Therefore, by implementing the system integration device based on the test flow improvement described in fig. 4, based on the test flow improvement technology, the timing test time can be determined based on the integration speed of the code to be integrated initially in the process of system integration, so as to realize the system integration while testing, and only when the test is passed, the integration can be continued, so as to ensure that the finally completed system integration has passed the test in the real system integration environment, and the accuracy is high.
FIG. 5 is a block diagram of another system integration device based on test flow improvement, according to an example embodiment. FIG. 5 is an optimized view of FIG. 4, and the improved system-on-test-flow-based integrated device of FIG. 5 may further include:
and a querying unit 406, configured to query, after the determining unit 402 determines that the target service node to be covered by the integrated code, a service association system having a service relationship with the service node in a preset service association database.
Specifically, after the determining unit 402 determines the service node covered by the target code to be integrated, the determining unit 402 sends a trigger instruction to the querying unit 406 to trigger the querying unit 406 to query the service association system having a service relationship with the service node in the preset service association database.
A sending unit 407, configured to send, to the service association system, a prompting message for prompting to suspend a service function corresponding to the service node.
The storage unit 408 is configured to store the target code to be integrated as the backtracking code to be integrated after the determining unit 404 determines that the target code to be integrated passes the test.
In the embodiment of the invention, the code of the current target code to be integrated, which passes the test last time, is the backtracking code to be integrated, and the modified code with the difference between the code of the current test and the code of the last test can be determined according to the modification between the current target code to be integrated and the backtracking code to be integrated.
As an alternative embodiment, after the judging unit 404 judges that the target code to be integrated fails the test, the judging unit 404 is further configured to:
determining a modified code according to the target code to be integrated and the backtracking code to be integrated;
judging whether a target problem reason matched with the changed code exists in a test problem database, wherein the test problem database comprises the corresponding stored problem reason and the corresponding code;
and outputting the target problem reason when judging that the target problem reason matched with the changed code exists in the test problem database, so that a developer changes the target code to be integrated according to the target problem reason.
Therefore, by implementing the system integration device based on the test flow improvement described in fig. 5, based on the test flow improvement technology, the timing test time can be determined based on the integration speed of the code to be integrated initially in the process of system integration, so as to realize the system integration while testing, and only when the test is passed, the integration can be continued, so as to ensure that the finally completed system integration has passed the test in the real system integration environment, and the accuracy is high.
The invention also provides an electronic device, comprising:
a processor;
and a memory having stored thereon computer readable instructions which, when executed by the processor, implement the improved system integration device based on test flow as previously described.
The electronic device may be the system-in-package apparatus 100 shown in fig. 1, which is modified based on a test procedure.
In an exemplary embodiment, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the improved system integration method based on test flow as previously shown.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (5)

1. A method of system integration based on test flow improvement, the method comprising:
when a system integration instruction is detected, integrating an initial code to be integrated according to the system integration instruction, and acquiring the integration speed of the initial code to be integrated;
determining timing test time of system integration according to the integration speed;
in the process of system integration, freezing a target code to be integrated at the current moment every the timing test time, wherein the target code to be integrated and the initial code to be integrated are codes to be integrated of different versions under different time;
determining the service node covered by the target code to be integrated; acquiring a target programming language category matched with the target code to be integrated; judging whether an initial test script matched with a target service class of the service node exists in a preset test script database, wherein the preset test script database comprises the service class and the test script which are correspondingly stored;
when judging that the initial test script exists in the preset test script database, judging whether the programming language type of the initial test script is the target programming language type or not; when the programming language type of the initial test script is judged to be the target programming language type, determining the initial test script as a target test script; when judging that the programming language type of the initial test script is not the target programming language type, performing programming language conversion on the initial test script to obtain a target test script with the programming language type being the target programming language type;
starting the target test script to test the service node covered by the code to be integrated, and judging whether the target code to be integrated passes the test;
when the target code to be integrated passes the test, executing defrosting operation on the target code to be integrated to continue system integration, and executing the process of system integration, and freezing the target code to be integrated at the current moment every other the timing test time until the system integration is completed;
after judging that the target code to be integrated fails the test, determining a modified code according to the target code to be integrated and a backtracking code to be integrated, wherein the backtracking code to be integrated is the target code to be integrated stored after the target code to be integrated passes the test; judging whether a target problem reason matched with the change code exists in a test problem database, wherein the test problem database comprises a corresponding stored problem reason and a corresponding code; and outputting the target problem reason when judging that the target problem reason matched with the changed code exists in the test problem database, so that a developer changes the target code to be integrated according to the target problem reason.
2. The method of claim 1, wherein after said determining the service node to which the target code coverage is to be integrated, the method further comprises:
inquiring a service association system with a service relation with the service node in a preset service association database;
and sending prompt information for prompting to suspend the service function corresponding to the service node to the service association system.
3. A system integration apparatus based on test flow improvement, the apparatus comprising:
the system comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for integrating an initial code to be integrated according to a system integration instruction when the system integration instruction is detected, and acquiring the integration speed of the initial code to be integrated;
the determining unit is used for determining the timing test time of system integration according to the integration speed;
the freezing unit is used for freezing the target code to be integrated at the current moment every other the timing test time in the system integration process, wherein the target code to be integrated and the initial code to be integrated are different versions of codes to be integrated under different time;
the judging unit is used for determining the service node covered by the target code to be integrated; acquiring a target programming language category matched with the target code to be integrated; judging whether an initial test script matched with a target service class of the service node exists in a preset test script database, wherein the preset test script database comprises the service class and the test script which are correspondingly stored; when judging that the initial test script exists in the preset test script database, judging whether the programming language type of the initial test script is the target programming language type or not; when the programming language type of the initial test script is judged to be the target programming language type, determining the initial test script as a target test script; when judging that the programming language type of the initial test script is not the target programming language type, performing programming language conversion on the initial test script to obtain a target test script with the programming language type being the target programming language type; starting the target test script to test the service node covered by the code to be integrated, and judging whether the target code to be integrated passes the test;
the thawing unit is used for executing thawing operation on the target code to be integrated when judging that the target code to be integrated passes the test, and is used for continuing system integration, triggering the freezing unit to execute the process of system integration, and freezing the target code to be integrated at the current moment every the timing test time until the system integration is completed; after judging that the target code to be integrated fails the test, determining a modified code according to the target code to be integrated and a backtracking code to be integrated, wherein the backtracking code to be integrated is the target code to be integrated stored after the target code to be integrated passes the test; judging whether a target problem reason matched with the change code exists in a test problem database, wherein the test problem database comprises a corresponding stored problem reason and a corresponding code; and outputting the target problem reason when judging that the target problem reason matched with the changed code exists in the test problem database, so that a developer changes the target code to be integrated according to the target problem reason.
4. An electronic device, the electronic device comprising:
a processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the method of any of claims 1 to 2.
5. A computer-readable storage medium, characterized in that it stores a computer program that causes a computer to execute the method of any one of claims 1-2.
CN201910203383.5A 2019-03-18 2019-03-18 System integration method and device based on test flow improvement Active CN110046095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910203383.5A CN110046095B (en) 2019-03-18 2019-03-18 System integration method and device based on test flow improvement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910203383.5A CN110046095B (en) 2019-03-18 2019-03-18 System integration method and device based on test flow improvement

Publications (2)

Publication Number Publication Date
CN110046095A CN110046095A (en) 2019-07-23
CN110046095B true CN110046095B (en) 2024-02-02

Family

ID=67274863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910203383.5A Active CN110046095B (en) 2019-03-18 2019-03-18 System integration method and device based on test flow improvement

Country Status (1)

Country Link
CN (1) CN110046095B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124370B (en) * 2019-12-24 2024-04-26 深圳我家云网络科技有限公司 Data processing method and related equipment
CN112905470A (en) * 2021-02-23 2021-06-04 中国平安人寿保险股份有限公司 Interface calling method and device, computer equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212759A (en) * 2006-12-26 2008-07-02 中兴通讯股份有限公司 Integrated mobile telephone software test method
CN108614768A (en) * 2016-12-14 2018-10-02 北京国双科技有限公司 A kind of distribution continuous integrating method and device
CN109344053A (en) * 2018-09-03 2019-02-15 平安科技(深圳)有限公司 Interface coverage test method, system, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192128A1 (en) * 2009-01-27 2010-07-29 Honeywell International Inc. System and methods of using test points and signal overrides in requirements-based test generation
US20160321586A1 (en) * 2015-04-29 2016-11-03 Microsoft Technology Licensing, Llc Selecting tests for execution on a software product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212759A (en) * 2006-12-26 2008-07-02 中兴通讯股份有限公司 Integrated mobile telephone software test method
CN108614768A (en) * 2016-12-14 2018-10-02 北京国双科技有限公司 A kind of distribution continuous integrating method and device
CN109344053A (en) * 2018-09-03 2019-02-15 平安科技(深圳)有限公司 Interface coverage test method, system, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于持续集成的C/C++软件覆盖率测试;姜文等;计算机技术与发展(03);全文 *

Also Published As

Publication number Publication date
CN110046095A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN110069401B (en) System test abnormality positioning method and system based on data modeling
CN110162442B (en) System performance bottleneck positioning method and system
US20210080940A1 (en) Server, electronic device, and electronic device information providing method
CN110162384B (en) Redis distributed lock-based timeout time dynamic adjustment method and system
US10698797B2 (en) Mobile application program testing method, server, terminal, and storage medium
CN110134593B (en) Software testing method and device, electronic equipment and storage medium
US20160378511A1 (en) Electronic device having an external memory and method for operating the same
US9816833B2 (en) Method and apparatus for providing location based service
CN113110852A (en) Firmware upgrading method and device and storage medium
CN110147318B (en) Method and device for generating test data and electronic equipment
CN112148579B (en) User interface testing method and device
CN104536891A (en) Method and device for testing system
CN110046095B (en) System integration method and device based on test flow improvement
CN109445917A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992965A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110457154A (en) Exception service processing method and processing device, storage medium, communication terminal
US20160070578A1 (en) Method and system for upgrading an electronic device
KR20180101926A (en) Electronic device and method for controlling application thereof
CN109002314A (en) Oftware updating method, device, electronic equipment and storage medium
CN110780894B (en) Thermal upgrade processing method and device and electronic equipment
CN115033211A (en) Method, device and equipment for querying article based on strategy mode and storage medium
CN112463199A (en) System upgrading method and terminal
CN107018182B (en) Fault-tolerant processing method and device for load balancing
CN113132906B (en) Virtual positioning identification method and device, storage medium and electronic equipment
CN109710230B (en) Method and device for generating target program by utilizing static library

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240102

Address after: No. 301, Building 11, Phase II, Taicang University Science Park, No. 27 Zigang Road, Science and Education New City, Taicang City, Suzhou City, Jiangsu Province, 215000

Applicant after: Tianhang Changying (Jiangsu) Technology Co.,Ltd.

Address before: Room 201, building a, No. 1, Qianwan 1st Road, Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong Province

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant