CN116980320A - Website operation test method, device, equipment and medium - Google Patents

Website operation test method, device, equipment and medium Download PDF

Info

Publication number
CN116980320A
CN116980320A CN202211733575.5A CN202211733575A CN116980320A CN 116980320 A CN116980320 A CN 116980320A CN 202211733575 A CN202211733575 A CN 202211733575A CN 116980320 A CN116980320 A CN 116980320A
Authority
CN
China
Prior art keywords
website
test
file
testing
page
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
CN202211733575.5A
Other languages
Chinese (zh)
Inventor
魏家钦
杨琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Grandage Data System Co ltd
Original Assignee
Shanghai Grandage Data System Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Grandage Data System Co ltd filed Critical Shanghai Grandage Data System Co ltd
Priority to CN202211733575.5A priority Critical patent/CN116980320A/en
Publication of CN116980320A publication Critical patent/CN116980320A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a website operation test method, a device, equipment and a medium. The method comprises the following steps: acquiring a website operation test file; reading a test website and a test step in a website running test file; accessing a website corresponding to the test website and displaying the page of the website; and executing the testing step, and acquiring a website testing result corresponding to the testing step in the page. The embodiment of the invention simulates the user operation to realize the automatic detection of the running condition of the website, can acquire the running condition of the website in real time, reduces the manual workload and reduces the maintenance cost of the website.

Description

Website operation test method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for testing website operation.
Background
With the development of internet information technology, in order to ensure the normal operation of internet websites, real-time testing needs to be performed on the websites.
The test of the prior art aiming at websites is mainly divided into: server testing and user-side website testing. Aiming at the website test at the user side, a manual clicking mode is mainly adopted, and the mode is low in efficiency and high in input cost.
Disclosure of Invention
The invention provides a website operation test method, a device, equipment and a medium, which are used for solving the problems of low website test efficiency and high cost of a user side.
According to an aspect of the present invention, there is provided a website operation test method, including:
acquiring a website operation test file;
reading a test website and a test step in a website running test file;
accessing a website corresponding to the test website and displaying the page of the website;
and executing the testing step, and acquiring a website testing result corresponding to the testing step in the page.
According to another aspect of the present invention, there is provided a website operation test apparatus, the apparatus comprising:
the file acquisition module is used for acquiring a website operation test file;
the reading module is used for reading the test website and the test step in the website running test file;
the website access module is used for accessing a website corresponding to the test website and displaying the page of the website;
and the result feedback module is used for executing the test step and acquiring a website test result corresponding to the test step from the page.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the website run test method of any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the website run test method according to any embodiment of the present invention when executed.
According to another aspect of the present invention there is provided a computer program product comprising a computer program which when executed by a processor implements the website run test method according to any of the embodiments of the present invention.
According to the technical scheme, the website corresponding to the test website is automatically accessed by acquiring the website running test file, reading the test website and the test step in the website running test file, and the website test result corresponding to the test step is acquired in the page by executing the test step, so that the automatic detection of the website running condition from the user side is realized, the website running condition is acquired in real time, the manual workload is reduced, and the website maintenance cost is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1a is a flowchart of a website operation test method according to a first embodiment of the present invention;
FIG. 1b is an application scenario diagram of a website operation test method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a website operation test method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a website operation test method according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a website operation test apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a website operation test method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only 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 present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure and the like of the related data all conform to the regulations of related laws and regulations and do not violate the popular public order.
Example 1
Fig. 1a is a flowchart of a website operation test method according to an embodiment of the present invention, where the embodiment is applicable to a situation where a user automatically detects a website operation situation. It can be understood that in the prior art, the web site test on the user side mainly operates the pages of the web site in a manual mode, so that the running condition of the web site is obtained, and the detection of the running condition of the web site is realized. The user performs the same operation on the same website by using different electronic devices, and the obtained website may have different operation conditions. According to the invention, the electronic equipment can simulate a manual mode by executing the website running test file, and operate the pages of the website, so that the running condition of the website is obtained, and the automatic monitoring of the running condition of the website is realized. Zabbix is monitoring software which can monitor various network parameters, ensure safe operation of websites, support flexible alarm mechanisms and enable operation and maintenance personnel to rapidly locate faults and solve problems. Fig. 1b is an application scenario diagram of a website operation test method according to an embodiment of the present invention, where in the present invention, detection data of a website operation condition may be obtained through a zagbix monitoring system. The electronic equipment provided with the Zabbix monitoring system is called a monitoring machine 101, detection data of the website running condition transmitted by at least one client 102 can be obtained through the monitoring machine, and an operation and maintenance person can quickly locate faults and solve problems by analyzing the data of the website running condition obtained by the monitoring machine 101. The client 102 refers to an electronic device for detecting the running condition of a website, a zabix client (zabixagent) can be deployed on the client 102, the client 102 can periodically call a website running test file, test the running condition of the website, collect data of performance and availability of the website, namely, the data of the running condition of the website, and send the collected data to the monitor 101 through the zabixagent, so that the monitor 101 obtains the data of the running condition of the website.
The website run test method may be performed by a website run test apparatus, which may be implemented in hardware and/or software, and which may be configured in an electronic device. As shown in fig. 1a, the method comprises:
s110, acquiring a website operation test file.
The website operation test file is a program script file for detecting the operation condition of the website. The web site is a set of web pages for displaying specific content, which is created on the internet according to a certain rule using tools such as HTML (an application in standard universal markup language). By way of example, the website run test file may be a yaml format file that may be written in the Python language. At least one row of content is included in the website running test file, and each row of content can be regarded as one sentence, that is, the website running test file at least includes one sentence. The number of the website running detection files is at least one, and the client can detect different functions of webpages in the website by executing sentences in different website running detection files. The website running detection file can detect the running condition of the webpages in the websites such as Google (Google), firefox (Firefox) and IE (Internet Explorer), that is, by executing different website running detection files, operations such as clicking, inputting and inquiring the webpages in the websites by users can be simulated, whether the webpages respond successfully to the operation behaviors or not and data such as response time can be obtained, and the functions such as clicking, inputting and inquiring of the websites can be detected.
Specifically, the client may obtain the website running detection file from its own storage space through the zaybixagent, or may obtain the website running detection file from the storage space of the monitor through the zaybixagent.
S120, reading a test website and a test step in the website running test file.
A web site generally refers to the address of a web page on the internet. By technical processing, some information is stored on the internet page by page, each page having a corresponding address, called web address, for other users to access and retrieve information material. The test web site refers to the web site of the web page in the web site which needs to be subjected to operation condition detection. The testing step is used for describing the operation behavior of the webpage corresponding to the test website. In a web site operation detection file, a detection web site and at least one test step may be included. It can be appreciated that the client can identify the test web site and test steps in the website run test file by reading the statements in the website run test file. By way of example, the client may read the test website and the test step by identifying the keywords in the website running test file, where the content of the keyword "url" is the test website, where the keyword "steps" is located at the start position of the behavior test step, where in the test step, the keyword "step1" is located at the start position of the first test step of the behavior, where the keyword "step2" is located at the start position of the second test step of the behavior, and so on.
Specifically, the client can identify keywords in the website running detection file through ZabbixAgent, and read a test website and a test step in the website running detection file.
Illustratively, in the website running test file, the test website and test steps may be:
the content following "%" is a content explaining the meaning of a sentence.
S130, accessing a website corresponding to the test website and displaying a page of the website.
The website corresponding to the test website refers to a website for accessing the test website. Specifically, the client accesses the test website by executing the statement of the row of the test website in the website running test file, and displays the page of the website corresponding to the test website on the client. It can be understood that the client executes the sentences in the website running test file row by row according to the row sequence of each sentence in the website running test file, so as to simulate the operation behavior of the user on the website corresponding to the test website, that is, in the website running test file, before the row of the test website, the sentences indicating the client to run the driver of the website corresponding to the test website are provided, and by executing the driver indicating the client to run the website corresponding to the test website, the client can be controlled to run the driver, the website corresponding to the test website is opened, then the sentences of the row of the test website are executed, the test website is accessed in the website, and the page of the website is displayed.
Illustratively, the statement that instructs the client to run the driver for the website corresponding to the test web site may be:
driver% for indicating client run drivers
The chromadriver% driver for indicating the running is the browser driver
firefoxdriver% driver for indicating operation is firefox browser driver
The content following "%" is a content explaining the meaning of the sentence.
And S140, executing the testing step, and acquiring a website testing result corresponding to the testing step in the page.
The website test result is an output result obtained after executing the sentences in the website running test file. Through the website test result, the running condition of the website, namely whether the response is successful, the response time and the like can be determined. Illustratively, the website test results include usability test results and performance test results. The usability test result is used for describing whether the webpage of the website responds successfully or not, and the performance test result is used for describing the performance of the webpage of the website. Illustratively, the performance test results may be the response time of the web pages of the website or the HTTP status code of the test web site. The number of the website test results is at least one, and one test step can correspond to one website test result.
Specifically, the client can execute the test steps in the website running test file through the ZabbixAgents, execute the test steps in the page aiming at each test step, and acquire the website test results corresponding to the test steps of the page.
According to the technical scheme, the website corresponding to the test website is automatically accessed by acquiring the website running test file, reading the test website and the test step in the website running test file, and the website test result corresponding to the test step is acquired in the page by executing the test step, so that the automatic detection of the website running condition from the user side is realized, the website running condition is acquired in real time, the manual workload is reduced, and the website maintenance cost is reduced.
Example two
Fig. 2 is a flowchart of a website operation test method according to a second embodiment of the present invention, where based on the foregoing embodiment, the website operation test file is obtained, and is specifically: acquiring a function to be tested; and determining the website operation test file corresponding to the function to be tested from the website operation test files. As shown in fig. 2, the method includes:
s210, acquiring a function to be tested.
The function to be tested is used for indicating the client to detect the running condition of the website. It can be understood that different functions to be tested can be determined according to different application scenarios, at least one function to be tested can be preset in the monitor, and the Zabbix monitoring system can send the at least one function to be tested to the client according to actual requirements. For example, the function to be tested may be a function of performing operation detection on a query function of *** website. Specifically, the monitor may send the function to be tested to the client through the Zabbix monitoring system, and the function to be tested may be sent to the client through a script program file. The client receives the function to be tested through the ZabbixAgent.
S220, determining website operation test files corresponding to the functions to be tested from the website operation test files.
Different websites run different functions to be tested corresponding to the test files. Specifically, after receiving the function to be tested, the client queries a website running test file corresponding to the function to be tested from a plurality of website running test files. For example, the website running test file may be named according to the function to be tested, so that the website running test file with the same name as the function to be tested may be determined as the website running test file corresponding to the function to be tested according to the name of the website running test file.
S230, reading a test website and a test step in the website running test file.
S240, accessing a website corresponding to the test website and displaying the page of the website.
S250, executing the testing step, and acquiring a website testing result corresponding to the testing step in the page.
According to the technical scheme, the function to be tested can be sent to the client through the monitoring machine, the client determines the corresponding website running test file according to the function to be tested, so that the client can obtain the website test result in a targeted manner, and the efficiency of website running condition detection is improved.
Optionally, the method further comprises: generating first error information under the condition that the website running test file is not queried; and feeding back the first error information to prompt the updating of the website operation test file information.
The first error information is used for describing the situation that the client cannot acquire the website running test file. The first error information may include a function to be tested. The first error information may be fed back by text, voice, image or video. For example, the first error message may be "website run test file acquisition failed". The website running test file information is used for describing the inquired website running test file. The website operation test file information at least comprises the name of the website operation test file.
Specifically, when the client obtains the website running test files, the client needs to query website running test files corresponding to the functions to be tested in the website running test files. When the website running test files corresponding to the test functions cannot be queried, generating first error information according to the functions to be tested, feeding back the first error information to prompt operation and maintenance personnel to update the website running test files, namely prompting the operation and maintenance personnel to add the website running test files corresponding to the functions to be tested in a plurality of website running test files according to the functions to be tested, and adding the website running test files corresponding to the functions to be tested into website running test file information. The first error information may be sent to the monitor, and the first error information may be displayed on the monitor, or the first error information may be directly displayed on the client.
Under the condition that the website running test file is not queried, generating and feeding back first error information to prompt updating of website running test file information, updating of website running test file information can be achieved, richness of website running test files is increased, and applicability and flexibility of a website running test method are improved.
Example III
Fig. 3 is a flowchart of a website operation test method provided in a third embodiment of the present invention, where, based on the foregoing embodiment, the step of executing the test is performed, and in the page, a website test result corresponding to the step of testing is obtained, and is specifically: executing the execution step in the test step in the page of the website, and receiving a response result corresponding to the execution step; and according to the judging step, testing the response result corresponding to the executing step to obtain the website test result corresponding to the testing step. As shown in fig. 3, the method includes:
s310, acquiring a website running test file.
S320, reading a test website and a test step in the website running test file. The testing step includes an executing step and a judging step.
The executing step is used for instructing the client to simulate the operation of the webpage in the website by the user. The client can simulate the operation behavior of the user on the web pages in the website by executing the test steps in the website operation test file, and provides a basis for obtaining the website test result. The judging step is a condition for judging the result obtained in the executing step, and is used for determining whether the result obtained in the executing step is normal. The testing step includes an executing step and a judging step.
Exemplary, the test steps in the test file are as follows:
the content after "%" is used for labeling the sentence as the executing step or the judging step.
S330, accessing a website corresponding to the test website and displaying the page of the website.
S340, executing the execution steps in the test steps in the page of the website, and receiving a response result corresponding to the execution steps.
The response result is used to describe whether the page of the website successfully responds to the execution step. Illustratively, the response result may be success, failure, or timeout, and may be represented by 0, 1, or 2, or may be represented by other values. Specifically, when the client executes the test step, the execution step in the test step is executed first, that is, the execution step in the test step is executed in the page of the website, and the page of the website responds to the execution step to obtain a corresponding response result.
S350, testing the response result corresponding to the execution step according to the judgment step to obtain the website test result corresponding to the test step.
Specifically, by executing the judging step in the testing step, the response result corresponding to the executing step can be tested, whether the response result meets the condition described in the judging step or not is determined, and the judging result is used as the website testing result corresponding to the testing step.
Illustratively, based on the above example, the following test steps are performed:
ops: % execution step
-op:’find’
els:
-xpath: '/(span [ text () = "some finite company" ]' executing step
After the execution is completed, a response result corresponding to the test step is 25577, and according to the judgment step timeout: and '30000', the response result can be determined to be less than 30000 in the judging step, so that the website test result corresponding to the testing step is obtained as the response success.
According to the technical scheme, the execution step in the test step is executed in the page of the website, the response result corresponding to the execution step is received, the response result is tested according to the judgment step, the website test result corresponding to the test step is obtained, the website test result can be directly fed back after the test step is executed, and the efficiency of acquiring the website test result is improved.
Optionally, before executing the executing step in the testing step in the page of the website, the method includes: generating second error information under the condition that the test web site fails to be checked; and feeding back the second error information to prompt the updating of the website running test file.
The second error information is used to describe the failure of the test web site verification. The second error information may be fed back by text, speech, image or video. The second error information may be, for example, "test web site error". It will be appreciated that before executing the executing step in the page of the website, the test website may be checked, that is, whether the test website is correct, or whether the test website in the website running test file is consistent with the test website corresponding to the test website tag in the function to be tested. The test website is checked successfully, which indicates that the test website is correct, the execution step can be continuously executed, the test website is checked failed, which indicates that the test website is wrong, and second error information is generated and fed back to prompt operation and maintenance personnel to modify the website operation test file, that is, prompt the operation and maintenance personnel to modify the test website in the website operation test file, and add the modified website operation test file into website operation test file information. The second error information may be sent to the monitor, and the second error information may be displayed on the monitor, or the second error information may be directly displayed on the client.
By checking the test website, the accuracy of the website operation test can be ensured, and under the condition of failure in the check, the second error information is generated and fed back, so that the website operation test file can be timely prompted to be updated, the reliability of the website operation test file is improved, and the stability of the website operation detection method is ensured.
Optionally, after obtaining the website test result corresponding to the test step, the method further includes: generating and storing a result file according to the response result of each test step; and generating alarm information according to the result file, and feeding the alarm information back to a test center for fault detection.
The result file is used for storing the response result of the test step. The alarm information is used for prompting operation and maintenance personnel that the website operation has faults. The alarm information can be expressed in a text, voice, image or video mode. The test center can be a monitor or a device with the same function as the monitor.
Specifically, the client obtains a response result after executing the test step, stores the response result of the test step as a result file, and stores the result in a storage space of the client. According to the result file, when the response result of the test step is abnormal, generating alarm information, sending the alarm information to a test center through ZabbixAgent, and after receiving the alarm information, the test center checks the reason for the abnormal response result. Optionally, the result file may include a result file with error information and a result file without error information, and the result file may be determined by executing the result of the judging step in the testing step to determine whether the response result of the testing step is abnormal, where the generated result file is the result file with error information when the response result of the testing step is abnormal, and the generated result file is the result file without error information when the response result of the testing step is not abnormal.
By storing the response result of the test step as a result file, the response result of the test step is archived, and after the alarm information is received by the test center, fault investigation is performed according to the result file, so that the efficiency and accuracy of fault investigation are improved.
Example IV
Fig. 4 is an application scenario schematic diagram of a website operation test method according to a fourth embodiment of the present invention. As shown in fig. 4, the specific implementation flow of the method is as follows:
s401, acquiring a function to be tested. That is, the client calls the script program file through the ZabbixAgent, and obtains the function to be tested from the script program file.
Specifically, the monitor may store the function to be tested in a script program file and send it to the client.
S402, inquiring website operation test files corresponding to the functions to be tested in the plurality of website operation test files. That is, the website running test file is obtained by executing the program in the script program file. The website operation test file corresponding to the script program can be obtained from the website operation test file library. The website operation test file library comprises at least one website operation test file.
S403, detecting the format of the website operation test file. I.e., to determine if the format of the website run test file is correct. In the correct case, step S404 is performed. In the case of an error, step S411 is performed.
S404, reading a test website in the website running test file.
S405, checking the test website. In the case that the verification is successful, step S406 is performed. In the case of a failure of the inspection, step S411 is performed.
S406, accessing a website corresponding to the test website and displaying the page of the website.
S407, executing the execution step in the test step in the page of the website, and receiving a response result corresponding to the execution step.
S408, testing the response result corresponding to the execution step according to the judgment step to obtain the website test result corresponding to the test step.
By way of example, the website test results may be { "step1": { "check_status":1, "rsptime":25577, "http_status":1 }. Wherein check_status represents the output result of the judging step: 0 failed, 1 succeeded, 2 timed out. Rstime represents the execution step response time in ms. http_status represents the HTTP status code of the test web site.
S409, generating and storing a result file according to the response results of the test steps;
s410, generating alarm information according to the result file, and feeding the alarm information back to a test center for fault detection.
S411, updating the website running test file, and executing step S401.
According to the technical scheme, the website corresponding to the test website is automatically accessed by acquiring the website running test file, reading the test website and the test step in the website running test file, and the website test result corresponding to the test step is acquired in the page by executing the test step, so that the automatic detection of the website running condition from the user side is realized, the website running condition is acquired in real time, the manual workload is reduced, and the website maintenance cost is reduced.
Example five
Fig. 5 is a schematic structural diagram of a website operation testing apparatus according to a fifth embodiment of the present invention. As shown in fig. 5, the apparatus includes: a file acquisition module 501, a reading module 502, a website access module 503 and a result feedback module 504.
The file obtaining module 501 is configured to obtain a website running test file;
the reading module 502 is configured to read a test website and a test step in a website running test file;
a website access module 503, configured to access a website corresponding to the test website, and display a page of the website;
and the result feedback module 504 is configured to execute the test step, and obtain, in the page, a website test result corresponding to the test step.
According to the technical scheme, the website corresponding to the test website is automatically accessed by acquiring the website running test file, reading the test website and the test step in the website running test file, and the website test result corresponding to the test step is acquired in the page by executing the test step, so that the automatic detection of the website running condition from the user side is realized, the website running condition is acquired in real time, the manual workload is reduced, and the website maintenance cost is reduced.
Optionally, the file acquisition module 501 includes:
a function acquisition unit for acquiring a function to be tested;
and the file inquiry unit is used for determining the website operation test file corresponding to the function to be tested from the plurality of website operation test files.
Optionally, the file obtaining module 501 further includes:
the first information generation unit is used for generating first error information under the condition that the website running test file is not queried;
and the first information feedback unit is used for feeding back the first error information so as to prompt the updating of the website operation test file information.
Optionally, the testing step includes an executing step and a judging step;
the result feedback module 504 includes:
the response result acquisition unit is used for executing the execution steps in the test steps in the page of the website and receiving response results corresponding to the execution steps;
and the judging unit is used for testing the response result corresponding to the executing step according to the judging step to obtain the website test result corresponding to the testing step.
Optionally, the result feedback module 504 includes:
a second information generating unit configured to generate second error information in a case where the test web site verification fails before executing the execution step of the test steps in the page of the web site;
and the second information feedback unit is used for feeding back the second error information so as to prompt the updating of the website operation test file.
Optionally, the device comprises:
the result file storage module is used for generating and storing a result file according to the response results of the test steps after acquiring the website test results corresponding to the test steps;
and the alarm module is used for generating alarm information according to the result file and feeding the alarm information back to the test center for fault detection.
Optionally, the website test results include availability test results and performance test results.
The website operation testing device provided by the embodiment of the invention can execute the website operation testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example six
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the website run test method.
In some embodiments, the website run test method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the website run test method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the website run test method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for testing website operation, comprising:
acquiring a website operation test file;
reading a test website and a test step in a website running test file;
accessing a website corresponding to the test website and displaying the page of the website;
and executing the testing step, and acquiring a website testing result corresponding to the testing step in the page.
2. The method of claim 1, wherein the obtaining the website run test file comprises:
acquiring a function to be tested;
and determining the website operation test file corresponding to the function to be tested from the website operation test files.
3. The method as recited in claim 2, further comprising:
generating first error information under the condition that the website running test file is not queried;
and feeding back the first error information to prompt the updating of the website operation test file information.
4. The method of claim 1, wherein the testing step comprises performing and determining steps;
the step of executing the test step, and obtaining the website test result corresponding to the test step in the page, includes:
executing the execution step in the test step in the page of the website, and receiving a response result corresponding to the execution step;
and according to the judging step, testing the response result corresponding to the executing step to obtain the website test result corresponding to the testing step.
5. The method of claim 4, comprising, prior to performing one of the testing steps in a page of the website:
generating second error information under the condition that the test web site fails to be checked;
and feeding back the second error information to prompt the updating of the website running test file.
6. The method of claim 1, further comprising, after obtaining the website test result corresponding to the testing step:
generating and storing a result file according to the response result of each test step;
and generating alarm information according to the result file, and feeding the alarm information back to a test center for fault detection.
7. The method of claim 1, wherein the website test results include availability test results and performance test results.
8. A website operation test device, comprising:
the file acquisition module is used for acquiring a website operation test file;
the reading module is used for reading the test website and the test step in the website running test file;
the website access module is used for accessing a website corresponding to the test website and displaying the page of the website;
and the result feedback module is used for executing the test step and acquiring a website test result corresponding to the test step from the page.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the website run test method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the website run test method of any one of claims 1-7.
CN202211733575.5A 2022-12-30 2022-12-30 Website operation test method, device, equipment and medium Pending CN116980320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211733575.5A CN116980320A (en) 2022-12-30 2022-12-30 Website operation test method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211733575.5A CN116980320A (en) 2022-12-30 2022-12-30 Website operation test method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN116980320A true CN116980320A (en) 2023-10-31

Family

ID=88471973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211733575.5A Pending CN116980320A (en) 2022-12-30 2022-12-30 Website operation test method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN116980320A (en)

Similar Documents

Publication Publication Date Title
US10713149B2 (en) Processing automation scripts of software
CN108683562B (en) Anomaly detection positioning method and device, computer equipment and storage medium
CN116089231B (en) Fault alarm method and device, electronic equipment and storage medium
CN113220584B (en) Page test method, page test device, computer equipment and readable storage medium
CN113918864A (en) Website page testing method, testing system, testing device, electronic equipment and medium
CN116774673A (en) Data calibration method and device, electronic equipment and storage medium
CN116089197A (en) Fault equipment switching exercise method, device, equipment and storage medium
CN116467161A (en) Application testing method and device, electronic equipment and storage medium
CN116431731A (en) Data asynchronous export method, device, equipment and storage medium thereof
CN110691005A (en) Website monitoring system and method
CN116980320A (en) Website operation test method, device, equipment and medium
CN116048959A (en) Website testing method, device, equipment and storage medium
CN115292187A (en) Method and device for automatically testing code-free page, electronic equipment and medium
CN114706856A (en) Fault processing method and device, electronic equipment and computer readable storage medium
CN114546799A (en) Point burying log checking method and device, electronic equipment, storage medium and product
CN115525528A (en) Page quality detection method and device, electronic equipment and storage medium
CN113434378B (en) Webpage stability detection method and device, electronic equipment and readable storage medium
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN117061564A (en) Verification method, device, equipment and medium for vehicle signal transmission state
CN117951024A (en) APP compatibility test method, device, equipment and medium
CN117493147A (en) Buried point test method, buried point test device, buried point test equipment and storage medium
CN118111720A (en) National standard test system, method, device, equipment and medium for new energy vehicle
CN118277275A (en) Interface testing method and device, electronic equipment and storage medium
CN116302944A (en) Service system 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