CN112597059A - Page element testing method, system and medium based on test case - Google Patents

Page element testing method, system and medium based on test case Download PDF

Info

Publication number
CN112597059A
CN112597059A CN202110064278.5A CN202110064278A CN112597059A CN 112597059 A CN112597059 A CN 112597059A CN 202110064278 A CN202110064278 A CN 202110064278A CN 112597059 A CN112597059 A CN 112597059A
Authority
CN
China
Prior art keywords
data
page
operation data
page operation
test
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.)
Withdrawn
Application number
CN202110064278.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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110064278.5A priority Critical patent/CN112597059A/en
Publication of CN112597059A publication Critical patent/CN112597059A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention relates to a page element testing method, a system and a medium based on a test case, which comprises the steps of firstly calling a local test case analysis network to carry out primary conversion on initial page operation data to obtain target page operation data, secondly calling a global test case analysis network to carry out secondary conversion on the target page operation data to obtain test page operation data, then determining the test case based on the test page operation data corresponding to the target page operation data, and testing a page corresponding to the target page operation data based on the test case. Therefore, different page operation data are processed based on the local test case analysis network and the global test case analysis network, lossless conversion of the different page operation data can be achieved to ensure the integrity of the different types of page operation data, accurate and reliable page element testing can be achieved, and matching of a visual page and actual business requirements of users is ensured.

Description

Page element testing method, system and medium based on test case
Technical Field
The present application relates to the field of page elements and test cases, and in particular, to a method, a system, and a medium for testing page elements based on test cases.
Background
The Test Case (Test Case) is a description of a Test task performed on a specific software product, and embodies a Test scheme, a method, a technology and a strategy, and the contents of the Test Case include a Test object, a Test environment, input data, a Test step, an expected result, a Test script and the like, and finally form a document. Simply considered, a test case is a set of test inputs, execution conditions, and expected results tailored for a particular purpose to verify whether a particular software requirement is met.
With the development of big data and communication technology, the interaction between multiple ends is mostly performed based on visual pages. Therefore, in order to ensure the stability and reliability of the multi-end interaction, page elements need to be tested in advance, so that the debugging cost in the later period is reduced. However, in practical applications, it is difficult for a common page element testing method to achieve accurate and reliable testing, and further difficult to ensure matching between a visual page and actual business requirements of a user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a page element testing method, system and medium based on a test case, which can process different page operation data based on a local test case analysis network and a global test case analysis network, so as to implement accurate and reliable page element testing and ensure matching between a visual page and actual business requirements of a user.
The embodiment of the invention provides a page element testing method based on a test case, which is applied to a cloud server communicated with a page access terminal, and comprises the following steps: calling a trained local test case analysis network to convert the initial page operation data input by the page access terminal into target page operation data; calling a trained global test case analysis network to convert the target page operation data to obtain test page operation data corresponding to the target page operation data; the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format; and determining a test case based on the test page operation data corresponding to the target page operation data, and testing the page corresponding to the target page operation data based on the test case.
Optionally, the testing the page corresponding to the target page operation data based on the test case specifically includes:
determining a page element corresponding to the page element identifier in a page corresponding to the target page operation data based on the page element identifier corresponding to the test case;
executing the test operation corresponding to the test case on the page element corresponding to the page element identifier to obtain a test result;
the executing the test operation corresponding to the test case on the page element corresponding to the page element identifier specifically includes:
under the condition that the test operation corresponding to the test case is clicking a page element, clicking the page element corresponding to the page element identifier; and the number of the first and second groups,
and under the condition that the test operation corresponding to the test case is an assignment page element, performing assignment operation on the page element corresponding to the page element identifier.
Optionally, before testing the page corresponding to the target page operation data based on the test case, the method further includes:
expanding the test case to obtain an expanded test case;
testing the page corresponding to the target page operation data based on the test case and the extended test case;
the expanding the test case to obtain an expanded test case specifically includes:
determining an extended page element with the same format as the page element corresponding to the test case in the page corresponding to the target page operation data based on the page element corresponding to the test case;
and correspondingly replacing the node parameter values in the path corresponding to the page elements corresponding to the test cases with the node parameter values belonging to the same array, so as to generate the extended test cases corresponding to the extended page elements.
Optionally, the method further comprises:
according to the initial page operation data and the test page operation data of the target page operation data, performing service requirement verification aiming at page elements on the target page operation data, wherein the service requirement verification comprises the following steps:
performing page response analysis on the test page operation data of the initial page operation data and the target page operation data to obtain a page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data;
judging whether the page response analysis result meets a test index judgment condition or not;
when the page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data does not meet the test index judgment condition, updating the target page operation data to obtain updated page operation data; calling the global test case analysis network to convert the updated page operation data to obtain test page operation data corresponding to the updated page operation data;
performing page response analysis on the initial page operation data and the test page operation data of the updated page operation data to obtain a page response analysis result corresponding to the initial page operation data and the test page operation data of the updated page operation data;
when the page response analysis result corresponding to the initial page operation data and the test page operation data of the updated page operation data meets the test index judgment condition, binding the updated page operation data with the service requirement information corresponding to the page element to be tested; alternatively, the first and second electrodes may be,
and when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data does not meet the test index judgment condition, continuing to update the updated page operation data until the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data meets the test index judgment condition.
Optionally, performing page response analysis on the test page operation data of the initial page operation data and the target page operation data to obtain a page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data, including:
calling initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data; generating initial content state information corresponding to initial page feedback content of the initial page operation data and test content state information corresponding to test page feedback content of test page operation data of the target page operation data, including:
generating initial content state information corresponding to initial page feedback content of the initial page operation data according to a combined mode test result corresponding to a state combined mode, wherein the state combined information between any two adjacent state data items in the initial content state information is used for determining the combined mode test result corresponding to the state combined mode;
generating test content state information corresponding to test page feedback content of test page operation data of the target page operation data according to a combined mode test result corresponding to a state combined mode, wherein the state combined information between any two adjacent state data items in the test content state information is used for determining the combined mode test result corresponding to the state combined mode; wherein the initial content status information and the test content status information respectively include a plurality of status data items having different status combination manners;
calling initial data item correlation information of any state data item of initial page feedback content of the initial page operation data in the initial content state information, and determining the state data item with the most state combination mode in the test content state information as a target state data item;
mapping the initial data item correlation information to the target state data item according to a local test case analysis network and a global test case analysis network, obtaining initial data item conversion information in the target state data item, and generating page response indication information between initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data according to the initial data item correlation information and the initial data item conversion information;
acquiring data abnormal state information in the target state data items by taking the initial data item conversion information as page element reference information, analyzing priorities according to feedback contents corresponding to the page response indication information, mapping the data abnormal state information to the state data items of the initial data item association information, obtaining abnormal state conversion information corresponding to the data abnormal state information in the state data items of the initial data item association information, and determining the target data item association information of the abnormal state conversion information;
obtaining an information mapping log record of the initial data item association information mapped to the target state data item; according to the state similarity between the abnormal state conversion information and the page element state information corresponding to a plurality of converted page elements in the information mapping log record, traversing the dynamic conversion content corresponding to the target data item association information in the test content state information until the service demand heat value of the state data item of the obtained dynamic conversion content is consistent with the service demand heat value of the target data item association information in the initial content state information, stopping obtaining the dynamic conversion content in the next state data item, and generating a page response analysis result aiming at the page element between the target data item association information and the last obtained dynamic conversion content.
Optionally, the mapping the initial data transaction association information to the target state data transaction according to a local test case analysis network and a global test case analysis network, obtaining initial data transaction conversion information in the target state data transaction, and generating page response indication information between an initial page feedback content of the initial page operation data and a test page feedback content of the test page operation data of the target page operation data according to the initial data transaction association information and the initial data transaction conversion information, includes:
mapping the initial data item association information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining the initial data item conversion information in the target state data item;
acquiring data item environment information in the state data item in which the initial data item association information is located, wherein the data item environment information is environment information corresponding to a test environment in which the initial data item association information is used as resource item information;
mapping the data item environment information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining associated data item conversion information in the target state data item;
and generating page response indication information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data according to the data transaction transfer relationship between the initial data transaction association information and the data transaction environment information, the initial data transaction conversion information and the associated data transaction conversion information.
Optionally, mapping the initial data transaction association information to the target state data transaction according to the local test case analysis network and the global test case analysis network, and obtaining the initial data transaction conversion information in the target state data transaction, includes:
mapping the initial data item association information to a data mapping set corresponding to the target state data item according to the to-be-converted data call record of the local test case analysis network and the to-be-converted data call record of the global test case analysis network to obtain initial item mapping information;
adding the initial item mapping information to the data format description content corresponding to the data format label of the test page feedback content of the test page operation data of the target page operation data according to the data format label page response analysis result and the data format label correlation result between the page operation type label corresponding to the initial page feedback content of the initial page operation data and the page operation type label corresponding to the test page feedback content of the test page operation data of the target page operation data, and obtaining transition item mapping information;
mapping the transitional data item mapping information to a data format description content corresponding to a data format label of a test page feedback content of the test page operation data of the target page operation data, wherein the data format description content has a data format selection record, and acquiring transitional data item conversion information;
and performing data item correction on the transitional data item conversion information, and mapping the corrected transitional data item conversion information into the target state data item according to the local test case analysis network to obtain the initial data item conversion information.
Optionally, updating the target page operation data to obtain updated page operation data includes:
acquiring N page operation data blocks of the target page operation data, wherein N is a positive integer;
dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees;
determining an operation behavior event set where a behavior data sequence to be updated is located from at least two operation behavior event sets included in each page operation data block;
selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block;
determining a behavior data updating result corresponding to the behavior data sequence to be updated according to the at least one piece of dynamic key behavior data; updating each page operation data block corresponding to the target page operation data according to the behavior data updating result to obtain updated page operation data;
wherein, the dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees comprises: dividing each page operation data block into at least two operation behavior event sets with different behavior data discrimination degrees according to the corresponding relation between the preset behavior data discrimination degrees and the behavior data identification indexes; or, determining the corresponding relation between the behavior data discrimination and the behavior data identification index by counting the behavior data discrimination and the behavior data identification index of each operation behavior event set in the pre-stored updated page operation data block; dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees according to the determined corresponding relation;
wherein, the selecting at least one dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block includes: determining behavior data authentication classification information of a behavior data sequence to be updated, which is included in each page operation data block; selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block;
the at least two operation behavior event sets comprise a real-time operation behavior event set and a delayed operation behavior event set, and the behavior data differentiation degree of the real-time operation behavior event set is higher than that of the delayed operation behavior event set; the selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block, includes:
when the behavior data sequence to be updated is in the real-time operation behavior event set in the M page operation data blocks included in the N page operation data blocks, selecting the behavior data sequence to be updated with the maximum category total number of behavior data authentication classification information as a first potential behavior data sequence to be selected from the behavior data sequences to be updated included in the M page operation data blocks according to the behavior data authentication classification information of the behavior data sequence to be updated included in the M page operation data blocks, wherein M is a positive integer smaller than N;
when the behavior data sequence to be updated is in the delayed operation behavior event set in P page operation data blocks included in the N page operation data blocks, selecting a behavior data sequence to be updated with the largest category total number of behavior data authentication classification information as a second potential behavior data sequence to be selected from the behavior data sequences to be updated included in the P page operation data blocks according to the behavior data authentication classification information of the behavior data sequence to be updated included in the P page operation data blocks, where P is a positive integer smaller than N, and the sum of P and M is equal to N;
and selecting at least one piece of dynamic key behavior data from the first potential behavior data sequence to be selected and the second potential behavior data sequence to be selected according to the behavior data authentication classification information of the first potential behavior data sequence to be selected and the behavior data authentication classification information of the second potential behavior data sequence to be selected.
The embodiment of the invention also provides a page element test system based on the test case, which comprises a cloud server and a page access terminal which are communicated with each other;
the page access terminal is used for: inputting initial page operation data to the cloud server;
the cloud server is configured to: calling a trained local test case analysis network to convert the initial page operation data into target page operation data; calling a trained global test case analysis network to convert the target page operation data to obtain test page operation data corresponding to the target page operation data; the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format; and determining a test case based on the test page operation data corresponding to the target page operation data, and testing the page corresponding to the target page operation data based on the test case.
The embodiment of the invention also provides a cloud server, which comprises a processor, a communication bus and a memory; the processor and the memory communicate through the communication bus, and the processor reads the computer program from the memory and runs the computer program to realize the method.
Embodiments of the present invention also provide a readable storage medium, on which a computer program is stored, which when executed performs the above method.
The method and the system for processing the test cases of the page elements have the following technical effects: firstly, calling a local test case analysis network to perform primary conversion on initial page operation data to obtain target page operation data, secondly, calling a global test case analysis network to perform secondary conversion on the target page operation data to obtain test page operation data, then determining a test case based on the test page operation data corresponding to the target page operation data, and testing a page corresponding to the target page operation data based on the test case. The initial page operation data and the test page operation data are page operation data with the same data format, so that page response analysis can be performed on the initial page operation data and the test page operation data, the conversion accuracy of the target page operation data is judged, the service requirement verification of the target page operation data aiming at the page element can be realized according to the initial page operation data and the test page operation data, accurate and reliable page element testing can be realized, and the matching of a visual page and the actual service requirement of a user is ensured.
In the description that follows, additional features will be set forth, in part, in the description. These features will be in part apparent to those skilled in the art upon examination of the following and the accompanying drawings, or may be learned by production or use. The features of the present application may be realized and attained by practice or use of various aspects of the methodologies, instrumentalities and combinations particularly pointed out in the detailed examples that follow.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic block diagram of a cloud server according to an embodiment of the present invention.
Fig. 2 is a flowchart of a page element testing method based on a test case according to an embodiment of the present invention.
Fig. 3 is a block diagram of a page element testing apparatus based on a test case according to an embodiment of the present invention.
Fig. 4 is an architecture diagram of a page element testing system based on test cases according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above prior art solutions have shortcomings which are the results of practical and careful study of the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the following embodiments of the present invention to the above problems should be the contribution of the inventor to the present invention in the course of the present invention.
Based on the research, the embodiment of the invention provides a page element testing method, a system and a medium based on a test case.
Fig. 1 shows a block schematic diagram of a cloud server 10 according to an embodiment of the present invention. The cloud server 10 in the embodiment of the present invention may be a server having data storage, transmission, and processing functions, as shown in fig. 1, the cloud server 10 includes: memory 11, processor 12, communication bus 13, and test case processing device 20 of page elements.
The memory 11, processor 12 and communication bus 13 are electrically connected, directly or indirectly, to enable the transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 11 stores a test case processing device 20 of a page element, the test case processing device 20 of the page element includes at least one software functional module which can be stored in the memory 11 in a form of software or firmware (firmware), and the processor 12 executes various functional applications and data processing by running a software program and a module stored in the memory 11, for example, the test case-based page element testing device 20 in the embodiment of the present invention, so as to implement the test case processing method of the page element in the embodiment of the present invention.
The memory 11 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a programmable read-only memory (PROM), an erasable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), and the like. The memory 11 is used for storing a program, and the processor 12 executes the program after receiving an execution instruction.
The processor 12 may be an integrated circuit chip having data processing capabilities. The processor 12 may be a general-purpose processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. The various methods, steps and logic blocks disclosed in embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The communication bus 13 is used for generating communication connection between the cloud server 10 and other communication terminal devices through a network, and implementing transceiving operation of network signals and data. The network signal may include a wireless signal or a wired signal.
It is to be understood that the configuration shown in fig. 1 is merely illustrative, and that cloud server 10 may include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in calling hardware, software, or a combination thereof.
The embodiment of the invention also provides a readable storage medium for a computer, wherein the readable storage medium stores a computer program, and the computer program realizes the method when running.
Fig. 2 shows a flowchart of a test case-based page element testing method according to an embodiment of the present invention. The method steps defined by the flow related to the method are applied to the cloud server 10 and can be implemented by the processor 12, and the method comprises the following steps S21-S23.
And step S21, calling the trained local test case analysis network to convert the initial page operation data input by the page access terminal into target page operation data.
For example, the page access terminal may be a smart phone, a tablet computer, a notebook computer, or other intelligent electronic devices capable of performing instant messaging and data message sending, which is not limited herein. The local test case analysis network may be a neural network model integrated in the cloud server, the initial page operation data may be page operation data generated by a page access terminal in response to an operation, such as click operation data, sliding operation data, or other types of operation data, and the target page operation data is operation data that can be directly processed by the cloud server.
And step S22, calling the trained global test case analysis network to convert the target page operation data to obtain test page operation data corresponding to the target page operation data.
It can be understood that the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format. The global test case analysis network may also be a neural network model integrated in a cloud server.
And step S23, determining a test case based on the test page operation data corresponding to the target page operation data, and testing the page corresponding to the target page operation data based on the test case.
It can be understood that the testing the page corresponding to the target page operation data based on the test case specifically includes: determining a page element corresponding to the page element identifier in a page corresponding to the target page operation data based on the page element identifier corresponding to the test case; executing the test operation corresponding to the test case on the page element corresponding to the page element identifier to obtain a test result; the executing the test operation corresponding to the test case on the page element corresponding to the page element identifier specifically includes: under the condition that the test operation corresponding to the test case is clicking a page element, clicking the page element corresponding to the page element identifier; and carrying out assignment operation on the page element corresponding to the page element identifier under the condition that the test operation corresponding to the test case is an assignment page element.
In some possible embodiments, before testing the page corresponding to the target page operation data based on the test case, the method further includes: expanding the test case to obtain an expanded test case; testing the page corresponding to the target page operation data based on the test case and the extended test case; the expanding the test case to obtain an expanded test case specifically includes: determining an extended page element with the same format as the page element corresponding to the test case in the page corresponding to the target page operation data based on the page element corresponding to the test case; and correspondingly replacing the node parameter values in the path corresponding to the page elements corresponding to the test cases with the node parameter values belonging to the same array, so as to generate the extended test cases corresponding to the extended page elements.
Besides, in some possible embodiments, the method provided by the invention further comprises:
step S24, according to the initial page operation data and the test page operation data of the target page operation data, performing service requirement verification for a page element on the target page operation data.
It can be understood that the conversion accuracy of the target page operation data can be judged by performing page response analysis on the initial page operation data and the test page operation data, so that when larger data exists between the initial page operation data and the test page operation data, the target page operation data is updated, and then secondary conversion is continuously performed on the updated page operation data until the initial page operation data and the test page operation data are the same or nearly the same, so that the accuracy of test case processing of page elements can be ensured, and therefore lossless conversion between different page operation data is realized to ensure the integrity of different types of page operation data. Therefore, the service requirement verification aiming at the page elements can be realized, so that the accurate and reliable page element test is realized, and the matching of the visual page and the actual service requirement of the user is ensured.
In some possible embodiments, the inventor finds that, in order to achieve the update accuracy of the target page operation data, generally, multiple updates may be required, and to achieve this, the business requirement verification for the page element on the target page operation data according to the test page operation data of the initial page operation data and the target page operation data described in step S24 may include the following contents described in steps S241 to S246.
Step S241, performing page response analysis on the test page operation data of the initial page operation data and the target page operation data to obtain a page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data.
Step S242, determining whether the page response analysis result satisfies a test index determination condition.
Step S243, when the page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data does not satisfy the test index determination condition, updating the target page operation data to obtain updated page operation data; and calling the global test case analysis network to convert the updated page operation data to obtain test page operation data corresponding to the updated page operation data.
Step S244, performing page response analysis on the initial page operation data and the test page operation data of the updated page operation data to obtain a page response analysis result corresponding to the initial page operation data and the test page operation data of the updated page operation data.
Step S245, when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data satisfies the test index determination condition, binding the updated page operation data with the service requirement information corresponding to the page element to be tested.
Step S246, when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data does not satisfy the test index determination condition, continuing to update the updated page operation data until the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data satisfies the test index determination condition.
It can be understood that, by implementing the above steps S241 to S246, when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data does not satisfy the test index determination condition, multiple iterative updates to the target page operation data or the updated page operation data can be implemented, so as to ensure the conversion accuracy of the finally output updated page operation data, and furthermore, the multiple iterative updates are performed based on the cloud server 10, so that the rate of iterative updates can be ensured, so as to improve the business requirement verification efficiency for the page elements.
In some possible embodiments, the performing, in step S241, a page response analysis on the test page operation data of the initial page operation data and the target page operation data to obtain a page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data may include the following contents described in step S2411 to step S2415.
Step S2411, calling initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data; generating initial content state information corresponding to initial page feedback content of the initial page operation data and test content state information corresponding to test page feedback content of test page operation data of the target page operation data; wherein the initial content status information and the test content status information respectively include a plurality of status data items having different status combination manners.
Step S2412, calling the initial data transaction related information of the initial page feedback content of the initial page operation data in any state data transaction of the initial content state information, and determining the state data transaction having the most state combination manner in the test content state information as a target state data transaction.
Step S2413, mapping the initial data transaction correlation information to the target state data transaction according to a local test case analysis network and a global test case analysis network, obtaining initial data transaction conversion information in the target state data transaction, and generating page response indication information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data according to the initial data transaction correlation information and the initial data transaction conversion information.
Step S2414, obtaining data abnormal state information in the target state data item by using the initial data item conversion information as page element reference information, analyzing a priority according to feedback content corresponding to the page response indication information, mapping the data abnormal state information to the state data item in which the initial data item association information is located, obtaining abnormal state conversion information corresponding to the data abnormal state information in the state data item in which the initial data item association information is located, and determining target data item association information of the abnormal state conversion information.
Step S2415, obtaining an information mapping log record of the initial data item association information mapped to the target state data item; according to the state similarity between the abnormal state conversion information and the page element state information corresponding to a plurality of converted page elements in the information mapping log record, traversing the dynamic conversion content corresponding to the target data item association information in the test content state information until the service demand heat value of the state data item of the obtained dynamic conversion content is consistent with the service demand heat value of the target data item association information in the initial content state information, stopping obtaining the dynamic conversion content in the next state data item, and generating a page response analysis result aiming at the page element between the target data item association information and the last obtained dynamic conversion content.
When the contents described in the above steps S2411 to S2415 are actually applied, it can be ensured that the page response analysis result matches the actual page operation usage to the greatest extent, so as to provide a correct and reliable update guidance basis for subsequent data update.
Further, in step S2411, the generating of the initial content state information corresponding to the initial page feedback content of the initial page operation data and the test content state information corresponding to the test page feedback content of the test page operation data of the target page operation data may include: generating initial content state information corresponding to initial page feedback content of the initial page operation data according to a combined mode test result corresponding to a state combined mode, wherein the state combined information between any two adjacent state data items in the initial content state information is used for determining the combined mode test result corresponding to the state combined mode; and generating the test content state information corresponding to the test page feedback content of the test page operation data of the target page operation data according to the combined mode test result corresponding to the state combined mode, wherein the state combined information between any two adjacent state data items in the test content state information is used for determining the combined mode test result corresponding to the state combined mode.
Further, the mapping of the initial data transaction association information to the target state data transaction according to the local test case analysis network and the global test case analysis network, which is described in step S2413, obtaining initial data transaction conversion information in the target state data transaction, and generating page response indication information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data according to the initial data transaction association information and the initial data transaction conversion information, may include the content described in the following step S2413 a-step S2413 d.
Step S2413a, mapping the initial data item association information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining the initial data item conversion information in the target state data item.
Step S2413b is executed to acquire data item environment information, which is environment information corresponding to a test environment in which the initial data item association information is the resource item information, from the status data item in which the initial data item association information is present.
Step S2413c, mapping the data item environment information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining associated data item conversion information in the target state data item.
Step S2413d, generating page response indicating information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data, based on the data transaction transfer relationship between the initial data transaction related information and the data transaction environment information, the initial data transaction conversion information, and the related data transaction conversion information.
Further, the mapping the initial data transaction association information to the target state data transaction according to the local test case analysis network and the global test case analysis network described in step S2413a, and obtaining the initial data transaction conversion information in the target state data transaction may include the contents described in the following steps (1) to (5).
(1) And mapping the initial data item association information to a data mapping set corresponding to the target state data item according to the to-be-converted data call record of the local test case analysis network and the to-be-converted data call record of the global test case analysis network to obtain initial item mapping information.
(2) And adding the initial item mapping information to the data format description content corresponding to the data format label of the test page feedback content of the test page operation data of the target page operation data according to the data format label page response analysis result between the page operation type label corresponding to the initial page feedback content of the initial page operation data and the page operation type label corresponding to the test page feedback content of the test page operation data of the target page operation data and the data format label correlation result, so as to obtain transition item mapping information.
(3) And mapping the transitional data item mapping information to a data format description content corresponding to a data format label of a test page feedback content of the test page operation data of the target page operation data, wherein the data format description content has a data format selection record, and acquiring transitional data item conversion information.
(4) And performing data item correction on the transitional data item conversion information, and mapping the corrected transitional data item conversion information into the target state data item according to the local test case analysis network to obtain the initial data item conversion information.
In this way, based on the above steps (1) to (4), the data transaction correction for the transitional data transaction conversion information can be realized, thereby ensuring the integrity of the initial data transaction conversion information.
In practical implementation, in order to ensure the updating efficiency and reduce the number of updating as much as possible, the updating of the target page operation data to obtain the updated page operation data described in step S243 may further include the following steps S2431 to S2435.
Step S2431, obtaining N page operation data blocks of the target page operation data, where N is a positive integer.
And step S2432, dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees.
Step S2433, determining the operation behavior event set where the behavior data sequence to be updated is located from at least two operation behavior event sets included in each page operation data block.
Step S2434, selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block.
Step S2435, determining a behavior data updating result corresponding to the behavior data sequence to be updated according to the at least one dynamic key behavior data; and updating each page operation data block corresponding to the target page operation data according to the behavior data updating result to obtain the updated page operation data.
By designing in this way, based on the steps S2431 to S2435, the update efficiency can be ensured, and the number of updates can be reduced as much as possible.
Further, the dividing of each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees described in step S2432 includes: dividing each page operation data block into at least two operation behavior event sets with different behavior data discrimination degrees according to the corresponding relation between the preset behavior data discrimination degrees and the behavior data identification indexes; or, determining the corresponding relation between the behavior data discrimination and the behavior data identification index by counting the behavior data discrimination and the behavior data identification index of each operation behavior event set in the pre-stored updated page operation data block; and dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees according to the determined corresponding relation.
Further, the selecting, by the step S2434, at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block includes: step S24341, determining behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block; step S24342, selecting at least one piece of dynamic key behavior data from the behavior data sequences to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block.
Furthermore, the at least two operation behavior event sets include a real-time operation behavior event set and a delayed operation behavior event set, and the behavior data differentiation degree of the real-time operation behavior event set is higher than that of the delayed operation behavior event set. Based on the above, in step S24342, the selecting at least one dynamic key behavior data from the to-be-updated behavior data sequence included in the N page operation data blocks according to the operation behavior event set of the to-be-updated behavior data sequence in each page operation data block and the behavior data certification classification information of the to-be-updated behavior data sequence included in each page operation data block may include the contents described in the following steps S31 to S33.
Step S31, when the behavior data sequence to be updated is in the real-time operation behavior event set in M page operation data blocks included in the N page operation data blocks, according to the behavior data authentication classification information of the behavior data sequence to be updated included in the M page operation data blocks, selecting, as a first potential behavior data sequence to be selected, a behavior data sequence to be updated with the largest category total number of the behavior data authentication classification information from the behavior data sequences to be updated included in the M page operation data blocks, where M is a positive integer smaller than N.
Step S32, when the behavior data sequence to be updated is in the delayed operation behavior event set in P page operation data blocks included in the N page operation data blocks, according to the behavior data authentication classification information of the behavior data sequence to be updated included in the P page operation data blocks, selecting, as a second potential behavior data sequence to be selected, a behavior data sequence to be updated whose category total number of the behavior data authentication classification information is the largest from the behavior data sequences to be updated included in the P page operation data blocks, where P is a positive integer smaller than N, and a sum of P and M is equal to N.
Step S33, selecting at least one piece of dynamic key behavior data from the first potential to-be-selected behavior data sequence and the second potential to-be-selected behavior data sequence according to the behavior data authentication classification information of the first potential to-be-selected behavior data sequence and the behavior data authentication classification information of the second potential to-be-selected behavior data sequence.
Based on the same inventive concept, there is also provided a page element testing device 20 based on test cases as shown in fig. 3, which at least comprises the following functional modules.
The first data conversion module 21 is configured to invoke a local test case analysis network that completes training to convert the initial page operation data input by the page access terminal into target page operation data.
The second data conversion module 22 is configured to invoke a trained global test case analysis network to convert the target page operation data, so as to obtain test page operation data corresponding to the target page operation data; the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format.
And the page element verification module 23 is configured to verify the service requirement of the target page operation data for the page element according to the initial page operation data and the test page operation data of the target page operation data.
For the description of the first data conversion module 21, the second data conversion module 22, and the page element verification module 23, reference may be made to the description of the method shown in fig. 2, which is not described herein again.
Further, the page element verification module 23 may be configured to:
judging whether the page response analysis result meets a test index judgment condition or not;
when the page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data does not meet the test index judgment condition, updating the target page operation data to obtain updated page operation data; calling the global test case analysis network to convert the updated page operation data to obtain test page operation data corresponding to the updated page operation data;
performing page response analysis on the initial page operation data and the test page operation data of the updated page operation data to obtain a page response analysis result corresponding to the initial page operation data and the test page operation data of the updated page operation data;
and when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data meets the test index judgment condition, binding the updated page operation data with the service requirement information corresponding to the page element to be tested.
Further, the page element verification module 23 may be configured to:
calling initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data; generating initial content state information corresponding to initial page feedback content of the initial page operation data and test content state information corresponding to test page feedback content of test page operation data of the target page operation data; wherein the initial content status information and the test content status information respectively include a plurality of status data items having different status combination manners;
calling initial data item correlation information of any state data item of initial page feedback content of the initial page operation data in the initial content state information, and determining the state data item with the most state combination mode in the test content state information as a target state data item;
mapping the initial data item correlation information to the target state data item according to a local test case analysis network and a global test case analysis network, obtaining initial data item conversion information in the target state data item, and generating page response indication information between initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data according to the initial data item correlation information and the initial data item conversion information;
acquiring data abnormal state information in the target state data items by taking the initial data item conversion information as page element reference information, analyzing priorities according to feedback contents corresponding to the page response indication information, mapping the data abnormal state information to the state data items of the initial data item association information, obtaining abnormal state conversion information corresponding to the data abnormal state information in the state data items of the initial data item association information, and determining the target data item association information of the abnormal state conversion information;
obtaining an information mapping log record of the initial data item association information mapped to the target state data item; according to the state similarity between the abnormal state conversion information and the page element state information corresponding to a plurality of converted page elements in the information mapping log record, traversing the dynamic conversion content corresponding to the target data item association information in the test content state information until the service demand heat value of the state data item of the obtained dynamic conversion content is consistent with the service demand heat value of the target data item association information in the initial content state information, stopping obtaining the dynamic conversion content in the next state data item, and generating a page response analysis result aiming at the page element between the target data item association information and the last obtained dynamic conversion content.
Further, the page element verification module 23 may be configured to:
generating initial content state information corresponding to initial page feedback content of the initial page operation data according to a combined mode test result corresponding to a state combined mode, wherein the state combined information between any two adjacent state data items in the initial content state information is used for determining the combined mode test result corresponding to the state combined mode;
and generating the test content state information corresponding to the test page feedback content of the test page operation data of the target page operation data according to the combined mode test result corresponding to the state combined mode, wherein the state combined information between any two adjacent state data items in the test content state information is used for determining the combined mode test result corresponding to the state combined mode.
Further, the page element verification module 23 may be configured to:
mapping the initial data item association information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining the initial data item conversion information in the target state data item;
acquiring data item environment information in the state data item in which the initial data item association information is located, wherein the data item environment information is environment information corresponding to a test environment in which the initial data item association information is used as resource item information;
mapping the data item environment information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining associated data item conversion information in the target state data item;
and generating page response indication information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data according to the data transaction transfer relationship between the initial data transaction association information and the data transaction environment information, the initial data transaction conversion information and the associated data transaction conversion information.
Further, the page element verification module 23 may be configured to:
mapping the initial data item association information to a data mapping set corresponding to the target state data item according to the to-be-converted data call record of the local test case analysis network and the to-be-converted data call record of the global test case analysis network to obtain initial item mapping information;
adding the initial item mapping information to the data format description content corresponding to the data format label of the test page feedback content of the test page operation data of the target page operation data according to the data format label page response analysis result and the data format label correlation result between the page operation type label corresponding to the initial page feedback content of the initial page operation data and the page operation type label corresponding to the test page feedback content of the test page operation data of the target page operation data, and obtaining transition item mapping information;
mapping the transitional data item mapping information to a data format description content corresponding to a data format label of a test page feedback content of the test page operation data of the target page operation data, wherein the data format description content has a data format selection record, and acquiring transitional data item conversion information;
and performing data item correction on the transitional data item conversion information, and mapping the corrected transitional data item conversion information into the target state data item according to the local test case analysis network to obtain the initial data item conversion information.
Further, the page element verification module 23 may be configured to:
acquiring N page operation data blocks of the target page operation data, wherein N is a positive integer;
dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees;
determining an operation behavior event set where a behavior data sequence to be updated is located from at least two operation behavior event sets included in each page operation data block;
selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block;
determining a behavior data updating result corresponding to the behavior data sequence to be updated according to the at least one piece of dynamic key behavior data; updating each page operation data block corresponding to the target page operation data according to the behavior data updating result to obtain updated page operation data;
wherein, the dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees comprises: dividing each page operation data block into at least two operation behavior event sets with different behavior data discrimination degrees according to the corresponding relation between the preset behavior data discrimination degrees and the behavior data identification indexes; or, determining the corresponding relation between the behavior data discrimination and the behavior data identification index by counting the behavior data discrimination and the behavior data identification index of each operation behavior event set in the pre-stored updated page operation data block; dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees according to the determined corresponding relation;
wherein, the selecting at least one dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block includes: determining behavior data authentication classification information of a behavior data sequence to be updated, which is included in each page operation data block; selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block;
the at least two operation behavior event sets comprise a real-time operation behavior event set and a delayed operation behavior event set, and the behavior data differentiation degree of the real-time operation behavior event set is higher than that of the delayed operation behavior event set; the selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block, includes:
when the behavior data sequence to be updated is in the real-time operation behavior event set in the M page operation data blocks included in the N page operation data blocks, selecting the behavior data sequence to be updated with the maximum category total number of behavior data authentication classification information as a first potential behavior data sequence to be selected from the behavior data sequences to be updated included in the M page operation data blocks according to the behavior data authentication classification information of the behavior data sequence to be updated included in the M page operation data blocks, wherein M is a positive integer smaller than N;
when the behavior data sequence to be updated is in the delayed operation behavior event set in P page operation data blocks included in the N page operation data blocks, selecting a behavior data sequence to be updated with the largest category total number of behavior data authentication classification information as a second potential behavior data sequence to be selected from the behavior data sequences to be updated included in the P page operation data blocks according to the behavior data authentication classification information of the behavior data sequence to be updated included in the P page operation data blocks, where P is a positive integer smaller than N, and the sum of P and M is equal to N;
and selecting at least one piece of dynamic key behavior data from the first potential behavior data sequence to be selected and the second potential behavior data sequence to be selected according to the behavior data authentication classification information of the first potential behavior data sequence to be selected and the behavior data authentication classification information of the second potential behavior data sequence to be selected.
Further, the page element verification module 23 is further configured to:
and when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data does not meet the test index judgment condition, continuing to update the updated page operation data until the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data meets the test index judgment condition.
Based on the same inventive concept, there is also provided a test case-based page element testing system 60 as shown in fig. 4, which includes a cloud server 10 and a page access terminal 30 communicating with each other.
The page access terminal 30 is configured to: and inputting initial page operation data to the cloud server.
The cloud server 10 is configured to: calling a trained local test case analysis network to convert the initial page operation data into target page operation data; calling a trained global test case analysis network to convert the target page operation data to obtain test page operation data corresponding to the target page operation data; the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format; and determining a test case based on the test page operation data corresponding to the target page operation data, and testing the page corresponding to the target page operation data based on the test case.
Further embodiments of the system described above may be referred to the description of the method shown in fig. 2 and will therefore not be described further herein.
To sum up, the method and system for testing page elements based on test cases provided by the embodiments of the present invention first call a local test case analysis network to perform a primary conversion on initial page operation data to obtain target page operation data, then call a global test case analysis network to perform a secondary conversion on the target page operation data to obtain test page operation data, then determine a test case based on the test page operation data corresponding to the target page operation data, and test a page corresponding to the target page operation data based on the test case. Therefore, different page operation data are processed based on the local test case analysis network and the global test case analysis network, lossless conversion between different page operation data can be achieved to ensure the integrity of different types of page operation data, and service requirement verification aiming at page elements can be achieved, so that accurate and reliable page element testing is achieved, and matching of visual pages and actual service requirements of users is ensured.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a cloud server 10, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. The page element testing method based on the test case is characterized by being applied to a cloud server communicated with a page access terminal, and the method comprises the following steps:
calling a trained local test case analysis network to convert the initial page operation data input by the page access terminal into target page operation data;
calling a trained global test case analysis network to convert the target page operation data to obtain test page operation data corresponding to the target page operation data; the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format;
and determining a test case based on the test page operation data corresponding to the target page operation data, and testing the page corresponding to the target page operation data based on the test case.
2. The page element testing method based on the test case according to claim 1, wherein the testing the page corresponding to the target page operation data based on the test case specifically includes:
determining a page element corresponding to the page element identifier in a page corresponding to the target page operation data based on the page element identifier corresponding to the test case;
executing the test operation corresponding to the test case on the page element corresponding to the page element identifier to obtain a test result;
the executing the test operation corresponding to the test case on the page element corresponding to the page element identifier specifically includes:
under the condition that the test operation corresponding to the test case is clicking a page element, clicking the page element corresponding to the page element identifier; and the number of the first and second groups,
and under the condition that the test operation corresponding to the test case is an assignment page element, performing assignment operation on the page element corresponding to the page element identifier.
3. The method for testing page elements based on test cases according to claim 1, wherein before testing the page corresponding to the target page operation data based on the test cases, the method further comprises:
expanding the test case to obtain an expanded test case;
testing the page corresponding to the target page operation data based on the test case and the extended test case;
the expanding the test case to obtain an expanded test case specifically includes:
determining an extended page element with the same format as the page element corresponding to the test case in the page corresponding to the target page operation data based on the page element corresponding to the test case;
and correspondingly replacing the node parameter values in the path corresponding to the page elements corresponding to the test cases with the node parameter values belonging to the same array, so as to generate the extended test cases corresponding to the extended page elements.
4. The test case based page element testing method of claim 1, wherein the method further comprises:
according to the initial page operation data and the test page operation data of the target page operation data, performing service requirement verification aiming at page elements on the target page operation data, wherein the service requirement verification comprises the following steps:
performing page response analysis on the test page operation data of the initial page operation data and the target page operation data to obtain a page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data;
judging whether the page response analysis result meets a test index judgment condition or not;
when the page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data does not meet the test index judgment condition, updating the target page operation data to obtain updated page operation data; calling the global test case analysis network to convert the updated page operation data to obtain test page operation data corresponding to the updated page operation data;
performing page response analysis on the initial page operation data and the test page operation data of the updated page operation data to obtain a page response analysis result corresponding to the initial page operation data and the test page operation data of the updated page operation data;
when the page response analysis result corresponding to the initial page operation data and the test page operation data of the updated page operation data meets the test index judgment condition, binding the updated page operation data with the service requirement information corresponding to the page element to be tested; alternatively, the first and second electrodes may be,
and when the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data does not meet the test index judgment condition, continuing to update the updated page operation data until the page response analysis result corresponding to the test page operation data of the initial page operation data and the updated page operation data meets the test index judgment condition.
5. The test case-based page element testing method according to claim 4, wherein performing page response analysis on the test page operation data of the initial page operation data and the target page operation data to obtain a page response analysis result corresponding to the test page operation data of the initial page operation data and the target page operation data comprises:
calling initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data; generating initial content state information corresponding to initial page feedback content of the initial page operation data and test content state information corresponding to test page feedback content of test page operation data of the target page operation data, including:
generating initial content state information corresponding to initial page feedback content of the initial page operation data according to a combined mode test result corresponding to a state combined mode, wherein the state combined information between any two adjacent state data items in the initial content state information is used for determining the combined mode test result corresponding to the state combined mode;
generating test content state information corresponding to test page feedback content of test page operation data of the target page operation data according to a combined mode test result corresponding to a state combined mode, wherein the state combined information between any two adjacent state data items in the test content state information is used for determining the combined mode test result corresponding to the state combined mode; wherein the initial content status information and the test content status information respectively include a plurality of status data items having different status combination manners;
calling initial data item correlation information of any state data item of initial page feedback content of the initial page operation data in the initial content state information, and determining the state data item with the most state combination mode in the test content state information as a target state data item;
mapping the initial data item correlation information to the target state data item according to a local test case analysis network and a global test case analysis network, obtaining initial data item conversion information in the target state data item, and generating page response indication information between initial page feedback content of the initial page operation data and test page feedback content of test page operation data of the target page operation data according to the initial data item correlation information and the initial data item conversion information;
acquiring data abnormal state information in the target state data items by taking the initial data item conversion information as page element reference information, analyzing priorities according to feedback contents corresponding to the page response indication information, mapping the data abnormal state information to the state data items of the initial data item association information, obtaining abnormal state conversion information corresponding to the data abnormal state information in the state data items of the initial data item association information, and determining the target data item association information of the abnormal state conversion information;
obtaining an information mapping log record of the initial data item association information mapped to the target state data item; according to the state similarity between the abnormal state conversion information and the page element state information corresponding to a plurality of converted page elements in the information mapping log record, traversing the dynamic conversion content corresponding to the target data item association information in the test content state information until the service demand heat value of the state data item of the obtained dynamic conversion content is consistent with the service demand heat value of the target data item association information in the initial content state information, stopping obtaining the dynamic conversion content in the next state data item, and generating a page response analysis result aiming at the page element between the target data item association information and the last obtained dynamic conversion content.
6. The test case-based page element testing method according to claim 5, wherein the mapping the initial data transaction association information to the target state data transaction according to a local test case analysis network and a global test case analysis network, obtaining initial data transaction conversion information in the target state data transaction, and generating page response indication information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data according to the initial data transaction association information and the initial data transaction conversion information, comprises:
mapping the initial data item association information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining the initial data item conversion information in the target state data item;
acquiring data item environment information in the state data item in which the initial data item association information is located, wherein the data item environment information is environment information corresponding to a test environment in which the initial data item association information is used as resource item information;
mapping the data item environment information to the target state data item according to the local test case analysis network and the global test case analysis network, and obtaining associated data item conversion information in the target state data item;
and generating page response indication information between the initial page feedback content of the initial page operation data and the test page feedback content of the test page operation data of the target page operation data according to the data transaction transfer relationship between the initial data transaction association information and the data transaction environment information, the initial data transaction conversion information and the associated data transaction conversion information.
7. The test case-based page element testing method according to claim 6, wherein mapping the initial data transaction association information to the target state data transaction according to the local test case analysis network and the global test case analysis network, and obtaining the initial data transaction conversion information in the target state data transaction comprises:
mapping the initial data item association information to a data mapping set corresponding to the target state data item according to the to-be-converted data call record of the local test case analysis network and the to-be-converted data call record of the global test case analysis network to obtain initial item mapping information;
adding the initial item mapping information to the data format description content corresponding to the data format label of the test page feedback content of the test page operation data of the target page operation data according to the data format label page response analysis result and the data format label correlation result between the page operation type label corresponding to the initial page feedback content of the initial page operation data and the page operation type label corresponding to the test page feedback content of the test page operation data of the target page operation data, and obtaining transition item mapping information;
mapping the transitional data item mapping information to a data format description content corresponding to a data format label of a test page feedback content of the test page operation data of the target page operation data, wherein the data format description content has a data format selection record, and acquiring transitional data item conversion information;
and performing data item correction on the transitional data item conversion information, and mapping the corrected transitional data item conversion information into the target state data item according to the local test case analysis network to obtain the initial data item conversion information.
8. The test case-based page element testing method of claim 4, wherein updating the target page operation data to obtain updated page operation data comprises:
acquiring N page operation data blocks of the target page operation data, wherein N is a positive integer;
dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees;
determining an operation behavior event set where a behavior data sequence to be updated is located from at least two operation behavior event sets included in each page operation data block;
selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block;
determining a behavior data updating result corresponding to the behavior data sequence to be updated according to the at least one piece of dynamic key behavior data; updating each page operation data block corresponding to the target page operation data according to the behavior data updating result to obtain updated page operation data;
wherein, the dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees comprises: dividing each page operation data block into at least two operation behavior event sets with different behavior data discrimination degrees according to the corresponding relation between the preset behavior data discrimination degrees and the behavior data identification indexes; or, determining the corresponding relation between the behavior data discrimination and the behavior data identification index by counting the behavior data discrimination and the behavior data identification index of each operation behavior event set in the pre-stored updated page operation data block; dividing each page operation data block into at least two operation behavior event sets with different behavior data distinction degrees according to the determined corresponding relation;
wherein, the selecting at least one dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block includes: determining behavior data authentication classification information of a behavior data sequence to be updated, which is included in each page operation data block; selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block;
the at least two operation behavior event sets comprise a real-time operation behavior event set and a delayed operation behavior event set, and the behavior data differentiation degree of the real-time operation behavior event set is higher than that of the delayed operation behavior event set; the selecting at least one piece of dynamic key behavior data from the behavior data sequence to be updated included in the N page operation data blocks according to the operation behavior event set of the behavior data sequence to be updated in each page operation data block and the behavior data authentication classification information of the behavior data sequence to be updated included in each page operation data block, includes:
when the behavior data sequence to be updated is in the real-time operation behavior event set in the M page operation data blocks included in the N page operation data blocks, selecting the behavior data sequence to be updated with the maximum category total number of behavior data authentication classification information as a first potential behavior data sequence to be selected from the behavior data sequences to be updated included in the M page operation data blocks according to the behavior data authentication classification information of the behavior data sequence to be updated included in the M page operation data blocks, wherein M is a positive integer smaller than N;
when the behavior data sequence to be updated is in the delayed operation behavior event set in P page operation data blocks included in the N page operation data blocks, selecting a behavior data sequence to be updated with the largest category total number of behavior data authentication classification information as a second potential behavior data sequence to be selected from the behavior data sequences to be updated included in the P page operation data blocks according to the behavior data authentication classification information of the behavior data sequence to be updated included in the P page operation data blocks, where P is a positive integer smaller than N, and the sum of P and M is equal to N;
and selecting at least one piece of dynamic key behavior data from the first potential behavior data sequence to be selected and the second potential behavior data sequence to be selected according to the behavior data authentication classification information of the first potential behavior data sequence to be selected and the behavior data authentication classification information of the second potential behavior data sequence to be selected.
9. The page element test system based on the test case is characterized by comprising a cloud server and a page access terminal which are communicated with each other;
the page access terminal is used for: inputting initial page operation data to the cloud server;
the cloud server is configured to: calling a trained local test case analysis network to convert the initial page operation data into target page operation data; calling a trained global test case analysis network to convert the target page operation data to obtain test page operation data corresponding to the target page operation data; the target page operation data and the initial page operation data are in different data formats, and the test page operation data of the target page operation data and the initial page operation data are in the same data format; and determining a test case based on the test page operation data corresponding to the target page operation data, and testing the page corresponding to the target page operation data based on the test case.
10. A readable storage medium on which a computer program is stored, the computer program, when executed, performing the test case-based page element testing method of any one of claims 1 to 8.
CN202110064278.5A 2021-01-18 2021-01-18 Page element testing method, system and medium based on test case Withdrawn CN112597059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110064278.5A CN112597059A (en) 2021-01-18 2021-01-18 Page element testing method, system and medium based on test case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110064278.5A CN112597059A (en) 2021-01-18 2021-01-18 Page element testing method, system and medium based on test case

Publications (1)

Publication Number Publication Date
CN112597059A true CN112597059A (en) 2021-04-02

Family

ID=75207505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110064278.5A Withdrawn CN112597059A (en) 2021-01-18 2021-01-18 Page element testing method, system and medium based on test case

Country Status (1)

Country Link
CN (1) CN112597059A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116070046A (en) * 2023-02-17 2023-05-05 贝壳找房(北京)科技有限公司 Project test information display method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116070046A (en) * 2023-02-17 2023-05-05 贝壳找房(北京)科技有限公司 Project test information display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US10572370B2 (en) Test-assisted application programming interface (API) learning
CN107729227B (en) Application program test range determining method, system, server and storage medium
CN111931047B (en) Artificial intelligence-based black product account detection method and related device
CN110377356B (en) Task processing method, device and system and computer readable storage medium
CN105069686A (en) Case automatic detection method and system
CN110046155B (en) Method, device and equipment for updating feature database and determining data features
CN112685207A (en) Method, apparatus and computer program product for error assessment
CN113486983A (en) Big data office information analysis method and system for anti-fraud processing
CN112597059A (en) Page element testing method, system and medium based on test case
CN114048136A (en) Test type determination method, device, server, medium and product
CN112257757A (en) Malicious sample detection method and system based on deep learning
CN112527688B (en) Test case processing method and system for page elements
CN111338958A (en) Parameter generation method and device of test case and terminal equipment
CN115758389A (en) Vulnerability processing result checking method and device, electronic equipment and storage medium
CN111488269B (en) Index detection method, device and system for data warehouse
CN110177006B (en) Node testing method and device based on interface prediction model
CN114020642A (en) Big data task testing method and device, storage medium and electronic equipment
CN113935034A (en) Malicious code family classification method and device based on graph neural network and storage medium
CN114168949A (en) Application software anomaly detection method and system applied to artificial intelligence
CN113190255A (en) Big data online topic service upgrading method, server and storage medium
US10873550B2 (en) Methods for communication in a communication network for reduced data traffic
CN103761247B (en) A kind of processing method and processing device of error file
CN113609111A (en) Big data testing method and system
CN113064984A (en) Intention recognition method and device, electronic equipment and readable storage medium
CN110659501A (en) Vulnerability processing tracking method and device, computer system and readable 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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210402