CN112199277B - Defect reproduction method, device, equipment and storage medium based on browser - Google Patents

Defect reproduction method, device, equipment and storage medium based on browser Download PDF

Info

Publication number
CN112199277B
CN112199277B CN202011034952.7A CN202011034952A CN112199277B CN 112199277 B CN112199277 B CN 112199277B CN 202011034952 A CN202011034952 A CN 202011034952A CN 112199277 B CN112199277 B CN 112199277B
Authority
CN
China
Prior art keywords
defect
target
script program
browser
behavior data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011034952.7A
Other languages
Chinese (zh)
Other versions
CN112199277A (en
Inventor
康岩基
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011034952.7A priority Critical patent/CN112199277B/en
Publication of CN112199277A publication Critical patent/CN112199277A/en
Application granted granted Critical
Publication of CN112199277B publication Critical patent/CN112199277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • 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 embodiment of the invention discloses a defect reproduction method, device and equipment based on a browser and a storage medium. The method comprises the following steps: in the transaction flow test, recording the operation steps of a tester; obtaining marks of the defect problems by the testers, and determining target operation steps before the defect problems according to the marks; generating a defect record in the target operation step, and generating a defect report according to the defect record; and sending the defect report to a development end so that the development end can reproduce the defect problem according to the defect report. The method can accurately reproduce the defect problem in the business process test, can help developers to quickly and accurately locate the defect problem, and is convenient for repairing the defect in time.

Description

Defect reproduction method, device, equipment and storage medium based on browser
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a defect reproduction method, device and equipment based on a browser and a storage medium.
Background
A browser is an application program for retrieving, exposing, and delivering World Wide Web (Web) information resources. The user can query the associated information via the browser via the hyperlink. With the development of communication technology, a browser is not only a tool for information query, but also a tool for some transaction processing, such as shopping, booking tickets, or completing some workflow.
In the prior art, a transaction flow is developed by a developer, and a tester performs test verification and then issues the test verification to a client. When defects occur in the transaction flow development, the defects can only be repaired by recording through a tester and communicating with a developer.
However, the transaction flow is generally relatively long, the involved operation steps are relatively many, the tester is required to communicate with the developer many times, and the tester cannot clearly and clearly express the defect problem, such as misunderstanding or ambiguity. Therefore, it is difficult for developers to quickly and accurately locate the defect problem and repair the defect.
Disclosure of Invention
The embodiment of the invention provides a defect reproduction method, device, equipment and storage medium based on a browser, which can accurately record defect problems, is convenient for developers to quickly and accurately position the defect problems and repair the defects in time.
In a first aspect, an embodiment of the present invention provides a defect reproduction method based on a browser, where the method includes:
in the transaction flow test, recording the operation steps of a tester;
obtaining marks of a tester on defect problems, and determining target operation steps before the defect problems according to the marks;
Generating a defect record according to the target operation step, and generating a defect report according to the defect record;
and sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report.
In a second aspect, an embodiment of the present invention further provides a defect reproduction method based on a browser, where the method includes:
acquiring a preset test script program file, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps;
executing the test script program according to the preset operation steps to perform transaction flow test, and obtaining actual operation results corresponding to the preset operation steps;
and comparing the target operation result with the actual operation result to determine a defect problem.
In a third aspect, an embodiment of the present invention further provides a defect reproduction apparatus based on a browser, where the apparatus includes:
the operation step recording module is used for recording the operation steps of the testers in the transaction flow test;
the target operation step determining module is used for obtaining marks of the defect problems by the testers and determining target operation steps before the defect problems according to the marks;
The defect report generation module is used for generating a defect record according to the target operation step and generating a defect report according to the defect record;
and the defect report sending module is used for sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report.
In a fourth aspect, an embodiment of the present invention further provides a defect reproduction apparatus based on a browser, where the apparatus includes:
the test script program file acquisition module is used for acquiring a preset test script program file, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps;
the actual operation result acquisition module is used for executing the test script program according to the preset operation steps to carry out transaction flow test and acquiring actual operation results corresponding to the preset operation steps;
and the defect problem determining module is used for comparing the target operation result with the actual operation result to determine a defect problem.
In a fifth aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
Storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a browser-based defect review method in accordance with any embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the program when executed by a processor implements a browser-based defect reproduction method according to any embodiment of the present invention.
According to the technical scheme, in the transaction flow test, the operation steps of a tester are recorded; obtaining marks of the defect problems by the testers, and determining target operation steps before the defect problems according to the marks; generating a defect record in the target operation step, and generating a defect report according to the defect record; the defect report is sent to the development terminal, so that the development terminal can reproduce the defect problem according to the defect report, the defect problem determination problem during the business process test in the browser is solved, the defect problem in the business process test can be accurately recorded and reproduced, developers can be helped to quickly and accurately locate the defect problem, and the effect of repairing the defect in time is facilitated.
Drawings
FIG. 1 is a flowchart of a defect reproduction method based on a browser according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a defect reproduction method based on a browser according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a defect reproduction apparatus based on a browser according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a defect reproduction apparatus based on a browser according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a browser-based defect reproduction method according to an embodiment of the present invention, where the method may be applicable to a case of quickly determining and reproducing a defect problem when a transaction flow test is performed in a browser, and the method may be performed by a browser-based defect reproduction apparatus, where the apparatus may be implemented by software and/or hardware, and where the apparatus may be integrated in an electronic device, such as a server, as shown in fig. 1, and the method specifically includes:
Step 110, in the transaction flow test, the operation steps of the tester are recorded.
A transaction may be a task process based on the completion of the browser, such as shopping, booking, or some other job. The transaction flow may be a process that is undergone upon completion of a task process, such as account logging upon shopping, item searching, item purchase, order payment, order generation, after-market item inquiry, and the like. The transaction flow test may be a test that determines if a defect exists when performing an operation according to the flow of the transaction. The tester may be an operator performing the transaction during the transaction flow test. The operation steps can be various steps to be tested in the transaction flow test, such as steps of account login, ticket booking, order payment, ticket inquiry and the like during ticket booking.
In one implementation of the embodiment of the present invention, optionally, in the transaction flow test, recording the operation steps of the tester includes: in the transaction flow test, the operation steps of a tester are recorded, and browser behavior data corresponding to the operation steps are collected and stored.
Each time a tester executes an operation step, corresponding browser behavior data is generated in the client. The browser behavior data may be log data reflecting the operation of the tester. The server may collect log data of the client as browser behavior data corresponding to the operation steps of the tester. The server may store browser behavior data in a database of the server. The corresponding relation with the operation steps can be reserved when the browser behavior data are stored. The log data may include information such as user information, access address information, access time, request mode, request parameters, clicking operation, and form submitting operation.
Step 120, obtaining marks of the testers on the defect problems, and determining target operation steps before the defect problems according to the marks.
The defect problem may be an abnormality or error in the transaction flow test, for example, a failure to log in normally, a failure to display a verification code, an interest calculation error in a financial transaction, or an abnormal loan evaluation result. The tester can determine whether a defect problem exists by testing the transaction flow, and when the defect problem exists, the tester can mark the operation step corresponding to the defect problem, for example, when the account cannot be normally logged in, the tester can mark the account login step.
The server, upon receiving the tester's marking of the defect issue, may determine all of the operational steps preceding the marked defect issue as target operational steps. For example, the marked operation step is an account login step, and the target operation step may include an opening step of a website and an account login step of the website is determined as the target operation step. For another example, when the defect problem is that the order payment fails, the marked operation step may be an order payment step, and the target operation step may include an opening step of a shopping website, an account login step, an item searching step, an item purchasing step, and an order payment step.
And 130, generating a defect record according to the target operation step, and generating a defect report according to the defect record.
The defect record may include defect problems and target operation steps, for example, a defect record may be a specific step that an account cannot be normally logged in and a tester operates when logging in the account. One or more defect records can be included in the defect report, for example, the defect records can include defect records in which a plurality of account numbers cannot be normally registered, wherein each defect record can be non-repeated; that is, the defect report may include defect records of a plurality of account numbers incapable of normally logging in, each defect record reflects a defect problem that the account numbers cannot normally log in, but specific cases of incapable of normally logging in may have differences, for example, one may be that the account numbers cannot be input, and the other may be that no response is generated after the password is input. The specific situation of the defect record can be distinguished through specific steps operated by a tester when the tester logs in an account.
One or more defect problems can be included in the defect report, for example, the defect report can only include the defect problem that the account cannot be normally logged in; alternatively, the defect report may include a defect problem of an item purchase bill calculation error and a defect problem of an order payment failure. The various defect problems in defect reporting may be problems arising from operations that do not have dependencies. For example, when the account cannot be logged in, the subsequent operation steps cannot be executed, so that the defect report can only record the defect problem that the account cannot be logged in normally, and after the defect problem is solved by the developer, the test after the login operation is performed. As another example, for the defect problem of the article purchase bill calculation error, even if the bill calculation error does not affect whether the order can be paid, therefore, the test can be continued after the defect problem of the article purchase bill calculation error is determined, and the defect report can include the defect problem of the article purchase bill calculation error and the defect problem of the order payment failure.
In order to specifically reflect the difference between the defect records in the defect report, in one implementation of the embodiment of the present invention, optionally, the generating the defect record by the target operation step and generating the defect report according to the defect record includes: determining corresponding browser behavior data according to the target operation steps; and generating a defect report according to the target operation step and the browser behavior data.
When the tester operates in the browser, corresponding browser behavior data are generated in the client. The server can collect browser behavior data of the client, and determine the browser behavior data corresponding to the target operation step according to the corresponding relation between the operation step and the browser behavior data. The defect records can comprise defect problems, target operation steps and browser behavior data corresponding to the target operation steps, so that the difference of each defect record can be more intuitively embodied, and the defect problems can be more accurately reflected.
The defect report can comprise one or more defect records with defect problems, target operation steps and browser behavior data corresponding to the target operation steps, so that a developer can conveniently and directly determine specific defect problems according to the defect report, the developer can accurately know the defect problems according to the browser behavior data in the defect report, the defect problems that specific defect problems cannot be known only through the defect problems and the target operation steps are avoided, for example, for the problem that an account cannot be normally logged in, which link in logging is problematic can be determined through the browser behavior data, such as that a logging key is unavailable, a preset rule of a password is set to be free from distinguishing a case from a case, but in fact, password input is incorrect due to the case problem, and the like.
To facilitate the recurrence of defect problems, in one implementation of the embodiment of the present invention, optionally, generating a defect report according to the target operation steps and browser behavior data includes: determining a target script program segment corresponding to browser behavior data in a script program used for transaction flow testing; and generating a defect report according to the target operation step, the browser behavior data and the target script program segment.
The transaction flow is realized through the execution of the script program. One or more script program segments may be included in the script program, each script program segment implementing each operational step in the transaction flow by running alone or in combination. Each operation step may correspond to one or more script program segments, and the script program segments corresponding to each operation step may be the same or different. The browser behavior data generated by executing each script program segment is also different.
The browser behavior data may include execution conditions of script program segments and jump relations of script program segments, that is, script program segments used for generating the browser behavior data by back-pushing the browser behavior data. The specific implementation manner may be that a mapping relation between browser behavior data and script program segments is preset in a server, and the script program segments used for generating the browser behavior data are determined as target script program segments according to the mapping relation. Alternatively, an analysis program of the browser behavior data may be set in advance, and the server executes the analysis program to analyze the browser behavior data and determine a script program segment used to generate the browser behavior data as a target script program segment.
The defect record may include a defect question, a target operation step, browser behavior data corresponding to the target operation step, and a target script program segment corresponding to the browser behavior data. The defect problem can be reproduced directly according to the target operation steps through the target script program section in the defect record. Browser behavior data facilitates the verification of recurring defect problems by developers. One or more defect records may exist in the defect report having a defect issue, a target operation step, browser behavior data corresponding to the target operation step, and a target script program segment corresponding to the browser behavior data. The defect report can facilitate the concentrated repair of defect problems by developers, does not need to repair defects in real time, and is convenient for the developers to arrange other works.
And 140, sending the defect report to a development end so that the development end can reproduce the defect problem according to the defect report.
The development terminal may be a terminal used by a developer, such as a computer. The developer may be a developer of the transaction flow. The server can send the defect report to the development end, the development end can be provided with an execution module, and the execution module can reproduce the defect problem according to the target operation steps corresponding to the defect records in the defect report. The specific reproduction process may be that the execution module determines each step and the execution sequence in the target operation step, and re-executes the transaction flow at the development end according to the steps and the execution sequence. The defect problem is accurately known by the developer, and because the repeated defect problem is an intuitive result, the situation that misunderstanding and ambiguity occur due to inaccurate description of the tester can not exist. The developer can repair the defects according to the precisely known defect problems. The learning of the defect problem is accurate and quick, and the time of a developer and a tester is saved.
In order to facilitate accurate reproduction of the defect problem by the development terminal, in an embodiment of the present invention, optionally, the defect report is sent to the development terminal, so that the development terminal reproduces the defect problem according to the defect report, including: and sending the defect report to a development end so that the development end reproduces the defect problem according to the target operation according to the target script program segment.
The execution module at the development end can execute the target script program segment according to the target operation steps in each defect record in the defect report, and the defect problem is reproduced. The developer can check the defects through the repeated defect problems and browser behavior data, so that the accuracy of defect determination is ensured.
According to the technical scheme, in the transaction flow test, the operation steps of a tester are recorded; obtaining marks of the defect problems by the testers, and determining target operation steps before the defect problems according to the marks; generating a defect record in the target operation step, and generating a defect report according to the defect record; the defect report is sent to the development terminal, so that the development terminal can reproduce the defect problem according to the defect report, the problem of defect problem reproduction during the transaction flow test in the browser is solved, the defect problem in the transaction flow test can be accurately recorded and reproduced, developers can be helped to quickly and accurately locate the defect problem, and the effect of repairing the defect in time is facilitated. The technical scheme of the embodiment of the invention has obvious effects in the transaction flow test with long transaction flow, more operation steps, strong dependency relationship among test steps and complex test environment, such as the transaction flow test in the financial field.
Example two
Fig. 2 is a flowchart of a defect reproduction method based on a browser, where the method may be applicable to a case of quickly determining and reproducing a defect problem when a transaction flow test is performed in the browser, and the method may be performed by a defect reproduction apparatus based on the browser, where the apparatus may be implemented by software and/or hardware, and where the apparatus may be integrated in an electronic device such as a server, as shown in fig. 2, and the method specifically includes:
step 210, obtaining a preset test script program file.
The test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps. The test script program may include a script program used for the transaction flow test in the above embodiment, and may further include a script program corresponding to the execution sequence of the preset operation steps in the present embodiment, a script program for obtaining an actual operation result, a script program for determining a defect problem, and the like. The preset operation steps may be execution steps and execution sequences of transaction flow tests, for example, the preset operation steps may be to log in a B account number at an a website to search for C items, select D items in the C items to purchase, pay a bill for purchasing the D items, generate an order, perform logistic inquiry or after-sales service, and the like.
Each preset operation step has a target operation result, and the target operation result may be an ideal result of execution of the preset operation step. The form of the target operation result may be various, for example, may be a picture form or a text form, etc.
For example, the target operation result of opening the a website may be the top page of the a website, or keywords of some access interfaces in the a website, etc. For another example, the target operation result of logging in the B account may be an interface on which the B account successfully logs in; alternatively, the target operation result of logging in the B account is successful logging in, welcome B access, etc.
The server may store a test script program file in advance, and the test script program file may be preset by a developer. The server may retrieve the test script program file from memory or database when testing the transaction flow.
Step 220, executing the test script program according to the preset operation steps to test the transaction flow, and obtaining the actual operation results corresponding to the preset operation steps.
After the server obtains the preset test script program file, the test script program can be executed according to the preset operation steps in the test script program file, and the actual operation result after the execution of each preset operation step is determined. The form of the actual operation result may also be varied, and in order to facilitate determination of the defect problem, the form of the actual operation result may be set to coincide with the form of the target operation result. The actual operation result is the actual result of the execution of the preset operation step. For example, the actual operation result of opening the a website may be the top page of the a website or the interface of the a website with failed opening, or keywords of some access interfaces in the a website, or the like, or keywords of the a website with failed opening.
Step 230, comparing the target operation result with the actual operation result to determine the defect problem.
The comparison between the target operation result and the actual operation result may be to determine whether the actual operation result is consistent with the target operation result, and if so, it may be determined that the corresponding preset operation step may be normally executed; if the preset operation steps are inconsistent, the defect problem of the corresponding preset operation steps can be determined. When the preset operation step has a defect problem, the server can mark the preset operation step to indicate that the preset operation step has the defect. The specific form of the server when performing the comparison operation may be determined according to the form of the target operation result and the actual operation result. For example, when the form of the target operation result and the actual operation result is a keyword, the specific form when the server performs the comparison operation may be word recognition; for another example, when the form of the target operation result and the actual operation result is a picture, the specific form when the server performs the comparison operation may be image recognition.
In order to accurately determine the defect problem, in one implementation of the embodiment of the present invention, optionally, the target operation result includes a target operation result picture; the actual operation result comprises an actual operation result picture; comparing the target operation result with the actual operation result to determine a defect problem, including: and carrying out text recognition and/or image recognition on the target operation result picture and the actual operation result picture, and determining the defect problem.
When the execution result of the preset operation step is reflected by the keywords, keyword extraction needs to be performed on the target operation result and the actual operation result, and there may be a problem that extraction is inaccurate or an extraction area is not suitable. And the picture can accurately reflect the execution result of the preset operation step. Therefore, in the present embodiment, both the target operation result and the actual operation result may be represented by pictures. The comparison of the target operation result and the actual operation result may be character recognition, image recognition, or a combination of character recognition and image recognition. The server can accurately determine the defect problem by comparing the target operation result picture with the actual operation result picture, and misunderstanding or ambiguity cannot be caused.
And 240, generating a defect report according to the defect problem, and sending the defect report to a development end so that the development end can reproduce the defect problem according to the defect report.
In order to ensure that the generated defect report more easily reproduces the defect problem, in one implementation of the embodiment of the present invention, optionally, generating the defect report according to the defect problem includes: determining a target preset operation step corresponding to the defect problem, and collecting browser behavior data corresponding to the target preset operation step; determining a target test script program section corresponding to browser behavior data in a test script program; and generating a defect report according to the target preset operation step, the browser behavior data and the target test script program section.
When determining the defect problem, the server may mark the defect problem, for example, may mark a preset operation step corresponding to the defect problem as a target preset operation step. When the server executes the transaction flow test, corresponding browser behavior data is generated. The browser behavior data has a corresponding relation with the execution of the preset operation steps. The server may determine browser behavior data corresponding to the target preset operation step. The description of the browser behavior data may refer to the above embodiments, and will not be repeated. The method for determining the target test script program segment according to the browser behavior data may refer to the method for determining the target script program segment according to the browser behavior data in the above embodiment, which is not described herein.
One or more defect records may be included in the defect report. The defect record may have a defect issue, a target preset operation step corresponding to the defect issue, browser behavior data corresponding to the target preset operation step, and a target test script program segment corresponding to the browser behavior data. Reference is also made to the above embodiments for description of defect reporting and defect recording.
In one implementation of the embodiment of the present invention, optionally, the sending the defect report to the development terminal, so that the development terminal reproduces the defect problem according to the defect report includes: and sending the defect report to a development end so that the development end reproduces the defect problem according to the target preset operation steps according to the target test script program section. The defect problem may be reproduced by referring to the above embodiments, and will not be described herein.
According to the technical scheme, a preset test script program file is obtained, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps; executing a test script program according to preset operation steps to test the transaction flow, and acquiring actual operation results corresponding to the preset operation steps; comparing the target operation result with the actual operation result to determine a defect problem; the defect report is generated according to the defect problems and sent to the development end, so that the development end can reproduce the defect problems according to the defect report, the problem of defect problem reproduction during business process testing in the browser is solved, the defect problems in the business process testing can be accurately recorded and reproduced, the operation of a tester is not needed, the communication between the tester and the developer is also not needed, the labor is saved, the developer can be helped to quickly and accurately position the defect problems, and the effect of repairing the defects in time is facilitated.
Example III
Fig. 3 is a schematic structural diagram of a defect reproduction apparatus based on a browser according to a third embodiment of the present invention. With reference to fig. 3, the apparatus comprises: a procedure logging module 310, a target procedure determination module 320, a defect report generation module 330 and a defect report transmission module 340.
The operation step recording module 310 is configured to record an operation step of a tester in the transaction flow test;
the target operation step determining module 320 is configured to obtain a mark of the defect problem by the tester, and determine a target operation step before the defect problem according to the mark;
a defect report generating module 330, configured to generate a defect record for the target operation step, and generate a defect report according to the defect record;
the defect report sending module 340 is configured to send a defect report to the development end, so that the development end reproduces the defect problem according to the defect report.
Optionally, the operation step recording module 310 includes:
and the operation step recording unit is used for recording the operation steps of the testers in the transaction flow test, and collecting and storing the browser behavior data corresponding to the operation steps.
Optionally, the defect report generating module 330 includes:
The browser behavior data determining unit is used for determining corresponding browser behavior data according to the target operation steps;
and the defect report generating unit is used for generating a defect report according to the target operation step and the browser behavior data.
Optionally, the defect report generating unit is specifically configured to:
determining a target script program segment corresponding to browser behavior data in a script program used for transaction flow testing;
and generating a defect report according to the target operation step, the browser behavior data and the target script program segment.
Optionally, the defect report sending module 340 includes:
and the defect report sending unit is used for sending the defect report to the development end so that the development end can reproduce the defect problem according to the target operation according to the target script program section.
The defect reproduction device based on the browser provided by the embodiment of the invention can execute the defect reproduction method based on the browser provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 is a schematic structural diagram of a defect reproduction apparatus based on a browser according to a fourth embodiment of the present invention. Referring to fig. 4, the apparatus includes: a test script program file acquisition module 410, an actual operation result acquisition module 420 and a defect problem determination module 430.
The test script program file obtaining module 410 is configured to obtain a preset test script program file, where the test script program file includes a test script program, preset operation steps, and target operation results corresponding to the preset operation steps;
the actual operation result obtaining module 420 is configured to execute a test script program according to preset operation steps to perform a transaction flow test, and obtain actual operation results corresponding to the preset operation steps;
the defect problem determination module 430 is configured to compare the target operation result with the actual operation result and determine a defect problem.
Optionally, the apparatus further comprises:
the defect report generating/transmitting module 440 is configured to compare the target operation result with the actual operation result, determine a defect problem, generate a defect report according to the defect problem, and transmit the defect report to the development terminal, so that the development terminal reproduces the defect problem according to the defect report.
Optionally, the defect report generating/transmitting module 440 includes:
the browser behavior data acquisition unit is used for determining a target preset operation step corresponding to the defect problem and acquiring browser behavior data corresponding to the target preset operation step;
The target test script program segment determining unit is used for determining a target test script program segment corresponding to browser behavior data in the test script program;
and the defect report generating unit is used for generating a defect report according to the target preset operation step, the browser behavior data and the target test script program section.
Optionally, the defect report generating/transmitting module 440 includes:
and the defect report sending unit is used for sending the defect report to the development end so that the development end can reproduce the defect problem according to the target preset operation steps according to the target test script program section.
Optionally, the target operation result includes a target operation result picture; the actual operation result comprises an actual operation result picture;
the defect problem determination module 430 includes:
and the defect problem determining unit is used for carrying out character recognition and/or image recognition on the target operation result picture and the actual operation result picture to determine a defect problem.
The defect reproduction device based on the browser provided by the embodiment of the invention can execute the defect reproduction method based on the browser provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example five
Fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention, as shown in fig. 5, where the device includes:
one or more processors 510, one processor 510 being illustrated in fig. 5;
a memory 520;
the apparatus may further include: an input device 530 and an output device 540.
The processor 510, memory 520, input means 530 and output means 540 in the apparatus may be connected by a bus or otherwise, in fig. 5 by way of example.
The memory 520 is a non-transitory computer readable storage medium, and may be used to store a software program, a computer executable program, and modules, such as program instructions/modules corresponding to a browser-based defect reproduction method in an embodiment of the present invention (e.g., the operation step recording module 310, the target operation step determining module 320, the defect report generating module 330, and the defect report transmitting module 340 shown in fig. 3, or the test script program file acquiring module 410, the actual operation result acquiring module 420, and the defect problem determining module 430 shown in fig. 4). The processor 510 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 520, i.e. implements a browser-based defect reproduction method of the above-described method embodiments, namely:
In the transaction flow test, recording the operation steps of a tester;
obtaining marks of a tester on defect problems, and determining target operation steps before the defect problems according to the marks;
generating a defect record according to the target operation step, and generating a defect report according to the defect record;
and sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report. Or alternatively, the process may be performed,
acquiring a preset test script program file, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps;
executing the test script program according to the preset operation steps to perform transaction flow test, and obtaining actual operation results corresponding to the preset operation steps;
and comparing the target operation result with the actual operation result to determine a defect problem.
Memory 520 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 520 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 520 may optionally include memory located remotely from processor 510, which may be connected to the terminal device 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 means 530 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the computer device. The output 540 may include a display device such as a display screen.
Example six
A sixth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a browser-based defect reproduction method as provided in the embodiments of the present invention:
in the transaction flow test, recording the operation steps of a tester;
obtaining marks of a tester on defect problems, and determining target operation steps before the defect problems according to the marks;
generating a defect record according to the target operation step, and generating a defect report according to the defect record;
and sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report. Or alternatively, the process may be performed,
acquiring a preset test script program file, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps;
Executing the test script program according to the preset operation steps to perform transaction flow test, and obtaining actual operation results corresponding to the preset operation steps;
and comparing the target operation result with the actual operation result to determine a defect problem.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A browser-based defect reproduction method, comprising:
in the transaction flow test, recording the operation steps of a tester;
obtaining marks of a tester on defect problems, and determining target operation steps before the defect problems according to the marks;
generating a defect record according to the target operation step, and generating a defect report according to the defect record;
sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report;
In the transaction flow test, the operation steps of the tester are recorded, and the method comprises the following steps:
in the transaction flow test, recording the operation steps of a tester, and collecting and storing browser behavior data corresponding to the operation steps;
wherein, the browser behavior data includes: user information, access address information, access time, request mode, request parameters, clicking operation, form submitting operation, execution condition of script program segment and jump relation of script program segment;
generating a defect record according to the target operation step, and generating a defect report according to the defect record, wherein the defect record comprises the following steps:
determining corresponding browser behavior data according to the target operation step;
generating a defect report according to the target operation step and the browser behavior data;
generating a defect report according to the target operation step and the browser behavior data, wherein the defect report comprises the following steps:
determining a target script program segment corresponding to the browser behavior data in a script program used for the transaction flow test;
and generating a defect report according to the target operation step, the browser behavior data and the target script program segment.
2. The method of claim 1, wherein sending the defect report to a development terminal to cause the development terminal to reproduce the defect problem from the defect report comprises:
and sending the defect report to a development end so that the development end reproduces the defect problem according to the target operation according to the target script program segment.
3. A browser-based defect reproduction method, comprising:
acquiring a preset test script program file, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps;
executing the test script program according to the preset operation steps to perform transaction flow test, and obtaining actual operation results corresponding to the preset operation steps;
comparing the target operation result with the actual operation result to determine a defect problem;
wherein after comparing the target operation result with the actual operation result and determining a defect problem, the method further comprises:
generating a defect report according to the defect problem, and sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report;
Wherein generating a defect report from the defect problem comprises:
determining a target preset operation step corresponding to the defect problem, and collecting browser behavior data corresponding to the target preset operation step;
determining a target test script program section corresponding to the browser behavior data in the test script program;
generating a defect report according to the target preset operation step, the browser behavior data and the target test script program section;
wherein, the browser behavior data includes: user information, access address information, access time, request mode, request parameters, click operation, form submitting operation, execution condition of script program segment and jump relation of script program segment.
4. A method according to claim 3, wherein sending the defect report to a development terminal to cause the development terminal to reproduce the defect problem from the defect report comprises:
and sending the defect report to a development end so that the development end reproduces the defect problem according to the target preset operation steps according to the target test script program section.
5. A method according to claim 3, wherein the target operation result comprises a target operation result picture; the actual operation result comprises an actual operation result picture;
Comparing the target operation result with the actual operation result to determine a defect problem, including:
and carrying out text recognition and/or image recognition on the target operation result picture and the actual operation result picture, and determining a defect problem.
6. A browser-based defect reproduction apparatus, comprising:
the operation step recording module is used for recording the operation steps of the testers in the transaction flow test;
the target operation step determining module is used for obtaining marks of the defect problems by the testers and determining target operation steps before the defect problems according to the marks;
the defect report generation module is used for generating a defect record according to the target operation step and generating a defect report according to the defect record;
the defect report sending module is used for sending the defect report to a development end so that the development end reproduces the defect problem according to the defect report;
wherein, the operation step record module includes:
the operation step recording unit is used for recording the operation steps of the testers in the transaction flow test, and collecting and storing browser behavior data corresponding to the operation steps;
Wherein, the browser behavior data includes: user information, access address information, access time, request mode, request parameters, clicking operation, form submitting operation, execution condition of script program segment and jump relation of script program segment;
a defect report generating module comprising:
the browser behavior data determining unit is used for determining corresponding browser behavior data according to the target operation step;
a defect report generating unit, configured to generate a defect report according to the target operation step and the browser behavior data;
the defect report generating unit is specifically configured to:
determining a target script program segment corresponding to the browser behavior data in a script program used for the transaction flow test;
and generating a defect report according to the target operation step, the browser behavior data and the target script program segment.
7. A browser-based defect reproduction apparatus, comprising:
the test script program file acquisition module is used for acquiring a preset test script program file, wherein the test script program file comprises a test script program, preset operation steps and target operation results corresponding to the preset operation steps;
The actual operation result acquisition module is used for executing the test script program according to the preset operation steps to carry out transaction flow test and acquiring actual operation results corresponding to the preset operation steps;
the defect problem determining module is used for comparing the target operation result with the actual operation result to determine a defect problem;
the device further comprises:
a defect report generating/transmitting module, configured to compare the target operation result with the actual operation result, determine a defect problem, generate a defect report according to the defect problem, and transmit the defect report to a development end, so that the development end reproduces the defect problem according to the defect report;
wherein the defect report generating/transmitting module comprises:
the browser behavior data acquisition unit is used for determining a target preset operation step corresponding to the defect problem and acquiring browser behavior data corresponding to the target preset operation step;
a target test script program segment determining unit, configured to determine a target test script program segment corresponding to the browser behavior data in the test script program;
The defect report generating unit is used for generating a defect report according to the target preset operation step, the browser behavior data and the target test script program section;
wherein, the browser behavior data includes: user information, access address information, access time, request mode, request parameters, click operation, form submitting operation, execution condition of script program segment and jump relation of script program segment.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a browser-based defect review method of any of claims 1-2; alternatively, a browser-based defect review method as claimed in any one of claims 3 to 5.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a browser-based defect reproduction method according to any one of claims 1-2; alternatively, a browser-based defect review method as claimed in any one of claims 3 to 5.
CN202011034952.7A 2020-09-27 2020-09-27 Defect reproduction method, device, equipment and storage medium based on browser Active CN112199277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011034952.7A CN112199277B (en) 2020-09-27 2020-09-27 Defect reproduction method, device, equipment and storage medium based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011034952.7A CN112199277B (en) 2020-09-27 2020-09-27 Defect reproduction method, device, equipment and storage medium based on browser

Publications (2)

Publication Number Publication Date
CN112199277A CN112199277A (en) 2021-01-08
CN112199277B true CN112199277B (en) 2023-10-27

Family

ID=74007422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011034952.7A Active CN112199277B (en) 2020-09-27 2020-09-27 Defect reproduction method, device, equipment and storage medium based on browser

Country Status (1)

Country Link
CN (1) CN112199277B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988580A (en) * 2021-03-11 2021-06-18 挂号网(杭州)科技有限公司 Test process reproduction method, device, equipment and storage medium
CN113238963A (en) * 2021-06-16 2021-08-10 中国农业银行股份有限公司 Test report generation method, device, equipment, storage medium and program product
CN114924991B (en) * 2022-07-19 2022-12-13 深圳市亿联无限科技有限公司 Method and system for reproducing probabilistic problem under specific operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320572A (en) * 2014-06-27 2016-02-10 腾讯科技(深圳)有限公司 Browser abnormity processing method, device and system
CN108763076A (en) * 2018-05-22 2018-11-06 深圳乐信软件技术有限公司 A kind of Software Automatic Testing Method, device, equipment and medium
CN109274526A (en) * 2018-08-31 2019-01-25 平安科技(深圳)有限公司 Test defect automatic early warning method, device, computer equipment and storage medium
CN109933509A (en) * 2017-12-15 2019-06-25 北京京东尚科信息技术有限公司 A kind of method and apparatus for realizing automatic test defect management

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141221A1 (en) * 2006-12-08 2008-06-12 Microsoft Corporation Using recorder technology to find defects in software applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320572A (en) * 2014-06-27 2016-02-10 腾讯科技(深圳)有限公司 Browser abnormity processing method, device and system
CN109933509A (en) * 2017-12-15 2019-06-25 北京京东尚科信息技术有限公司 A kind of method and apparatus for realizing automatic test defect management
CN108763076A (en) * 2018-05-22 2018-11-06 深圳乐信软件技术有限公司 A kind of Software Automatic Testing Method, device, equipment and medium
CN109274526A (en) * 2018-08-31 2019-01-25 平安科技(深圳)有限公司 Test defect automatic early warning method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112199277A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN108683562B (en) Anomaly detection positioning method and device, computer equipment and storage medium
CN112199277B (en) Defect reproduction method, device, equipment and storage medium based on browser
US10489283B2 (en) Software defect reporting
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
US7877732B2 (en) Efficient stress testing of a service oriented architecture based application
CN1908895B (en) System and method for application program globalization problem verification
US10152367B2 (en) System dump analysis
CN102053906A (en) System and method for collecting program runtime information
US11074162B2 (en) System and a method for automated script generation for application testing
US20080269921A1 (en) System and Method for Providing Support Assistance
WO2018107812A1 (en) Error detection method and apparatus for transaction system, storage medium and computer device
US20170147474A1 (en) Software testing coverage
CN114201408A (en) Regression testing method, device, computer equipment and storage medium
CN112540924A (en) Interface automation test method, device, equipment and storage medium
CN111654495B (en) Method, apparatus, device and storage medium for determining traffic generation source
US8327189B1 (en) Diagnosing an incident on a computer system using a diagnostics analyzer database
CN115658452A (en) Buried point checking method, buried point checking device, readable storage medium and electronic equipment
US10489728B1 (en) Generating and publishing a problem ticket
CN114625645A (en) Service testing method and device, electronic equipment and readable storage medium
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
CN111949537A (en) Interface test method, device, equipment and medium
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
CN113282496B (en) Automatic interface testing method, device, equipment and storage medium
KR100969877B1 (en) Test automating system
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220909

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 12 / F, 15 / F, 99 Yincheng Road, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant