CN116303086A - End-to-end testing method, configuration method, device, equipment and storage medium - Google Patents

End-to-end testing method, configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN116303086A
CN116303086A CN202310394467.8A CN202310394467A CN116303086A CN 116303086 A CN116303086 A CN 116303086A CN 202310394467 A CN202310394467 A CN 202310394467A CN 116303086 A CN116303086 A CN 116303086A
Authority
CN
China
Prior art keywords
test
data
scene
flow
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310394467.8A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202310394467.8A priority Critical patent/CN116303086A/en
Publication of CN116303086A publication Critical patent/CN116303086A/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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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 application discloses an end-to-end testing method, a configuration method, a device, equipment and a storage medium, which realize automatic execution of test data acquisition and test of a next test scene according to a test result of a previous test scene by constructing a test flow comprising at least one test scene, realize full-flow automation of the test, solve the technical problems that in the existing automatic test open source or self-grinding tool, automation in the test process is not consistent, only certain stage of automation is realized, the automation is often incomplete, the process cannot be correctly reflected, and many stages of the whole test process need manual intervention, and manual exposure test still exists in the whole test process.

Description

End-to-end testing method, configuration method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of software testing technologies, and in particular, to an end-to-end testing method, a configuration method, an apparatus, a device, and a storage medium.
Background
In many cases, the testing process involves some form of manual execution, and manual intervention is inefficient and expensive during the testing process. Inconsistencies in the testing process from one business unit to the next are problematic, not only in terms of how the test is performed, but also in terms of how and where the test data is acquired, how the test data is stored and managed, how the test is arranged, the results are generated and presented, and how the problem is solved.
In the existing automatic test open source or self-grinding tool, the automation in the test process is not continuous, but only the automation of a certain stage is realized, the automation is often incomplete, the process cannot be correctly reflected, the manual intervention is required in a plurality of stages of the whole test process, and the technical problem that the manual exposure test exists in the whole test process is caused.
Disclosure of Invention
The application provides an end-to-end testing method, a configuration method, a device, equipment and a storage medium, which solve the technical problems that in the existing automatic testing open source or self-grinding tool, the automation in the testing process is not consistent, the automation in a certain stage is realized, the automation is incomplete, the process cannot be correctly reflected, manual intervention is required in a plurality of stages of the whole testing process, and the manual exposure test still exists in the whole testing process.
In view of this, a first aspect of the present application provides an end-to-end testing method, the method comprising:
s1, determining a test flow, wherein the test flow comprises at least one test scene;
s2, determining a data source according to a preset identification code corresponding to the test scene, and obtaining test data;
s3, executing the test of the test scene based on the test data to obtain a test result;
s4, if two or more test scenes are included, determining the next test scene according to the test result, and returning to the step S2 until the test flow is completed.
Optionally, after the step S2, before the step S3, the method further includes:
and calling third party data required by the test scene based on a preset rule set.
Optionally, the step S3 further includes:
acquiring a data attribute conversion instruction, wherein the data attribute conversion instruction carries target data and a target data attribute, and the target data attribute is a global attribute;
and converting the target data generated in the test scene into the target data attribute according to the data attribute conversion instruction.
A second aspect of the present application provides an end-to-end testing apparatus, the apparatus comprising:
the testing unit is used for determining a testing process, wherein the testing process comprises at least one testing scene;
the acquisition unit is used for determining a data source according to a preset identification code corresponding to the test scene and acquiring test data;
the execution unit is used for executing the test of the test scene based on the test data to obtain a test result;
and the return unit is used for determining the next test scene according to the test result if the two or more test scenes are included, and jumping to the acquisition unit until the test flow is completed.
A third aspect of the present application provides an end-to-end test configuration method, the method including:
s5, determining a data source corresponding to a test scene according to test data required by the test scene, and constructing a first connection relation between the test scene and the data source based on a preset identifier of the data source;
s6, creating a test flow, wherein the test flow comprises at least one test scene;
s7, defining a second connection relation between two or more test scenes in the test flow based on a test result;
s8, generating test codes for executing the test flow according to the first connection relation and the second connection relation.
Optionally, the step S6 further includes:
s9, defining a rule set in the test scene according to third party data required by the test scene.
Optionally, the step S7 further includes:
according to the test data required by two or more test scenes, defining the data attributes of the data generated in the two or more test scenes, wherein the data attributes are divided into global attributes and local attributes.
A fourth aspect of the present application provides an end-to-end test configuration apparatus, the apparatus comprising:
the first association unit is used for determining a data source corresponding to a test scene according to test data required by the test scene, and constructing a first connection relation between the test scene and the data source based on a preset identifier of the data source;
the system comprises a creation unit, a test flow, a test program and a control unit, wherein the creation unit is used for creating a test flow, and the test flow comprises at least one test scene;
the second association unit is used for defining a second connection relation between two or more test scenes in the test flow based on the test result;
and the generating unit is used for generating test codes for executing the test flow according to the first connection relation and the second connection relation.
A fifth aspect of the present application provides an end-to-end test apparatus, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the steps of the end-to-end testing method according to the first aspect described above according to instructions in the program code.
A sixth aspect of the present application provides a computer readable storage medium storing program code for performing the end-to-end testing method of the first aspect described above.
From the above technical solutions, the embodiments of the present application have the following advantages:
in the application, an end-to-end testing method, a configuration method, a device, equipment and a storage medium are provided, by constructing a testing flow comprising at least one testing scene, the automatic execution of the test data acquisition and the test of the next testing scene according to the testing result of the last testing scene is realized, the full-flow automation of the test is realized, the technical problems that the current automation test is not continuous in an open source or self-grinding tool, the automation in the testing process is only realized at a certain stage, the automation is often incomplete and the process cannot be correctly reflected, the manual intervention is required at a plurality of stages in the whole testing process, and the manual exposure test is also in the whole testing process are solved.
Drawings
FIG. 1 is a flow chart of an end-to-end testing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for configuring an end-to-end test in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an end-to-end testing device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an end-to-end testing configuration device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an end-to-end testing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The application designs an end-to-end testing method, a configuration method, a device, equipment and a storage medium, which solve the technical problems that in the existing automatic testing open source or self-grinding tool, the automation in the testing process is not consistent, the automation in a certain stage is realized, the automation is incomplete, the process cannot be correctly reflected, manual intervention is required in a plurality of stages of the whole testing process, and the manual exposure test also exists in the whole testing process.
For ease of understanding, referring to fig. 1, fig. 1 is a flowchart of a method for end-to-end testing in an embodiment of the present application, as shown in fig. 1, specifically:
s1, determining a test flow, wherein the test flow comprises at least one test scene;
it should be noted that, in a test flow, one or more test scenarios may be included, and in a case where two or more test scenarios exist, a connection relationship between different test scenarios is important, that is, a test result of a previous test scenario will affect a call of a next test scenario or data input of the next test scenario.
S2, determining a data source according to a preset identification code corresponding to the test scene, and acquiring test data;
it should be noted that, the test data required by different test scenes are different, and in the configuration stage, the data source corresponding to the configured test scene is specifically determined by the unique identification code such as url or user of the data source, so that in the test stage, the test data required by the test scene can be directly obtained according to the unique identification code.
S3, testing a test scene based on the test data to obtain a test result;
it should be noted that, the test of the test scenario is performed based on the test data, so that the test result of the test scenario is output.
S4, if the test program comprises two or more than two test scenes, determining the next test scene according to the test result, and returning to the step S2 until the test flow is completed.
It should be noted that, if two or more test scenarios are included, the next test scenario is further determined based on the test result, so as to implement full automation of the test flow.
Further, after step S2, before step S3, the method further includes:
and calling third party data required by the test scene based on a preset rule set.
It should be noted that, in the test scenario, the third party data may also need to be called, and the calling may be implemented by configuring a preset rule set.
Further, step S3 further includes:
acquiring a data attribute conversion instruction, wherein the data attribute conversion instruction carries target data and a target data attribute, and the target data attribute is a global attribute;
and converting the target data generated in the test scene into target data attributes according to the data attribute conversion instruction.
In general, various data used and generated in a test scenario will belong to the test scenario, and in order to avoid leakage of data information, data attributes of the partial data default to local attributes.
In some special cases, however, the target data may be converted to global properties so that the next test scenario or other test scenarios may also call the target data.
Referring to fig. 2, fig. 2 is a flowchart of a method for configuring an end-to-end test in an embodiment of the present application, as shown in fig. 2, specifically:
s5, determining a data source corresponding to the test scene according to test data required by the test scene, and constructing a first connection relation between the test scene and the data source based on a preset identifier of the data source;
it should be noted that, in the configuration stage, first, according to test data required by different test scenarios, a data source to be linked to the test scenario is determined, and a first connection relationship between the test scenario and the data source is constructed based on a preset identifier of the data source.
S6, creating a test flow, wherein the test flow comprises at least one test scene;
it should be noted that, a preset test flow is created, and the test flow includes at least one test scenario.
S7, defining a second connection relation between two or more test scenes in the test flow based on the test result;
it should be noted that, if the test flow includes two or more test scenarios, the jump relationship between different test scenarios is associated with the test result, and the second connection relationship between different test scenarios in the test flow is generated based on the test result.
S8, generating test codes for executing the test flow according to the first connection relation and the second connection relation.
It should be noted that, the test code is the code to be tested, and the test of the test flow can be executed by directly running the test code.
Further, step S6 further includes:
s9, defining a rule set in the test scene according to third party data required by the test scene.
Further, step S7 further includes:
according to the test data required by two or more test scenes, defining the data attributes of the data generated in the two or more test scenes, wherein the data attributes are divided into global attributes and local attributes.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an end-to-end testing device according to an embodiment of the present application, as shown in fig. 3, specifically:
the testing unit 301 is configured to determine a testing procedure, where the testing procedure includes at least one testing scenario;
the acquiring unit 302 is configured to determine a data source according to a preset identifier corresponding to a test scenario, and acquire test data;
an execution unit 303, configured to execute a test of the test scenario based on the test data, to obtain a test result;
and a return unit 304, configured to determine a next test scenario according to the test result if two or more test scenarios are included, and jump to the obtaining unit 302 until the test flow is completed.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an end-to-end testing configuration device according to an embodiment of the present application, as shown in fig. 4, specifically:
the first association unit 401 is configured to determine a data source corresponding to the test scene according to test data required by the test scene, and construct a first connection relationship between the test scene and the data source based on a preset identifier of the data source;
a creating unit 402, configured to create a test flow, where the test flow includes at least one test scenario;
a second association unit 403, configured to define a second connection relationship between two or more test scenarios in the test flow based on the test result;
the generating unit 404 is configured to generate a test code for executing the test procedure according to the first connection relationship and the second connection relationship.
The embodiment of the present application further provides another end-to-end testing configuration device, as shown in fig. 5, for convenience of explanation, only the portion relevant to the embodiment of the present application is shown, and specific technical details are not disclosed, please refer to the method portion of the embodiment of the present application. The terminal can be any terminal equipment including a mobile phone, a tablet personal computer, a personal digital assistant (English full name: personal Digital Assistant, english abbreviation: PDA), a Sales terminal (English full name: point of Sales, english abbreviation: POS), a vehicle-mounted computer and the like, taking the mobile phone as an example of the terminal:
fig. 5 is a block diagram showing a part of a structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 5, the mobile phone includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (wireless fidelity, wiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 5:
the RF circuit 1010 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the signal is processed by the processor 1080; in addition, the data of the design uplink is sent to the base station. Generally, RF circuitry 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English full name: low Noise Amplifier, english abbreviation: LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (english: global System of Mobile communication, english: GSM), general packet radio service (english: general Packet Radio Service, GPRS), code division multiple access (english: code Division Multiple Access, english: CDMA), wideband code division multiple access (english: wideband Code Division Multiple Access, english: WCDMA), long term evolution (english: long Term Evolution, english: LTE), email, short message service (english: short Messaging Service, SMS), and the like.
The memory 1020 may be used to store software programs and modules that the processor 1080 performs various functional applications and data processing of the handset by executing the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1031 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080 and can receive commands from the processor 1080 and execute them. Further, the touch panel 1031 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041, and alternatively, the display panel 1041 may be configured in the form of a liquid crystal display (english full name: liquid Crystal Display, acronym: LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 may overlay the display panel 1041, and when the touch panel 1031 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 1080 to determine a type of touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in fig. 5, the touch panel 1031 and the display panel 1041 are two independent components for implementing the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 1060, a speaker 1061, and a microphone 1062 may provide an audio interface between a user and a cell phone. Audio circuit 1060 may transmit the received electrical signal after audio data conversion to speaker 1061 for conversion by speaker 1061 into an audio signal output; on the other hand, microphone 1062 converts the collected sound signals into electrical signals, which are received by audio circuit 1060 and converted into audio data, which are processed by audio data output processor 1080 for transmission to, for example, another cell phone via RF circuit 1010 or for output to memory 1020 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 1070, so that wireless broadband Internet access is provided for the user. Although fig. 5 shows a WiFi module 1070, it is understood that it does not belong to the necessary constitution of the handset, and can be omitted entirely as required within the scope of not changing the essence of the invention.
Processor 1080 is the control center of the handset, connects the various parts of the entire handset using various interfaces and lines, and performs various functions and processes of the handset by running or executing software programs and/or modules stored in memory 1020, and invoking data stored in memory 1020, thereby performing overall monitoring of the handset. Optionally, processor 1080 may include one or more processing units; preferably, processor 1080 may integrate an application processor primarily handling operating systems, user interfaces, applications, etc., with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset further includes a power source 1090 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 1080 by a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present application, the processor 1080 included in the terminal further has the following functions:
s1, creating a test flow, wherein the test flow comprises at least one test scene;
s2, determining a data source according to a preset identification code corresponding to the test scene, and acquiring test data;
s3, testing a test scene based on the test data to obtain a test result;
s4, if the test program comprises two or more than two test scenes, determining the next test scene according to the test result, and returning to the step S2 until the test flow is completed.
The embodiments of the present application also provide a computer readable storage medium for storing program code for executing any one of the end-to-end testing methods described in the foregoing embodiments.
In the embodiment of the application, an end-to-end testing method, a configuration method, a device, equipment and a storage medium are provided, and by constructing a testing flow including at least one testing scene, the automatic execution of the test data acquisition and the test of the next testing scene according to the testing result of the last testing scene is realized, the full-flow automation of the test is realized, the technical problems that the current automation test is not continuous in an open source or self-grinding tool, the automation in the testing process is not continuous, the automation in a certain stage is realized, the automation in a certain stage is often incomplete, the process cannot be correctly reflected, and a plurality of stages in the whole testing process need manual intervention, and the manual exposure test is also in the whole testing process are solved.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The terms "first," "second," "third," "fourth," and the like in the description of the present application and in the above-described figures, if any, 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 embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. 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.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. An end-to-end testing method, comprising:
s1, determining a test flow, wherein the test flow comprises at least one test scene;
s2, determining a data source according to a preset identification code corresponding to the test scene, and obtaining test data;
s3, executing the test of the test scene based on the test data to obtain a test result;
s4, if two or more test scenes are included, determining the next test scene according to the test result, and returning to the step S2 until the test flow is completed.
2. The end-to-end testing method according to claim 1, wherein after the step S2, before the step S3, further comprises:
and calling third party data required by the test scene based on a preset rule set.
3. The end-to-end testing method according to claim 1, wherein after the step S3, further comprises:
acquiring a data attribute conversion instruction, wherein the data attribute conversion instruction carries target data and a target data attribute, and the target data attribute is a global attribute;
and converting the target data generated in the test scene into the target data attribute according to the data attribute conversion instruction.
4. An end-to-end testing apparatus, comprising:
the testing unit is used for determining a testing process, wherein the testing process comprises at least one testing scene;
the acquisition unit is used for determining a data source according to a preset identification code corresponding to the test scene and acquiring test data;
the execution unit is used for executing the test of the test scene based on the test data to obtain a test result;
and the return unit is used for determining the next test scene according to the test result if the two or more test scenes are included, and jumping to the acquisition unit until the test flow is completed.
5. An end-to-end test configuration method, comprising:
s5, determining a data source corresponding to a test scene according to test data required by the test scene, and constructing a first connection relation between the test scene and the data source based on a preset identifier of the data source;
s6, creating a test flow, wherein the test flow comprises at least one test scene;
s7, defining a second connection relation between two or more test scenes in the test flow based on a test result;
s8, generating test codes for executing the test flow according to the first connection relation and the second connection relation.
6. The end-to-end test configuration method according to claim 5, wherein after the step S6, further comprises:
s9, defining a rule set in the test scene according to third party data required by the test scene.
7. The end-to-end test configuration method according to claim 6, wherein after the step S7, further comprises:
according to the test data required by two or more test scenes, defining the data attributes of the data generated in the two or more test scenes, wherein the data attributes are divided into global attributes and local attributes.
8. An end-to-end test configuration apparatus, comprising:
the first association unit is used for determining a data source corresponding to a test scene according to test data required by the test scene, and constructing a first connection relation between the test scene and the data source based on a preset identifier of the data source;
the system comprises a creation unit, a test flow, a test program and a control unit, wherein the creation unit is used for creating a test flow, and the test flow comprises at least one test scene;
the second association unit is used for defining a second connection relation between two or more test scenes in the test flow based on the test result;
and the generating unit is used for generating test codes for executing the test flow according to the first connection relation and the second connection relation.
9. An end-to-end test apparatus, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the end-to-end test method of any of claims 1-3 according to instructions in the program code.
10. A computer readable storage medium, characterized in that the computer readable storage medium is for storing a program code for performing the end-to-end test method of any of claims 1-3.
CN202310394467.8A 2023-04-13 2023-04-13 End-to-end testing method, configuration method, device, equipment and storage medium Pending CN116303086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310394467.8A CN116303086A (en) 2023-04-13 2023-04-13 End-to-end testing method, configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310394467.8A CN116303086A (en) 2023-04-13 2023-04-13 End-to-end testing method, configuration method, device, equipment and storage medium

Publications (1)

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

Family

ID=86778205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310394467.8A Pending CN116303086A (en) 2023-04-13 2023-04-13 End-to-end testing method, configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116303086A (en)

Similar Documents

Publication Publication Date Title
CN112749074B (en) Test case recommending method and device
CN115904950A (en) Test case generation method, device, equipment and storage medium
CN116881143A (en) Data object copying abnormality investigation method, device, equipment and storage medium
CN116932625A (en) Fuzzy data generation method, device, equipment and storage medium
CN116303085A (en) Test reason analysis method, device, equipment and storage medium
CN116303646A (en) Cross-database data comparison method, device, equipment and storage medium
CN116468382A (en) RPA robot flow management method, device, equipment and storage medium
CN106851023B (en) Method and equipment for quickly making call and mobile terminal
CN112667868B (en) Data detection method and device
CN116303086A (en) End-to-end testing method, configuration method, device, equipment and storage medium
CN109240986B (en) Log processing method and device and storage medium
CN118349540B (en) Quick fitting method, device and equipment for database structure and storage medium
CN106657278B (en) Data transmission method and device and computer equipment
CN117539460B (en) Data set editing processing method and system
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN111309605B (en) Terminal test method and device, storage medium and terminal equipment
CN116501413A (en) Automatic generation interface calling method, device, equipment and storage medium
CN111382335B (en) Data pulling method and device and storage medium
CN116303060A (en) ESB call request processing method, device, system, equipment and storage medium
CN118331665A (en) Linux application screen capturing method, device, equipment and storage medium
CN107066116B (en) Character string generation method, character analysis method and device
CN117634145A (en) Multi-dimensional simulation method and system based on digital twin
CN116680188A (en) Data processing method, device, equipment and computer readable storage medium
CN115905008A (en) Method, device, equipment and storage medium for automatically generating test case
CN116862473A (en) Bank production application calling relation analysis method, device, equipment and storage 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