CN112363931A - Web system testing method and device - Google Patents

Web system testing method and device Download PDF

Info

Publication number
CN112363931A
CN112363931A CN202011253704.1A CN202011253704A CN112363931A CN 112363931 A CN112363931 A CN 112363931A CN 202011253704 A CN202011253704 A CN 202011253704A CN 112363931 A CN112363931 A CN 112363931A
Authority
CN
China
Prior art keywords
test
web system
tested
task
test task
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
CN202011253704.1A
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.)
WUHAN HONGXU INFORMATION TECHNOLOGY CO LTD
Original Assignee
WUHAN HONGXU INFORMATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUHAN HONGXU INFORMATION TECHNOLOGY CO LTD filed Critical WUHAN HONGXU INFORMATION TECHNOLOGY CO LTD
Priority to CN202011253704.1A priority Critical patent/CN112363931A/en
Publication of CN112363931A publication Critical patent/CN112363931A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a method and a device for testing a Web system, wherein the method comprises the following steps: receiving a test task of a Web system to be tested; and if the Web system to be tested is judged and known to be tested, acquiring parameters corresponding to the test task from the local storage, and sending the parameters and the test task to the test server, so that the test server executes the test task and acquires a test result corresponding to the test task. According to the Web system testing method and device provided by the embodiment of the invention, after the testing task of the Web system to be tested is input, the fact that the Web system to be tested is judged and known according to the testing task, the parameters corresponding to the testing task are obtained from the local storage, and the parameters and the testing task are sent to the testing server, so that the testing of the Web system to be tested can be automatically completed, the repeated input of the parameters can be avoided, the testing efficiency can be improved, the testing process can be simplified, and the testing stability can be improved.

Description

Web system testing method and device
Technical Field
The invention relates to the technical field of computer testing, in particular to a method and a device for testing a Web system.
Background
Web testing is part of software testing, a type of testing for Web systems. Errors in the programs of the browser side and the server side can be found as much as possible and corrected in time through Web test.
The test method for the Web system comprises the following steps: logging in a test system on a user interaction interface of a Web system to create a test task; the test system executes the test task and generates a test result; and the user checks the test result and analyzes the test problem according to the test result.
If a Web system is tested for many times in the existing testing method of the Web system, a user interaction interface of the Web system to be tested needs to be entered to log in the testing system and a testing task is created when the testing is started each time. In the method, the content needing repeated input is more, the operation process is complicated, the test efficiency is lower, and the false input is easy to occur, so that the Web test fails.
Disclosure of Invention
Web testing is part of software testing, a type of testing for Web systems. Errors in the programs of the browser side and the server side can be found as much as possible and corrected in time through Web test.
The embodiment of the invention provides a Web system testing method, which comprises the following steps:
receiving a test task of a Web system to be tested;
if the fact that the test is executed on the Web system to be tested is judged and known, obtaining parameters corresponding to the test task from a local storage, and sending the parameters and the test task to a test server, so that the test server executes the test task and obtains a test result corresponding to the test task;
the parameters comprise a login account and a password of the Web system to be tested.
According to the Web system testing method of an embodiment of the present invention, if it is determined that the Web system to be tested has been tested, obtaining the parameters corresponding to the test task from the local storage, and sending the parameters and the test task to the test server, so that the test server executes the test task, and after obtaining the test result corresponding to the test task, the method further includes:
receiving authentication information sent by a Web system to be tested;
sending the authentication information to the test server;
and the authentication information is used for verifying whether the test server has the authority of accessing the Web system to be tested and performing related operations.
The embodiment of the invention provides a Web system testing method, which comprises the following steps:
receiving a test task of a Web system to be tested sent by a mobile terminal and a parameter corresponding to the test task;
executing the test task to obtain a test result corresponding to the test task;
the parameters corresponding to the test task are obtained from a local storage after the mobile terminal judges that the test on the Web system to be tested is executed; the parameters comprise a login account and a password of the Web system to be tested.
According to the Web system testing method of an embodiment of the present invention, the executing the test task specifically includes:
and performing function test and/or performance test on the Web system to be tested.
According to the Web system testing method of an embodiment of the present invention, the obtaining of the test result corresponding to the test task specifically includes:
analyzing a result of the function test and/or a result of the performance test to obtain a test result corresponding to the test task, and sending the test result corresponding to the test task to the mobile terminal.
According to the Web system testing method of an embodiment of the present invention, the executing the test task specifically includes:
and if the Web system to be tested is judged to be abnormal, generating alarm information and sending the alarm information to the mobile terminal.
An embodiment of the present invention further provides a Web system testing apparatus, including:
the information interaction module is used for receiving a test task of the Web system to be tested;
the task processing module is used for acquiring parameters corresponding to the test task from a local storage if the fact that the test is executed on the Web system to be tested is judged and known, and sending the parameters and the test task to a test server so that the test server can execute the test task and acquire a test result corresponding to the test task;
the parameters comprise a login account and a password of the Web system to be tested.
An embodiment of the present invention further provides a Web system testing apparatus, including:
the communication module is used for receiving a test task of the Web system to be tested sent by the mobile terminal and a parameter corresponding to the test task;
the test module executes the test task and obtains a test result corresponding to the test task;
the parameters corresponding to the test task are obtained from a local storage after the mobile terminal judges that the test on the Web system to be tested is executed; the parameters comprise a login account and a password of the Web system to be tested.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the program, the steps of any one of the above described Web system test methods are implemented.
Embodiments of the present invention further provide a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the above described Web system testing methods.
According to the Web system testing method and device provided by the embodiment of the invention, the fact that the Web system to be tested is judged and known according to the testing task input into the Web system to be tested, the parameters corresponding to the testing task are obtained from the local storage, and the parameters and the testing task are sent to the testing server, so that the testing of the Web system to be tested can be automatically completed, the repeated input of the parameters can be avoided, the testing efficiency can be improved, the testing process can be simplified, and the testing stability can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a Web system testing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for testing a Web system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the embodiments of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the embodiments of the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have specific orientations, be configured in specific orientations, and operate, and thus, should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the embodiments of the present invention, it should be noted that, unless explicitly stated or limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. Specific meanings of the above terms in the embodiments of the present invention can be understood in specific cases by those of ordinary skill in the art.
In order to solve the above problems in the prior art, embodiments of the present invention provide a method and an apparatus for testing a Web system, where after a test task of the Web system to be tested is input through a user interface, the Web system to be tested is judged and known to have been tested according to the test task, and a parameter corresponding to the test task is obtained from a local storage, so that repeated input of the parameter can be avoided, the test efficiency can be improved, and the test flow can be simplified.
Fig. 1 is a schematic flowchart of a Web system testing method according to an embodiment of the present invention. The following describes a Web system test method according to an embodiment of the present invention with reference to fig. 1. As shown in fig. 1, the method includes: and step S101, receiving a test task of the Web system to be tested.
It should be noted that the main execution body of the Web system testing method provided by the embodiment of the present invention is a mobile terminal.
It should be noted that the Web system to be tested may be a B/S architecture or a C/S architecture. The Web system testing method in the embodiment of the invention is used for testing the whole Web system to be tested so as to find out potential problems in the Web system to be tested and ensure the normal operation of the Web system to be tested.
The mobile terminal in the embodiment of the present invention may be a terminal that has a communication function and can be used in moving, for example: a smart phone, a tablet computer, or a notebook computer. The mobile terminal can communicate with the Web system to be tested.
The mobile terminal can receive the testing task of the Web system to be tested through the pre-installed application program.
An application, which refers to a computer program for performing one or more specific tasks, runs in user mode, can interact with a user, and has a visual user interface.
Specifically, a tester can input a test task of the to-be-tested Web system through a user interaction interface in the application program, and the mobile terminal receives the test task of the to-be-tested Web system.
The mobile terminal may also store the test tasks locally. Correspondingly, the mobile terminal can also obtain the test task of the Web system to be tested from the local storage.
Local storage refers to the memory included in the mobile terminal.
It should be noted that the test task may include content such as a test target and a test item of the Web system to be tested.
Step S102, if the fact that the Web system to be tested is judged and known, obtaining parameters corresponding to the test task from the local storage, and sending the parameters and the test task to the test server, so that the test server executes the test task and obtains a test result corresponding to the test task.
The parameters comprise a login account and a password of the Web system to be tested.
After receiving the test task of the to-be-tested Web system, the mobile terminal can compare the test task of the to-be-tested Web system with the executed test task stored locally, and determine whether the test has been executed on the to-be-tested Web system.
It should be noted that the parameters corresponding to the executed test tasks are already stored in the mobile terminal.
If the parameters corresponding to the test task of the to-be-tested Web system are stored in the mobile terminal after the judgment and the learning of the fact that the to-be-tested Web system is tested are carried out, the parameters corresponding to the test task of the to-be-tested Web system can be obtained from the local storage of the mobile terminal.
If the test of the Web system to be tested is not executed and the corresponding parameters of the test task of the Web system to be tested are not stored in the mobile terminal, the parameters corresponding to the test task of the Web system to be tested, which are input by a tester through a user interaction interface in the application program, can be received and locally stored.
After obtaining the parameters corresponding to the test task, the mobile terminal may send the parameters and the test task to the test server.
The test server can log in the Web system to be tested according to the login account and the password of the Web system to be tested, which are included in the parameters, execute the test task and acquire the test result corresponding to the test task.
It should be noted that the above method has a reference and extended use meaning for other Web system tests.
According to the embodiment of the invention, the test task of the Web system to be tested is judged and known to be tested, the parameters corresponding to the test task are obtained from the local storage, and the parameters and the test task are sent to the test server, so that the test of the Web system to be tested can be automatically completed, the repeated input of the parameters can be avoided, the test efficiency can be improved, the test flow can be simplified, and the test stability can be improved.
Based on the content of the foregoing embodiments, if it is determined that the test has been performed on the Web system to be tested, obtaining the parameter corresponding to the test task from the local storage, and after sending the parameter and the test task to the test server, the method further includes: and receiving authentication information sent by the Web system to be tested.
And the authentication information is used for verifying whether the test server has the authority of accessing the Web system to be tested and performing related operations.
Specifically, when the test server logs in the to-be-tested Web system, the to-be-tested Web system sends authentication information to verify whether the test server has the access right.
In the process that the test server executes the test task, before the relevant operation is carried out, the Web system to be tested sends authentication information to verify whether the test server has the authority to carry out the relevant operation on the Web system to be tested.
The mobile terminal can receive the authentication information sent by the Web system to be tested.
It should be noted that the authentication information may be a short message verification code. Correspondingly, the mobile terminal is a mobile terminal with a short message function, for example: the smart phone is provided with a sim card, and the tablet personal computer or the notebook personal computer is provided with a short message function.
And sending the authentication information to a test server.
And after receiving the authentication information sent by the Web system to be tested, the mobile terminal sends the authentication information to the test server.
And the test server receives the authentication information and sends the authentication information to the Web system to be tested. And the Web system to be tested authenticates the authentication information, and if the authentication information passes the authentication, the test server is indicated to have the authority of accessing the Web system to be tested or the authority of carrying out related operations, so that the test task can be executed, and the test result corresponding to the test task is obtained.
The embodiment of the invention sends the authentication information to the test server after receiving the authentication signal sent by the Web system to be tested through the mobile terminal, can judge and acquire the right of the test server to access the Web system to be tested or the right of the test server to carry out related operations, can avoid repeated input of the authentication information, can avoid unnecessary consumptive work caused by error input, can improve the test efficiency, can simplify the test flow and has high efficiency.
Fig. 2 is a schematic flowchart of a Web system testing method according to an embodiment of the present invention. The following describes a Web system testing method according to an embodiment of the present invention with reference to fig. 2. As shown in fig. 2, the method includes: step S201, receiving a test task of the to-be-tested Web system sent by the mobile terminal, and a parameter corresponding to the test task.
The parameters corresponding to the test tasks are acquired from a local storage after the mobile terminal judges that the Web system to be tested is tested; the parameters comprise a login account and a password of the Web system to be tested.
It should be noted that the execution subject of the Web system testing method provided by the embodiment of the present invention is a testing server.
Specifically, a tester can input a test task of the Web system to be tested through a user interaction interface in the application program.
After receiving the test task of the to-be-tested Web system, the mobile terminal can compare the test task of the to-be-tested Web system with the executed test task stored locally, and determine whether the test has been executed on the to-be-tested Web system.
If the test of the Web system to be tested is judged and known, and the parameters corresponding to the test task of the Web system to be tested are stored in the mobile terminal, the mobile terminal can acquire the parameters corresponding to the test task of the Web system to be tested from the local storage.
If the test of the Web system to be tested is not executed and the corresponding parameters of the test task of the Web system to be tested are not stored in the mobile terminal, the mobile terminal can receive the parameters, input by a tester through a user interaction interface in the application program, corresponding to the test task of the Web system to be tested and store the parameters locally.
After obtaining the parameters corresponding to the test task, the mobile terminal may send the parameters and the test task to the test server.
And the test server receives a test task of the Web system to be tested sent by the mobile terminal and parameters corresponding to the test task.
Step S202, executing the test task and obtaining a test result corresponding to the test task.
Specifically, after receiving the test task and the parameters, the test server may log in the to-be-tested Web system according to a login account and a password of the to-be-tested Web system included in the parameters.
And after logging in the Web system to be tested, the test server executes the test task, tests the Web system to be tested and acquires a test result corresponding to the test task.
The test result can describe problems and defects found in the Web system to be tested, and a data basis can be provided for testers to find potential problems in the Web system to be tested.
According to the embodiment of the invention, the test server receives the test task of the Web system to be tested and the parameters corresponding to the test task, which are sent by the mobile terminal, executes the test task and acquires the test result corresponding to the test task after logging in the Web system to be tested according to the login account and the password of the Web system to be tested, which are included in the parameters, so that the repeated input of the parameters can be avoided, the test efficiency can be improved, the test flow can be simplified, and a data basis can be provided for a tester to find potential problems in the Web system to be tested.
Based on the content of the above embodiments, executing a test task specifically includes: and performing function test and/or performance test on the Web system to be tested.
And performing function test on the Web system to be tested, namely verifying each function of the Web system to be tested. Through the function test, the problems and defects in the Web system to be tested can be found, and whether the characteristics and the operable behavior of the Web system to be tested meet the design requirements or not is judged.
Specifically, after the test server logs in the test Web system, the test server can obtain the result of the function test of the Web system to be tested by triggering the execution of the automatic test script.
It should be noted that the automated test script can be created, automatically generated by using a test automation tool, or obtained by programming using a programming language according to actual situations, for example: the automated test script may be a javascript automated test script based on a pupeteer driver.
The execution of the automatic test script is triggered, unnecessary consumable work caused by error transmission can be avoided, the test efficiency can be improved, and the method has high efficiency.
And (4) performing performance test on the Web system to be tested, namely monitoring various performance indexes of the Web system to be tested. The performance test can judge whether the Web system to be tested is abnormal or not by monitoring various performance indexes, and can comprehensively analyze the performance and the performance bottleneck of the Web system to be tested.
Specifically, after logging in the to-be-tested Web system, the test server monitors the key performance index of the to-be-tested Web system in real time to obtain a performance test result of the to-be-tested Web system.
It should be noted that the key performance indicators of the to-be-tested Web system may describe the performance of the to-be-tested Web system during long-time operation, and the key performance indicators may include, but are not limited to: the method comprises the steps of testing the CPU utilization rate and the memory utilization rate of the running environment of the Web system to be tested, or testing the background thread running state of the Web system to be tested and the like.
It should be noted that the test server may perform the function test or the performance test on the to-be-tested Web system separately, or may perform the function test and the performance test on the to-be-tested Web system at the same time.
According to the embodiment of the invention, the test server is used for carrying out the function test and/or the performance test on the Web system to be tested, and obtaining the result of the function test and/or the result of the performance test, so that the problems and the defects in the Web system to be tested can be found, whether the Web system to be tested is abnormal or not can be judged, and a data basis can be provided for the testers to analyze the test results and find potential problems in the Web system to be tested.
Based on the content of the foregoing embodiments, obtaining a test result corresponding to the test task specifically includes: and analyzing the result of the function test and/or the result of the performance test to obtain a test result corresponding to the test task, and sending the test result corresponding to the test task to the mobile terminal.
When the test server performs the function test on the to-be-tested Web system, the test server can extract all the error information and the warning information in the function test result of the to-be-tested Web system, and the error information and the warning information in the running log of the to-be-tested Web system are integrated into a defect information set. The test server can perform correlation analysis on the defect information set and the test task to obtain a correlation analysis result. The test server may generate a functional test report from the defect information set and the results of the correlation analysis.
It should be noted that the result of the correlation analysis between the defect information set and the test task may be statistics of the number of times that the same defect occurs in one test task, or the frequency of the occurrence of the same defect in multiple repeated test tasks.
When the test server tests the performance of the Web system to be tested, the test server can judge and know that the Web system to be tested is abnormal through the change of the key performance index in the result of the performance test of the Web system to be tested. The test server can integrate all the abnormal information discovered through the performance test and all the error information and the warning information in the running log of the Web system to be tested into an abnormal information set.
Further, the test server can extract and analyze the abnormal information set, and can sort the analysis results according to the priority level. The test server may generate a performance test report from the exception information set and the sorted results.
When the test server simultaneously performs the function test and the performance test on the Web system to be tested, the test server can respectively perform the function test and the performance test on the Web system to be tested to obtain a function test report and a performance test report. The method for obtaining the functional test report and the performance test report is as described above, and is not described herein again.
The test server can also perform comprehensive analysis on the function test report and the performance test report, and can obtain a comprehensive analysis test result such as the corresponding relation between the defects and the abnormity in the Web system to be tested or the influence of the defects in the Web system to be tested on the performance through the comprehensive analysis. The test server may use the result of the comprehensive analysis as a test result corresponding to the test task.
It should be noted that, when the test server performs a function test or a performance test on the Web system to be tested separately, the function test report or the performance test report may be used as a test result corresponding to the test task.
If the test server performs the function test and the performance test on the to-be-tested Web system at the same time, the result of the function test report, the result of the performance test report and the result of the comprehensive analysis may be used as the test result corresponding to the test task, or only the result of the comprehensive analysis may be used as the test result corresponding to the test task.
After the test server obtains the test result corresponding to the test task, the test server can generate an online link for the test result, and can extract key information in the test result as a test result abstract.
The test server can send the test result corresponding to the test task to the mobile terminal by sending the online link and sending the test result abstract.
According to the embodiment of the invention, the test server analyzes the result of the function test and/or the result of the performance test to obtain the test result corresponding to the test task, and sends the test result corresponding to the test task to the mobile terminal, so that a tester can conveniently check the test result at the mobile terminal, the exportability of the test result can be improved, problems and defects in the Web system to be tested can be found, whether the Web system to be tested is abnormal or not can be judged, the comprehensive analysis test result of the Web system to be tested can be obtained, and a data basis can be provided for the tester to analyze the test result and find potential problems in the Web system to be tested.
Based on the content of the above embodiments, the executing of the test task specifically includes: and if judging that the Web system to be tested is abnormal, generating alarm information and sending the alarm information to the mobile terminal.
The test server can judge whether the Web system to be tested is abnormal or not by monitoring whether the key performance index of the Web system to be tested exceeds the reasonable range interval of normal operation or not in real time.
If the test server monitors that the key performance index of the Web system to be tested exceeds the reasonable range of normal operation, the test server can judge and know that the Web system to be tested is abnormal at the current moment. For example: if the reasonable range interval of the CPU utilization rate in the running environment of the Web system to be tested is not more than 70%, and the CPU utilization rate of the running environment of the Web system to be tested is found to be 72% by the test server through real-time monitoring, the condition that the Web system to be tested is abnormal can be judged and obtained.
The test server can also judge whether the Web system to be tested is abnormal or not by monitoring the running log of the Web system to be tested in real time.
If the test server detects that error information or warning information appears in the running log of the Web system to be tested, the test server can judge and know that the Web system to be tested is abnormal at the current moment.
It should be noted that the test server may separately monitor the key performance index of the to-be-tested Web system in real time or monitor the operation log of the to-be-tested Web system in real time, to determine whether the to-be-tested Web system is abnormal at the present time, or may simultaneously monitor the key performance index of the to-be-tested Web system and the operation log of the to-be-tested Web system in real time, to determine whether the to-be-tested Web system is abnormal at the present time.
If the Web system to be tested is judged and known to be abnormal at the current moment, the test server can generate alarm information according to the key performance index.
The test server can send the alarm information to the mobile terminal in a way of sending the alarm short message, a way of pushing the alarm information by the network and other ways. And the tester can find the abnormality of the Web system to be tested in time according to the alarm information received by the mobile terminal and respond.
According to the embodiment of the invention, the test server judges and learns that the Web system to be tested is abnormal according to the key performance index and/or the operation log of the Web system to be tested which are monitored in real time, the alarm information is generated according to the key performance index and/or the operation log, the alarm information is sent to the mobile terminal, the alarm information of the Web system to be tested can be received at the mobile terminal, and a tester can find the abnormality of the Web system to be tested in time and respond.
Fig. 3 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention. The following describes a Web system test apparatus according to an embodiment of the present invention with reference to fig. 3. As shown in fig. 2, the apparatus includes: an information interaction module 301 and a task processing module 302, wherein:
and the information interaction module is used for receiving the test task of the Web system to be tested.
And the task processing module is used for acquiring the parameters corresponding to the test tasks from the local storage and sending the parameters and the test tasks to the test server if the fact that the test is executed on the Web system to be tested is judged and known, so that the test server executes the test tasks and acquires the test results corresponding to the test tasks.
The parameters comprise a login account and a password of the Web system to be tested.
It should be noted that the Web system testing apparatus according to the embodiment of the present invention is a mobile terminal in any of the above embodiments.
The mobile terminal in the embodiment of the present invention may be a terminal that has a communication function and can be used in moving, for example: a smart phone, a tablet computer, or a notebook computer. The mobile terminal can communicate with the Web system to be tested.
Specifically, the information interaction module 301 and the task processing module 302 are electrically connected.
The tester can input the test task of the to-be-tested Web system through the information interaction module 301, and the information interaction module 301 receives the test task of the to-be-tested Web system and can store the test task to the task processing module 302.
The task processing module 302 may compare the test task of the to-be-tested Web system with the executed test task stored in the task processing module 302, and determine whether the test has been executed on the to-be-tested Web system.
It should be noted that the parameters corresponding to the executed test tasks are already stored in the task processing module 302.
If the task processing module 302 determines that it is known that the test has been performed on the to-be-tested Web system, the parameter corresponding to the test task of the to-be-tested Web system is already stored in the task processing module 302 and can be obtained from the local storage of the task processing module 302.
If the task processing module 302 determines that the test on the to-be-tested Web system is not performed, the task processing module 302 does not store the parameters corresponding to the test task of the to-be-tested Web system. Parameters corresponding to a test task of the to-be-tested Web system can be input through the information interaction module 301, and the information interaction module 301 receives the parameters and stores the parameters to the task processing module 302.
After acquiring the parameters corresponding to the test task, the task processing module 302 may send the parameters and the test task to the test server. The test server can log in the Web system to be tested according to the login account and the password of the Web system to be tested, which are included in the parameters, execute the test task and acquire the test result corresponding to the test task.
It should be noted that the Web system testing apparatus according to the embodiment of the present invention may further include an authentication information receiving and sending module 403.
Fig. 4 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention. The following describes a Web system test apparatus according to an embodiment of the present invention with reference to fig. 4. As shown in fig. 4, the apparatus includes: an information interaction module 301, a task processing module 302 and an authentication information receiving and sending module 403, wherein:
an authentication information receiving and sending module 403, configured to receive authentication information sent by a to-be-tested Web system; and sending the authentication information to the test server.
The authentication information is used for verifying whether the test server has the authority of accessing the Web system to be tested and performing related operations.
Specifically, the information interaction module 301, the task processing module 302, and the authentication information receiving and sending module 403 are electrically connected.
The authentication information receiving and sending module 403 may receive the authentication information sent by the Web system to be tested, and send the authentication information to the test server.
After receiving the authentication information, the test server can send the authentication information to the Web system to be tested. The Web system to be tested authenticates the authentication information, if the authentication information passes the authentication, the test server can be shown to have the authority of accessing the Web system to be tested or the authority of carrying out related operations, so that the test task can be executed, and the test result corresponding to the test task can be obtained.
It should be noted that the authentication information may be a short message verification code. Accordingly, the mobile terminal may be a mobile terminal with a short message function, for example: the smart phone is provided with a sim card, and the tablet personal computer or the notebook personal computer is provided with a short message function.
After the test task of the Web system to be tested is input through the information interaction module, the task processing module judges that the test on the Web system to be tested is executed according to the test task, obtains the parameters corresponding to the test task from the local storage, and sends the parameters and the test task to the test server, so that the test on the Web system to be tested can be automatically completed, the repeated input of the parameters can be avoided, the test efficiency can be improved, the test flow can be simplified, and the test stability can be improved.
Fig. 5 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention. The following describes a Web system test apparatus according to an embodiment of the present invention with reference to fig. 5. As shown in fig. 5, the apparatus includes: a communication module 501 and a test module 502, wherein:
the communication module 501 is configured to receive a test task of the Web system to be tested sent by the mobile terminal and a parameter corresponding to the test task.
The testing module 502 is configured to execute a testing task and obtain a testing result corresponding to the testing task.
The parameters corresponding to the test tasks are obtained from a local storage after the mobile terminal judges that the test on the Web system to be tested is executed; the parameters comprise a login account and a password of the Web system to be tested.
It should be noted that the Web system test apparatus according to the embodiment of the present invention is the test server in any of the above embodiments.
Specifically, the communication module 501 and the test module 502 are electrically connected.
The communication module 501 may receive the test task of the to-be-tested Web system and the parameter corresponding to the test task sent by the information interaction module, and send the test task and the parameter of the to-be-tested Web system to the test module 502.
After receiving the test task and the parameters, the test module 502 may log in the to-be-tested Web system according to the login account and the password of the to-be-tested Web system included in the parameters, execute the test task, test the to-be-tested Web system, and obtain a test result corresponding to the test task.
It should be noted that the communication module 501 may also receive the authentication information sent by the authentication information receiving and sending module 403. After receiving the authentication information, the communication module 501 may send the authentication information to the to-be-tested Web system. The Web system to be tested authenticates the authentication information, if the authentication information passes the authentication, the test server can be shown to have the authority of accessing the Web system to be tested or the authority of carrying out related operations, so that the test task can be executed, and the test result corresponding to the test task can be obtained.
It should be noted that the Web system testing apparatus according to the embodiment of the present invention may further include a result processing module 603 and an exception warning module 604, and the testing module 502 may further include a function testing sub-module 601 and/or a performance testing sub-module 602.
Fig. 6 is a schematic structural diagram of a Web system testing apparatus according to an embodiment of the present invention. The following describes a Web system test apparatus according to an embodiment of the present invention with reference to fig. 6. As shown in fig. 6, the apparatus includes: a communication module 501, a test module 502 (including a function test sub-module 601 and/or a performance test sub-module 602), a result processing module 603, and an exception warning module 604, wherein:
and the function testing sub-module 601 is configured to perform a function test on the to-be-tested Web system.
And the performance testing submodule 602 is configured to perform performance testing on the Web system to be tested.
The result processing module 603 is configured to analyze a result of the function test and a result of the performance test, obtain a test result corresponding to the test task, and send the test result corresponding to the test task to the mobile terminal.
And the anomaly alarm module 604 is configured to generate alarm information if it is determined that the Web system to be tested is anomalous, and send the alarm information to the mobile terminal.
Specifically, the communication module 501, the test module 502 (including the function test sub-module 601 and/or the performance test sub-module 602), the function test sub-module 601, the performance test sub-module 602, the result processing module 603, and the abnormality warning module 604 are electrically connected.
The functional test sub-module 601 may obtain a result of the functional test of the Web system to be tested by triggering the execution of the automated test script.
The performance testing sub-module 602 monitors the key performance index of the Web system to be tested in real time, and obtains the result of the performance test of the Web system to be tested.
It should be noted that the key performance indicators of the to-be-tested Web system may describe the performance of the to-be-tested Web system during long-time operation, and the key performance indicators may include, but are not limited to: the method comprises the steps of testing the CPU utilization rate and the memory utilization rate of the running environment of the Web system to be tested, or testing the background thread running state of the Web system to be tested and the like.
It should be noted that the test module 502 may include a functional test sub-module 601 or a performance test sub-module 602, or may include both the functional test sub-module 601 and the performance test sub-module 602.
When the testing module 502 only includes the function testing sub-module 601, the result processing module 603 may extract all error information and warning information in the result of the function testing of the Web system to be tested, and integrate the defect information set with all error information and warning information in the running log of the Web system to be tested. The test server can perform correlation analysis on the defect information set and the test task to obtain a correlation analysis result. The result processing module 603 may generate a functional test report from the defect information sets and the results of the correlation analysis.
When the testing module 502 only includes the performance testing module 602, the result processing module 603 further determines, according to the change of the key performance index in the result of the performance test of the to-be-tested Web system, that the to-be-tested Web system is abnormal. The test server can integrate all the abnormal information discovered through the performance test and all the error information and the warning information in the running log of the Web system to be tested into an abnormal information set. Further, the result processing module 603 may further extract and analyze the abnormal information set, and may sort the analysis results according to the priority level. The result processing module 603 may generate a performance test report from the exception information set and the sorted results.
When the test module 502 includes the function test sub-module 601 and the performance test sub-module 602 at the same time, the function test sub-module 601 and the performance test sub-module 602 may perform a function test or a performance test on the Web system to be tested separately to obtain a function test report and a performance test report, and the method for obtaining the function test report and the performance test report is as described above and is not described herein again. The result processing module 603 may further perform comprehensive analysis on the function test report and the performance test report, and may obtain a result of the comprehensive analysis, such as a correspondence between the defect and the abnormality in the to-be-tested Web system or an influence of the defect in the to-be-tested Web system on the performance through the comprehensive analysis. The test server may use the result of the comprehensive analysis as a test result corresponding to the test task.
After the result processing module 603 obtains the test result corresponding to the test task, the test result may be generated into an online link, and key information in the test result may also be extracted as a summary of the test result.
The result processing module 603 may send the test result corresponding to the test task to the information interaction module by sending the online link and sending the test result abstract.
The anomaly alarm module 604 may determine whether the Web system to be tested is abnormal by monitoring whether the key performance index of the Web system to be tested exceeds the reasonable range of normal operation in real time.
The anomaly alarm module 604 may also monitor the running log of the to-be-tested Web system in real time to determine whether the to-be-tested Web system is anomalous.
If the anomaly alarm module 604 detects that the key performance index of the to-be-tested Web system exceeds the reasonable range of normal operation and/or error information or warning information appears in the operation log of the to-be-tested Web system, it can be determined that the current time of the to-be-tested Web system is anomalous.
The anomaly alarm module 604 may generate alarm information after determining that the Web system to be tested is anomalous at the current time.
The abnormal warning module 604 may send the warning message to the information interaction module in a manner of sending a warning short message, in a manner of pushing the warning message through a network, or in other manners. The tester can find the abnormality of the Web system to be tested in time according to the alarm information received by the information interaction module and respond.
According to the embodiment of the invention, the communication module is used for receiving the testing task of the Web system to be tested and the parameters corresponding to the testing task, which are sent by the mobile terminal, and the testing module executes the testing task and acquires the testing result corresponding to the testing task after logging in the Web system to be tested according to the login account number and the password of the Web system to be tested, which are included in the parameters, so that the repeated input of the parameters can be avoided, the testing efficiency can be improved, the testing flow can be simplified, the testing stability can be improved, and a data basis can be provided for a tester to find potential problems in the Web system to be tested.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)701, a communication Interface (Communications Interface)702, a memory (memory)703 and a communication bus 704, wherein the processor 701, the communication Interface 702 and the memory 703 complete communication with each other through the communication bus 704. The processor 701 may call logic instructions in the memory 703 to execute the Web system test method provided by the above-described method embodiments, where the method includes: receiving a test task of a Web system to be tested; if the Web system to be tested is judged and known to be tested, acquiring parameters corresponding to the test task from a local storage, and sending the parameters and the test task to a test server so that the test server executes the test task and acquires a test result corresponding to the test task; the parameters comprise a login account and a password of the Web system to be tested; or comprises the following steps: receiving a test task of a Web system to be tested sent by a mobile terminal and a parameter corresponding to the test task; executing the test task and obtaining a test result corresponding to the test task; the parameters corresponding to the test tasks are acquired from a local storage after the mobile terminal judges that the Web system to be tested is tested; the parameters comprise a login account and a password of the Web system to be tested.
In addition, the logic instructions in the memory 703 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the Web system testing method provided by the above-mentioned method embodiments, where the method includes: receiving a test task of a Web system to be tested; if the Web system to be tested is judged and known to be tested, acquiring parameters corresponding to the test task from a local storage, and sending the parameters and the test task to a test server so that the test server executes the test task and acquires a test result corresponding to the test task; the parameters comprise a login account and a password of the Web system to be tested; or comprises the following steps: receiving a test task of a Web system to be tested sent by a mobile terminal and a parameter corresponding to the test task; executing the test task and obtaining a test result corresponding to the test task; the parameters corresponding to the test tasks are acquired from a local storage after the mobile terminal judges that the Web system to be tested is tested; the parameters comprise a login account and a password of the Web system to be tested.
In still another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the Web system testing method provided in the foregoing embodiments, and the method includes: receiving a test task of a Web system to be tested; if the Web system to be tested is judged and known to be tested, acquiring parameters corresponding to the test task from a local storage, and sending the parameters and the test task to a test server so that the test server executes the test task and acquires a test result corresponding to the test task; the parameters comprise a login account and a password of the Web system to be tested; or comprises the following steps: receiving a test task of a Web system to be tested sent by a mobile terminal and a parameter corresponding to the test task; executing the test task and obtaining a test result corresponding to the test task; the parameters corresponding to the test tasks are acquired from a local storage after the mobile terminal judges that the Web system to be tested is tested; the parameters comprise a login account and a password of the Web system to be tested.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A Web system test method is characterized by comprising the following steps:
receiving a test task of a Web system to be tested;
if the fact that the test is executed on the Web system to be tested is judged and known, obtaining parameters corresponding to the test task from a local storage, and sending the parameters and the test task to a test server, so that the test server executes the test task and obtains a test result corresponding to the test task;
the parameters comprise a login account and a password of the Web system to be tested.
2. The Web system testing method of claim 1, wherein after determining that the Web system to be tested has been tested, acquiring a parameter corresponding to the test task from a local storage, and sending the parameter and the test task to a test server, the method further comprises:
receiving authentication information sent by a Web system to be tested;
sending the authentication information to the test server;
and the authentication information is used for verifying whether the test server has the authority of accessing the Web system to be tested and performing related operations.
3. A Web system test method is characterized by comprising the following steps:
receiving a test task of a Web system to be tested sent by a mobile terminal and a parameter corresponding to the test task;
executing the test task to obtain a test result corresponding to the test task;
the parameters corresponding to the test task are obtained from a local storage after the mobile terminal judges that the test on the Web system to be tested is executed; the parameters comprise a login account and a password of the Web system to be tested.
4. The Web system testing method according to claim 3, wherein the executing the test task specifically includes:
and performing function test and/or performance test on the Web system to be tested.
5. The Web system testing method according to claim 4, wherein the obtaining of the test result corresponding to the test task specifically includes:
analyzing a result of the function test and/or a result of the performance test to obtain a test result corresponding to the test task, and sending the test result corresponding to the test task to the mobile terminal.
6. The Web system testing method according to any one of claims 3 to 5, wherein the executing the test task specifically includes:
and if the Web system to be tested is judged to be abnormal, generating alarm information and sending the alarm information to the mobile terminal.
7. A Web system test apparatus, comprising:
the information interaction module is used for receiving a test task of the Web system to be tested;
the task processing module is used for acquiring parameters corresponding to the test task from a local storage if the fact that the test is executed on the Web system to be tested is judged and known, and sending the parameters and the test task to a test server so that the test server can execute the test task and acquire a test result corresponding to the test task;
the parameters comprise a login account and a password of the Web system to be tested.
8. A Web system test apparatus, comprising:
the communication module is used for receiving a test task of the Web system to be tested sent by the mobile terminal and a parameter corresponding to the test task;
the test module executes the test task and obtains a test result corresponding to the test task;
the parameters corresponding to the test task are obtained from a local storage after the mobile terminal judges that the test on the Web system to be tested is executed; the parameters comprise a login account and a password of the Web system to be tested.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the Web system testing method according to any of claims 1 to 6 are implemented when the processor executes the program.
10. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the Web system testing method according to any one of claims 1 to 6.
CN202011253704.1A 2020-11-11 2020-11-11 Web system testing method and device Pending CN112363931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011253704.1A CN112363931A (en) 2020-11-11 2020-11-11 Web system testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011253704.1A CN112363931A (en) 2020-11-11 2020-11-11 Web system testing method and device

Publications (1)

Publication Number Publication Date
CN112363931A true CN112363931A (en) 2021-02-12

Family

ID=74515853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011253704.1A Pending CN112363931A (en) 2020-11-11 2020-11-11 Web system testing method and device

Country Status (1)

Country Link
CN (1) CN112363931A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515449A (en) * 2021-05-19 2021-10-19 中国工商银行股份有限公司 Chaos test method, system, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021077A (en) * 2014-06-10 2014-09-03 广州市久邦数码科技有限公司 Mobile terminal software test system and method
CN105138454A (en) * 2015-08-24 2015-12-09 浪潮电子信息产业股份有限公司 Automated measurement method for security software of B/S framework
CN105550113A (en) * 2015-12-18 2016-05-04 网易(杭州)网络有限公司 Web test method and test machine
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
CN106649109A (en) * 2016-12-14 2017-05-10 工业和信息化部电信研究院 Web testing method and system of intelligent terminal
CN107508720A (en) * 2017-07-25 2017-12-22 中国银联股份有限公司 A kind of automated testing method and device
CN109831310A (en) * 2019-03-11 2019-05-31 杭州财人汇网络股份有限公司 A kind of auth method, system and relevant apparatus
CN110442524A (en) * 2019-08-09 2019-11-12 中国建设银行股份有限公司 It is a kind of for have Certificate Authority web service interface test method and device
CN110740134A (en) * 2019-10-18 2020-01-31 苏州浪潮智能科技有限公司 URL authentication test method, device, equipment and medium
CN111045911A (en) * 2019-12-19 2020-04-21 京东数字科技控股有限公司 Performance test method, performance test device, storage medium and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021077A (en) * 2014-06-10 2014-09-03 广州市久邦数码科技有限公司 Mobile terminal software test system and method
CN105138454A (en) * 2015-08-24 2015-12-09 浪潮电子信息产业股份有限公司 Automated measurement method for security software of B/S framework
CN105550113A (en) * 2015-12-18 2016-05-04 网易(杭州)网络有限公司 Web test method and test machine
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
CN106649109A (en) * 2016-12-14 2017-05-10 工业和信息化部电信研究院 Web testing method and system of intelligent terminal
CN107508720A (en) * 2017-07-25 2017-12-22 中国银联股份有限公司 A kind of automated testing method and device
CN109831310A (en) * 2019-03-11 2019-05-31 杭州财人汇网络股份有限公司 A kind of auth method, system and relevant apparatus
CN110442524A (en) * 2019-08-09 2019-11-12 中国建设银行股份有限公司 It is a kind of for have Certificate Authority web service interface test method and device
CN110740134A (en) * 2019-10-18 2020-01-31 苏州浪潮智能科技有限公司 URL authentication test method, device, equipment and medium
CN111045911A (en) * 2019-12-19 2020-04-21 京东数字科技控股有限公司 Performance test method, performance test device, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515449A (en) * 2021-05-19 2021-10-19 中国工商银行股份有限公司 Chaos test method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110445688B (en) Interface service function monitoring method and system based on data collection
CN110955899B (en) Safety test method, device, test equipment and medium
CN113934621A (en) Fuzzy test method, system, electronic device and medium
CN112069070A (en) Page detection method, device, server and computer readable storage medium
CN112363931A (en) Web system testing method and device
CN113239366B (en) Vulnerability nondestructive testing method and system for electric power industrial control equipment
CN113722240B (en) Stability testing method and system for linux operating system management platform
CN115934559A (en) Testing method of intelligent form testing system
CN116166536A (en) Test method, test device, electronic equipment and storage medium
CN114154169A (en) Jenkins and JMeter-based automatic test method and device
CN113495750B (en) Upgrade detection method and device for equipment and server
CN110046067B (en) Interface testing method and device
CN111597101B (en) SDK access state detection method, computer equipment and computer readable storage medium
CN112363908A (en) Asynchronous interface test method, system, electronic device and storage medium
CN112527606A (en) Data flow analysis method and device, computer equipment and storage medium
CN111934949A (en) Safety test system based on database injection test
CN114553490B (en) Industrial passive fuzzy test method, system and readable storage medium
CN109067956B (en) Method and device for detecting terminal for police system and police system
CN117076317A (en) Software stability testing method, device, equipment and medium
CN117609004A (en) Influence degree evaluation method, device, equipment and medium for financial platform test
CN117938624A (en) Online service fault exercise method, electronic equipment and storage medium
CN116208520A (en) Network measurement method, device, communication equipment and storage medium
CN115225472A (en) Log collection method and device and computer equipment
CN117254069A (en) Fault protection method and system for fuel cell engine
CN115292185A (en) OBD interface testing 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