CN112527688A - Test case processing method and system for page elements - Google Patents

Test case processing method and system for page elements Download PDF

Info

Publication number
CN112527688A
CN112527688A CN202110062302.1A CN202110062302A CN112527688A CN 112527688 A CN112527688 A CN 112527688A CN 202110062302 A CN202110062302 A CN 202110062302A CN 112527688 A CN112527688 A CN 112527688A
Authority
CN
China
Prior art keywords
data
page
operation data
page operation
initial
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.)
Granted
Application number
CN202110062302.1A
Other languages
Chinese (zh)
Other versions
CN112527688B (en
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.)
Hangyin Consumer Finance Co ltd
Original Assignee
Hangyin Consumer Finance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangyin Consumer Finance Co ltd filed Critical Hangyin Consumer Finance Co ltd
Priority to CN202110062302.1A priority Critical patent/CN112527688B/en
Publication of CN112527688A publication Critical patent/CN112527688A/en
Application granted granted Critical
Publication of CN112527688B publication Critical patent/CN112527688B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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 method and a system for processing a test case of a page element. 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.

Description

Test case processing method and system for page elements
Technical Field
The embodiment of the invention relates to the technical field of page elements and test cases, in particular to a method and a system for processing a test case of a page element.
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 application, it is difficult for a common test case processing method to implement accurate and reliable testing, and further it is 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 method and a system for processing a test case of a page element, 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 service requirement verification for the page element, and thus can implement accurate and reliable page element testing, and ensure matching between a visual page and an actual service requirement of a user.
The embodiment of the invention provides a test case processing method of a page element, 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 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.
Optionally, performing service requirement verification on the target page operation data for a page element according to the test page operation data of the initial page operation data and the target page operation data, including:
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;
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.
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; 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.
Alternatively,
the generating of the initial content state information corresponding to the initial page feedback content of the initial page operation data and the generating of the test content state information corresponding to the test page feedback content of the test page operation data of the target page operation data 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;
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;
the 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, 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;
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 a data item transfer relationship between the initial data item association information and the data item environment information, the initial data item conversion information and the associated data item conversion information;
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, including:
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.
Optionally, the method further comprises:
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.
The embodiment of the invention also provides a test case processing system of the page element, 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 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.
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, and then performing service requirement verification aiming at page elements on the target page operation data according to the initial page operation data and the test page operation data of the target page operation data. 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 test case processing method for a page element according to an embodiment of the present invention.
Fig. 3 is a block diagram of a test case processing apparatus for a page element according to an embodiment of the present invention.
Fig. 4 is an architecture diagram of a test case processing system for page elements 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 above research, the embodiment of the invention provides a test case processing method and system for page elements.
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 processing device 20 of the page element in the embodiment of the present invention, that is, implements 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 is a flowchart illustrating a test case processing method for a page element 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.
Step S23, 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 S23 may include the following contents described in steps S231 to S236.
Step S231, 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 S232, judging whether the page response analysis result meets the test index judgment condition.
Step S233, 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 S234, 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 S235, 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 S236, 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 steps S231 to S236, 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 iterative update rate can be ensured, so as to improve the business requirement verification efficiency for the page element.
In some possible embodiments, the page response analysis performed on the test page operation data of the initial page operation data and the target page operation data in step S231 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 contents described in step S2311 to step S2315 below.
Step S2311, invoking an initial page feedback content of the initial page operation data and a test page feedback content of a 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 S2312, invoking initial data transaction association information of an initial page feedback content of the initial page operation data in any state data transaction of the initial content state information, and determining a state data transaction having a most state combination manner in the test content state information as a target state data transaction.
Step S2313, 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 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 transaction correlation information and the initial data transaction conversion information.
Step S2314, 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 a 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 the target data item association information of the abnormal state conversion information.
Step S2315, obtaining an information mapping log record in which the initial data item association information is mapped to the target status 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 S2311 to S2315 are actually applied, it can be ensured that the page response analysis result matches with the actual page operation use condition to the maximum extent, so as to provide a correct and reliable update guidance basis for subsequent data update.
Further, in step S2311, 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 described in step S2313, 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 following content described in step S2313 a-step S2313 d.
Step S2313a, 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 S2313b, obtaining data transaction environment information in the status data transaction in which the initial data transaction related information is located, where the data transaction environment information is environment information corresponding to a test environment in which the initial data transaction related information is resource transaction information.
Step S2313c, 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 S2313d, 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 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 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 described in step S2313a, 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 an actual implementation process, 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 S233 may further include the following steps S2331-S2335.
Step S2331, obtaining N page operation data blocks of the target page operation data, where N is a positive integer.
In step S2332, each page operation data block is divided into at least two operation behavior event sets with different behavior data distinction degrees.
In step S2333, an operation behavior event set in which the behavior data sequence to be updated is located is determined from at least two operation behavior event sets included in each page operation data block.
Step S2334, 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 in each page operation data block of the behavior data sequence to be updated.
Step S2335, 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 such a design, the number of updates can be reduced as much as possible while ensuring the update efficiency based on the above-described steps S2331 to S2335.
Further, the dividing of each page operation data block into at least two operation behavior event sets with different behavior data differentiation degrees described in step S2332 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, in step S2334, 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 S23341, determining behavior data authentication classification information of a behavior data sequence to be updated, which is included in each page operation data block; step S23342, 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. On the basis of the above, in step S23342, 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 following contents described in 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 test case processing apparatus 20 of a page element as shown in fig. 3, which includes at least 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 processing system 60 of the page element 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 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.
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, according to the method and system for processing the test case of the page element provided by the embodiment of the present invention, firstly, the local test case analysis network is invoked to perform the primary conversion on the initial page operation data to obtain the target page operation data, secondly, the global test case analysis network is invoked to perform the secondary conversion on the target page operation data to obtain the test page operation data, and then, according to the initial page operation data and the test page operation data of the target page operation data, the service requirement verification for the page element is performed on the target page operation data. 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. A test case processing method of a page element is applied to a cloud server which is 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 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.
2. The method according to claim 1, wherein performing a service requirement verification for a page element on the target page operation data according to the initial page operation data and a test page operation data of the target page operation data comprises:
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;
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.
3. The method of claim 2, 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; 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.
4. The method according to claim 3, wherein 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 comprises:
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.
5. The method according to claim 4, wherein the 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 to obtain initial data transaction conversion information in the target state data transaction, 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 transaction correlation 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.
6. The method of claim 5, wherein the mapping the initial data transaction correlation information to the target state data transaction according to the local test case analysis network and the global test case analysis network to obtain the initial data transaction transformation 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.
7. The method of claim 1, 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.
8. The method of claim 2, further comprising:
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.
9. The test case processing system of the page element 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 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.
10. A readable storage medium, having stored thereon a computer program which, when executed, performs the method of any one of claims 1-8.
CN202110062302.1A 2021-01-18 2021-01-18 Test case processing method and system for page elements Active CN112527688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110062302.1A CN112527688B (en) 2021-01-18 2021-01-18 Test case processing method and system for page elements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110062302.1A CN112527688B (en) 2021-01-18 2021-01-18 Test case processing method and system for page elements

Publications (2)

Publication Number Publication Date
CN112527688A true CN112527688A (en) 2021-03-19
CN112527688B CN112527688B (en) 2021-12-17

Family

ID=74975349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110062302.1A Active CN112527688B (en) 2021-01-18 2021-01-18 Test case processing method and system for page elements

Country Status (1)

Country Link
CN (1) CN112527688B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297244A (en) * 2013-07-05 2013-09-11 百度在线网络技术(北京)有限公司 Verification method and verification server
CN103377127A (en) * 2012-04-28 2013-10-30 阿里巴巴集团控股有限公司 Development testing system, testing method and device for webpage product
CN105224462A (en) * 2015-10-27 2016-01-06 小米科技有限责任公司 The recognition methods of control element and device
WO2021003975A1 (en) * 2019-07-11 2021-01-14 深圳壹账通智能科技有限公司 Gateway interface test method, terminal device, storage medium and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377127A (en) * 2012-04-28 2013-10-30 阿里巴巴集团控股有限公司 Development testing system, testing method and device for webpage product
CN103297244A (en) * 2013-07-05 2013-09-11 百度在线网络技术(北京)有限公司 Verification method and verification server
CN105224462A (en) * 2015-10-27 2016-01-06 小米科技有限责任公司 The recognition methods of control element and device
WO2021003975A1 (en) * 2019-07-11 2021-01-14 深圳壹账通智能科技有限公司 Gateway interface test method, terminal device, storage medium and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘瑾: "Web 系统Selenium WebDriver 自动化测试框架搭建", 《电子技术与软件工程》 *

Also Published As

Publication number Publication date
CN112527688B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US10769722B1 (en) Heuristic credit risk assessment engine
CN112232771B (en) Big data analysis method and big data cloud platform applied to smart government-enterprise cloud service
US20190095318A1 (en) Test-assisted application programming interface (api) learning
CN110597511B (en) Page automatic generation method, system, terminal equipment and storage medium
CN114139209B (en) Information anti-theft method and system applied to big data of business user
CN114500690B (en) Interface data processing method and device, electronic equipment and storage medium
CN113032580B (en) Associated file recommendation method and system and electronic equipment
CN115935344A (en) Abnormal equipment identification method and device and electronic equipment
CN113486983A (en) Big data office information analysis method and system for anti-fraud processing
CN109871408B (en) Multi-type database adaptation method, device, electronic equipment and storage medium
CN112527688B (en) Test case processing method and system for page elements
CN112597059A (en) Page element testing method, system and medium based on test case
CN113468017A (en) Online service state detection method applied to block chain and service server
CN109740130B (en) Method and device for generating file
CN112287936A (en) Optical character recognition test method and device, readable storage medium and terminal equipment
CN111324645B (en) Block chain data processing method and device
CN110955839A (en) Tax declaration method, system and storage medium
CN114741494A (en) Question answering method, device, equipment and medium
CN115294586A (en) Invoice identification method and device, storage medium and electronic equipment
CN113064984A (en) Intention recognition method and device, electronic equipment and readable storage medium
CN113779362A (en) Data searching method and device
CN114154020A (en) Large-capacity data processing method and device based on dynamic label mapping
CN110659501A (en) Vulnerability processing tracking method and device, computer system and readable storage medium
CN112632132A (en) Method, device and equipment for processing abnormal import data
AU2020200231A1 (en) Automated extraction of performance segments and metadata values associated with the performance segments from contract documents

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
GR01 Patent grant
GR01 Patent grant