CN116521552A - Method, device and equipment for acquiring test defects and readable storage medium - Google Patents

Method, device and equipment for acquiring test defects and readable storage medium Download PDF

Info

Publication number
CN116521552A
CN116521552A CN202310491804.5A CN202310491804A CN116521552A CN 116521552 A CN116521552 A CN 116521552A CN 202310491804 A CN202310491804 A CN 202310491804A CN 116521552 A CN116521552 A CN 116521552A
Authority
CN
China
Prior art keywords
recording
defect
data
script
test
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
CN202310491804.5A
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.)
Shanghai Weimeng Enterprise Development Co ltd
Original Assignee
Shanghai Weimeng Enterprise Development 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 Shanghai Weimeng Enterprise Development Co ltd filed Critical Shanghai Weimeng Enterprise Development Co ltd
Priority to CN202310491804.5A priority Critical patent/CN116521552A/en
Publication of CN116521552A publication Critical patent/CN116521552A/en
Pending legal-status Critical Current

Links

Classifications

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

Abstract

The application discloses a method, a device, equipment and a readable storage medium for acquiring test defects, which are applied to the field of software testing and comprise the following steps: acquiring a system to be tested, and adding a recording script into the system to be tested; recording script is utilized to obtain recording data of the defect test process; and sending the recorded data to the collaboration platform. According to the method and the system, the recording script is injected into the software system, defects in the testing process are recorded through the recording script and fed back to the developer, so that the communication efficiency between the developer and the tester is improved, the tester can fill out defect descriptions conveniently, and when a processor looks up the defect descriptions, the processor can look up the defects through recording and playing back pages, and the defect generation reasons can be analyzed accurately.

Description

Method, device and equipment for acquiring test defects and readable storage medium
Technical Field
The present invention relates to the field of software testing, and in particular, to a method, an apparatus, a device, and a readable storage medium for acquiring a test defect.
Background
The conventional test defect acquisition method is that after a test engineer discovers a defect (bug), a text description of the defect, a module, a type, a title, a text description of a reproduction step, a system parameter (page url, a related interface, etc.), and defect information of a handler are input into a corresponding collaboration platform (Buddha's channel, TAPD, etc.), but because the text description of the defect and the text description of the reproduction step of the defect are difficult, the problem is difficult to comprehensively describe, or the software running environments (various differences such as browser kernel, browser version, operating system, etc.) are different, compatibility problems are easy to occur, and when the handler removes the defect, the defect cannot be reproduced according to the reproduction step due to the various problems. Moreover, the development engineer needs many system parameters to check the reasons, but these system parameters are the internal logic of the development of the software development engineer, and the test engineer may not correctly recognize all of them into the description. Therefore, when defects are reproduced and the defect causes are checked, the cooperative communication cost of a test engineer and a development engineer is increased, and the efficiency is reduced.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, apparatus, device and readable storage medium for obtaining a test defect, which solve the problem that in the prior art, a developer and a tester communicate with each other difficultly, and the defect is difficult to describe.
In order to solve the above technical problems, the present application provides a method for obtaining a test defect, including:
acquiring a system to be tested, and adding a recording script into the system to be tested;
recording data in the defect testing process is obtained by using the recording script;
and sending the recorded data to a collaboration platform.
Optionally, the obtaining the recording data of the defect testing process by using the recording script includes:
when the system to be tested starts to be tested, continuously recording page elements by using the recording script to obtain initial recording data;
when receiving an instruction for submitting recorded data, acquiring current time and a preset time period;
intercepting the initial recording data according to the current time and the preset time period to obtain the recording data.
Optionally, the recording the page element continuously by using the recording script to obtain the initial recording data includes:
and continuously recording the page element to obtain a full DOM element structure, an incremental DOM element structure and automatically collected system parameters to form the initial recording data, wherein the system parameters at least comprise a software running environment.
Optionally, the sending the recording data to a collaboration platform further includes:
analyzing the recorded data to obtain a playback link, system parameters and defects of the recorded data;
and recording the playback links, the system parameters and the visual reproduction steps of the defects into defect descriptions.
Optionally, the step of analyzing the recorded data to obtain a visual reproduction of the defect includes:
when a playback instruction of the recorded video is received, reading the recorded data to obtain a full DOM element structure, and performing initialization rendering;
and continuing to read the recorded data to obtain an incremental DOM element structure, and modifying the DOM element which is initialized and rendered according to the incremental DOM element structure to achieve the visual reproduction step of the defect.
Optionally, the method further comprises:
and storing the recorded data in a JSON form and storing the recorded data in a recording server.
Optionally, the adding a recording script in the test system includes:
and adding the recording script into the htm l file through the scr ipt tag.
The application also provides an acquisition device for testing defects, which comprises:
the recording script adding module is used for acquiring a system to be tested and adding a recording script into the system to be tested;
the recording data obtaining module is used for obtaining recording data of the defect testing process by utilizing the recording script;
and the recording data transmitting module is used for transmitting the recording data to the collaboration platform.
The application also provides an acquisition device for testing defects, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the method for acquiring the test defects when executing the computer program.
The present application also provides a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described test defect acquisition method.
Therefore, the method and the device have the advantages that the system to be tested is obtained, and the recording script is added in the system to be tested; recording script is utilized to obtain recording data of the defect test process; and sending the recorded data to the collaboration platform. According to the method and the system, the recording script is injected into the software system, defects in the testing process are recorded through the recording script and fed back to the developer, so that the communication efficiency between the developer and the tester is improved, the tester can fill out defect descriptions conveniently, and when a processor looks over the defect descriptions, the processor can look over the defects through recording and playing back pages, and the defect generation reasons can be analyzed accurately.
In addition, the application also provides a device and equipment for acquiring the test defects and a readable storage medium, and the device and the equipment have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flowchart of a method for obtaining a test defect according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for obtaining a test defect according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus for obtaining a test defect according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for obtaining a test defect according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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, and it is apparent that the described embodiments are only some embodiments of the present application, but 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 traditional test defect acquisition method is that after a test engineer discovers a defect (bug), a defect is recorded in a corresponding collaboration platform (Buddhist channel, TAPD (Tencent Agile Product Development) Tech agility collaboration platform and the like), and recorded information comprises a module to which the defect belongs, a defect type, a defect title, a text description of the defect, a reproduction step of the defect, system parameters (for example, page url, related interfaces and the like) and a handler. The uniform resource locator (Uniform Resource Locator, URL) is a concise representation of the location and access method of resources available on the internet, and is the address of standard resources on the internet. Conventional methods of acquiring test defects have many problems, such as:
(1) The text description of the defects is difficult, and the problem expression is difficult to describe comprehensively;
(2) For the defect reproduction step, the text description is difficult, and the problem representation is difficult to comprehensively describe.
(3) When a handler removes the defect, the defect may not be reproduced according to the reproduction step of the defect. The following reasons may exist: the software running environments are different (various differences such as browser kernel, browser version, operating system and the like), compatibility problems are easy to occur, and defect reproduction cannot be realized; the handler may need many system parameters (page url, related interfaces, etc.) to troubleshoot the cause, but these are the internal logic of the development of the software development engineer, which the test engineer cannot correctly identify to enter all of them into the description.
In view of the foregoing, the present application proposes a method for acquiring a test defect, and specifically please refer to fig. 1, fig. 1 is a flowchart of a method for acquiring a test defect provided in an embodiment of the present application. The method may include:
s101: and obtaining the system to be tested, and adding a recording script into the system to be tested.
The execution body of the embodiment is a processor. The embodiment introduces a recording script into the system to be tested. The embodiment does not limit the method for introducing the recording script. For example, the developer can be allowed to build the recording script into the system; or may also introduce the recording script through a browser plug-in.
Further, in order to introduce the recording script more quickly and efficiently, the adding the recording script in the system to be tested may include the following steps:
and adding a recording script into the html file through a script tag.
In this embodiment, html files can be read by various web browsers, and script is an executable file written according to a certain format using a specific descriptive language.
S102: and obtaining recorded data of the defect testing process by using the recording script.
The present embodiment is not limited to the method of recording the defect test procedure using the recording script. For example, the test procedure may be recorded at all times; or the test process can be intercepted, and only one section of the test process comprising the defect can be intercepted.
Further, in order to save resources and improve testing efficiency, the obtaining the recording data of the defect testing process by using the recording script may include the following steps:
step 21: when a system to be tested starts to be tested, recording page elements continuously by using a recording script to obtain initial recording data;
step 22: when receiving an instruction for submitting recorded data, acquiring current time and a preset time period;
step 23: and intercepting the initial recorded data according to the current time and the preset time period to obtain the recorded data.
According to the embodiment, a recording script is introduced into a system to be tested, when testing is carried out, the recording script continuously records page elements to obtain initial recording data, when a test engineer finds defects, clicks a data submitting and recording button, when an instruction for recording data is received, namely, the defects are found in the current test, the current time and a preset time period are obtained, the initial recording data are intercepted according to the current time and the preset time period, and accurate and efficient recording data containing the defects are obtained. The present embodiment is not limited to the preset time period. For example, the preset time period may be the first 30 seconds before a defect is found; or the preset time period may also be the first 60 seconds before the defect is found.
Further, in order to record the test process, the recording of the page element by using the recording script to obtain the initial recording data may include the following steps:
and continuously recording the page elements to obtain a full DOM element structure, an incremental DOM element structure and automatically collected system parameters to form initial recording data, wherein the system parameters at least comprise a software running environment.
Further, in order to store the data, the method for facilitating the later checking of defects may further include the following steps, which may specifically include:
and storing the recorded data in a JSON form and storing the recorded data in a recording server.
In this embodiment, the recording script is introduced into the system to be tested to immediately take effect, and continuously monitors and records the variation of DOM (document object model) elements in the page, and inserts a submit recording data button into the system to be tested, and when submitting, the record script saves the full DOM element structure and the incremental DOM element structure in the form of JSON (JavaScriptObjectNotation, JS object numbered musical notation, which is a lightweight data exchange format) in the recording server, and additionally saves some automatically collected system parameters (page url, related interfaces, etc.). Wherein, the full DOM element structure can be referred to: [ { tag: "html", attrs: { class: "xxx", attrA: "xxx" }; tag = tag name, attrs = attribute set; the incremental DOM element structure can be referred to: [ { time: 167947149979, mutationrecord: { } ]. time = timestamp of change occurrence, mationRecord = change content; the system parameters can be referred to as: { brown, brown version, traceList: [ "traceId1", "traceIdn" ]; browser = browser, browser version = browser version, traceList = APM system stored interface call unique ID. Wherein the recording server exposes 2 interfaces, one for recording scripts and the other for playing back recording pages. Specifically, the storage interface is used for receiving the recorded data, generating a unique id (code) and storing the query interface, and reading the recorded data by using the unique id (playback record link url) and returning the record data.
S103: and sending the recorded data to the collaboration platform.
In this embodiment, the recorded data is sent to the collaboration platform for the handler to view the defect.
Further, in order to facilitate the handling of the defect, after the recording data is sent to the collaboration platform, the method may further include the following steps:
step 41: analyzing the recorded data to obtain a playback link, system parameters and defects of the recorded data;
step 42: visual reproduction steps of playback links, system parameters and defects are entered into the defect description.
When a test engineer discovers a defect, a defect is usually manually created in a collaboration system, and a module to which the defect belongs, the type of the defect, the title of the defect, a text description of the defect and a handler are recorded. On the basis of the method, recorded videos are automatically analyzed, and the visual reproduction steps, system parameters and recorded playback pages url of defects are obtained and provided for a software development engineer to check.
Further, in order to visualize the defect reproduction step, the step of analyzing the recorded data to obtain the defect visual reproduction step may include the following steps:
step 51: when a playback instruction for recording video is received, reading the recording data to obtain a full DOM element structure, and performing initialization rendering;
step 52: and continuously reading the recorded data to obtain an incremental DOM element structure, and modifying the DOM element which is initialized and rendered according to the incremental DOM element structure to achieve the visual reproduction step of the defect.
When receiving a query instruction sent by a processor, namely recording a playback instruction of a video, the embodiment starts to read recorded data to obtain a full DOM element structure, performs initialization rendering, continues to read the recorded data to obtain incremental DOM element data, calculates the time for triggering next modification according to the time of subtracting the last incremental data from the current time, and modifies the rendered DOM element according to the change content after the triggering time, so as to realize the reproduction step of visual defects in a video-like manner. In addition, system parameters can be displayed in the page to assist a person in checking the cause of the defect.
By applying the method for acquiring the test defects, which is provided by the embodiment of the application, a system to be tested is acquired, and a recording script is added in the system to be tested; recording script is utilized to obtain recording data of the defect test process; and sending the recorded data to the collaboration platform. According to the method and the system, the recording script is injected into the software system, defects in the testing process are recorded through the recording script and fed back to the developer, so that the communication efficiency between the developer and the tester is improved, the tester can fill out defect descriptions conveniently, and when a processor looks up the defect descriptions, the processor can look up the defects through recording and playing back pages, and the defect generation reasons can be analyzed accurately. In addition, the recorded script is added into the html file through the script tag, so that the recorded video can be introduced more simply and efficiently; moreover, the video is intercepted according to the preset time period, so that resources can be saved and the testing efficiency can be improved; in addition, the recorded video comprises system parameters, and the system parameters at least comprise software running environments, so that incompatibilities brought by the software running environments can be eliminated when the later defects are restored; and the recorded video is automatically analyzed to obtain a playback link, system parameters and a visual reproduction step of the defect, the visual reproduction step is written into the defect description, recorded data are stored in a recording server, and when the recorded data are checked, the recorded data can be checked according to the playback link in the defect description.
For easier understanding of the present application, please refer to fig. 2 specifically, fig. 2 is a flowchart illustrating a method for obtaining a test defect according to an embodiment of the present application, which may specifically include:
introducing a test script for the software to be tested, and testing a system to be tested by a test engineer by using the test script, wherein in the test process, page elements are recorded; when the defect is found, the defect is created on the collaboration platform, the intercepted recording data are stored in the recording server, the recording data are analyzed to obtain the description of the module, the type, the title and the defect, the processor, the system parameters (page url, related interfaces, software environment and the like) and the recording playback page url, and the information obtained through analysis is used for creating the description information of the defect. When a development engineer checks the defect, the description information of the created defect can be checked on the collaboration platform, and the recorded video corresponding to the defect is searched from the recording server for playback by using the recording playback page url.
According to the embodiment, a section of recording script is injected into the test system, a recording function is added for the test system, when a test engineer finds a defect, recorded content is submitted and stored to the server, and then a playback recorded link is recorded into defect description, so that the cooperative communication cost of the test engineer and a software development engineer can be reduced, the defect recording efficiency of the test engineer is improved, and the steps of automatically recording system parameters and visually describing the defect reproduction can be achieved.
The following describes the device for acquiring a test defect provided in the embodiment of the present application, and the device for acquiring a test defect described below and the method for acquiring a test defect described above may be referred to correspondingly.
Referring to fig. 3 specifically, fig. 3 is a schematic structural diagram of an apparatus for obtaining a test defect according to an embodiment of the present application, which may include:
the recording script adding module 100 is used for acquiring a system to be tested and adding a recording script into the system to be tested;
a recording data obtaining module 200, configured to obtain recording data of a defect testing process by using the recording script;
and the recording data transmitting module 300 is used for transmitting the recording data to the collaboration platform.
Based on the above embodiment, the recording data obtaining module 200 may include:
the recording unit is used for continuously recording page elements by utilizing the recording script when the system to be tested starts to be tested, so as to obtain initial recording data;
the acquisition unit is used for acquiring the current time and a preset time period when receiving an instruction for submitting recording data;
and the intercepting unit is used for intercepting the initial recorded data according to the current time and the preset time period to obtain the recorded data.
Based on the above embodiment, the recording unit may include:
and the recording subunit is used for continuously recording the page element to obtain a full DOM element structure, an incremental DOM element structure and automatically collected system parameters to form the initial recording data, wherein the system parameters at least comprise a software running environment.
Based on the above embodiment, the device for acquiring a test defect may further include:
the analysis module is used for analyzing the recorded data to obtain a playback link, system parameters and defects of the recorded data;
and the recording module is used for recording the visual reproduction steps of the playback link, the system parameters and the defects into defect descriptions.
Based on the above embodiment, the step of analyzing the recorded data in the analysis module to obtain the visual reproduction of the defect may include:
the first reading and rendering unit is used for reading the recorded data to obtain a full DOM element structure and performing initialization rendering when receiving a playback instruction of the recorded video;
and the second reading and rendering unit is used for continuously reading the recorded data to obtain an incremental DOM element structure, and modifying the DOM element which is initialized to be rendered according to the incremental DOM element structure so as to achieve the visual reproduction step of the defect.
Based on the above embodiment, the device for acquiring a test defect may further include:
and the storage module is used for storing the recorded data in a JSON form and storing the recorded data in a recording server.
Based on the above embodiment, the recording script adding module 100 may include:
and the adding unit is used for adding the recording script into the html file through the scr ipt tag.
It should be noted that, the modules and units in the device for acquiring test defects can change the sequence of the modules and units before and after the modules and units do not affect the logic.
By applying the device for acquiring the test defects provided by the embodiment of the application, the recording script adding module 100 is used for acquiring a system to be tested and adding a recording script into the system to be tested; a recording data obtaining module 200, configured to obtain recording data of the defect testing process by using a recording script; and the recording data transmitting module 300 is used for transmitting the recording data to the collaboration platform. According to the method and the system, the recording script is injected into the software system, defects in the testing process are recorded through the recording script and fed back to the developer, so that the communication efficiency between the developer and the tester is improved, the tester can fill out defect descriptions conveniently, and when a processor looks over the defect descriptions, the processor can look over the defects through recording and playing back pages, and the defect generation reasons can be analyzed accurately. In addition, the recorded script is added into the html file through the script tag, so that the recorded video can be introduced more simply and efficiently; moreover, the video is intercepted according to the preset time period, so that resources can be saved and the testing efficiency can be improved; in addition, the recorded video comprises system parameters, and the system parameters at least comprise software running environments, so that incompatibilities brought by the software running environments can be eliminated when the later defects are restored; and the recorded video is automatically analyzed to obtain a playback link, system parameters and a visual reproduction step of the defect, the visual reproduction step is written into the defect description, recorded data are stored in a recording server, and when the recorded data are checked, the recorded data can be checked according to the playback link in the defect description.
The following describes a test defect acquiring apparatus provided in the embodiments of the present application, and the test defect acquiring apparatus described below and the test defect acquiring method described above may be referred to correspondingly.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a defect test acquisition apparatus according to an embodiment of the present application, which may include:
a memory 10 for storing a computer program;
a processor 20 for executing a computer program to implement the above-described method for acquiring a test defect.
Memory 10, processor 20, communication interface 31, and communication bus 32. The memory 10, the processor 20, and the communication interface 31 all communicate with each other via a communication bus 32.
In the embodiment of the present application, the memory 10 is used to store one or more programs, and the programs may include program codes, where the program codes include computer operation instructions, and in the embodiment of the present application, the memory 10 may store programs for implementing the following functions:
acquiring a system to be tested, and adding a recording script into the system to be tested;
recording script is utilized to obtain recording data of the defect test process;
and sending the recorded data to the collaboration platform.
In one possible implementation, the memory 10 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, and at least one application program required for functions, etc.; the storage data area may store data created during use.
In addition, memory 10 may include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, where the operating instructions may include various operating instructions for performing various operations. The operating system may include various system programs for implementing various basic tasks as well as handling hardware-based tasks.
The processor 20 may be a central processing unit (Central Processing Unit, CPU), an asic, a dsp, a fpga or other programmable logic device, and the processor 20 may be a microprocessor or any conventional processor. The processor 20 may call a program stored in the memory 10.
The communication interface 31 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 4 is not limited to the apparatus for acquiring a test defect in the embodiment of the present application, and the apparatus for acquiring a test defect may include more or less components than those shown in fig. 4, or may be combined with some components in practical applications.
The following describes a readable storage medium provided in an embodiment of the present application, and the readable storage medium described below and the method for acquiring a test defect described above may be referred to correspondingly.
The present application also provides a readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described method for acquiring a test defect.
The readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Finally, it is further noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The foregoing has described in detail the methods, apparatuses, devices and readable storage medium for obtaining test defects provided in the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the methods and core ideas of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. A method for acquiring a test defect, comprising:
acquiring a system to be tested, and adding a recording script into the system to be tested;
recording data in the defect testing process is obtained by using the recording script;
and sending the recorded data to a collaboration platform.
2. The method for obtaining the test defect according to claim 1, wherein obtaining the recording data of the defect test process by using the recording script comprises:
when the system to be tested starts to be tested, continuously recording page elements by using the recording script to obtain initial recording data;
when receiving an instruction for submitting recorded data, acquiring current time and a preset time period;
intercepting the initial recording data according to the current time and the preset time period to obtain the recording data.
3. The method for obtaining the test defect according to claim 2, wherein the recording page elements by using the recording script continuously obtains the initial recording data, includes:
and continuously recording the page element to obtain a full DOM element structure, an incremental DOM element structure and automatically collected system parameters to form the initial recording data, wherein the system parameters at least comprise a software running environment.
4. The method for obtaining a test defect according to claim 1, wherein the sending the recorded data to a collaboration platform further comprises:
analyzing the recorded data to obtain a playback link, system parameters and defects of the recorded data;
and recording the playback links, the system parameters and the visual reproduction steps of the defects into defect descriptions.
5. The method of claim 4, wherein the step of analyzing the recorded data to obtain a visual reproduction of the defect comprises:
when a playback instruction of the recorded video is received, reading the recorded data to obtain a full DOM element structure, and performing initialization rendering;
and continuing to read the recorded data to obtain an incremental DOM element structure, and modifying the DOM element which is initialized and rendered according to the incremental DOM element structure to achieve the visual reproduction step of the defect.
6. The method for acquiring the test defect according to claim 1, further comprising:
and storing the recorded data in a JSON form and storing the recorded data in a recording server.
7. The method for obtaining a test defect according to any one of claims 1 to 6, wherein adding a recording script to the test system includes:
and adding the recording script into the html file through a script tag.
8. An acquisition device for testing defects, comprising:
the recording script adding module is used for acquiring a system to be tested and adding a recording script into the system to be tested;
the recording data obtaining module is used for obtaining recording data of the defect testing process by utilizing the recording script;
and the recording data transmitting module is used for transmitting the recording data to the collaboration platform.
9. An acquisition apparatus for testing defects, comprising:
a memory for storing a computer program;
processor for implementing the steps of the method for acquiring a test defect according to any one of claims 1 to 7 when executing said computer program.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for acquiring a test defect according to any one of claims 1 to 7.
CN202310491804.5A 2023-05-04 2023-05-04 Method, device and equipment for acquiring test defects and readable storage medium Pending CN116521552A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310491804.5A CN116521552A (en) 2023-05-04 2023-05-04 Method, device and equipment for acquiring test defects and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310491804.5A CN116521552A (en) 2023-05-04 2023-05-04 Method, device and equipment for acquiring test defects and readable storage medium

Publications (1)

Publication Number Publication Date
CN116521552A true CN116521552A (en) 2023-08-01

Family

ID=87406032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310491804.5A Pending CN116521552A (en) 2023-05-04 2023-05-04 Method, device and equipment for acquiring test defects and readable storage medium

Country Status (1)

Country Link
CN (1) CN116521552A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756053A (en) * 2023-08-22 2023-09-15 青岛民航凯亚系统集成有限公司 Front-end project test problem reporting distribution method and system based on screen recording playback

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116756053A (en) * 2023-08-22 2023-09-15 青岛民航凯亚系统集成有限公司 Front-end project test problem reporting distribution method and system based on screen recording playback

Similar Documents

Publication Publication Date Title
US9118549B2 (en) Systems and methods for context management
CN108595304B (en) Webpage monitoring method and device
US9203720B2 (en) Monitoring the health of web page analytics code
US7739282B1 (en) Method and system for tracking client software use
US7685260B2 (en) Method for analyzing state transition in web page
EP2089813B1 (en) Diagnostics and error reporting for common tagging issues
US7441010B2 (en) Method and system for determining the availability of in-line resources within requested web pages
US7823164B2 (en) Automated generation of different script versions
US8301720B1 (en) Method and system to collect and communicate problem context in XML-based distributed applications
CN107526676B (en) Cross-system test method and device
CN108459850B (en) Method, device and system for generating test script
JP5476326B2 (en) Web operation recording and reproducing method and apparatus
CN111290951B (en) Test method, terminal, server, system and storage medium
CN106776318A (en) A kind of test script method for recording and system
JP2004362000A (en) Web application development support device, component call monitoring device, data processing method and program
CN116521552A (en) Method, device and equipment for acquiring test defects and readable storage medium
CN103885878A (en) Method and device for generating browser testing script
US8230002B2 (en) Method and system for automatic setup in web-based applications
CN113742551A (en) Dynamic data capture method based on script and puppeteer
CN111078529B (en) Client writing module testing method and device and electronic equipment
CN111124924A (en) API (application program interface) deployment method and device, electronic equipment and storage medium
CN110232019A (en) Page test method and Related product
CN115599361A (en) Software development method, device, equipment and medium
JP6426535B2 (en) Test support apparatus and test support method
CN114205276B (en) Performance test method and device for product management system and electronic equipment

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