CN116107833A - Web application program monitoring method and device based on selenium - Google Patents

Web application program monitoring method and device based on selenium Download PDF

Info

Publication number
CN116107833A
CN116107833A CN202211584520.2A CN202211584520A CN116107833A CN 116107833 A CN116107833 A CN 116107833A CN 202211584520 A CN202211584520 A CN 202211584520A CN 116107833 A CN116107833 A CN 116107833A
Authority
CN
China
Prior art keywords
web application
target
selenium
test case
service
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
CN202211584520.2A
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.)
Beijing Casicloud Co ltd
Original Assignee
Beijing Casicloud 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 Beijing Casicloud Co ltd filed Critical Beijing Casicloud Co ltd
Priority to CN202211584520.2A priority Critical patent/CN116107833A/en
Publication of CN116107833A publication Critical patent/CN116107833A/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/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides a web application monitoring method and device based on selenium, wherein the web application monitoring method based on selenium comprises the following steps: extracting a target execution path of the web application program for executing the service based on the service flow tree; determining a target test case corresponding to the service based on the target execution path; the target test case is executed based on the selenium test tool. By the method, real-time monitoring of the web application program is realized; because the monitoring of the web application program is carried out at the client, the target test case is executed at the client based on the selenium test tool, the operation of a user at the client can be simulated, and the data transmitted to the client from the server through the link can be intuitively monitored from the client under the condition that the server has no authority to access an external production server, so that the stable and normal operation of the web application program is ensured.

Description

Web application program monitoring method and device based on selenium
Technical Field
The invention relates to the technical field of computers, in particular to a web application program monitoring method and device based on selenium.
Background
A web page (web) application is an application that can be accessed through the web, and a user can access the web application's pages using a browser without having to install additional software. As web technology evolves, web applications become increasingly complex, and accordingly, the need to monitor web applications continues to increase.
In the related art, a server side is generally used to monitor web applications. However, in the practical application of the enterprise, a large amount of external web application programs are integrated in the form of external links, and because the server side has no authority to access to an external production server, when the server side monitors the web application programs, the problem that the external web application programs cannot be monitored can occur, so that the problem that the external web application programs are abnormal can be caused.
Therefore, how to effectively monitor the web application program and ensure the stable and normal operation of the web application program is a problem to be solved at present.
Disclosure of Invention
Aiming at the problems existing in the prior art, the embodiment of the invention provides a web application program monitoring method and device based on selenium.
The invention provides a web application program monitoring method based on selenium, which is applied to a client and comprises the following steps:
extracting a target execution path of the web application program for executing the service based on the service flow tree;
determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not;
and executing the target test case based on the selenium test tool.
Optionally, the extracting, based on the service flow tree, a target execution path of the web application program to execute the service includes:
determining a path set for the web application to execute the service based on the service flow tree; the path set comprises all execution paths for the web application program to execute the service;
determining the target execution path from the path set; the target execution path is the longest execution path in the path set.
Optionally, the target execution path includes at least one test point; the test point is a node for testing the web application program;
the determining, based on the target execution path, a target test case corresponding to the service includes:
determining a test case corresponding to each test point according to each test point;
and generating the target test case based on each test case.
Optionally, after the executing the test case based on the selenium test tool, the method further comprises:
generating an alarm event under the condition that the test result is abnormal; the test result is obtained after the target test case is executed based on the selenium test tool; the alert event is used to characterize the web application operating anomaly.
Optionally, after the generating the alarm event, the method further comprises:
generating a target strategy based on the alarm event; the target strategy is used for processing the alarm event;
and displaying the alarm event and the target strategy on a display interface.
The invention also provides a web application monitoring device based on selenium, which comprises:
the extraction module is used for extracting a target execution path of the web application program for executing the service based on the service flow tree;
the determining module is used for determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not;
and the execution module is used for executing the target test case based on the selenium test tool.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the web application monitoring method based on selenium when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a selenium-based web application monitoring method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a selenium-based web application monitoring method as described in any of the above.
According to the selenium-based web application monitoring method and device, the client side extracts the target execution path of the web application execution service through the service flow tree, then determines the target test case corresponding to the service based on the target execution path, and executes the target test case based on the selenium test tool, so that real-time monitoring of the web application is realized; because the monitoring of the web application program is carried out at the client, the target test case is executed at the client based on the selenium test tool, the operation of a user at the client can be simulated, and the data transmitted to the client from the server through the link can be intuitively monitored from the client under the condition that the server has no authority to access an external production server, so that the stable and normal operation of the web application program is ensured.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow diagram of a selenium-based web application monitoring method provided by the present invention;
FIG. 2 is a second flow chart of the selenium-based web application monitoring method according to the present invention;
FIG. 3 is a schematic diagram of a selenium-based web application monitoring device according to the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The selenium-based web application monitoring method of the present invention is described below in conjunction with fig. 1-2. Fig. 1 is a schematic flow chart of a selenium-based web application monitoring method provided by the invention, and referring to fig. 1, the method is applied to a client, and includes steps 101-103, wherein:
and 101, extracting a target execution path of the web application program for executing the service based on the service flow tree.
It should be noted that the execution subject of the present invention may be any electronic device capable of monitoring a web application based on a selenium test tool, for example, any one of a smart phone, a smart watch, a desktop computer, a laptop computer, and the like.
In order to effectively monitor the web application program and ensure the stable and normal operation of the web application program, in this embodiment, the client needs to extract a target execution path of the web application program for executing the service from the service flow tree.
It should be noted that there may be multiple target execution paths of a service.
Specifically, the client can directly acquire the business process tree from the local or acquire the business process tree from the remote server, and the acquisition mode of the business process tree is not limited; the business flow tree is also called a business flow diagram (Transaction Flow Diagram, TFD), which is a chart describing business relations, operation sequences and management information flow directions among units and personnel in the management system.
The client can determine the service scene through the service flow tree, familiarize with important functions of projects according to the test plan and the requirement specification, analyze the test requirement and know each flow branch of the service.
By designing the business process tree, the test cases generated later can cover all the processes of the business.
102, determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not.
In this embodiment, after extracting a target execution path of a web application program for executing a service based on a service flow tree, a client needs to determine a target test case corresponding to the service based on the target execution path.
Specifically, in practical application, the target test case may be written in java language, or in other languages, which is not limited in the present invention.
And step 103, executing the target test case based on the selenium test tool.
In this embodiment, after determining a target test case corresponding to a service, the target test case needs to be executed based on a selenium test tool.
It should be noted that, because the client side tests the web application program by using the test case to realize automatic control of the browser to simulate the user behavior, the open source selenium code library is required to be introduced to complete the interaction between the computer and the browser, including opening the browser, clicking a button, inputting characters by a text box, and the like.
Among them, selenium is a tool for web application testing; the selenium test runs directly in the browser as if the real user were operating. The main functions of the selenium test tool include:
[a] testing compatibility with the browser: the test application program is able to work well on top of different browsers and operating systems.
[b] Testing system function: regression testing is created to verify software functionality and user requirements. Supporting automatic recording action and automatic generation of test scripts in different languages, such as Net, java, perl.
The interaction process of the Selenium and the browser utilizes the browser drive of the Google browser, complies with the browser drive protocol, is one of the standard protocols of w3c, provides a friendly set of API, and can be conveniently used for the automatic test work of web application programs based on the API; the Selenium calls this API to complete the browser's interaction.
The client needs to execute the target test case in a stable server environment, and is specifically realized through the following steps:
1) Downloading a java software development kit, selecting an installation directory, and installing jdk.
2) Downloading a Jenkins installation package, selecting an installation catalog, and installing a Jenkins tool. And (5) operating after the installation is completed.
It should be noted that Jenkins is an extensible continuous integration engine in a software development project, and can be used to continuously and automatically construct and test the software project. And executing test cases regularly by utilizing the automatic construction characteristic of Jenkins.
3) After the successful start, a Jenkins item is newly built, and the item name, the catalog of the code to be run, a trigger (timing task schedule) and a mail trigger (sending mail notification after construction) are filled in to construct the item.
4) The test code is executed at regular time after the project is established.
After the server environment is built, test code may be executed periodically to test the functionality of the web application.
According to the selenium-based web application monitoring method, the client side extracts the target execution path of the web application execution service through the service flow tree, then determines the target test case corresponding to the service based on the target execution path, and executes the target test case based on the selenium test tool, so that real-time monitoring of the web application is realized; because the monitoring of the web application program is carried out at the client, the target test case is executed at the client based on the selenium test tool, the operation of a user at the client can be simulated, and the data transmitted to the client from the server through the link can be intuitively monitored from the client under the condition that the server has no authority to access an external production server, so that the stable and normal operation of the web application program is ensured.
Optionally, in one possible implementation manner of the embodiment of the present invention, the extracting, based on the service flow tree, a target execution path of the web application to execute the service may be specifically implemented by the following steps 1) to 2):
step 1), determining a path set of the web application program for executing the service based on the service flow tree; the path set comprises all execution paths for the web application program to execute the service;
step 2), determining the target execution path from the path set; the target execution path is the longest execution path in the path set.
In this embodiment, the target execution path may also be referred to as a critical execution path, which refers to the longest path from the start position to the end position of the business process.
Specifically, the events are represented by vertices v, the activities are represented by arcs a, and all events and activities are represented as a directed graph (i.e., a path set).
Assuming that the length of all arcs a is 1, using v1 to represent service start, v9 to represent service end, and enabling the longest arc length between v1 and v9 to be the target execution path of the service; it should be noted that more than one target execution path may be provided.
In the embodiment, the longest execution path in the path set is determined as the target execution path through the business process tree, and the target test case generated subsequently can cover all the processes of the business as much as possible based on the target execution path, so that the accuracy of monitoring the web application program is improved.
Optionally, in a possible implementation manner of the embodiment of the present invention, the target execution path includes at least one test point; the test point is a node for testing the web application program;
the determining of the target test case corresponding to the service based on the target execution path can be realized specifically through the following steps [1] -2:
step [1], aiming at each test point, determining a test case corresponding to the test point;
and step 2, generating the target test case based on each test case.
In this embodiment, for each test point, a corresponding test case needs to be determined; and the set generated by the test cases corresponding to each test point is the target test case.
The following description will be made by taking a java language to write a target test case as an example:
1) The activity a in the target execution path is expressed in java language, i.e. a series of specific actions from the event v1 to the middle of v 2.
For example, one implementation of login is the following steps: opening the browser, inputting an account number, a password and clicking a login button.
2) And the event v in the target execution path is expressed by assertions in java language, namely, whether the state of the event v2 meets the expected condition is judged after the event v1 reaches the event v2 through a series of specific actions.
For example, the condition that the login is successfully satisfied from the login is that the user information is changed to the logged-in state, and the user welcome page is jumped to.
3) A plurality of methods and assertions are combined together to form code test cases, i.e., target test cases, for critical services.
In the embodiment, for each test point in the target execution path, the test case corresponding to the test point is determined, and then the target test case is generated based on each test case, so that the target test case can cover all the flows of the service as much as possible, and the accuracy rate of monitoring the web application program is improved.
Optionally, in a possible implementation manner of the embodiment of the present invention, after the test case is executed based on the selenium test tool, the client needs to execute the following steps:
generating an alarm event under the condition that the test result is abnormal; the test result is obtained after the target test case is executed based on the selenium test tool; the alert event is used to characterize the web application operating anomaly.
Optionally, after the generation of the alarm event, the client needs to perform the following steps, specifically including steps [ a ] -step [ b ]:
step [ a ], based on the alarm event, generating a target strategy; the target strategy is used for processing the alarm event;
and step [ b ], displaying the alarm event and the target strategy on a display interface.
In another possible implementation manner of this embodiment, after the alert event and the target policy are generated, the alert event and the target policy may be sent to the specified mailbox, so that the manager can process the alert event in time.
Fig. 2 is a second flowchart of a selenium-based web application monitoring method according to the present invention, and referring to fig. 2, the method is applied to a client, and includes steps 201 to 208, where:
step 201, determining a path set for the web application program to execute the service based on the service flow tree.
Specifically, the path set includes all execution paths for the web application to execute the traffic.
Step 202, determining a target execution path from the path set, wherein the target execution path is the longest execution path in the path set.
Step 203, determining a test case corresponding to each test point on the target execution path.
And 204, generating a target test case based on each test case.
Step 205, executing the target test case based on the selenium test tool.
And 206, generating an alarm event under the condition that the test result is abnormal.
Specifically, the test result is obtained after the target test case is executed based on the selenium test tool; the alert event is used to characterize web application operational anomalies.
Step 207, generating a target strategy based on the alarm event, wherein the target strategy is used for processing the alarm event.
And step 208, displaying the alarm event and the target strategy on a display interface.
According to the selenium-based web application monitoring method, the client side extracts the target execution path of the web application execution service through the service flow tree, then determines the target test case corresponding to the service based on the target execution path, and executes the target test case based on the selenium test tool, so that real-time monitoring of the web application is realized; because the monitoring of the web application program is carried out at the client, the target test case is executed at the client based on the selenium test tool, the operation of a user at the client can be simulated, and the data transmitted to the client from the server through the link can be intuitively monitored from the client under the condition that the server has no authority to access an external production server, so that the stable and normal operation of the web application program is ensured. In addition, the web application monitoring method based on selenium can replace manual operation to realize 7-24 hour stability monitoring of key business, and alarm before a user finds a problem, so that continuous and stable operation of the production environment is ensured.
The selenium-based web application monitoring device provided by the invention is described below, and the selenium-based web application monitoring device described below and the selenium-based web application monitoring method described above can be referred to correspondingly. Fig. 3 is a schematic structural diagram of a selenium-based web application monitoring device according to the present invention, and as shown in fig. 3, the selenium-based web application monitoring device 300 is applied to a server, and includes: an extraction module 301, a determination module 302, an execution module 303, wherein:
an extracting module 301, configured to extract, based on a service flow tree, a target execution path of the web application program for executing the service;
a determining module 302, configured to determine a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not;
and the execution module 303 is configured to execute the target test case based on the selenium test tool.
According to the selenium-based web application monitoring device provided by the invention, the target execution path of the web application execution service is extracted through the service flow tree, then the target test case corresponding to the service is determined based on the target execution path, and the target test case is executed based on the selenium test tool, so that the web application is monitored in real time; because the monitoring of the web application program is carried out at the client, the target test case is executed at the client based on the selenium test tool, the operation of a user at the client can be simulated, and the data transmitted to the client from the server through the link can be intuitively monitored from the client under the condition that the server has no authority to access an external production server, so that the stable and normal operation of the web application program is ensured.
Optionally, the extracting module 301 is further configured to:
determining a path set for the web application to execute the service based on the service flow tree; the path set comprises all execution paths for the web application program to execute the service;
determining the target execution path from the path set; the target execution path is the longest execution path in the path set.
Optionally, the target execution path includes at least one test point; the test point is a node for testing the web application program;
the determining module 302 is further configured to:
determining a test case corresponding to each test point according to each test point;
and generating the target test case based on each test case.
Optionally, the apparatus further comprises:
the first generation module is used for generating an alarm event under the condition that the test result is abnormal; the test result is obtained after the target test case is executed based on the selenium test tool; the alert event is used to characterize the web application operating anomaly.
Optionally, the apparatus further comprises:
the second generation module is used for generating a target strategy based on the alarm event; the target strategy is used for processing the alarm event;
and the display module is used for displaying the alarm event and the target strategy on a display interface.
Fig. 4 is a schematic structural diagram of an electronic device according to the present invention, as shown in fig. 4, the electronic device may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. Processor 410 may invoke logic instructions in memory 430 to perform a selenium-based web application monitoring method comprising: extracting a target execution path of the web application program for executing the service based on the service flow tree; determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not; and executing the target test case based on the selenium test tool.
Further, the logic instructions in the memory 430 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, where the computer program when executed by a processor can perform the method for monitoring web application based on selenium provided by the above methods, and the method includes: extracting a target execution path of the web application program for executing the service based on the service flow tree; determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not; and executing the target test case based on the selenium test tool.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the selenium-based web application monitoring method provided by the methods above, the method comprising: extracting a target execution path of the web application program for executing the service based on the service flow tree; determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not; and executing the target test case based on the selenium test tool.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A selenium-based web application monitoring method, which is applied to a client, and comprises the following steps:
extracting a target execution path of the web application program for executing the service based on the service flow tree;
determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not;
and executing the target test case based on the selenium test tool.
2. The selenium-based web application monitoring method of claim 1, wherein the extracting a target execution path of the web application executing the service based on the service flow tree comprises:
determining a path set for the web application to execute the service based on the service flow tree; the path set comprises all execution paths for the web application program to execute the service;
determining the target execution path from the path set; the target execution path is the longest execution path in the path set.
3. The selenium-based web application monitoring method of claim 1 wherein said target execution path includes at least one test point therein; the test point is a node for testing the web application program;
the determining, based on the target execution path, a target test case corresponding to the service includes:
determining a test case corresponding to each test point according to each test point;
and generating the target test case based on each test case.
4. A selenium-based web application monitoring method according to any one of claims 1 to 3, wherein after the selenium-based test tool executes the test case, the method further comprises:
generating an alarm event under the condition that the test result is abnormal; the test result is obtained after the target test case is executed based on the selenium test tool; the alert event is used to characterize the web application operating anomaly.
5. The selenium-based web application monitoring method of claim 4 wherein after said generating an alert event, the method further comprises:
generating a target strategy based on the alarm event; the target strategy is used for processing the alarm event;
and displaying the alarm event and the target strategy on a display interface.
6. A selenium-based web application monitoring device, for application to a client, comprising:
the extraction module is used for extracting a target execution path of the web application program for executing the service based on the service flow tree;
the determining module is used for determining a target test case corresponding to the service based on the target execution path; the target test case is used for monitoring whether the web application program runs normally or not;
and the execution module is used for executing the target test case based on the selenium test tool.
7. The selenium-based web application monitoring device of claim 6 wherein the extraction module is further configured to:
determining a path set for the web application to execute the service based on the service flow tree; the path set comprises all execution paths for the web application program to execute the service;
determining the target execution path from the path set; the target execution path is the longest execution path in the path set.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the selenium-based web application monitoring method of any one of claims 1 to 5 when the program is executed by the processor.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the selenium-based web application monitoring method of any of claims 1 to 5.
10. A computer program product comprising a computer program which, when executed by a processor, implements a selenium-based web application monitoring method according to any of claims 1 to 5.
CN202211584520.2A 2022-12-09 2022-12-09 Web application program monitoring method and device based on selenium Pending CN116107833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211584520.2A CN116107833A (en) 2022-12-09 2022-12-09 Web application program monitoring method and device based on selenium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211584520.2A CN116107833A (en) 2022-12-09 2022-12-09 Web application program monitoring method and device based on selenium

Publications (1)

Publication Number Publication Date
CN116107833A true CN116107833A (en) 2023-05-12

Family

ID=86266589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211584520.2A Pending CN116107833A (en) 2022-12-09 2022-12-09 Web application program monitoring method and device based on selenium

Country Status (1)

Country Link
CN (1) CN116107833A (en)

Similar Documents

Publication Publication Date Title
US10901876B2 (en) Providing cognitive intelligence across continuous delivery pipeline data
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
US9703624B2 (en) Event correlation and calculation engine
US8533532B2 (en) System identifying and inferring web session events
US8510720B2 (en) System landscape trace
CA3050627A1 (en) Continuous security delivery fabric
US11743155B2 (en) Systems and methods of monitoring and controlling remote assets
US10984109B2 (en) Application component auditor
CN113704767A (en) Vulnerability scanning engine and vulnerability worksheet management fused vulnerability management system
CN110995511A (en) Cloud computing operation and maintenance management method and device based on micro-service architecture and terminal equipment
CN112650688A (en) Automated regression testing method, associated device and computer program product
US10775751B2 (en) Automatic generation of regular expression based on log line data
US10970159B1 (en) Automated system maintenance capabilities for a computing system
CN113591096A (en) Vulnerability scanning system for comprehensively detecting big data bugs and unsafe configurations
CN111381995A (en) Method and device for restoring user operation and computer
CN116841902A (en) Health state checking method, device, equipment and storage medium
CN103414717A (en) Simulation monitoring method and system in regard to C / S structure service system
CN116107833A (en) Web application program monitoring method and device based on selenium
EP3852424B1 (en) Application resilience for applications deployed on a cloud platform
CN112882892B (en) Data processing method and device, electronic equipment and storage medium
US20140337728A1 (en) Operating oracle forms using a web service
CN112131090B (en) Service system performance monitoring method, device, equipment and medium
CN116414594A (en) Fault tree updating method, device, computer equipment and storage medium
Srivastava Kibana 7 quick start guide: visualize your elasticsearch data with ease
Gunasekaran et al. Correlating log messages for system diagnostics

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