CN113722225A - Page testing method and device, computer equipment and storage medium - Google Patents

Page testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113722225A
CN113722225A CN202111016621.5A CN202111016621A CN113722225A CN 113722225 A CN113722225 A CN 113722225A CN 202111016621 A CN202111016621 A CN 202111016621A CN 113722225 A CN113722225 A CN 113722225A
Authority
CN
China
Prior art keywords
test
target
page
scene
node
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
CN202111016621.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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202111016621.5A priority Critical patent/CN113722225A/en
Publication of CN113722225A publication Critical patent/CN113722225A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

The application relates to the field of test management, and the target test scene corresponding to a target page is loaded in a target application program based on scene parameter information, so that the page test of a real environment in the application program is realized, and the accuracy of the page test is improved. A page testing method, a device, a computer device and a storage medium are provided, the method comprises: determining a target page to be tested according to the page selection operation; determining a target test node corresponding to a target page, setting the target test node as a valid test node, and acquiring scene parameter information of the target test node; loading a preset target application program on a test interface, and loading a target test scene corresponding to a target page on the target application program based on scene parameter information; and acquiring test data corresponding to the target test scene, and testing the target page according to the test data. In addition, the application also relates to a block chain technology, and the scene parameter information can be stored in the block chain.

Description

Page testing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of test management, and in particular, to a page test method, apparatus, computer device, and storage medium.
Background
Testing of pages in an application before it is released becomes an important task for the application in the client. In the existing page test mode, a server generally performs a page test in an ideal environment, and because the ideal environment cannot simulate a real environment in a client, when a page tested in the server is loaded to the client, a logic design problem easily occurs, and the accuracy of the page test is reduced.
Therefore, how to improve the accuracy of page testing becomes an urgent problem to be solved.
Disclosure of Invention
The application provides a page testing method, a page testing device, computer equipment and a storage medium, and the page testing method, the page testing device, the computer equipment and the storage medium can realize the page testing of a real environment in an application program by loading a target page and a target testing scene corresponding to the target page in the target application program based on scene parameter information, avoid the problem of logic design easily appearing in the application program which loads the page tested in a server into a client, and improve the accuracy of the page testing.
In a first aspect, the present application provides a page testing method, including:
when detecting page selection operation of a test interface, determining a target page to be tested according to the page selection operation;
determining a target test node corresponding to the target page, setting the target test node as a valid test node, and acquiring scene parameter information corresponding to the target test node;
loading a preset target application program on the test interface, and loading a target test scene corresponding to the target page and the target page on the target application program based on the scene parameter information;
and acquiring test data corresponding to the target test scene, and testing the target page according to the test data.
In a second aspect, the present application further provides a page testing apparatus, including:
the target page determining module is used for determining a target page to be tested according to the page selection operation when the page selection operation of the test interface is detected;
the scene parameter acquisition module is used for determining a target test node corresponding to the target page, setting the target test node as a valid test node and acquiring scene parameter information corresponding to the target test node;
the test scene loading module is used for loading a preset target application program on the test interface and loading a target test scene corresponding to the target page on the target application program on the basis of the scene parameter information;
and the page testing module is used for acquiring the test data corresponding to the target test scene and testing the target page according to the test data.
In a third aspect, the present application further provides a computer device comprising a memory and a processor;
the memory for storing a computer program;
the processor is used for executing the computer program and realizing the page testing method when the computer program is executed.
In a fourth aspect, the present application also provides a computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the page testing method as described above.
The application discloses a page testing method, a page testing device, computer equipment and a storage medium, wherein when a page selection operation of a testing interface is detected, a target page to be tested can be determined according to the page selection operation, so that the need of testing a page before the target page is avoided, and the page testing efficiency is improved; the target test node is set to be the valid test node by determining the target test node corresponding to the target page, and then the target page can be independently tested based on the target test node; by acquiring the scene parameter information corresponding to the target test node, the corresponding test scene can be loaded subsequently according to the scene parameter information; by loading a preset target application program on a test interface and loading a target test scene corresponding to a target page on the target application program based on scene parameter information, the page test of a real environment in the application program can be realized, the problem of logic design easily occurring in the application program which loads the page tested by a server into a client is solved, and the accuracy of the page test is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a page testing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a test node configuration table according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an alternative test node provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of another test node configuration table provided in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating adjusting pointer directions in a test node configuration table according to an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart of a substep of storing scene parameter information to a server according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of a sub-step of obtaining scene parameter information according to an embodiment of the present application;
FIG. 8 is a schematic block diagram of a page testing apparatus provided in an embodiment of the present application;
fig. 9 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
The embodiment of the application provides a page testing method and device, computer equipment and a storage medium. The page testing method can be applied to the client, and by loading the target testing scene corresponding to the target page and the target page in the target application program based on the scene parameter information, the page testing of the real environment in the application program can be realized, the problem of logic design easily occurring in the application program which loads the page tested in the server into the client is avoided, and the accuracy of the page testing is improved.
The client can be an electronic device such as a smart phone, a tablet computer, a notebook computer and a desktop computer.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
As shown in fig. 1, the page test method includes steps S10 to S40.
And step S10, when the page selection operation of the test interface is detected, determining a target page to be tested according to the page selection operation.
It should be noted that the page testing method provided in the embodiment of the present application can be applied to a scenario in which an application program in a client performs a page test, so as to implement a page test of a real environment in the application program, avoid a problem of logic design that is likely to occur when the page tested in a server is loaded to the application program in the client, and improve accuracy of the page test.
Illustratively, the target application may be any application in the client, such as a chat application, a shopping application, and a news browsing application, among others. The target application may load the H5 page and may also load the read Native page. In the embodiment of the application, the H5 page can be tested, and the React Native page can also be tested. The H5 page is a page designed by using HTML (Hyper Text Markup Language) web page technology.
Illustratively, the test interface may be an interface independent from the target application or an interface in the target application.
In some embodiments, when the page selection operation of the test interface is detected, before determining the target page to be tested according to the page selection operation, the embodiments of the present application may further include: acquiring a page set corresponding to a target application program, wherein the page set comprises a plurality of pages in the running process of the target application program; and loading the page set to a test interface.
Illustratively, the page set may include page 1, page 2, page 3, and page 4, among others.
Illustratively, when the page selection operation of the test interface is detected, the target page to be tested is determined according to the page selection operation.
It should be noted that, a user may select one of the pages in the page set in the test interface for testing according to actual requirements, and it is not necessary to test each page in sequence.
It should be noted that, when the page test of the application program is performed, a page set including a plurality of pages needs to be tested, so that whether an abnormality occurs in the displayed page of the application program can be determined. In the prior art, when a server carries out page testing, the testing is required to be started from a starting page until a last page, but a certain target page in a page set cannot be independently tested; therefore, each time the page is tested, it is necessary to test each page from the beginning until the target page is reached, which takes a long time. If the page before the target page is wrong, the target page cannot be reached for testing, and the efficiency of page testing is low. According to the page testing method provided by the embodiment of the application, the page set corresponding to the target application program is loaded into the testing interface, and the target page to be tested is determined according to the page selection operation, so that the page before the target page is prevented from being tested, and the page testing efficiency is improved.
Step S20, determining a target test node corresponding to the target page, setting the target test node as a valid test node, and acquiring scene parameter information corresponding to the target test node.
Exemplarily, a target test node corresponding to a target page can be determined according to a node selection operation of a user in the test page, and the target test node is set as a valid test node; and then acquiring scene parameter information corresponding to the target test node. It should be noted that the scenario parameter information is used for loading the test scenario during the page test.
By determining the target test node corresponding to the target page according to the node selection operation and setting the target test node as a valid test node, the target page can be independently tested subsequently based on the target test node.
It should be noted that, in the embodiment of the present application, after the target test node corresponding to the target page is determined, the target test node corresponding to the target page needs to be set as a valid test node. It can be understood that the target page can be tested based on the target test node only if the target test node is a dummy test node.
In some embodiments, setting the target test node as the valid test node may include: inquiring a preset test node configuration table to obtain effective test nodes in the test node configuration table, wherein the effective test nodes are effective test nodes during page test; and if the effective test node is not the target test node, replacing the effective test node with the target test node.
It should be noted that the test node configuration table is used to set the test node for the page test to take effect. Referring to fig. 2, fig. 2 is a schematic diagram of a test node configuration table according to an embodiment of the present disclosure. As shown in fig. 2, when the test node configuration table includes one test node, the test node in the test node configuration table is a test node that is effective in page test.
Referring to fig. 3, fig. 3 is a schematic diagram of an alternative test node according to an embodiment of the present disclosure. As shown in fig. 3, if the valid test node in the test node configuration table is the test node a and the target test node is the test node B, the test node a in the test node configuration table may be replaced with the test node B.
By replacing the effective test node with the target test node in the test node configuration table, the target test node can be used as the effective test node, and further the test scene corresponding to the target page can be loaded based on the scene parameter information corresponding to the target test node, so that the page test failure is avoided.
In some embodiments, setting the target test node as the valid test node may include: inquiring a preset test node configuration table to obtain a test node pointed by a pointer in the test node configuration table, wherein the test node configuration table comprises a plurality of test nodes, and the pointer points to the test node which takes effect during page test; and if the pointer does not point to the target test node, controlling the pointer to point to the target test node.
Referring to fig. 4, fig. 4 is a schematic diagram of another test node configuration table according to an embodiment of the present disclosure. As shown in FIG. 4, the test node configuration table may include a plurality of test nodes, such as test node A, test node B, test node C, and test node D, among others. At this time, which test node is the test node that is effective in the page test can be determined by the pointing of the pointer.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating adjustment of pointer orientation in a test node configuration table according to an embodiment of the present disclosure. As shown in fig. 5, if the target test node is test node B and the test node pointed by the pointer in the test node configuration table is test node a, the pointer may be controlled to point to test node B.
For example, if the target test node is a test node B and the test node pointed by the pointer in the test node configuration table is the test node B, it may be determined that the test node B is the valid test node.
By controlling the pointer to point to the target test node in the test node configuration table, the target test node can be used as an effective test node, page test based on the target test node can be realized, execution from an initial test node to the target test node in a page test flow is avoided, and page test efficiency is improved.
Illustratively, when the scene parameter information corresponding to the target test node is obtained, the scene parameter information may be obtained through server query. In the embodiment of the present application, the scene parameter information may be stored in the server in advance.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a sub-step of storing scene parameter information in a server according to an embodiment of the present application, and specifically includes the following steps S201 to S203.
Step S201, obtaining preset page test flow information, where the page test flow information includes at least one test node, and each test node has an associated test scenario.
It should be noted that the page test flow information refers to information of the whole flow for performing the page test. The page test flow information can be stored in a local database or a local disk, and can also be stored in a server. In the embodiment of the application, the page test flow can be divided into a plurality of test nodes in advance, and each test node has a corresponding test scene. And then, associating and storing the scene parameter information of each test scene with the scene label to a server. Therefore, when the page test is carried out, the scene parameter information corresponding to the target test node can be obtained from the server, and the page test can be carried out by loading the test scene according to the scene parameters.
Illustratively, the page test flow information may include test node a, test node B, and test node C, among others. The test node A has a related test scene a, the test node B has a related test scene B, and the test node C has a related test scene C.
The test scenario may include a registration scenario, a login scenario, a session scenario, an information modification scenario, a logout scenario, and the like.
Step S202, determining a scene label of each test scene, and acquiring scene parameter information of each test scene.
In some embodiments, determining the scenario label for each test scenario may include: and acquiring the node name of the test node associated with each test scene, and determining the node name as the scene label of each test scene.
By determining the node name of the test node as the scene label of the test scene, the scene parameter information corresponding to the test node can be conveniently inquired according to the scene label based on the preset corresponding relation between the scene label and the scene parameter information. In addition, the test node to which the test scene belongs can be judged according to the scene label of the test scene.
In some embodiments, obtaining the scene parameter information of each test scene may include: acquiring log information in a preset log platform based on a preset calling interface, wherein the log information comprises historical test information corresponding to each test scene; and extracting scene parameter information of the historical test information based on the incoming parameters and the outgoing parameters in the calling interface to obtain the scene parameter information of each test scene.
For example, a preset call interface may be called to obtain log information in the log platform. The calling interface is an interface for data interaction between the client and the server, the log platform can be a platform in the server, and the log platform is used for recording data adopted during page testing. It should be noted that the historical test information includes various data that have been subjected to the page test according to the test scenario corresponding to each test node. In the embodiment of the application, the log platform can record data required by page testing of each test scene.
Illustratively, scene parameter information extraction may be performed on the historical test information according to the incoming parameters and the outgoing parameters in the call interface, so as to obtain the scene parameter information of each test scene.
It should be noted that the incoming parameter itself has a value for providing to the function; the outgoing parameter itself has no value and is used to retrieve the return value from the function. In the embodiment of the application, the key parameters of the test scene can be extracted and obtained through the incoming parameters and the outgoing parameters.
For example, scene parameter information extraction may be performed on historical test information corresponding to the test scene a according to the incoming parameter and the outgoing parameter, so as to obtain scene parameter information of the test scene a.
For another example, the scene parameter information of the test scene b may be obtained by extracting the scene parameter information from the historical test information corresponding to the test scene b according to the incoming parameter and the outgoing parameter.
For example, for an information modification scenario, the corresponding scenario parameter information may include fields such as a contact name, a mobile phone number, and a gender. For example, for a registration scenario, the corresponding scenario parameter information may include fields such as a user account, a user password, and an authentication code.
Scene parameter information extraction is carried out on historical test information by calling the incoming parameters and the outgoing parameters in the interface, and the scene parameter information of each test scene can be conveniently and accurately obtained.
Step S203, storing the scene parameter information corresponding to each test scene and the scene label in a server in an associated manner.
For example, the scene parameter information corresponding to each test scene may be stored in association with the scene tag in the server.
For example, for the test scenario a, scenario parameter information corresponding to the test scenario a may be stored in association with the scenario tag in the server. For another example, for the test scenario b, scenario parameter information corresponding to the test scenario b may be stored in association with the scenario tag in the server.
The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
The scene parameter information of the test scene associated with each test node and the scene label are stored in the server in an associated mode, so that the scene parameter information can be called from the server when the scene parameter information corresponding to the target test node is obtained.
To further ensure the privacy and security of the scene parameter information, the scene parameter information may be stored in a node of a block chain. When the scene parameter information corresponding to the target test node is obtained, the corresponding scene parameter information can be obtained from the block chain node according to the target scene label corresponding to the target test node.
Referring to fig. 7, fig. 7 is a schematic flowchart of a sub-step of obtaining scene parameter information according to an embodiment of the present application, and specifically includes the following steps S204 to S206.
Step S204, a target scene label corresponding to the target test node is obtained, wherein the target scene label is a scene label of the target test scene.
For example, since each test scenario corresponds to a scenario tag, and the test scenario and the test node have an association relationship, the scenario tag of the target test scenario associated with the target test node may be determined as the target scenario tag corresponding to the target test node.
Step S205, according to the target scene label, performing scene parameter information query in the server to obtain scene parameter information corresponding to the target scene label.
Illustratively, when scene parameter information is queried in a server according to a target scene tag, a scene parameter request containing the scene tag can be generated; and then, sending the scene parameter request to the server based on the calling interface so that the server returns the scene parameter information corresponding to the scene label in the scene parameter request based on the corresponding relation between the preset scene label and the scene parameter information.
Step S206, determining the scene parameter information corresponding to the target scene label as the scene parameter information corresponding to the target test node.
For example, the scenario parameter information obtained from the server may be determined as the scenario parameter information corresponding to the target test node.
It should be noted that, in the prior art, since the server performs the page test in the ideal environment, a logic design problem of inconsistent fields is easily generated when the client runs the page. In the embodiment of the application, the scene parameter information corresponding to the target test node is acquired from the server, so that the fields of the scene parameter information in the client and the fields of the scene parameter information in the server can be kept consistent, the problem of logic design of test scene loading failure caused by inconsistent fields is avoided, and the accuracy and the test effect of page test can be improved.
Step S30, loading a preset target application program on the test interface, and loading a target test scenario corresponding to the target page on the target application program based on the scenario parameter information.
It should be noted that, during interface testing, a target application program may be loaded on a test interface; and then, loading a target test scene corresponding to the target page and the target page in the target application program based on the scene parameter information. Therefore, page testing of a real environment in an application program can be realized.
For example, a target page may be loaded in a target application program, and a target test scenario corresponding to the target page may be loaded in the target application program based on scenario parameter information corresponding to the target test node.
Illustratively, when the scene parameter information includes fields such as contact names, mobile phone numbers, genders and the like, an information modification scene corresponding to the target page may be loaded on the test interface.
Illustratively, when the scene parameter information includes fields such as a user account, a user password, and a verification code, a registration scene corresponding to the target page may be loaded on the test interface.
By loading the target test scene corresponding to the target page on the test interface based on the scene parameter information, the page test of the real environment in the application program can be realized, and the accuracy of the page test is improved. It can be understood that the real environment refers to loading a test scene for page test on an application program according to scene parameter information.
And step S40, obtaining test data corresponding to the target test scene, and testing the target page according to the test data.
In the embodiment of the application, the test data corresponding to the target test scenario can be acquired from the server based on the calling interface. Of course, the test data corresponding to the target test scenario may also be obtained from a local database or a local disk of the client.
For example, if the target test scenario is an information modification scenario, the test data may include field values corresponding to fields such as a contact name, a mobile phone number, a gender, and the like.
For another example, if the target test scenario is a registration scenario, the test data may include field values corresponding to fields such as a user account, a user password, and an authentication code.
For example, after the test data corresponding to the target test scenario is obtained, the target page may be tested according to the test data. The specific test procedure is not limited herein.
In some embodiments, after the target page is tested according to the preset test data, the method may further include: and acquiring a test result corresponding to the target page, and displaying the test result on a test interface.
For example, the test result may include whether the target page is successfully tested, exception information generated during the test, and the like.
For example, the test results may be rendered to a test interface to display the test results in the test interface.
The test result is displayed on the test interface, so that a user can conveniently and visually check the test result, the abnormal test page can be positioned and checked according to the test result, and the page test efficiency is improved.
According to the page testing method provided by the embodiment, the page set corresponding to the target application program is loaded into the testing interface, and the target page to be tested is determined according to the page selection operation, so that the page before the target page is prevented from being tested, and the page testing efficiency is improved; the target test node corresponding to the target page is determined according to the node selection operation, and the target test node is set to be the effective test node, so that the target page can be independently tested based on the target test node; the effective test nodes are replaced by the target test nodes in the test node configuration table, so that the target test nodes can be used as effective test nodes, and further, the test scenes corresponding to the target pages can be loaded based on the scene parameter information corresponding to the target test nodes, and the page test failure is avoided; the scene parameter information of the test scene associated with each test node and the scene label are stored in the server in an associated manner, so that the scene parameter information can be called from the server when the scene parameter information corresponding to the target test node is acquired; by acquiring the scene parameter information corresponding to the target test node from the server, the fields of the scene parameter information in the client and the fields of the scene parameter information in the server can be kept consistent, and the problem of logic design of test scene loading failure caused by inconsistent fields is avoided, so that the accuracy and the test effect of page test can be improved; by loading the target test scene corresponding to the target page on the test interface based on the scene parameter information, the page test of the real environment in the application program can be realized, and the accuracy of the page test is improved; the test result is displayed on the test interface, so that a user can conveniently and visually check the test result, the abnormal test page can be positioned and checked according to the test result, and the page test efficiency is improved.
Referring to fig. 8, fig. 8 is a schematic block diagram of a page testing apparatus 1000 according to an embodiment of the present application, the page testing apparatus being configured to perform the page testing method. The page testing device can be configured in the client.
As shown in fig. 8, the page test apparatus 1000 includes: a target page determining module 1001, a scene parameter acquiring module 1002, a test scene loading module 1003 and a page testing module 1004.
The target page determining module 1001 is configured to determine, when a page selection operation of the test interface is detected, a target page to be tested according to the page selection operation.
The scene parameter obtaining module 1002 is configured to determine a target test node corresponding to the target page, set the target test node as a valid test node, and obtain scene parameter information corresponding to the target test node.
A test scenario loading module 1003, configured to load a preset target application program on the test interface, and load a target test scenario corresponding to the target page and the target page on the target application program based on the scenario parameter information.
The page testing module 1004 is configured to obtain test data corresponding to the target test scenario, and test the target page according to the test data.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus and the modules described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 9.
Referring to fig. 9, fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present disclosure.
Referring to fig. 9, the computer device includes a processor and a memory connected by a system bus, wherein the memory may include a nonvolatile storage medium and an internal memory.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a non-volatile storage medium, which when executed by the processor, causes the processor to perform any of the page testing methods.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
when detecting page selection operation of a test interface, determining a target page to be tested according to the page selection operation; determining a target test node corresponding to the target page, setting the target test node as a valid test node, and acquiring scene parameter information corresponding to the target test node; loading a preset target application program on the test interface, and loading a target test scene corresponding to the target page and the target page on the target application program based on the scene parameter information; and acquiring test data corresponding to the target test scene, and testing the target page according to the test data.
In one embodiment, before the processor determines, according to the page selection operation, a target page to be tested when the page selection operation of the test interface is detected, the processor is further configured to:
acquiring a page set corresponding to the target application program, wherein the page set comprises a plurality of pages when the target application program runs; and loading the page set to the test interface.
In one embodiment, before implementing obtaining the scene parameter information corresponding to the target test node, the processor is further configured to implement:
acquiring preset page test flow information, wherein the page test flow information comprises at least one test node, and each test node has a relevant test scene; determining a scene label of each test scene, and acquiring scene parameter information of each test scene; and storing the scene parameter information corresponding to each test scene and the scene label in a server in an associated manner.
In one embodiment, the processor, when implementing acquiring the scene parameter information of each of the test scenes, is configured to implement:
acquiring log information in a preset log platform based on a preset calling interface, wherein the log information comprises historical test information corresponding to each test scene; and extracting scene parameter information of the historical test information based on the incoming parameters and the outgoing parameters in the calling interface to obtain the scene parameter information of each test scene.
In one embodiment, when implementing obtaining the scene parameter information corresponding to the target test node, the processor is configured to implement:
acquiring a target scene label corresponding to the target test node, wherein the target scene label is a scene label of the target test scene; according to the target scene label, carrying out scene parameter information query in the server to obtain scene parameter information corresponding to the target scene label; and determining the scene parameter information corresponding to the target scene label as the scene parameter information corresponding to the target test node.
In one embodiment, the processor is configured to implement, in a test node that implements setting the target test node into effect:
inquiring a preset test node configuration table to obtain effective test nodes in the test node configuration table, wherein the effective test nodes are effective test nodes during page test; and if the effective test node is not the target test node, replacing the effective test node with the target test node.
In one embodiment, the processor is configured to implement, in a test node that implements setting the target test node into effect:
inquiring a preset test node configuration table to obtain a test node pointed by a pointer in the test node configuration table, wherein the test node configuration table comprises a plurality of test nodes, and the pointer points to a test node which takes effect during page test; and if the pointer does not point to the target test node, controlling the pointer to point to the target test node.
The embodiment of the application further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program comprises program instructions, and the processor executes the program instructions to realize any page testing method provided by the embodiment of the application.
For example, the program is loaded by a processor and may perform the following steps:
when detecting page selection operation of a test interface, determining a target page to be tested according to the page selection operation; determining a target test node corresponding to the target page, setting the target test node as a valid test node, and acquiring scene parameter information corresponding to the target test node; loading a preset target application program on the test interface, and loading a target test scene corresponding to the target page and the target page on the target application program based on the scene parameter information; and acquiring test data corresponding to the target test scene, and testing the target page according to the test data.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD Card), a Flash memory Card (Flash Card), and the like provided on the computer device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A page testing method is characterized by comprising the following steps:
when detecting page selection operation of a test interface, determining a target page to be tested according to the page selection operation;
determining a target test node corresponding to the target page, setting the target test node as a valid test node, and acquiring scene parameter information corresponding to the target test node;
loading a preset target application program on the test interface, and loading a target test scene corresponding to the target page and the target page on the target application program based on the scene parameter information;
and acquiring test data corresponding to the target test scene, and testing the target page according to the test data.
2. The page testing method according to claim 1, wherein when the page selection operation of the test interface is detected, before the target page to be tested is determined according to the page selection operation, the method further comprises:
acquiring a page set corresponding to the target application program, wherein the page set comprises a plurality of pages when the target application program runs;
and loading the page set to the test interface.
3. The page testing method according to claim 1, wherein before the obtaining of the scene parameter information corresponding to the target testing node, the method further comprises:
acquiring preset page test flow information, wherein the page test flow information comprises at least one test node, and each test node has a relevant test scene;
determining a scene label of each test scene, and acquiring scene parameter information of each test scene;
and storing the scene parameter information corresponding to each test scene and the scene label in a server in an associated manner.
4. The page testing method according to claim 3, wherein the obtaining of the scene parameter information of each of the test scenes comprises:
acquiring log information in a preset log platform based on a preset calling interface, wherein the log information comprises historical test information corresponding to each test scene;
and extracting scene parameter information of the historical test information based on the incoming parameters and the outgoing parameters in the calling interface to obtain the scene parameter information of each test scene.
5. The page testing method according to claim 3, wherein the obtaining of the scene parameter information corresponding to the target testing node comprises:
acquiring a target scene label corresponding to the target test node, wherein the target scene label is a scene label of the target test scene;
according to the target scene label, carrying out scene parameter information query in the server to obtain scene parameter information corresponding to the target scene label;
and determining the scene parameter information corresponding to the target scene label as the scene parameter information corresponding to the target test node.
6. The page testing method according to claim 1, wherein said setting the target test node as a valid test node comprises:
inquiring a preset test node configuration table to obtain effective test nodes in the test node configuration table, wherein the effective test nodes are effective test nodes during page test;
and if the effective test node is not the target test node, replacing the effective test node with the target test node.
7. The page testing method according to claim 1, wherein said setting the target test node as a valid test node comprises:
inquiring a preset test node configuration table to obtain a test node pointed by a pointer in the test node configuration table, wherein the test node configuration table comprises a plurality of test nodes, and the pointer points to a test node which takes effect during page test;
and if the pointer does not point to the target test node, controlling the pointer to point to the target test node.
8. A page testing apparatus, comprising:
the target page determining module is used for determining a target page to be tested according to the page selection operation when the page selection operation of the test interface is detected;
the scene parameter acquisition module is used for determining a target test node corresponding to the target page, setting the target test node as a valid test node and acquiring scene parameter information corresponding to the target test node;
the test scene loading module is used for loading a preset target application program on the test interface and loading a target test scene corresponding to the target page on the target application program on the basis of the scene parameter information;
and the page testing module is used for acquiring the test data corresponding to the target test scene and testing the target page according to the test data.
9. A computer device, wherein the computer device comprises a memory and a processor;
the memory for storing a computer program;
the processor for executing the computer program and implementing the page testing method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the page testing method according to any one of claims 1 to 7.
CN202111016621.5A 2021-08-31 2021-08-31 Page testing method and device, computer equipment and storage medium Pending CN113722225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111016621.5A CN113722225A (en) 2021-08-31 2021-08-31 Page testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111016621.5A CN113722225A (en) 2021-08-31 2021-08-31 Page testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113722225A true CN113722225A (en) 2021-11-30

Family

ID=78680171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111016621.5A Pending CN113722225A (en) 2021-08-31 2021-08-31 Page testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113722225A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107910A (en) * 2023-04-03 2023-05-12 平安银行股份有限公司 Performance system testing method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344062A (en) * 2018-09-26 2019-02-15 深圳壹账通智能科技有限公司 The cross-domain method for jumping test of the page and terminal device
CN112015654A (en) * 2020-08-31 2020-12-01 京东数字科技控股股份有限公司 Method and apparatus for testing
CN112052172A (en) * 2020-09-04 2020-12-08 云账户技术(天津)有限公司 Rapid testing method and device for third-party channel and electronic equipment
CN112181835A (en) * 2020-09-29 2021-01-05 中国平安人寿保险股份有限公司 Automatic testing method and device, computer equipment and storage medium
CN112632798A (en) * 2021-01-05 2021-04-09 上海品顺信息科技有限公司 Simulation test method, device, equipment and storage medium of warehouse management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344062A (en) * 2018-09-26 2019-02-15 深圳壹账通智能科技有限公司 The cross-domain method for jumping test of the page and terminal device
CN112015654A (en) * 2020-08-31 2020-12-01 京东数字科技控股股份有限公司 Method and apparatus for testing
CN112052172A (en) * 2020-09-04 2020-12-08 云账户技术(天津)有限公司 Rapid testing method and device for third-party channel and electronic equipment
CN112181835A (en) * 2020-09-29 2021-01-05 中国平安人寿保险股份有限公司 Automatic testing method and device, computer equipment and storage medium
CN112632798A (en) * 2021-01-05 2021-04-09 上海品顺信息科技有限公司 Simulation test method, device, equipment and storage medium of warehouse management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116107910A (en) * 2023-04-03 2023-05-12 平安银行股份有限公司 Performance system testing method, electronic equipment and storage medium
CN116107910B (en) * 2023-04-03 2023-08-25 平安银行股份有限公司 Performance system testing method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109743315B (en) Behavior identification method, behavior identification device, behavior identification equipment and readable storage medium for website
CN108418787B (en) Method for acquiring enterprise resource planning data, terminal device and medium
CN112148674A (en) Log data processing method and device, computer equipment and storage medium
CN108256322B (en) Security testing method and device, computer equipment and storage medium
CN111324905A (en) Image data labeling method and device, computer equipment and storage medium
CN108287823B (en) Message data processing method and device, computer equipment and storage medium
CN109788052B (en) Server configuration remote query method, device, terminal and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN112328486A (en) Interface automation test method and device, computer equipment and storage medium
CN109542764B (en) Webpage automatic testing method and device, computer equipment and storage medium
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
CN113722225A (en) Page testing method and device, computer equipment and storage medium
CN112181423B (en) Project construction method and device based on configuration file, computer equipment and medium
CN113704037A (en) Equipment testing method and device, computer equipment and storage medium
CN112256532A (en) Test interface generation method and device, computer equipment and readable storage medium
CN111324539A (en) Account switching test method and system
CN112579571B (en) Monitoring data configuration, data monitoring method, device, equipment and storage medium
CN114979109A (en) Behavior track detection method and device, computer equipment and storage medium
CN114637672A (en) Automatic data testing method and device, computer equipment and storage medium
CN112417324A (en) Chrome-based URL (Uniform resource locator) interception method and device and computer equipment
CN112350868A (en) Wall opening processing method, device, server, system and readable storage medium
CN109492144B (en) Association relation analysis method, device and storage medium for software system
CN111752600A (en) Code anomaly detection method and device, computer 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