CN115987844A - Process monitoring method, system, electronic device and medium in exploratory test - Google Patents

Process monitoring method, system, electronic device and medium in exploratory test Download PDF

Info

Publication number
CN115987844A
CN115987844A CN202211695199.5A CN202211695199A CN115987844A CN 115987844 A CN115987844 A CN 115987844A CN 202211695199 A CN202211695199 A CN 202211695199A CN 115987844 A CN115987844 A CN 115987844A
Authority
CN
China
Prior art keywords
test
http request
request information
exploratory
response message
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
CN202211695199.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.)
Aisino Corp
Original Assignee
Aisino 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 Aisino Corp filed Critical Aisino Corp
Priority to CN202211695199.5A priority Critical patent/CN115987844A/en
Publication of CN115987844A publication Critical patent/CN115987844A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a process monitoring method, a system, electronic equipment and a medium in exploratory testing, wherein the method comprises the following steps: acquiring http request information sent by a test client to a server, storing the http request information, and sending the http request information to the server; receiving a response message returned by the server, storing the response message, and sending the response message to the test client; judging whether the exploratory test is finished or not, if so, displaying all http request information stored in the exploratory test process and a response message corresponding to each http request information according to a time sequence; and detecting whether any displayed http request message is selected, if so, sending the selected http request message to the server again, and comparing and displaying a newly received response message with an original response message corresponding to the selected http request message. The invention can record the whole process of exploratory test and realize the recurrence of problems.

Description

Process monitoring method, system, electronic device and medium in exploratory test
Technical Field
The invention belongs to the field of software development and testing, and particularly relates to a 5-process monitoring method, a system, electronic equipment and a medium in exploratory testing.
Background
Exploratory testing is a process of simultaneously performing test design, test execution, test recording and learning,
the method is an important component in the testing process, the process of exploratory testing is a process of thinking divergence 0, and the method is derived from a user behavior mode and emphasizes the thinking freedom and subjective initiative of a tester.
When the tester conducts exploratory tests, problems are often discovered in an inadvertent way, some of the problems are caused by the current operation steps, the situation can be directly known about the operation with the problems, and the problems can be directly reproduced, but some problems can be caused by the previous steps, but each step of the previous 5 is not completely and clearly remembered due to the divergence of the thinking of the tester, so that the problems cannot be reproduced, or a certain time is needed for the tester to spend
The problem can be reproduced by retrying the previous operation steps.
Disclosure of Invention
The invention aims to provide a process monitoring method, a system, an electronic 0 device and a medium in exploratory testing, which are used for recording the whole process of testing, reproducing problems and repairing problems
And (4) later verification and regression.
In a first aspect, the present invention provides a method for monitoring a process in an exploratory test, including:
s1: acquiring http request information sent by a test client to a server, and storing the http request information
After requesting information, sending the http request information to the server;
s2: receiving a response message returned by the server, storing the response message, and sending the response message to the test client;
s3: judging whether the exploratory test is finished or not, if so, executing S4, and otherwise, returning to S1;
s4: displaying all http request information stored in the exploratory test process and response messages corresponding to each http request information according to a time sequence;
s5: detecting whether any displayed http request information is selected, if so, sending the selected http request information to the server again, and receiving and recording a response message returned by the server;
s6: and comparing and displaying the newly received response message with the original response message corresponding to the selected http request information.
Preferably, before executing step S1, the method further includes:
s0: and generating the name of the exploratory test, and executing the step S1 after receiving the instruction of starting the test.
Preferably, step S4 specifically includes:
and displaying all the http request information stored in the exploratory test and the response message corresponding to each http request information in a form of a table according to the name of the exploratory test.
Preferably, in step S3, when an instruction to stop the test is received, it is determined that the exploratory test is finished;
and when the test is finished, stopping obtaining the http request information in the test process.
In a second aspect, the present invention provides a process monitoring system in an exploratory test, including:
the test agent module is used for acquiring http request information sent by a test client to a server, and sending the http request information to the server after the http request information is stored; receiving a response message returned by the server, and sending the response message to the test client after storing the response message;
the test process showing module is used for showing all the http request information and the response message corresponding to each http request information stored in the exploratory test process according to a time sequence after the test is finished;
and the problem reappearing module is used for detecting whether any displayed http request information is selected, if so, sending the selected http request information to the server again, receiving and recording a response message returned by the server, and comparing and displaying the newly received response message with an original response message corresponding to the selected http request information.
Preferably, the test agent module is further configured to: and generating the name of the exploratory test before starting the test, and starting to acquire http request information sent by the test client to the server after receiving an instruction for starting the test.
Preferably, the test procedure presentation module is specifically configured to: after the test is finished, according to the name of the exploratory test, all the http request information stored in the exploratory test and the response message corresponding to each http request information are displayed in a form of a table according to a time sequence.
Preferably, when receiving an instruction to stop the test, the test agent module determines that the exploratory test is finished, and stops obtaining http request information in the test process.
In a third aspect, the present invention provides an electronic device, including:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of process monitoring in exploratory testing of the first aspect.
In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for process monitoring in exploratory testing of the first aspect.
The invention has the beneficial effects that:
when the exploratory test is executed, the http request and the response message communicated between the test client and the server in the test process are obtained and recorded, the recorded information can be displayed according to the time sequence after the test is stopped, and a certain http request can be selected to be sent again.
The system of the present invention has other features and advantages which will be apparent from or are set forth in detail in the accompanying drawings and the following detailed description, which are incorporated herein, and which together serve to explain certain principles of the invention.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent by describing in more detail exemplary embodiments thereof with reference to the attached drawings, in which like reference numerals generally represent like parts.
Fig. 1 shows a flow chart of the steps of a process monitoring method in exploratory testing according to the invention.
FIG. 2 shows a schematic diagram of a process monitoring system in exploratory testing, according to one embodiment of the invention.
Detailed Description
The invention will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example 1
Fig. 1 shows a flow chart of the steps of a process monitoring method in exploratory testing according to the invention.
As shown in fig. 1, a method for monitoring a process in an exploratory test includes:
s1: acquiring http request information sent by a test client to a server, storing the http request information, and sending the http request information to the server;
specifically, before executing step S1, the method further includes:
s0: and generating the name of the exploratory test, and executing the step S1 after receiving the instruction of starting the test. The test name can be automatically generated according to a preset rule or can be filled in by self-definition.
In step S1, the user sends http request information to the server through the test client, where the http request information is an http request message, the http request message includes a request line, a request header, a blank line, and a request body, the request mode for sending the http request message may be a get or post mode, and after storing detailed information of the http request message, the http request message is sent to the server.
S2: receiving a response message returned by the server, storing the response message, and sending the response message to the test client;
specifically, after receiving the http request message, the server parses the http request message and returns an http response message, i.e., a response message, to the test client, where the response message includes a status line, a message header, a null line, and a response text, and after receiving the response message returned by the server, the server stores detailed information of the response message, and then sends the response message to the test client.
S3: judging whether the exploratory test is finished or not, if so, executing S4, and otherwise, returning to S1;
specifically, the user can finish monitoring the test process by sending a test stop instruction, and when receiving the test stop instruction, the user judges that the exploratory test is finished; and after the test is finished, stopping obtaining the http request information in the test process.
S4: displaying all http request information stored in the exploratory test process and response messages corresponding to each http request information according to a time sequence;
specifically, all http request information and response messages in the testing process are stored according to a time sequence, and after the testing is finished, each http request information and corresponding response message can be displayed in a table one by one according to the time sequence and a testing name in a table mode.
S5: detecting whether any displayed http request information is selected, if so, sending the selected http request information to the server again, and receiving and recording a response message returned by the server;
specifically, a user may select any http request information or select a plurality of http request information one by one in a table showing all http request information of the test as required, whether the http request information in the table is selected may be identified by detecting a selection operation of the user, after a certain http request information is selected, the selected http request information is sent again, then a response message returned by the server is received, and if no http request information is detected to be selected, no operation is performed.
S6: and comparing and displaying the newly received response message with the original response message corresponding to the selected http request information.
Specifically, the newly received response message and the original message corresponding to the retransmitted http request are compared and displayed, so that a tester can compare and analyze the test result.
The process monitoring method in the exploratory test of the embodiment records an http request sent to a server by a tester through a client, stores the test request, and then sends the test request to the server. After the server returns the message, the test agent receives the returned message, records the message, and then sends the message to the test client. After the test is finished, all the recorded test requests and the return results of the test are displayed in a table form according to the time sequence, the selected http test request can be sent to the server again, the corresponding message of the server is obtained, and after the corresponding message is received, the test result can be compared with the original test result. The method can record the whole test process, can also perform problem recurrence and verification and regression after problem repair, and effectively solves the problem that the problem recurrence cannot be performed in the conventional exploratory test.
Example 2
As shown in fig. 2, a process monitoring system in exploratory testing includes:
the test agent module is used for acquiring http request information sent by a test client to a server, and sending the http request information to the server after the http request information is stored; receiving a response message returned by the server, and sending the response message to the test client after saving the response message;
the test process showing module is used for showing all the http request information and the response message corresponding to each http request information stored in the exploratory test process according to the time sequence after the test is finished;
and the problem reappearing module is used for detecting whether any displayed http request information is selected, if so, sending the selected http request information to the server again, receiving and recording a response message returned by the server, and comparing and displaying the newly received response message with an original response message corresponding to the selected http request information.
In this embodiment, the test agent module is further configured to: and generating the name of the exploratory test before starting the test, and starting to acquire http request information sent by the test client to the server after receiving an instruction for starting the test.
In this embodiment, the test process presenting module is specifically configured to: after the test is finished, according to the name of the exploratory test, all the http request information stored in the exploratory test and the response message corresponding to each http request information are displayed in a form of a table according to the time sequence.
In this embodiment, when receiving the instruction to stop the test, the test agent module determines that the exploratory test is finished, and stops obtaining http request information in the test process.
The operation process of the process monitoring system in the exploratory test of the embodiment is as follows:
1. before the test is started, the test process monitoring system is operated, and the test process is named in the test process monitoring system, so that the test process can be conveniently checked later.
2. After the test is started, a test agent module in the test process monitoring system can acquire an http request sent to the server by the test client each time, record the request and then send the request to the server.
3. After receiving the http request sent by the test client, the server returns a response message to the test client, and a test agent module in the test process monitoring system first receives the response message of the server, records the content of the returned response message, and then sends the response message to the test client.
4. After the test is completed, the tester needs to stop the test in the test monitoring system, and after the test is stopped, the test agent module of the test process monitoring system does not obtain http request information in the test process after receiving the instruction of stopping the test.
5. A test process showing module in the test process monitoring system can show http requests and responses stored according to the test time sequence according to the name of the test.
6. When a tester needs to perform problem recurrence or review a test process, http requests can be selected one by one in the test process display module, the problem recurrence module of the test monitoring system can send the selected request to the server again and receive returned response messages, the newly received response messages and the original response messages corresponding to the selected http request messages are compared and displayed, and the tester can compare the returned messages of two times to judge the accuracy and consistency of test results.
Example 3
This embodiment provides an electronic device, which includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for process monitoring in exploratory testing of embodiment 1.
An electronic device according to an embodiment of the disclosure includes a memory for storing non-transitory computer-readable instructions and a processor. In particular, the memory may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc.
The processor may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. In one embodiment of the disclosure, the processor is configured to execute the computer readable instructions stored in the memory.
Those skilled in the art should understand that, in order to solve the technical problem of how to obtain a good user experience, the present embodiment may also include well-known structures such as a communication bus, an interface, and the like, and these well-known structures should also be included in the protection scope of the present disclosure.
For the detailed description of the present embodiment, reference may be made to the corresponding descriptions in the foregoing embodiments, which are not repeated herein.
Example 4
The present embodiment provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the process monitoring method in exploratory testing described in embodiment 1.
A computer-readable storage medium according to an embodiment of the present disclosure has non-transitory computer-readable instructions stored thereon. The non-transitory computer readable instructions, when executed by a processor, perform all or a portion of the steps of the methods of the embodiments of the disclosure previously described.
The computer-readable storage media include, but are not limited to: optical storage media (e.g., CD-ROMs and DVDs), magneto-optical storage media (e.g., MOs), magnetic storage media (e.g., magnetic tapes or removable disks), media with built-in rewritable non-volatile memory (e.g., memory cards), and media with built-in ROMs (e.g., ROM cartridges).
While embodiments of the present invention have been described above, the above description is illustrative, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments.

Claims (10)

1. A process monitoring method in exploratory testing is characterized by comprising the following steps:
s1: acquiring http request information sent by a test client to a server, storing the http request information, and sending the http request information to the server;
s2: receiving a response message returned by the server, storing the response message, and sending the response message to the test client;
s3: judging whether the exploratory test is finished or not, if so, executing S4, and otherwise, returning to S1;
s4: displaying all http request information stored in the exploratory test process and response messages corresponding to each http request information according to a time sequence;
s5: detecting whether any displayed http request information is selected, if so, sending the selected http request information to the server again, and receiving and recording a response message returned by the server;
s6: and comparing and displaying the newly received response message with the original response message corresponding to the selected http request information.
2. The method for monitoring the process in the exploratory test according to claim 1, wherein before the step S1, the method further comprises:
s0: and generating the name of the exploratory test, and executing the step S1 after receiving the instruction of starting the test.
3. The method for monitoring the process in the exploratory test according to claim 2, wherein the step S4 specifically comprises:
and displaying all the http request information stored in the exploratory test and the response message corresponding to each http request information in a form of a table according to the name of the exploratory test.
4. The method for monitoring the process in the exploratory test according to claim 1, wherein in step S3, when an instruction to stop the test is received, it is determined that the exploratory test is finished;
and when the test is finished, stopping obtaining the http request information in the test process.
5. A process monitoring system in exploratory testing, comprising:
the test agent module is used for acquiring http request information sent by a test client to a server, and sending the http request information to the server after the http request information is stored; receiving a response message returned by the server, and sending the response message to the test client after storing the response message;
the test process showing module is used for showing all the http request information and the response message corresponding to each http request information stored in the exploratory test process according to the time sequence after the test is finished;
and the problem recurrence module is used for detecting whether any one displayed http request message is selected, if so, sending the selected http request message to the server again, receiving and recording a response message returned by the server, and comparing and displaying the newly received response message with an original response message corresponding to the selected http request message.
6. The system for process monitoring during exploratory testing of claim 5, wherein the test agent module is further configured to: and generating the name of the exploratory test before starting the test, and starting to acquire http request information sent by the test client to the server after receiving an instruction for starting the test.
7. The system for process monitoring during exploratory testing of claim 5, wherein the test process exposure module is specifically configured to: after the test is finished, according to the name of the exploratory test, all the http request information stored in the exploratory test and the response message corresponding to each http request information are displayed in a form of a table according to the time sequence.
8. The system for monitoring the process in the exploratory test according to claim 1, wherein the test agent module judges that the exploratory test is finished and stops obtaining http request information in the test process when receiving an instruction to stop the test.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for process monitoring in exploratory testing of any of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method for process monitoring in exploratory testing of any of claims 1-4.
CN202211695199.5A 2022-12-28 2022-12-28 Process monitoring method, system, electronic device and medium in exploratory test Pending CN115987844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211695199.5A CN115987844A (en) 2022-12-28 2022-12-28 Process monitoring method, system, electronic device and medium in exploratory test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211695199.5A CN115987844A (en) 2022-12-28 2022-12-28 Process monitoring method, system, electronic device and medium in exploratory test

Publications (1)

Publication Number Publication Date
CN115987844A true CN115987844A (en) 2023-04-18

Family

ID=85971848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211695199.5A Pending CN115987844A (en) 2022-12-28 2022-12-28 Process monitoring method, system, electronic device and medium in exploratory test

Country Status (1)

Country Link
CN (1) CN115987844A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955425A (en) * 2014-04-16 2014-07-30 中国工商银行股份有限公司 Webpage (WEB) exploring testing device and method
CN111010316A (en) * 2019-12-17 2020-04-14 广州唯品会信息科技有限公司 Flow playback method, device and system
CN111309625A (en) * 2020-03-03 2020-06-19 中国工商银行股份有限公司 Regression testing method and device based on real transaction data
CN112015646A (en) * 2020-08-27 2020-12-01 深圳壹账通智能科技有限公司 Network request monitoring method and device, computer equipment and storage medium
CN112532490A (en) * 2020-11-30 2021-03-19 武汉悦学帮网络技术有限公司 Regression testing system and method and electronic equipment
CN113726770A (en) * 2021-08-30 2021-11-30 平安国际融资租赁有限公司 Data interception method and device, computer equipment and storage medium
CN114531345A (en) * 2020-11-06 2022-05-24 行吟信息科技(上海)有限公司 Method, device and equipment for storing flow comparison result and storage medium
CN114661580A (en) * 2022-03-01 2022-06-24 上海复深蓝软件股份有限公司 Flow recording playback method and device, computer equipment and storage medium
CN115002011A (en) * 2022-06-16 2022-09-02 平安普惠企业管理有限公司 Flow bidirectional test method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955425A (en) * 2014-04-16 2014-07-30 中国工商银行股份有限公司 Webpage (WEB) exploring testing device and method
CN111010316A (en) * 2019-12-17 2020-04-14 广州唯品会信息科技有限公司 Flow playback method, device and system
CN111309625A (en) * 2020-03-03 2020-06-19 中国工商银行股份有限公司 Regression testing method and device based on real transaction data
CN112015646A (en) * 2020-08-27 2020-12-01 深圳壹账通智能科技有限公司 Network request monitoring method and device, computer equipment and storage medium
CN114531345A (en) * 2020-11-06 2022-05-24 行吟信息科技(上海)有限公司 Method, device and equipment for storing flow comparison result and storage medium
CN112532490A (en) * 2020-11-30 2021-03-19 武汉悦学帮网络技术有限公司 Regression testing system and method and electronic equipment
CN113726770A (en) * 2021-08-30 2021-11-30 平安国际融资租赁有限公司 Data interception method and device, computer equipment and storage medium
CN114661580A (en) * 2022-03-01 2022-06-24 上海复深蓝软件股份有限公司 Flow recording playback method and device, computer equipment and storage medium
CN115002011A (en) * 2022-06-16 2022-09-02 平安普惠企业管理有限公司 Flow bidirectional test method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US8645912B2 (en) System and method for use in replaying software application events
US20130326486A1 (en) Keyword based software testing system and method
US8533664B2 (en) Method and system to automatically generate GUI object addressing queries
CN108021505B (en) Data online method and device and computer equipment
US8225140B2 (en) Method and system for graphical user interface testing
US10162742B2 (en) System and method for end to end performance response time measurement based on graphic recognition
CN104246714A (en) Software defect verification
US9940215B2 (en) Automatic correlation accelerator
CN104468655B (en) The method and system tested reverse proxy software
CN115080398A (en) Automatic interface test system and method
US9711057B2 (en) Question setting apparatus and method
CN114546881B (en) Application software testing method, electronic device and computer readable storage medium
CN113297060A (en) Data testing method and device
CN108304312B (en) Method and device for testing webpage loading speed
US11106571B2 (en) Identification of input object in a graphical user interface
CN115987844A (en) Process monitoring method, system, electronic device and medium in exploratory test
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
CN110674038A (en) Method and device for classifying error information in software test
CN111884856B (en) Transmission error positioning method of FC card and related device
CN114398283A (en) Automatic testing method and device for user interface, electronic equipment and storage medium
CN113110996A (en) Test method and device
US8456973B1 (en) Optical disc drive test
CN112363944A (en) Method and equipment for comparing return values of multiple environment interfaces
CN111414194A (en) Interface information generation method and system, electronic equipment and storage medium
CN116820946B (en) Method and device for automatically testing compatibility of target software

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