CN115495383A - Data pushing method and device, storage medium and electronic equipment - Google Patents

Data pushing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115495383A
CN115495383A CN202211305593.3A CN202211305593A CN115495383A CN 115495383 A CN115495383 A CN 115495383A CN 202211305593 A CN202211305593 A CN 202211305593A CN 115495383 A CN115495383 A CN 115495383A
Authority
CN
China
Prior art keywords
code data
test case
information
data
target
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
CN202211305593.3A
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 CN202211305593.3A priority Critical patent/CN115495383A/en
Publication of CN115495383A publication Critical patent/CN115495383A/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/3684Test management for test design, e.g. generating new test cases

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 provides a data pushing method, a data pushing device, a storage medium and electronic equipment, when a code data modification instruction is detected, modified code data corresponding to the code data is firstly obtained, target test case information corresponding to the modified code data is then determined, the target test case information and the modified code data are then input into a data storage module in which at least one piece of test case information and corresponding original code data are stored to obtain comparison information, when the comparison information meets a preset maintenance condition, code data to be maintained is generated based on the comparison information, and finally maintenance information is generated based on the code data to be maintained and is pushed to user equipment of a target user. The comparison information is automatically generated based on the modified code data, and the maintenance information is generated to remind maintenance personnel when the comparison information meets the preset maintenance condition, so that the maintenance personnel can maintain the test script codes before executing the test case, and the test script maintenance efficiency is effectively improved.

Description

Data pushing method and device, storage medium and electronic equipment
Technical Field
The present application relates to financial technologies and other related technologies, and in particular, to a data pushing method and apparatus, a storage medium, and an electronic device.
Background
With the development of software testing technology, the automated testing is more and more emphasized by people. The automatic test means that before the product is on line, the test behavior of human drive is changed into machine execution, and the machine automatically operates the test case according to the execution steps of the test case through the designed test case to output a result, so that the use scene of the real product is simulated.
In order to ensure the testing effect of the automated testing, the testing script is usually required to be maintained in time, for example, because the testing script codes are modified, the testing case is executed abnormally, and therefore, a maintainer is required to adjust the modified testing script codes in time, however, because the maintenance cost of the testing script is high, at present, the maintainer can only judge whether the testing script codes are abnormal according to the execution result of the testing case, that is, the maintainer cannot know the testing script codes to be maintained before executing the testing case, that is, cannot quickly and timely acquire the maintenance measures, so that the situation of untimely maintenance occurs, and the maintenance efficiency of the testing script is low.
Disclosure of Invention
The application provides a data pushing method, a data pushing device, a storage medium and electronic equipment, which are used for relieving the technical problem of low maintenance efficiency of a current test script.
In order to solve the technical problem, the present application provides the following technical solutions:
the application provides a data pushing method, which comprises the following steps:
when a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is obtained;
determining target test case information corresponding to the modified code data;
inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information; the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information;
when the comparison information meets a preset maintenance condition, generating code data to be maintained based on the comparison information;
and generating maintenance information based on the code data to be maintained, and pushing the maintenance information to user equipment of a target user.
Before the step of acquiring modified code data corresponding to the code data modification instruction when the code data modification instruction is detected, the method further includes:
acquiring at least one piece of test case information and original code data corresponding to each piece of test case information;
and correspondingly storing the test case information and the original code data to the data storage module.
The step of collecting at least one piece of test case information and original code data corresponding to each piece of test case information includes:
collecting at least one test case, and marking each test case to obtain a test case identifier;
receiving an original code package name, an original code class name, an original code method name and an original code detail parameter which are captured by a crawler program according to the test case identification;
and taking the test case identification as the test case information, and taking the original code package name, the original code class name, the original code method name and the original code detail parameter as the original code data.
Wherein the step of correspondingly storing the test case information and the original code data to the data storage module comprises:
forming the data storage module based on a primary key storage unit and a secondary key storage unit;
writing the test case identification into the primary key storage unit, and writing the original code package name, the original code class name, the original code method name and the original code detail parameter corresponding to the test case identification into the secondary key storage unit.
Wherein, the target test case information includes a target test case identification, and the step of inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information includes:
inputting the target test case identification and the modified code data into the data storage module to determine the same test case identification through the primary key storage unit, and sending the same test case identification to the secondary key storage unit to acquire target original code data through the secondary key storage unit; the same test case identification comprises the test case identification which is the same as the target test case identification, and the target original code data comprises the original code data corresponding to the same test case identification;
generating code data difference information based on the target original code data and the modified code data;
and taking the code data difference information as the comparison information.
When the comparison information meets a preset maintenance condition, the step of generating code data to be maintained based on the comparison information comprises the following steps:
when the code data difference information represents that the modified code data is different from the target original code data, determining that the comparison information meets the preset maintenance condition, and determining difference code data based on the modified code data and the target original code data;
and taking the difference code data as the code data to be maintained.
The step of generating maintenance information based on the code data to be maintained and pushing the maintenance information to the user equipment of the target user includes:
determining maintenance guidance information based on the code data to be maintained;
and generating the maintenance information according to the code data to be maintained and the maintenance guide information, and sending the maintenance information to the user equipment of the target user.
An embodiment of the present application further provides a data pushing apparatus, including:
the acquisition module is used for acquiring modified code data corresponding to the code data modification instruction when the code data modification instruction is detected;
the determining module is used for determining target test case information corresponding to the modified code data;
the comparison module is used for inputting the target test case information and the modified code data into the data storage module for comparison processing to obtain comparison information; the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information;
the generating module is used for generating code data to be maintained based on the comparison information when the comparison information meets the preset maintenance condition;
and the pushing module is used for generating maintenance information based on the code data to be maintained and pushing the maintenance information to user equipment of a target user.
The embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored in the computer-readable storage medium, and the instructions are adapted to be loaded by a processor to perform the steps in the data pushing method.
The embodiment of the application further provides an electronic device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the data pushing method.
When a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is firstly obtained, target test case information corresponding to the modified code data is then determined, the target test case information and the modified code data are input into a data storage module to be compared and processed to obtain comparison information, wherein at least one piece of test case information and original code data corresponding to each piece of test case information are stored in the data storage module, when the comparison information meets preset maintenance conditions, code data to be maintained are generated based on the comparison information, and finally maintenance information is generated based on the code data to be maintained and is pushed to user equipment of a target user. The comparison information is automatically generated based on the modified code data corresponding to the code data modification instruction, and the maintenance information is generated to be pushed to the user equipment of the target user when the comparison information meets the preset maintenance condition, so that the maintenance personnel can maintain the test script code before executing the test case, the test script maintenance efficiency is effectively improved, and the technical problem of low maintenance efficiency of the current test script is solved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a data pushing method according to an embodiment of the present application.
Fig. 2 is a scene schematic diagram of a data pushing method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data pushing apparatus according to an embodiment of the present application.
Fig. 4 is another schematic structural diagram of a data pushing apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data pushing method and device, a storage medium and electronic equipment.
As shown in fig. 1, fig. 1 is a schematic flow chart of a data pushing method provided in the embodiment of the present application, and a specific flow may be as follows:
s101, when a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is obtained.
The code data modification instruction represents a signal generated when unmodified code data in the test script code is changed to modified code data, and the modified code data are modified test script code data. Optionally, the code data modification instruction is triggered based on a user operation.
Specifically, in order to improve the core competitiveness of an enterprise, an enterprise usually develops a series of software products for related business operated by the enterprise, and in order to ensure that each function of the software product is normal after the software product is on line, before the software product is on line, an automatic test case composed of test script codes is usually compiled by using a programming language according to a certain format, and each automatic test case is executed to simulate an actual use scene of each function of the software product, so that verification of each function of the software product is completed, and thus, whether the execution result of the automatic test case accurately and directly affects whether the product can be on line as scheduled or not is seen, and therefore, it is required to ensure that the test script codes can normally run. Optionally, the modified code data includes a modified code class name, a modified code method name, and a modified code detail parameter.
For example, as shown in fig. 2, a user clicks a "first automated test case" button 2002 in an automated test case management interface 2001, and then jumps to the first automated test case management interface 2003, and if the user unintentionally modifies "getName ()" in a test script code to "getNa ()", a code data modification instruction is automatically generated, and a modified code method name corresponding to the code data modification instruction is obtained: "getNa ()".
Further, before the step S101, the method further includes:
acquiring at least one piece of test case information and original code data corresponding to each piece of test case information;
and correspondingly storing the test case information and the original code data to a data storage module.
The acquisition process of the test case information and the original code data comprises the following steps: the method comprises the steps that firstly, at least one test case is collected by a server, marking processing is carried out on each test case to obtain a test case identification, then, corresponding original code data are captured through a crawler program based on the test case identification, and the original code data are sent to the server, so that the server receives the original code data. Optionally, the test case information includes a test case identification, and the raw code data includes a raw code package name, a raw code class name, a raw code method name, and raw code detail parameters.
For example, a first test case is collected, then the first test case is subjected to marking processing to obtain a first test case identifier of 000001, a crawler program crawls an original code packet name of a test script code corresponding to 000001 to be "com.abc.logic.username", an original code class name to be "Login", an original code method name to be "getName ()", and an original code detail parameter to be "private String user _ name"; private String user password ".
Further, in the process of correspondingly storing the test case information and the original code data in the data storage module, the data storage module may be formed based on the primary key storage unit and the secondary key storage unit, then the test case identifier is written into the primary key storage unit, and the original code package name, the original code class name, the original code method name and the original code detail parameter corresponding to the test case identifier are written into the secondary key storage unit. Optionally, the original code package name, the original code class name, the original code method name, and the original code detail parameter are stored in the secondary key storage unit in the form of key-value pairs, where the values of the key-value pairs are the contents corresponding to the original code package name, the original code class name, the original code method name, and the original code detail parameter, respectively.
And S102, determining target test case information corresponding to the modified code data.
The target test case information is used for representing the automatic test case corresponding to the test script to which the modified code data belongs. Specifically, in the actual application process, the maintenance personnel usually need to combine the functions correspondingly implemented by the test script to perform maintenance on the test script, and for this reason, in this embodiment, the target test case information corresponding to the modified code data is determined in advance according to the modified code data, and the maintenance personnel can determine the functions correspondingly implemented by the test script according to the target test case information.
For example, the modified code method name is "getNa ()", the corresponding first target test case information is obtained, and the maintainer can determine that the function realized by the test script corresponding to the modified code method name "getNa ()" is user identity authentication according to the first target test case information.
And S103, inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information, wherein at least one piece of test case information and original code data corresponding to each piece of test case information are stored in the data storage module.
The original code data is originally written (i.e. unmodified) code data, the comparison information is used for representing the difference between the modified code data and the original code data corresponding to the target test case information, and the test case information includes the target test case information.
Specifically, in order to determine whether the modified code data corresponding to the target test case information affects the execution process of the target test case (for example, causes an execution exception of the target test case), the modified code data needs to be compared with the original code data corresponding to the target test case information to extract a difference therebetween, and whether the difference affects the execution process of the target test case is analyzed.
Further, the target test case information includes a target test case identifier, and the obtaining process of the comparison information specifically includes: firstly, inputting a target test case identifier and modified code data into a data storage module, determining the same test case identifier (the test case identifier which is the same as the target test case identifier) through a main key storage unit, sending the same test case identifier to an auxiliary key storage unit, acquiring target original code data (original code data corresponding to the same test case identifier) through the auxiliary key storage unit, then generating code data difference information based on the target original code data and the modified code data, and using the code data difference information as comparison information.
For example, a target test case identification 000001 and modified code data "getNa ()" are input to the data storage module to determine that the same test case identification is 000001 through the primary key storage unit, and 000001 is sent to the secondary key storage unit to obtain target original code data including an original code package name "com. private String user password ", in which code data difference information is generated based on" getNa () "and" getName () "since modified code data" getNa () "is different from the original code method name" getName () ".
And S104, when the comparison information meets the preset maintenance condition, generating code data to be maintained based on the comparison information.
The preset maintenance condition is a judgment basis for judging whether the modified code data needs to be maintained, and the code data to be maintained is used for representing the difference between the modified code data and the original code data.
Specifically, in consideration that in the actual application process, when code data is modified, the modified content may not affect the execution process of the test case, and thus maintenance of the code data is not required by a maintenance worker, in order to reduce unnecessary maintenance resources, in this embodiment, it is first determined whether the modified code data needs to be maintained, and when it is determined that the modified code data needs to be maintained, a difference between the modified code data and the original code data is highlighted, so that the maintenance worker can quickly and intuitively know the content that needs to be maintained. Optionally, in this embodiment, when the code data difference information represents that the difference between the modified code data and the target original code data may cause the execution of the test case to be abnormal, for example, when an original code class name, an original code method name, or an original code detail parameter corresponding to the modified code data and the target original code data are different, or the modified code data represents a request address or a request packet corresponding to an external http interface, it is determined that the comparison information satisfies a preset maintenance condition, and the difference code data is determined based on the modified code data and the target original code data, and is used as the code data to be maintained.
For example, the modified code method in the modified code data is named as "getNa ()", and the target original code method in the target original data is named as "getName ()", so that it is determined that the comparison information satisfies the preset maintenance condition, the difference content of the two is marked, and the difference content at the marked position is used as the difference code data.
And S105, generating maintenance information based on the code data to be maintained, and pushing the maintenance information to the user equipment of the target user.
The maintenance information comprises code content needing maintenance and maintenance suggestions, and the target user comprises maintenance personnel. Specifically, after the code data to be maintained is determined, the code data needs to be pushed to a maintenance person to take maintenance measures as soon as possible, in this embodiment, in order to improve the maintenance efficiency of the maintenance person, a maintenance guidance information storage module is pre-constructed, a mapping relationship between the code data to be maintained and maintenance guidance information is stored in the maintenance guidance information storage module, and the maintenance guidance information is a relevant suggestion for maintaining the code data to be maintained, so that a maintenance idea is provided for the maintenance person. Specifically, the maintenance guidance information corresponding to the code data to be maintained is determined by querying the maintenance guidance information storage module, then the maintenance information is generated according to the code data to be maintained and the maintenance guidance information, and the maintenance information is sent to the user equipment of the target user.
For example, as shown in fig. 2, a pop-up window control 2004 appears in a first automated test case management interface 2003, a user can automatically jump to a code comparison result interface 2005 by clicking the pop-up window control 2004, and code data to be maintained, in which code difference contents are marked by box components, and maintenance guidance information corresponding to the code data to be maintained are displayed in the code comparison result interface 2005.
According to the data pushing method provided by the application, when a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is firstly obtained, then target test case information corresponding to the modified code data is determined, then the target test case information and the modified code data are input into a data storage module to be compared to obtain comparison information, wherein at least one piece of test case information and original code data corresponding to each piece of test case information are stored in the data storage module, when the comparison information meets preset maintenance conditions, code data to be maintained are generated based on the comparison information, and finally maintenance information is generated based on the code data to be maintained and pushed to user equipment of a target user. The comparison information is automatically generated based on the modified code data corresponding to the code data modification instruction, and the maintenance information is generated to be pushed to the user equipment of the target user when the comparison information meets the preset maintenance condition, so that the maintenance personnel can maintain the test script code before executing the test case, the test script maintenance efficiency is effectively improved, and the technical problem of low maintenance efficiency of the current test script is solved.
The present embodiment will be further described from the perspective of the data pushing apparatus according to the method described in the above embodiment.
Referring to fig. 3, fig. 3 specifically describes a data pushing apparatus provided in an embodiment of the present application, where the data pushing apparatus may include: the device comprises an acquisition module 10, a determination module 20, a comparison module 30, a generation module 40 and a push module 50, wherein:
(1) Acquisition module 10
The obtaining module 10 is configured to, when a code data modification instruction is detected, obtain modified code data corresponding to the code data modification instruction.
(2) Determination module 20
And the determining module 20 is used for determining the target test case information corresponding to the modified code data.
(3) Alignment module 30
The comparison module 30 is used for inputting the target test case information and the modified code data into the data storage module for comparison processing to obtain comparison information; the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information.
The target test case information includes a target test case identifier, and the comparison module 30 is specifically configured to:
inputting the target test case identification and the modified code data into a data storage module to determine the same test case identification through a primary key storage unit, and sending the same test case identification to a secondary key storage unit to acquire target original code data through the secondary key storage unit; the same test case identification comprises a test case identification which is the same as the target test case identification, and the target original code data comprises original code data corresponding to the same test case identification;
generating code data difference information based on the target original code data and the modified code data;
and taking the code data difference information as comparison information.
(4) Generating module 40
And the generating module 40 is used for generating the code data to be maintained based on the comparison information when the comparison information meets the preset maintenance condition.
The generating module 40 is specifically configured to:
when the code data difference information represents that the modified code data and the target original code data have difference, determining that the comparison information meets a preset maintenance condition, and determining the difference code data based on the modified code data and the target original code data;
and taking the difference code data as code data to be maintained.
(5) Push module 50
And the pushing module 50 is configured to generate maintenance information based on the code data to be maintained, and push the maintenance information to the user equipment of the target user.
The pushing module 50 is specifically configured to:
determining maintenance guidance information based on code data to be maintained;
and generating maintenance information according to the code data to be maintained and the maintenance guide information, and sending the maintenance information to the user equipment of the target user.
As shown in fig. 4, fig. 4 is another schematic structural diagram of the data pushing apparatus provided in the embodiment of the present application, and the apparatus further includes an acquisition module 60.
Wherein, the collecting module 60 is specifically configured to:
acquiring at least one piece of test case information and original code data corresponding to each piece of test case information;
and correspondingly storing the test case information and the original code data to a data storage module.
In particular, the acquisition module 60 is further configured to:
collecting at least one test case, and marking each test case to obtain a test case identifier;
receiving an original code package name, an original code class name, an original code method name and an original code detail parameter which are captured by a crawler program according to a test case identifier;
and taking the test case identification as test case information, and taking the original code package name, the original code class name, the original code method name and the original code detail parameter as original code data.
Further, the acquisition module 60 is further configured to:
forming a data storage module based on the primary key storage unit and the secondary key storage unit;
and writing the test case identification into the main key storage unit, and writing the original code packet name, the original code class name, the original code method name and the original code detail parameter corresponding to the test case identification into the auxiliary key storage unit.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, when a code data modification instruction is detected, the data pushing apparatus provided in the present application first obtains modified code data corresponding to the code data modification instruction through the obtaining module 10, then determines target test case information corresponding to the modified code data through the determining module 20, then inputs the target test case information and the modified code data into the data storage module through the comparing module 30 for comparison processing to obtain comparison information, where at least one test case information and original code data corresponding to each test case information are stored in the data storage module, generates code data to be maintained based on the comparison information through the generating module 40 when the comparison information meets a preset maintenance condition, and finally generates maintenance information based on the code data to be maintained through the pushing module 50 and pushes the maintenance information to the user equipment of the target user. The comparison information is automatically generated based on the modified code data corresponding to the code data modification instruction, and the maintenance information is generated to be pushed to the user equipment of the target user when the comparison information meets the preset maintenance condition, so that the maintenance personnel can maintain the test script code before executing the test case, the test script maintenance efficiency is effectively improved, and the technical problem of low maintenance efficiency of the current test script is solved.
Correspondingly, the embodiment of the invention also provides a data pushing system which comprises any one of the data pushing devices provided by the embodiment of the invention, and the data pushing device can be integrated in the electronic equipment.
When a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is obtained; determining target test case information corresponding to the modified code data; inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information, wherein the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information; when the comparison information meets the preset maintenance condition, generating code data to be maintained based on the comparison information; and generating maintenance information based on the code data to be maintained, and pushing the maintenance information to the user equipment of the target user.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the data push system may include any data push device provided in the embodiment of the present invention, the beneficial effects that can be achieved by any data push device provided in the embodiment of the present invention can be achieved, for details, see the foregoing embodiment, and are not described herein again.
In addition, the embodiment of the application also provides electronic equipment, and the electronic equipment can be equipment such as a smart phone or a computer. As shown in fig. 5, the electronic device 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the electronic device 500, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by running or loading an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions:
when a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is obtained;
determining target test case information corresponding to the modified code data;
inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information, wherein the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information;
when the comparison information meets the preset maintenance condition, generating code data to be maintained based on the comparison information;
and generating maintenance information based on the code data to be maintained, and pushing the maintenance information to the user equipment of the target user.
Fig. 6 shows a specific structural block diagram of an electronic device provided in an embodiment of the present invention, where the electronic device may be used to implement the data pushing method provided in the foregoing embodiment.
The RF circuit 610 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuit 610 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 610 may communicate with various networks such as the internet, intranets, wireless networks, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Data GSM Environment (EDGE), wideband Code Division Multiple Access (WCDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), wireless Fidelity (Wi-Fi) (such as IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), internet telephony (VoIP), world Interoperability for Microwave, and other suitable protocols for instant messaging, including any other protocols not currently developed.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing, i.e., implement the function of storing 5G capability information, by operating the software programs and modules stored in the memory 620. The memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 620 can further include memory located remotely from the processor 680, which can be connected to the electronic device 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in FIG. 6 the touch sensitive surface 631 and the display panel 641 are implemented as two separate components, in some embodiments the touch sensitive surface 631 and the display panel 641 may be integrated to implement input and output functionality.
The electronic device 600 may also include at least one sensor 650, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 641 and/or the backlight when the electronic device 600 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the electronic device 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and electronic device 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 and output the audio signal; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of peripheral headphones with the electronic device 600.
The electronic device 600, via the transport module 670 (e.g., a Wi-Fi module), may assist a user in emailing, browsing web pages, accessing streaming media, etc., which provides wireless broadband internet access to the user. Although fig. 6 shows the transmission module 670, it is understood that it does not belong to the essential constitution of the electronic device 600 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the electronic device 600, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
Electronic device 600 also includes a power supply 690 (e.g., a battery) that provides power to the various components, and in some embodiments may be logically coupled to processor 680 via a power management system that may perform functions such as managing charging, discharging, and power consumption. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 600 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the electronic device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is obtained;
determining target test case information corresponding to the modified code data;
inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information, wherein the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information;
when the comparison information meets the preset maintenance condition, generating code data to be maintained based on the comparison information;
and generating maintenance information based on the code data to be maintained, and pushing the maintenance information to the user equipment of the target user.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the data pushing methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any data pushing method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any data pushing method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the scope of the appended claims.

Claims (10)

1. A data pushing method, comprising:
when a code data modification instruction is detected, modified code data corresponding to the code data modification instruction is obtained;
determining target test case information corresponding to the modified code data;
inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information; the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information;
when the comparison information meets a preset maintenance condition, generating code data to be maintained based on the comparison information;
and generating maintenance information based on the code data to be maintained, and pushing the maintenance information to user equipment of a target user.
2. The data pushing method according to claim 1, further comprising, before the step of acquiring modified code data corresponding to the code data modification instruction when the code data modification instruction is detected, the step of:
acquiring at least one piece of test case information and original code data corresponding to each piece of test case information;
and correspondingly storing the test case information and the original code data to the data storage module.
3. The data pushing method according to claim 2, wherein the step of collecting at least one piece of test case information and the original code data corresponding to each piece of test case information includes:
collecting at least one test case, and marking each test case to obtain a test case identifier;
receiving an original code package name, an original code class name, an original code method name and an original code detail parameter which are captured by a crawler program according to the test case identification;
and taking the test case identification as the test case information, and taking the original code package name, the original code class name, the original code method name and the original code detail parameter as the original code data.
4. The data pushing method according to claim 3, wherein the step of correspondingly storing the test case information and the original code data in the data storage module comprises:
forming the data storage module based on a primary key storage unit and a secondary key storage unit;
writing the test case identification into the primary key storage unit, and writing the original code package name, the original code class name, the original code method name and the original code detail parameter corresponding to the test case identification into the secondary key storage unit.
5. The data pushing method of claim 4, wherein the target test case information includes a target test case identifier, and the step of inputting the target test case information and the modified code data into a data storage module for comparison processing to obtain comparison information includes:
inputting the target test case identification and the modified code data into the data storage module to determine the same test case identification through the primary key storage unit, and sending the same test case identification to the secondary key storage unit to acquire target original code data through the secondary key storage unit; the same test case identification comprises the test case identification which is the same as the target test case identification, and the target original code data comprises the original code data corresponding to the same test case identification;
generating code data difference information based on the target original code data and the modified code data;
and taking the code data difference information as the comparison information.
6. The data pushing method according to claim 5, wherein the step of generating the code data to be maintained based on the comparison information when the comparison information satisfies a preset maintenance condition includes:
when the code data difference information represents that the modified code data is different from the target original code data, determining that the comparison information meets the preset maintenance condition, and determining difference code data based on the modified code data and the target original code data;
and taking the difference code data as the code data to be maintained.
7. The data pushing method according to claim 6, wherein the step of generating maintenance information based on the code data to be maintained and pushing the maintenance information to the user equipment of the target user comprises:
determining maintenance guidance information based on the code data to be maintained;
and generating the maintenance information according to the code data to be maintained and the maintenance guide information, and sending the maintenance information to the user equipment of the target user.
8. A data pushing apparatus, comprising:
the acquisition module is used for acquiring modified code data corresponding to the code data modification instruction when the code data modification instruction is detected;
the determining module is used for determining target test case information corresponding to the modified code data;
the comparison module is used for inputting the target test case information and the modified code data into the data storage module for comparison processing to obtain comparison information; the data storage module stores at least one piece of test case information and original code data corresponding to each piece of test case information;
the generating module is used for generating code data to be maintained based on the comparison information when the comparison information meets the preset maintenance condition;
and the pushing module is used for generating maintenance information based on the code data to be maintained and pushing the maintenance information to user equipment of a target user.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the steps of the data pushing method according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the data pushing method according to any one of claims 1 to 7.
CN202211305593.3A 2022-10-24 2022-10-24 Data pushing method and device, storage medium and electronic equipment Pending CN115495383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211305593.3A CN115495383A (en) 2022-10-24 2022-10-24 Data pushing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211305593.3A CN115495383A (en) 2022-10-24 2022-10-24 Data pushing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115495383A true CN115495383A (en) 2022-12-20

Family

ID=84475180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211305593.3A Pending CN115495383A (en) 2022-10-24 2022-10-24 Data pushing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115495383A (en)

Similar Documents

Publication Publication Date Title
CN109947650B (en) Script step processing method, device and system
CN108039963B (en) Container configuration method and device and storage medium
CN106649126B (en) Method and device for testing application program
CN111078556B (en) Application testing method and device
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
CN112749074B (en) Test case recommending method and device
CN112415367A (en) Drive chip abnormality detection method and device, electronic equipment and readable storage medium
CN110069407B (en) Function test method and device for application program
CN111273955A (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN110765085A (en) Log information writing method, system, storage medium and mobile terminal
CN110198324B (en) Data monitoring method and device, browser and terminal
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN106709330B (en) Method and device for recording file execution behaviors
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN114064447B (en) Interface testing method and device, storage medium and terminal
CN115495383A (en) Data pushing method and device, storage medium and electronic equipment
CN114518718A (en) Device control method, device, storage medium and electronic device
CN112667868A (en) Data detection method and device
CN110716908A (en) Log information writing method, system, storage medium and mobile terminal
CN117033083B (en) Data backup method, system and storage medium
CN114095585B (en) Data transmission method, device, storage medium and electronic equipment
CN115981631A (en) Code management method, device, storage medium and electronic equipment
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN115113910A (en) Block chain drive management method, block chain drive management device 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