CN116302944A - Service system testing method and device, electronic equipment and storage medium - Google Patents

Service system testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116302944A
CN116302944A CN202211740477.4A CN202211740477A CN116302944A CN 116302944 A CN116302944 A CN 116302944A CN 202211740477 A CN202211740477 A CN 202211740477A CN 116302944 A CN116302944 A CN 116302944A
Authority
CN
China
Prior art keywords
service system
target
operation instruction
response result
log data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211740477.4A
Other languages
Chinese (zh)
Inventor
曾杰
杨雪冬
李晓蕊
刘子豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202211740477.4A priority Critical patent/CN116302944A/en
Publication of CN116302944A publication Critical patent/CN116302944A/en
Pending legal-status Critical Current

Links

Images

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/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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 discloses a service system testing method, a service system testing device, electronic equipment and a storage medium. The method comprises the following steps: acquiring reference log data of a reference service system; wherein the reference service system is a published service system; analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction; forwarding each reference operation instruction to a target service system, and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on the reference service system but is not released; and comparing the reference response result and the target response result corresponding to the same reference operation instruction to determine the test result of the target service system. The technical scheme of the embodiment of the invention improves the comprehensiveness and accuracy of the service system test.

Description

Service system testing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a service system testing method, a device, an electronic device, and a storage medium.
Background
Because the service system needs to process a large amount of services, the performance requirement of the service system is higher, and the performance test of the service system is particularly important.
At present, performance test is mainly performed on a service system by a black-and-white box test mode. And testing program codes of the service system through test cases in the black-and-white box test.
However, only codes are tested by a black-and-white box test mode, and the comprehensiveness and accuracy of service system testing are low.
Disclosure of Invention
The invention provides a service system testing method, a device, electronic equipment and a storage medium, which improve the comprehensiveness and accuracy of service system testing.
According to an aspect of the present invention, there is provided a service system testing method, including:
acquiring reference log data of a reference service system; wherein, the reference service system is a published service system;
analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction;
forwarding each reference operation instruction to a target service system, and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on a reference service system but is not released;
And comparing the reference response result and the target response result corresponding to the same reference operation instruction to determine the test result of the target service system.
According to another aspect of the present invention, there is provided a service system testing apparatus, the apparatus comprising:
the reference log data acquisition module is used for acquiring reference log data of the reference service system; wherein, the reference service system is a published service system;
the reference response result acquisition module is used for analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction;
the target response result acquisition module is used for forwarding each reference operation instruction to a target service system and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on a reference service system but is not released;
and the test result determining module is used for comparing the reference response result corresponding to the same reference operation instruction with the target response result to determine the test result of the target service system.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the business system testing method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a service system testing method according to any one of the embodiments of the present invention.
According to the technical scheme, the reference log data of the reference service system are acquired, the reference log data are analyzed, at least one reference operation instruction and a reference response result corresponding to each reference operation instruction are obtained, each reference operation instruction is forwarded to the target service system, a target response result corresponding to each reference operation instruction by the target service system is acquired, the reference response result corresponding to the same reference operation instruction and the target response result are compared, and a test result of the target service system is determined, so that the problems that only codes are tested in a black-white box test mode, and the comprehensiveness and the accuracy of service system tests are low are solved, and the comprehensiveness and the accuracy of service system tests are improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a service system testing method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a service system testing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a service system testing method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service system testing device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a service system testing method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," "reference," "target," and the like in the description and claims of the invention and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a service system testing method according to a first embodiment of the present invention. The embodiment of the invention is applicable to the test situation of the service system, the method can be executed by the service system testing device, the service system testing device can be realized in the form of hardware and/or software, and the service system testing device can be configured in the electronic equipment carrying the service system testing function.
Referring to fig. 1, the service system testing method includes:
s110, acquiring reference log data of a reference service system; wherein the reference service system is a published service system.
The reference business system may be a published business system. The reference service system can receive the access of the user and generate a corresponding reference response result for the access of the user. The reference log data may be log data generated when the reference business system is actually running. The reference log data may reflect an actual operating state of the reference business system.
Specifically, the reference log data of the reference service system can be obtained by forwarding the reference service system to the device.
S120, analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction.
The reference operation instruction may be an operation instruction performed by the reference service system for access by the user. The reference response result may be a response result of the reference service system obtained after the reference operation instruction is executed. For example, the reference response result may include response success or response failure. When the reference response result is a response failure, the reference response result may further include an error type corresponding to the response failure, and the like. The reference service system stores both the reference operation instruction and the reference response result in the reference log data. Optionally, the reference service system may receive accesses of different users simultaneously, so that when the reference log data is parsed, at least one reference operation instruction and a reference response result corresponding to each reference operation instruction may be obtained.
Specifically, the reference log data may be parsed according to a preset log generation rule of the reference service system, so as to obtain at least one reference operation instruction in the reference log data and a reference response result corresponding to each reference operation instruction. The preset log generation rule can be set and adjusted according to experience of a technician.
S130, forwarding each reference operation instruction to a target service system, and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on the reference service system but is not released.
The target business system may be a business system to be tested. The target business system has made upgrade modifications to the code compared to the reference business system, but the target business system has not been published. The target service system can be tested for functionality to detect whether the code modified target service system is normal. The target response result may be a response result when the target service system executes the reference operation instruction.
And S140, comparing the reference response result corresponding to the same reference operation instruction with the target response result to determine the test result of the target service system.
Specifically, the reference response result and the target response result corresponding to the same reference operation instruction can be compared, and if the reference response result is consistent with the target response result, the test result of the target service system is determined to be the passing test; if the reference response result is inconsistent with the target response result, determining that the test result of the target service system is that the test fails, and upgrading and optimizing codes of the target service system which fails the test again.
According to the technical scheme, the reference log data of the reference service system is acquired, the reference log data is analyzed, at least one reference operation instruction and a reference response result corresponding to each reference operation instruction are obtained, each reference operation instruction is forwarded to the target service system, the target response result corresponding to each reference operation instruction is acquired by the target service system, the reference response result corresponding to the same reference operation instruction is compared with the target response result, and the test result of the target service system is determined, so that the function test of the target service system is realized, and the comprehensiveness and accuracy of the service system test are improved.
In an optional embodiment of the present invention, the reference response result and the target response result corresponding to the same reference operation instruction are compared, and the test result of the target service system is determined, which is specifically: comparing a reference response result and a target response result corresponding to the same reference operation instruction; and when the comparison result is inconsistent, determining that the test result of the target service system is abnormal in functional test.
The comparison results are inconsistent, which can be understood that the execution result of the same reference operation instruction in the reference service system is different from the execution result of the same reference operation instruction in the target service system, and can be understood that the target service system has an abnormality when executing the reference operation instruction, so that the test result of the target service system can be determined to be abnormal functional test.
For example, if the response result is a response success or a response failure, and includes an error type of the response failure. The reference response result and the target response result corresponding to the same operation instruction can be compared, and if the reference response result and the target response result are both successful in response, the comparison result of the reference response result and the target response result is consistent; if the reference response result and the target response result are response failures, and the error type of the response failure corresponding to the reference response result is consistent with the error type of the response failure of the target response result degree, the comparison result of the reference response result and the target response result is consistent. Otherwise, the comparison result of the reference response result and the target response result is inconsistent. And when the comparison result of the reference response result and the target response result is inconsistent, determining that the test result of the target service system is abnormal in function test.
According to the scheme, the reference response result and the target response result corresponding to the same reference operation instruction are compared, when the comparison result is inconsistent, the test result of the target service system is determined to be abnormal in function test, and the function test of the target service system is realized through the comparison of the reference response result and the target response result, so that the efficiency and the accuracy of the function test of the service system are improved.
In an alternative embodiment of the invention, the method further comprises: analyzing the reference log data to obtain the reference operation instruction number of the reference service system; performing pressure test on the target service system according to the reference operation instruction number and the target response result to obtain the operation instruction bearing number of the target service system; and taking the bearing quantity of the operation instructions as a performance test result, and adding the performance test result to a test result of the target service system.
The number of reference operation instructions may be the number of reference operation instructions that the reference service system processes at the same time. The pressure test may be used to test an upper limit value for the number of operating instructions that the business system is capable of processing simultaneously. The number of operation instruction bearers may be an upper limit value of the number of operation instructions processed simultaneously by the service system.
Specifically, the reference log data can be analyzed to determine the number of reference operation instructions processed by the reference service system at each time. And performing pressure test on the target service system according to the reference operation instruction quantity corresponding to each time and the target response result, and determining the upper limit value of the operation instruction quantity corresponding to the target response result when the response is successful as the operation instruction bearing quantity of the target service system. The performance test result is the number of the operation instruction loads as the performance test result of the target service system, and the performance test result is added to the test result of the target service system.
According to the scheme, the reference log data are analyzed to obtain the reference operation instruction quantity of the reference service system, the pressure test is carried out on the target service system according to the reference operation instruction quantity and the target response result to obtain the operation instruction bearing quantity of the target service system, the operation instruction bearing quantity is used as a performance test result and is added to the test result of the target service system, the supplementary test of the service system is realized, and the test accuracy of the service system is further improved.
In an alternative embodiment of the invention, the reference log data comprises log identification information; the method further comprises, prior to obtaining the reference log data of the reference service system: repeatedly detecting the reference log data according to the log identification information, and determining a repeated detection result of the reference log data; and eliminating the repeated reference log data as a repeated detection result.
The log identification information may be unique identification information referencing log data. The corresponding reference log data can be uniquely determined according to the log identification information.
Specifically, before the reference log data of the reference service system can be acquired, whether the device repeatedly acquires the reference log data or not can be determined according to the identification information of the reference log data, and whether the repeated detection result of the reference log data is repeated or not is determined. And if the repeatability detection result of the reference log data is repeated, eliminating the corresponding reference log data.
According to the scheme, the reference log data comprises log identification information, the reference log data is repeatedly detected according to the log identification information before the reference log data of the reference service system is acquired, the repeated detection result of the reference log data is determined, the repeated reference log data is removed, the uniqueness of the log identification information of the reference log data is utilized, the repeated detection of the reference log data is carried out, the repeated transmission of the reference log data due to the network delay and other reasons in the forwarding process of the reference service system to the equipment is avoided, the accuracy of the reference log data is guaranteed, and the accuracy of the reproduction test of the target service system is further guaranteed.
Example two
Fig. 2 is a flowchart of a service system testing method according to a second embodiment of the present invention. Based on the embodiment, the embodiment of the invention embodies that each reference operation instruction is forwarded to a target service system, and the reference operation instruction is converted into the target operation instruction according to the operation specification of the target service system and the operation specification of the reference service system; the converted target operation instruction and the reference operation instruction correspond to the same operation; forwarding the target operation instruction to the target service system. The accuracy of the service system test is further improved. In the embodiments of the present invention, the descriptions of other embodiments may be referred to in the portions not described in detail.
Referring to the service system testing method shown in fig. 2, the method includes:
s210, acquiring reference log data of a reference service system; wherein the reference service system is a published service system.
S220, analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction.
S230, converting the reference operation instruction into a target operation instruction according to the operation specification of the target service system and the operation specification of the reference service system; wherein the converted target operation instruction and the reference operation instruction correspond to the same operation.
The operation specification may be a specification corresponding to an operation instruction of the service system. The operating specifications of different business systems may be different. When the operation instruction of the service system does not accord with the operation specification, the response result corresponding to the operation instruction may be a response failure. By converting the reference operation instruction into the target operation instruction according to the operation specification of the target service system and the operation specification of the reference service system, the condition that the comparison result of the reference response result and the target response result is inaccurate due to the fact that the operation specification is not met is avoided.
Specifically, the reference operation instruction may be converted into a target operation instruction corresponding to the same operation as the reference operation instruction according to the operation specification of the target service system and the operation specification of the reference service system.
S240, forwarding the target operation instruction to a target service system, and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on the reference service system but is not released.
Specifically, the converted target operation instruction may be sent to the target service system.
S250, comparing the reference response result corresponding to the same reference operation instruction with the target response result to determine the test result of the target service system.
According to the technical scheme, the reference operation instruction is converted into the target operation instruction according to the operation specification of the target service system and the operation specification of the reference service system, wherein the converted target operation instruction and the reference operation instruction correspond to the same operation; the target operation instruction is forwarded to the target service system, so that inconsistency of response results of the service system due to different operation specifications of the reference service system and the target service system is avoided, and the accuracy of service system testing is further improved.
In an optional embodiment of the present invention, after obtaining a target response result corresponding to each reference operation instruction by the target service system, the method further includes: comparing the parameters of the target operation instruction with the parameters of the reference operation instruction, and detecting whether the target operation instruction and the reference operation instruction correspond to the same operation; and when the target operation instruction and the reference operation instruction do not correspond to the same operation, updating the parameters of the target operation instruction, and updating the target response result.
Specifically, after the target response result corresponding to each reference operation instruction by the target service system is obtained, the parameters of the target operation instruction and the parameters of the reference operation instruction may be compared, and whether the target operation instruction and the reference operation instruction correspond to the same operation may be detected according to the operation specification of the target service system and the operation specification of the reference service system. And if the target operation instruction and the reference operation instruction do not correspond to the same operation, adjusting the parameters of the target operation instruction according to the operation specification of the target service system so that the target operation instruction and the reference operation instruction correspond to the same operation, and updating the target response result.
According to the scheme, after the target response result corresponding to each reference operation instruction by the target service system is obtained, the parameters of the target operation instruction and the parameters of the reference operation instruction are compared, whether the target operation instruction corresponds to the same operation or not is detected, when the target operation instruction does not correspond to the same operation with the reference operation instruction, the parameters of the target operation instruction are updated, the target response result is updated, whether the reference operation instruction generating the reference response result corresponds to the same operation or not is compared with the target operation instruction generating the target response result, the target operation instruction is updated when the reference operation instruction does not correspond to the same operation, the updated target response result is obtained, the fault tolerance of service system testing is improved, and the accuracy of service system testing is further guaranteed.
Fig. 3 is a flowchart of a service system testing method according to a second embodiment of the present invention. Referring to fig. 3, the service system testing method includes:
s310, acquiring reference log data forwarded by a reference service system in real time.
Specifically, reference log data forwarded in real time by the reference service system can be obtained. The performance pressure condition of the reference service system can be truly reflected through the reference log data forwarded by the reference service system in real time, and the reference operation instruction number of the processing of the reference service system at each time can be determined through implementing the forwarded reference log data, so that the pressure test of the target service system is realized. Meanwhile, the annual reference log data can be analyzed to ensure that the target service system realizes service system test through more comprehensive data, and the accuracy of service system test is further improved.
S320, judging whether the reference log data is repeated, if so, executing S340; if not, S330 is performed.
Specifically, whether the reference log data is repeated or not can be judged through the log identification information. The repeated transmission of the reference log data can cause the processing state of the reference service system to the operation instruction to be different from the processing state of the target service system to the operation instruction, so that the test deviation of the service system is caused. The repeatability detection of the reference log data ensures the consistency of the operation instruction processing of the target service system and the reference service system, thereby ensuring the accuracy of the service system test.
S330, analyzing the reference log data to obtain a reference operation instruction and a reference response result.
Specifically, the reference log data may be parsed according to a preset log generation rule of the reference service system, so as to obtain a reference operation instruction and a reference response result corresponding to the reference operation instruction.
S340, eliminating repeated reference log data.
Specifically, the repeated reference log data may be removed.
S350, converting the reference operation instruction into a target operation instruction.
Specifically, the reference operation instruction may be converted into the target operation instruction according to the operation specification of the reference service system and the operation specification of the target service system.
S360, forwarding the target operation instruction to a target service system, and obtaining a target response result.
Specifically, the target operation instruction can be forwarded to the target service system, and a target response result fed back by the target service system is obtained.
S370, comparing the parameters of the target operation instruction with the parameters of the reference operation instruction, adjusting the parameters of the target operation instruction, and updating the target response result.
Specifically, the parameters of the target operation instruction and the parameters of the reference operation instruction may be compared, and whether the target operation instruction and the reference operation instruction correspond to the same operation may be detected according to the operation specification of the target service system and the operation specification of the reference service system. And if the target operation instruction and the reference operation instruction do not correspond to the same operation, adjusting the parameters of the target operation instruction according to the operation specification of the target service system so that the target operation instruction and the reference operation instruction correspond to the same operation, and updating the target response result.
S380, comparing the reference response result corresponding to the same reference operation instruction with the target response result to determine the test result of the target service system.
Specifically, the reference response result and the target response result corresponding to the same reference operation instruction can be compared, and if the reference response result is consistent with the target response result, the test result of the target service system is determined to be the passing test; if the reference response result is inconsistent with the target response result, determining that the test result of the target service system is that the test fails, and upgrading and optimizing codes of the target service system which fails the test again.
According to the scheme, whether the reference log data are repeated or not is judged by acquiring the reference log data forwarded by the reference service system in real time, if yes, the repeated reference log data are removed, if no, the reference log data are analyzed, a reference operation instruction and a reference response result are acquired, the reference operation instruction is converted into a target operation instruction, the target operation instruction is forwarded to the target service system, the target response result is acquired, parameters of the target operation instruction and parameters of the reference operation instruction are compared, parameters of the target operation instruction are adjusted, the target response result is updated, the reference response result and the target response result corresponding to the same reference operation instruction are compared, a test result of the target service system is determined, and the comprehensiveness and accuracy of service system testing are improved.
Example III
Fig. 4 is a schematic structural diagram of a service system testing device according to a third embodiment of the present invention. The embodiment of the invention is applicable to the situation of testing the service system, the device can execute the service system testing method, the device can be realized in the form of hardware and/or software, and the device can be configured in the electronic equipment carrying the service system testing function.
Referring to fig. 4, a service system testing apparatus includes: a reference log data acquisition module 410, a reference response result acquisition module 420, a target response result acquisition module 430, and a test result determination module 440. Wherein,,
a reference log data acquisition module 410, configured to acquire reference log data of a reference service system; wherein the reference service system is a published service system;
the reference response result obtaining module 420 is configured to parse the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction;
the target response result obtaining module 430 is configured to forward each reference operation instruction to the target service system, and obtain a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on the reference service system but is not released;
the test result determining module 440 is configured to compare the reference response result and the target response result corresponding to the same reference operation instruction, and determine a test result of the target service system.
According to the technical scheme, the reference log data of the reference service system is acquired, the reference log data is analyzed, at least one reference operation instruction and a reference response result corresponding to each reference operation instruction are obtained, each reference operation instruction is forwarded to the target service system, the target response result corresponding to each reference operation instruction is acquired by the target service system, the reference response result corresponding to the same reference operation instruction is compared with the target response result, and the test result of the target service system is determined, so that the function test of the target service system is realized, and the comprehensiveness and accuracy of the service system test are improved.
In an alternative embodiment of the present invention, the target response result obtaining module 430 includes: an operation instruction conversion unit for converting the reference operation instruction into a target operation instruction according to the operation specification of the target service system and the operation specification of the reference service system; the converted target operation instruction and the reference operation instruction correspond to the same operation; and the target operation instruction forwarding unit is used for forwarding the target operation instruction to the target service system.
In an alternative embodiment of the present invention, after obtaining the target response result corresponding to each reference operation instruction by the target service system, the target response result obtaining module 430 further includes: a parameter comparing unit for comparing the parameter of the target operation instruction with the parameter of the reference operation instruction, and detecting whether the target operation instruction and the reference operation instruction correspond to the same operation; and the target response result updating unit is used for updating the parameters of the target operation instruction and updating the target response result when the target operation instruction and the reference operation instruction do not correspond to the same operation.
In an alternative embodiment of the present invention, the test result determination module 440 includes: the response result comparison unit is used for comparing the reference response result corresponding to the same reference operation instruction with the target response result; and the test result determining unit is used for determining that the test result of the target service system is abnormal in functional test when the comparison result is inconsistent.
In an alternative embodiment of the invention, the apparatus further comprises: the reference operation instruction number determining module is used for analyzing the reference log data to obtain the reference operation instruction number of the reference service system; the target service system pressure test module is used for performing pressure test on the target service system according to the reference operation instruction number and the target response result to obtain the operation instruction bearing number of the target service system; and the test result updating module is used for taking the bearing quantity of the operation instructions as a performance test result and adding the performance test result to the test result of the target service system.
In an alternative embodiment of the invention, the reference log data comprises log identification information; the apparatus further comprises, prior to obtaining the reference log data of the reference service system: the repeatability detection module is used for carrying out repeatability detection on the reference log data according to the log identification information and determining a repeatability detection result of the reference log data; and the repeated reference log data eliminating module is used for eliminating the repeated reference log data with repeated detection results.
The service system testing device provided by the embodiment of the invention can execute the service system testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
In the technical scheme of the embodiment of the invention, the acquisition, storage, application and the like of the reference log data, the target response result and the like all meet the requirements of related laws and regulations, and the public order welcome is not violated.
Example IV
Fig. 5 shows a schematic diagram of an electronic device 500 that may be used to implement an embodiment of the invention. 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. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), 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 inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 500 includes at least one processor 501, and a memory communicatively connected to the at least one processor 501, such as a Read Only Memory (ROM) 502, a Random Access Memory (RAM) 503, etc., where the memory stores computer programs executable by the at least one processor, and the processor 501 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 502 or the computer programs loaded from the storage unit 508 into the Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation instructions of the electronic device 500 may also be stored. The processor 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in electronic device 500 are connected to I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 501 performs the various methods and processes described above, such as the business system testing method.
In some embodiments, the business system testing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by processor 501, one or more steps of the business system testing method described above may be performed. Alternatively, in other embodiments, processor 501 may be configured to perform the business system testing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), 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.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device 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 a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. 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), blockchain networks, and the internet.
The computing system may include clients and servers. 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. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS (Virtual Private Server ) service are overcome.
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 described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. 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 invention should be included in the scope of the present invention.

Claims (10)

1. A business system testing method, the method comprising:
acquiring reference log data of a reference service system; wherein, the reference service system is a published service system;
analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction;
forwarding each reference operation instruction to a target service system, and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on a reference service system but is not released;
And comparing the reference response result and the target response result corresponding to the same reference operation instruction to determine the test result of the target service system.
2. The method of claim 1, wherein forwarding each of the reference operation instructions to a target business system comprises:
converting the reference operation instruction into the target operation instruction according to the operation specification of the target service system and the operation specification of the reference service system; wherein the converted target operation instruction and the reference operation instruction correspond to the same operation;
and forwarding the target operation instruction to the target service system.
3. The method according to claim 2, further comprising, after the obtaining the target response result corresponding to each of the reference operation instructions by the target service system:
comparing the parameters of the target operation instruction and the parameters of the reference operation instruction, and detecting whether the target operation instruction and the reference operation instruction correspond to the same operation or not;
and when the target operation instruction and the reference operation instruction do not correspond to the same operation, updating parameters of the target operation instruction and updating the target response result.
4. The method of claim 1, wherein comparing the reference response result and the target response result corresponding to the same reference operation instruction to determine the test result of the target service system comprises:
comparing the reference response result and the target response result corresponding to the same reference operation instruction;
and when the comparison result is inconsistent, determining that the test result of the target service system is abnormal in functional test.
5. The method as recited in claim 1, further comprising:
analyzing the reference log data to obtain the reference operation instruction number of the reference service system;
performing pressure test on the target service system according to the reference operation instruction number and the target response result to obtain the operation instruction bearing number of the target service system;
and taking the bearing quantity of the operation instructions as a performance test result, and adding the performance test result to the test result of the target service system.
6. The method of claim 1, wherein the reference log data includes log identification information;
before the acquiring the reference log data of the reference service system, the method further comprises:
Performing repeatability detection on the reference log data according to the log identification information, and determining a repeatability detection result of the reference log data;
and eliminating the reference log data with the repeated detection result.
7. A business system testing apparatus, said apparatus comprising:
the reference log data acquisition module is used for acquiring reference log data of the reference service system; wherein, the reference service system is a published service system;
the reference response result acquisition module is used for analyzing the reference log data to obtain at least one reference operation instruction and a reference response result corresponding to each reference operation instruction;
the target response result acquisition module is used for forwarding each reference operation instruction to a target service system and acquiring a target response result corresponding to each reference operation instruction by the target service system; the target service system is a service system which carries out code modification on a reference service system but is not released;
and the test result determining module is used for comparing the reference response result corresponding to the same reference operation instruction with the target response result to determine the test result of the target service system.
8. The apparatus of claim 7, wherein the target response result acquisition module comprises:
an operation instruction conversion unit, configured to convert the reference operation instruction into a target operation instruction according to an operation specification of the target service system and an operation specification of a reference service system; wherein the converted target operation instruction and the reference operation instruction correspond to the same operation;
and the target operation instruction forwarding unit is used for forwarding the target operation instruction to the target service system.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the business system testing method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the business system testing method of any one of claims 1-7.
CN202211740477.4A 2022-12-30 2022-12-30 Service system testing method and device, electronic equipment and storage medium Pending CN116302944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211740477.4A CN116302944A (en) 2022-12-30 2022-12-30 Service system testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211740477.4A CN116302944A (en) 2022-12-30 2022-12-30 Service system testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116302944A true CN116302944A (en) 2023-06-23

Family

ID=86836711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211740477.4A Pending CN116302944A (en) 2022-12-30 2022-12-30 Service system testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116302944A (en)

Similar Documents

Publication Publication Date Title
CN116303013A (en) Source code analysis method, device, electronic equipment and storage medium
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN116302944A (en) Service system testing method and device, electronic equipment and storage medium
CN114741291A (en) Method, device, equipment and medium for automatically submitting vulnerability information
CN114003497A (en) Method, device and equipment for testing service system and storage medium
CN118277275A (en) Interface testing method and device, electronic equipment and storage medium
CN117493127B (en) Application program detection method, device, equipment and medium
CN116401113B (en) Environment verification method, device and medium for heterogeneous many-core architecture acceleration card
CN117609087A (en) Code processing method, device, equipment and medium
CN117670236A (en) Mobile-terminal-based to-be-handled flow approval method, device, equipment and medium
CN116303071A (en) Interface testing method and device, electronic equipment and storage medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN115543712A (en) Automatic detection method and device for equipment configuration information, electronic equipment and medium
CN117056222A (en) Interface test file generation method and device, electronic equipment and storage medium
CN118298853A (en) Feedback method and device for speech recognition test abnormality
CN117453252A (en) Application upgrading method, device, equipment and storage medium
CN117648252A (en) Function test method and device for software application, electronic equipment and storage medium
CN117453747A (en) Data quality detection method and device, electronic equipment and storage medium
CN115567624A (en) Message processing method and device, electronic equipment and medium
CN117971640A (en) Method, device, equipment and medium for testing embedded software
CN117033234A (en) Interface testing method, device, equipment and medium
CN117539700A (en) Test management method, device, equipment and medium
CN116991825A (en) Database flashback method, device, equipment and storage medium
CN116567115A (en) Message detection method and device, electronic equipment and medium
CN117931155A (en) Code generation method, device, equipment and medium

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