CN114281704A - Website testing method and device, electronic equipment and medium - Google Patents

Website testing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN114281704A
CN114281704A CN202111638492.3A CN202111638492A CN114281704A CN 114281704 A CN114281704 A CN 114281704A CN 202111638492 A CN202111638492 A CN 202111638492A CN 114281704 A CN114281704 A CN 114281704A
Authority
CN
China
Prior art keywords
test
website
target website
test object
address
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
CN202111638492.3A
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.)
CERNET Corp
Original Assignee
CERNET Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CERNET Corp filed Critical CERNET Corp
Priority to CN202111638492.3A priority Critical patent/CN114281704A/en
Publication of CN114281704A publication Critical patent/CN114281704A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present disclosure provides a website testing method, comprising: acquiring a target website address; generating a test object of the target website address according to the task list; executing the test object to obtain a test result; and under the condition that the domain name data table has the target website address, updating the target website according to the test result. The disclosure also provides a website testing device, equipment and a storage medium.

Description

Website testing method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for testing a website, an electronic device, and a medium.
Background
Website testing is a task of detecting various performance conditions of a website. In the prior art, a database responsible person usually arranges a large number of websites to be tested and then sends the websites to a tester, the tester tests various performance indexes of the websites, and the tester also needs to send test results to a data responsible person for arranging and warehousing.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: the existing website testing process is time-consuming and labor-consuming, and the generated labor cost is too high. Once the performance index of the website test is updated, the test process is more complicated.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a website testing method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, there is provided a website testing method, including: acquiring a target website address; generating a test object of the target website address according to the task list; executing the test object to obtain a test result; and under the condition that the domain name data table has the target website address, updating the target website according to the test result.
According to an embodiment of the present disclosure, the generating a test object of the target website address according to the task list includes: traversing the task list to obtain a plurality of test parameters related to the target website address; and generating the test object according to the plurality of test parameters.
According to an embodiment of the present disclosure, the plurality of test parameters include a task name, a line address, a task execution period, a service type, and a task primary key.
According to an embodiment of the present disclosure, the generating the test object according to the plurality of test parameters includes: generating the testing parameters into key value pairs with the line addresses as main keys; packaging the key-value pairs into json character strings; and sending the json character string to a message queue to obtain the test object.
According to an embodiment of the present disclosure, the executing the test object to obtain a test result includes: detecting the line name corresponding to the target website address from the message queue through a probe server to obtain the test object; analyzing the test object to obtain data to be tested; and testing the data to be tested to obtain a test result.
According to an embodiment of the present disclosure, the website testing method further includes: and under the condition that the domain name data table does not have the target website address, storing the test result in the domain name data table.
According to an embodiment of the present disclosure, the storing the test result in the domain name data table includes: converting the test result into storage data, wherein the storage data has a database table structure of the domain name data table; and storing the storage data in the domain name data table.
A second aspect of the present disclosure provides a website testing apparatus, including: the acquisition module is used for acquiring a target website address; the generating module is used for generating a test object of the target website address according to the task list; the execution module is used for executing the test object to obtain a test result; and the first determining module is used for updating the target website according to the test result under the condition that the domain name data table is determined to have the target website address.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the website testing method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described website testing method.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates a system architecture diagram of a website test method, apparatus, device and medium according to an embodiment of the disclosure;
FIG. 2 schematically illustrates an application scenario diagram of website testing according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a website testing method according to an embodiment of the present disclosure;
FIG. 4 is a block diagram schematically illustrating the structure of a website testing apparatus according to an embodiment of the present disclosure; and
FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing a website testing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the collection, storage, use, processing, transmission, provision, disclosure, application and other processing of the personal information of the related user are all in accordance with the regulations of related laws and regulations, necessary confidentiality measures are taken, and the customs of the public order is not violated.
The embodiment of the disclosure provides a website testing method, which comprises the following steps: acquiring a target website address; generating a test object of the target website address according to the task list; executing the test object to obtain a test result; and under the condition that the domain name data table has the target website address, updating the target website according to the test result.
Fig. 1 schematically shows a system architecture diagram of a website testing method, apparatus, electronic device, medium, and program product according to embodiments of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the website testing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the website testing apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The website testing method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the website testing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows an application scenario diagram of website testing according to an embodiment of the present disclosure.
The disclosure provides a website testing method based on task scheduling. And configuring the content of the task list according to the task configuration template, and processing the data content in the task list to generate a website test object. And sending the test objects tested by the plurality of websites to a message queue, sequentially scheduling the test objects in the message queue, and sequentially executing the test objects to realize the test of the plurality of websites. The test results also need to be sent to the message queue waiting to be processed in turn. The results of each website test are stored in a database.
FIG. 3 schematically shows a flow chart of a website testing method according to an embodiment of the present disclosure.
As shown in fig. 3, the website test of this embodiment includes operations S310 to S340.
In operation S310, a target website address is acquired. The target website address is the website address to be tested.
In operation S320, a test object of the target website address is generated according to the task list.
In this disclosure, in operation S320, generating a test object of a target website address according to the task list includes: traversing the task list to obtain a plurality of test parameters related to the target website address; and generating a test object according to the plurality of test parameters.
The task list includes test tasks that need to be performed on multiple websites. The test tasks of the task list may be pre-generated. For example, the specific content of the test task may be generated according to a preset task configuration template.
The task configuration template includes test parameters indicating a test procedure. The test parameters comprise a task name, a line address, a task execution period, a service type and a task main key.
The test tasks of the task list may be represented in tabular form, as shown in the following table:
task_name Line_name Line_ip Itl M_type Kw
cernet_job1 XX circuit Xxx.xxx.xxx.xx 14:30;86400;cycle www edu
The test parameters of the test task are used for indicating the test process executed on the website. The test parameters of the test task comprise a task name task _ name, a Line name Line _ name, a Line address Line _ ip, a task execution period Itl, a service type M _ type and a task main key Kw.
The task name task _ name is used for identifying a test task corresponding to a certain website when website tests are executed, so that the task name cannot be repeated.
The Line name Line _ name represents the name of the Line to which the server belongs when executing the test task.
The Line address Line _ IP indicates the IP address of the server that performs the test task.
The task execution post-stage Itl represents the start time, interval time, and execution number of tests. The start time was measured as yy/mm/dd HH: the field format of the MM indicates that the interval time is expressed in seconds. For example, the ratio of "0: 0; 86400; cycle "indicates that the test was started at 0 with an interval of 86400 seconds (24 hours). The number of execution cycles is cycle, which indicates that the test task is a routine task, and the test is started at 0 point every day in a cycle of 24 hours. As another example, "now; 3600; 10 "indicates that the test is started immediately, and is performed 10 times with an interval of 3600 seconds (1 hour). As another example, "15: 10; 600, preparing a mixture; cycle "indicates 15 points 10 separate start tests with an interval of 600 seconds (10 minutes) and every 10 minutes. As another example, the "202I/04/1410: 00; 3600; 10 "indicates that the start test was performed 10 times at 10 o' clock, 04/14/2021, with an interval of 3600 seconds (1 hour).
The start time may not include information of a date, but must include information of a time. The date information may be used to specify that a test task be performed at a particular time in the future.
The traffic type M _ type is used to distinguish between a main network station and a sub network station. For example, "www" represents a test host website and "sub" represents a test child website.
The task primary key Kw is used to indicate the type of web site tested. For example, "edu" denotes a testing education net and "3 rd" denotes a testing third party unit.
In an embodiment of the present disclosure, generating a test object according to a plurality of test parameters includes: generating a key value pair with the line address as a main key by using the test parameters; packaging the key value pairs into json character strings; and sending the json character string to a message queue to obtain a test object.
And generating a key-value pair by taking the line address line _ ip as a key and other test parameters as values. The generated key-value pairs may be stored into a task address list. If the test parameters in the task list are newly added when the test process is updated, the line address usually already exists in the task address list, and other test parameters can be directly added to the value of the key value pair with the line address as the main key. If the line address line _ ip does not exist in the task address list, one key-value pair can be added in the task address list.
The task address list is only used for temporarily storing the test parameters, the process of generating the test object also needs to encapsulate the key value pairs in the task list into json character strings through a parameter template, then the json character strings are sent to the message list to form the test object, and the test object waits to be executed in the message list. The form of key-value pairs is still preserved in the json string.
Illustratively, the parameter template may be:
Figure BDA0003443023220000071
the test tasks in the task list are similar to the content of the test object, but in a different format. The test object is a key-value pair in json string format. The testing task is a common text format. By generating the key value pairs, all test parameters of the target website can be directly acquired in the form of the key value pairs in the process of executing the test of the target website. Due to the key value pair form, when the test process is updated, the new test parameter and the old test parameter can be quickly associated, the update of the test process is realized, and the loss of the test parameters is avoided. In addition, the key value pairs are packaged into json character strings, and data reading, writing and transmission are facilitated.
In operation S330, the test object is executed to obtain a test result.
In this disclosure, operation S330 executes the test object to obtain a test result, including detecting, by the probe server, a line name corresponding to the target website address from the message queue to obtain the test object; analyzing the test object to obtain data to be tested; and testing the data to be tested to obtain a test result.
When a test is performed on a target website, a test object corresponding to a target website address needs to be determined, and the test object includes test parameters indicating a test process. Therefore, the test object corresponding to the target website address is dispatched from the message queue through the probe server. Depending on the form of the key-value pair, the probe server directly acquires the test object consisting of complete test parameters by detecting the line address.
In operation S340, in the case that it is determined that the domain name data table has the address of the target website, the target website is updated according to the test result.
In the embodiment of the present disclosure, the test result includes a main domain name test result and a sub domain name test result. After the test result is obtained, the test result is further utilized to complete the website test. It can be known that whether the target website address is recorded in the domain name data table is inquired through the joint main key, and the test result is further utilized according to the inquiry result. For example, a union primary key kw + moe _ id + line _ ip + oms _ date may be set, and the union primary key may be used to query the primary domain name database table dns _ day or the subdomain name table dns _ sub _ day for the presence of the target network address. If the target website address exists in the domain name data table, various performance monitoring indexes of the target website are updated according to the test result.
As an optional embodiment, the website testing method further includes: and storing the test result in the domain name data table under the condition that the domain name data table is determined not to have the target website address.
In the embodiment of the disclosure, the test result is encapsulated by the monitoring template, and the encapsulated test result is scheduled to the database.
For example, the survey template may be:
task _ name: "cernet _ job 1", "task name"// task name
line _ name: "education network",// line name
line _ ip: "10.10.10.1", "line IP
monitor _ type: "www", "main Domain name detection
A keyword: "www 3005", "// is 3005 school or 137 school
oms _ date: "date,// date
moe_id:″A108831″
node _ name: "xx university", "unit name
domain: "www.xxxxxx.edu.cn", "v/Domain name
subdomain: if it is a sub task, it is the corresponding sub domain name
ana: "1", "resolvable"/"
and acc: "1"// accessible
per _ 12: "82.34%",// degree of secondary internal chain support
per _ 13: "64.33%",// degree of tertiary internal chain support
https:″1″,//https
http2:″1″,//http2
dessec:″1″,//dessec
And (5) cert: "ev"// certificate
Storing the test results in a domain name data table, comprising: converting the test result into storage data, wherein the storage data has a database table structure of a domain name data table; and storing the storage data in a domain name data table.
In order to conform to the storage method of the database, the test result needs to be converted into the structure of the database table. The test results stored in the database can also be displayed through the Web server.
Based on the website testing method, the disclosure also provides a website testing device. The apparatus will be described in detail below with reference to fig. 4.
Fig. 4 schematically shows a block diagram of a website testing apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the website testing apparatus 400 of this embodiment includes an obtaining module 410, a generating module 420, an executing module 430, and a first determining module 440.
The obtaining module 410 is used for obtaining the address of the target website. In an embodiment, the obtaining module 410 may be configured to perform the operation S310 described above, which is not described herein again.
The generating module 420 is configured to generate a test object of the target website address according to the task list. In an embodiment, the generating module 420 may be configured to perform the operation S320 described above, which is not described herein again.
The execution module 430 is configured to execute the test object to obtain a test result. In an embodiment, the executing module 430 may be configured to execute the operation S330 described above, which is not described herein again.
The first determining module 440 is configured to update the target website according to the test result when it is determined that the domain name data table has the target website address. In an embodiment, the first determining module 440 may be configured to perform the operation S340 described above, which is not described herein again.
According to an embodiment of the present disclosure, the generating module 420 includes: the device comprises a traversing unit and a generating unit. And the traversing unit is used for traversing the task list to obtain a plurality of testing parameters related to the target website address. And the generating unit is used for generating the test object according to the plurality of test parameters. The plurality of test parameters comprise a task name, a line address, a task execution period, a service type and a task main key.
According to the embodiment of the present disclosure, the generating unit is further specifically configured to generate the test parameter into a key-value pair with the line address as a primary key; packaging the key value pairs into json character strings; and sending the json character string to a message queue to obtain a test object.
According to an embodiment of the present disclosure, the execution module 430 includes: the device comprises a detection unit, an analysis unit and a test unit. And the detection unit is used for detecting the line name corresponding to the target website address from the message queue through the probe server to obtain the test object. And the analysis unit is used for analyzing the test object to obtain the data to be tested. And the test unit is used for testing the data to be tested to obtain a test result.
According to the embodiment of the disclosure, the website testing device further comprises a second determining module, configured to store the test result in the domain name data table when it is determined that the domain name data table does not have the target website address.
According to an embodiment of the present disclosure, the second determination module includes a conversion unit and a storage unit. The conversion unit is used for converting the test result into storage data, and the storage data has a database table structure of a domain name data table. And the storage unit is used for storing the storage data in the domain name data table.
According to an embodiment of the present disclosure, any plurality of the obtaining module 410, the generating module 420, the executing module 430, and the first determining module 440 may be combined into one module to be implemented, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 410, the generating module 420, the executing module 430, and the first determining module 440 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the obtaining module 410, the generating module 420, the executing module 430 and the first determining module 440 may be at least partially implemented as a computer program module, which when executed, may perform a corresponding function.
FIG. 5 schematically shows a block diagram of an electronic device suitable for implementing a website testing method according to an embodiment of the present disclosure.
As shown in fig. 5, an electronic device 500 according to an embodiment of the present disclosure includes a processor 501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. The processor 501 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 501 may also include onboard memory for caching purposes. Processor 501 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are stored. The processor 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. The processor 501 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 502 and/or the RAM 503. Note that the programs may also be stored in one or more memories other than the ROM 502 and the RAM 503. The processor 501 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, electronic device 500 may also include an input/output (I/O) interface 505, input/output (I/O) interface 505 also being connected to bus 504. The electronic device 500 may also include one or more of the following components connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include ROM 502 and/or RAM 503 and/or one or more memories other than ROM 502 and RAM 503 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the website testing method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 501. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 509, and/or installed from the removable medium 511. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program, when executed by the processor 501, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A website testing method, comprising:
acquiring a target website address;
generating a test object of the target website address according to the task list;
executing the test object to obtain a test result; and
and under the condition that the domain name data table has the target website address, updating the target website according to the test result.
2. The website test method according to claim 1, wherein the generating a test object of the target website address according to the task list comprises:
traversing the task list to obtain a plurality of test parameters related to the target website address; and
and generating the test object according to the plurality of test parameters.
3. The website testing method according to claim 2, wherein the plurality of test parameters include a task name, a line address, a task execution period, a service type, and a task primary key.
4. The website testing method of claim 3, wherein the generating the test object according to the plurality of test parameters comprises:
generating the testing parameters into key value pairs with the line addresses as main keys;
packaging the key-value pairs into json character strings; and
and sending the json character string to a message queue to obtain the test object.
5. The website testing method according to claim 4, wherein the executing the test object to obtain a test result comprises:
detecting the line name corresponding to the target website address from the message queue through a probe server to obtain the test object;
analyzing the test object to obtain data to be tested; and
and testing the data to be tested to obtain a test result.
6. The website testing method according to claim 1, wherein the website testing method further comprises:
and under the condition that the domain name data table does not have the target website address, storing the test result in the domain name data table.
7. The website testing method according to claim 6, wherein the storing the test result in the domain name data table comprises:
converting the test result into storage data, wherein the storage data has a database table structure of the domain name data table; and
and storing the storage data in the domain name data table.
8. A website testing apparatus, comprising:
the acquisition module is used for acquiring a target website address;
the generating module is used for generating a test object of the target website address according to the task list;
the execution module is used for executing the test object to obtain a test result; and
and the first determining module is used for updating the target website according to the test result under the condition that the domain name data table is determined to have the target website address.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
CN202111638492.3A 2021-12-29 2021-12-29 Website testing method and device, electronic equipment and medium Pending CN114281704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111638492.3A CN114281704A (en) 2021-12-29 2021-12-29 Website testing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111638492.3A CN114281704A (en) 2021-12-29 2021-12-29 Website testing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN114281704A true CN114281704A (en) 2022-04-05

Family

ID=80877858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111638492.3A Pending CN114281704A (en) 2021-12-29 2021-12-29 Website testing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114281704A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473869A (en) * 2022-08-15 2022-12-13 中国电信股份有限公司 Data processing method and device for domain name

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115473869A (en) * 2022-08-15 2022-12-13 中国电信股份有限公司 Data processing method and device for domain name

Similar Documents

Publication Publication Date Title
CN113987074A (en) Distributed service full-link monitoring method and device, electronic equipment and storage medium
CN107368407B (en) Information processing method and device
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN109460363B (en) Automatic testing method and device, electronic equipment and computer readable medium
CN114281704A (en) Website testing method and device, electronic equipment and medium
CN114218283A (en) Abnormality detection method, apparatus, device, and medium
CN111859077A (en) Data processing method, device, system and computer readable storage medium
CN113362173A (en) Anti-duplication mechanism verification method, anti-duplication mechanism verification system, electronic equipment and storage medium
CN112882948A (en) Stability testing method, device and system for application and storage medium
CN112954056A (en) Monitoring data processing method and device, electronic equipment and storage medium
CN112579428B (en) Interface testing method, device, electronic equipment and storage medium
CN116662302A (en) Data processing method, device, electronic equipment and storage medium
CN113378346A (en) Method and device for model simulation
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN115904527A (en) Data processing method, device, equipment and medium
CN115080434A (en) Case execution method, device, equipment and medium
CN114443663A (en) Data table processing method, device, equipment and medium
CN115688687A (en) Data processing method, device, equipment and medium
CN114218254A (en) Report generation method, device, equipment and storage medium
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN114490130A (en) Message subscription method and device, electronic equipment and storage medium
CN116401319B (en) Data synchronization method and device, electronic equipment and computer readable storage medium
CN113127362B (en) Object testing method, object testing device, electronic equipment and readable storage medium
CN109508418B (en) Method and device for displaying information
CN115629983A (en) Test case set generation method, device, equipment and 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