CN114721970B - Method and device for automatic testing and accurate testing of construction interface - Google Patents
Method and device for automatic testing and accurate testing of construction interface Download PDFInfo
- Publication number
- CN114721970B CN114721970B CN202210641815.2A CN202210641815A CN114721970B CN 114721970 B CN114721970 B CN 114721970B CN 202210641815 A CN202210641815 A CN 202210641815A CN 114721970 B CN114721970 B CN 114721970B
- Authority
- CN
- China
- Prior art keywords
- interface
- data
- automation
- modeling
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
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 provides a method and a device for automatic testing and accurate testing of a construction interface, wherein the method comprises the following steps: controlling UI automation to simulate user operation, and executing UI automation test on the tested software; setting an agent to monitor an interface data packet generated by a UI automation case, and capturing the packet of an interface involved in each service scene; carrying out multi-dimensional statistical modeling on the captured interface data; and according to the multi-dimensional statistical modeling data, establishing an automatic test and an accurate test of an interface. The device uses the method. The invention intercepts the service data packet in the process of UI automatic execution to establish the data base of the interface automatic test, and quickly produces the data required by the interface automatic test; meanwhile, data modeling of each dimensionality is carried out on the captured interface data, so that the data value is maximized, the automatic interface test and the accurate interface test are conveniently and efficiently utilized, and the time and the energy of research personnel are saved.
Description
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a device for automatic testing and accurate testing of a construction interface.
Background
In the traditional software project automation test, a unit test, an interface test and a UI test are respectively included from bottom to top, various types of automation tests are usually organized and constructed separately, different technical schemes and frameworks are adopted for realizing the automation tests, no association is generated among the various types of automation tests, and respective technical schemes are usually adopted in the aspects of case compiling and generating.
By adopting the testing method, taking the automatic testing for one software project as an example, the conventional thought is to cover from bottom to top in sequence, different automatic testing projects are separately constructed to describe and realize the automatic testing from different angles, a combined utilization mechanism is not realized for the automatic scheme, the automatic testing resources are wasted, and the time and the energy of research and development personnel are greatly consumed.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method and a device for automatic testing and accurate testing of a construction interface, and overcomes the defects that an automatic scheme does not realize a combined utilization mechanism when software testing is carried out, testing resources are wasted, time and energy of research and development personnel are consumed, and the like in the prior art.
The technical scheme of the invention is realized as follows: a method for automatic testing and accurate testing of a construction interface comprises the following steps:
controlling UI automation to simulate user operation, and executing UI automation test on the tested software;
setting an agent to monitor an interface data packet generated by a UI automation case, and capturing the packet of an interface involved in each service scene;
carrying out multi-dimensional statistical modeling on the captured interface data;
and according to the multidimensional statistical modeling data, establishing an interface automatic test and an accurate test.
In one embodiment, the step of performing multi-dimensional statistical modeling on the captured interface data includes:
sequentially recording interface data of the system, and generating interface detailed information modeling;
acquiring an interface calling record and corresponding UI automation service data, and generating an interface calling record and UI automation service data mapping association modeling;
acquiring an interface calling data record caused by interface automation, and generating an interface calling data record for modeling;
and according to the scenario interface called by UI automation of each service scenario, establishing the automation test case data of the scenario, and generating the interface automation test case data for modeling.
In one embodiment, the step of building an interface automation test and an accurate test according to the multidimensional statistical modeling data includes:
and modeling according to the interface detailed information, mapping and associating the interface calling record with UI automation service data, modeling the interface calling data record and modeling the interface automation test case data, and automatically inputting data corresponding to the interface and the case for constructing an interface automation test.
In one embodiment, the step of building an interface automation test and an accurate test according to the multidimensional statistical modeling data includes:
according to the interface detailed information modeling, the interface calling record and UI automation service data mapping correlation modeling, the interface calling data record modeling and the interface automation test case data modeling, the corresponding relation between the interface change and each UI change is counted, the calling relation between the UI change and the old interface is counted, and the pre-data of the precision test is automatically input.
In one embodiment, before the step of performing multidimensional statistical modeling on the captured interface data, the method further includes:
a data cleansing operation associated with the interface data in the interface data packet is performed.
In one embodiment, after the steps of constructing an interface automation test and an accurate test according to the multidimensional statistical modeling data, the method further includes:
and performing assertion corresponding to the interface calling according to the interface detailed information modeling, the interface calling record and UI automation service data mapping association modeling, the interface calling data record modeling and the interface automation test case data modeling, wherein the assertion comprises interface calling quantity assertion and interface calling sequence assertion.
The invention also provides a device for the automatic test and the accurate test of the construction interface, which comprises:
the control module is used for controlling the UI to automatically simulate the user operation and executing the UI automatic test on the tested software;
the acquisition module is used for setting an interface data packet generated by the agent monitoring UI automation case and capturing the packet of the interface involved in each service scene;
the statistical module is used for carrying out multi-dimensional statistical modeling on the captured interface data;
and the generation module is used for establishing an interface automatic test and an accurate test according to the multidimensional statistical modeling data.
In one embodiment, the statistical module is specifically configured to:
sequentially recording interface data of the system, and generating interface detailed information modeling;
acquiring an interface calling record and corresponding UI automation service data, and generating an interface calling record and UI automation service data mapping association modeling;
acquiring an interface calling data record caused by interface automation, and generating an interface calling data record for modeling;
and according to the scenario interface called by UI automation of each service scenario, establishing the automation test case data of the scenario, and generating the interface automation test case data for modeling.
The invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and runs on the processor, wherein the processor executes the computer program to realize the method for the automatic test and the accurate test of the construction interface.
The invention also provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for the automatic test and the precise test of the construction interface is realized.
The embodiment of the invention simulates user operation by controlling UI automation and executes UI automation test on the tested software; the method comprises the steps that an agent is arranged to monitor interface data packets generated by UI automation cases, interfaces involved in various service scenes are captured, the low-efficiency dilemma that test cases are built respectively in the traditional UI automation and the interface automation is broken through, the UI automation is used as a break-through, the service data packets are intercepted in the process of UI automation execution to build a data base of the interface automation test, and data required by the interface automation test are rapidly produced; meanwhile, the data modeling of each dimensionality is carried out on the captured interface data, the value of the data can be maximized, the automatic interface test and the high-efficiency accurate interface test are convenient to utilize, a combined utilization mechanism of multiple test methods is provided, the test efficiency is improved, and the time and the energy of research and development personnel are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for automated testing and precision testing of a build interface according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for automated testing and precision testing of a building interface according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating the architecture of a method for building an interface automation test and precision test according to a second embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus for automated testing and precision testing of a building interface according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of the internal structure of a computer according to still another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and well-known modules, units and their connections, links, communications or operations with each other are not shown or described in detail. Furthermore, the described features, architectures, or functions can be combined in any manner in one or more implementations. It will be understood by those skilled in the art that the various embodiments described below are illustrative only and are not intended to limit the scope of the present invention. It will also be readily understood that the modules or units or processes of the embodiments as described herein and illustrated in the figures may be combined and designed in a wide variety of different configurations. 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.
The first embodiment:
referring to fig. 1, an embodiment of the present invention discloses a method for automated testing and precision testing of a building interface, including:
and S11, controlling the UI to automatically simulate user operation, and executing UI automatic test on the tested software.
In this embodiment, the automated testing refers to automation of software testing, where the software testing is to run a system or an application under a preset condition, and evaluate a running result, where the preset condition includes a normal condition and an abnormal condition.
The UI (User Interface Design) automatic test is a means for simulating case automation operation from an Interface for tested software, and can achieve end-to-end automation effect by means of the UI automatic test and simulate the most real behavior of a User on the software.
And S12, setting an agent to monitor an interface data packet generated by the UI automation case, and capturing the packet of the interface involved in each service scene.
In this embodiment, by synchronously capturing the interface data during UI automation, one UI automation test case is generally used to describe one service scenario in which all the involved interface data are captured by the capture packet.
The Test Case (Test Case) refers to the description of a Test task performed on a specific software product, and embodies Test schemes, methods, techniques and strategies. The contents of the test object, the test environment, the input data, the test steps, the expected results, the test scripts and the like are included, and finally, a document is formed. It is simply considered that a test case is a set of test inputs, execution conditions, and expected results tailored for a particular target to verify that a particular software requirement is met.
The proxy packet capturing in this embodiment refers to operations such as interception, retransmission, editing, and unloading of data packets transmitted and received by the network, and may also be used to check network security.
And S13, carrying out multi-dimensional statistical modeling on the captured interface data.
The embodiment can perform different-dimension statistical modeling on the captured interface data according to the data types, and based on the understanding, different classification modes can obtain different statistical modeling combinations.
And S14, according to the multi-dimensional statistical modeling data, establishing an interface automatic test and an accurate test.
The accurate test is an automatic selection algorithm supporting regression test cases in a fast iteration process based on a mapping relation between the test cases and codes. The accurate test of this embodiment refers to an accurate test of the UI function module corresponding to the change mapping of the interface.
The embodiment of the invention simulates user operation by controlling UI automation and executes UI automation test on the tested software; the method comprises the steps that an agent is arranged to monitor an interface data packet generated by a UI automation case, the interface involved in each service scene is captured, the low-efficiency dilemma of building a test case respectively in the traditional UI automation and the interface automation is broken through, the UI automation is used as a break-through, the service data packet is captured in the process of UI automation execution to build a data base of the interface automation test, and data required by the interface automation test are rapidly produced; meanwhile, the data modeling of each dimensionality is carried out on the captured interface data, the value of the data can be maximized, the automatic interface test and the high-efficiency accurate interface test are convenient to utilize, a combined utilization mechanism of multiple test methods is provided, the test efficiency is improved, and the time and the energy of research and development personnel are saved.
The second embodiment:
referring to fig. 2 and fig. 3, an embodiment of the invention discloses another method for automated testing and precision testing of a building interface, including:
s201, controlling UI to automatically simulate user operation, and executing UI automatic test on the tested software.
S202, the agent is set to monitor interface data packets generated by the UI automation use case, and the interfaces involved in each service scene are captured.
S201-S202 are the same as the corresponding steps of the first embodiment, and are not recited here.
And S203, executing data cleaning operation related to the interface data in the interface data packet.
In this embodiment, the data cleaning operation is mainly used for filtering interface data irrelevant to the automatic test and the accurate test of the construction interface, so as to reduce the data scale during statistical modeling and ensure the high efficiency and the data reliability of the statistical modeling.
As a preferred but not limiting solution to the multi-dimensional statistical modeling, compared to step S13 of the first embodiment, the present embodiment proposes steps S204 to S207;
and S204, sequentially recording interface data of the system, and generating interface detailed information modeling.
The interface detailed information modeling of the step is mainly used for providing an interface data basis for the interface automation infrastructure.
S205, obtaining the interface calling record and the corresponding UI automation service data, and generating the interface calling record and the UI automation service data mapping association modeling.
The interface calling record and UI automation service data mapping correlation modeling in the step are mainly used for establishing a data basis for the UI precision test caused by the subsequent interface change or the UI precision automation test caused by the UI change.
And S206, acquiring an interface calling data record caused by interface automation, and generating an interface calling data record model.
The interface calling data record modeling of the step is mainly used for establishing a data basis for the comparison of correctness assertions such as interface calling quantity, calling sequence and the like caused by UI automation.
And S207, establishing automatic test case data of the scenes according to the scenic interfaces called by UI automation of all the business scenes, and generating the automatic test case data of the interfaces for modeling.
The UI automation of a service scene can call a corresponding scenic interface, and the interface automation test case data modeling of the step is mainly used for providing a certain case data basis for the interface automation test.
And S208, modeling according to the detailed interface information, mapping and associating the interface calling records with UI automation service data, modeling the interface calling data records, modeling the interface automation test case data, and automatically inputting data corresponding to the interface and the case for constructing the interface automation test.
S209, modeling according to the interface detailed information, mapping and associating the interface calling records with the UI automation service data, modeling the interface calling data records, modeling the interface automatic test case data, counting the corresponding relation between the interface changes and the UI changes, counting the calling relation between the UI changes and the old interface, and automatically inputting the interface detailed information, the interface calling records and the UI automation service data into the preposed data of the precision test.
It should be noted that, the multidimensional statistical modeling in steps S208 to S209 may all participate in the automated testing or the precise testing of the building interface, or may partially participate in the automated testing or the precise testing of the building interface, and those skilled in the art may add or delete statistical modeling data according to actual needs.
And S210, according to the interface detailed information modeling, the interface calling record and UI automation service data mapping association modeling, the interface calling data record modeling and the interface automation test case data modeling, executing the assertion corresponding to the interface calling, wherein the assertion comprises interface calling quantity assertion and interface calling sequence assertion.
According to the method and the device, based on the page assertion executed automatically by the traditional UI, the assertion of the interface calling layer is carried out based on the modeling data, whether potential bugs such as wrong calling, missed calling, multi-calling and the like appear at the front end can be detected closer to one layer on the UI layer, and the test quality is further systematically guaranteed.
The third embodiment:
referring to fig. 4, the present invention further provides an apparatus 100 for building an interface automation test and an accurate test, including a control module 110, an obtaining module 120, a statistic module 130, and a generating module 140, wherein:
the control module 110 is connected with the acquisition module 120 and is used for controlling UI automation simulation user operation and executing UI automation test on the software to be tested;
the acquisition module 120 is connected with the statistics module 130, and is used for setting an interface data packet generated by an agent monitoring UI automation case and capturing the packet of the interface involved in each service scene;
and the statistical module 130 is connected with the generation module 140 and is used for carrying out multi-dimensional statistical modeling on the captured interface data.
And the generating module 140 is configured to build an interface automation test and an accurate test according to the multidimensional statistical modeling data.
In an embodiment of the present invention, the statistical module 130 is specifically configured to:
sequentially recording interface data of the system, and generating interface detailed information modeling;
acquiring an interface calling record and corresponding UI automation service data, and generating an interface calling record and UI automation service data mapping association modeling;
acquiring an interface calling data record caused by interface automation, and generating an interface calling data record for modeling;
and according to the scenario interface called by UI automation of each service scenario, establishing the automation test case data of the scenario, and generating the interface automation test case data for modeling.
The modules of this embodiment correspond to the steps of the two method embodiments one-to-one, and are not described here.
The embodiment of the invention simulates user operation by controlling UI automation and executes UI automation test on the tested software; the method comprises the steps that an agent is arranged to monitor interface data packets generated by UI automation cases, interfaces involved in various service scenes are captured, the low-efficiency dilemma that test cases are built respectively in the traditional UI automation and the interface automation is broken through, the UI automation is used as a break-through, the service data packets are intercepted in the process of UI automation execution to build a data base of the interface automation test, and data required by the interface automation test are rapidly produced; meanwhile, the data modeling of each dimension is carried out on the captured interface data, the value of the data can be maximized, and the automatic interface test and the high-efficiency accurate interface test are conveniently utilized.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Embodiments of the present invention further provide a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for automated testing and precision testing of a building interface according to the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by instructing relevant hardware by a computer program, and the computer program may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods of building interface automation test and precision test described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Corresponding to the computer storage medium, in one embodiment, a computer device is further provided, where the computer device includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the method for building an interface automation test and an accurate test in the embodiments described above is implemented.
The computer device may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by the processor to realize a method for building an interface automation test and an accurate test. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
The embodiment of the invention simulates user operation by controlling UI automation and executes UI automation test on the tested software; the method comprises the steps that an agent is arranged to monitor interface data packets generated by UI automation cases, interfaces involved in various service scenes are captured, the low-efficiency dilemma that test cases are built respectively in the traditional UI automation and the interface automation is broken through, the UI automation is used as a break-through, the service data packets are intercepted in the process of UI automation execution to build a data base of the interface automation test, and data required by the interface automation test are rapidly produced; meanwhile, the data modeling of each dimensionality is carried out on the captured interface data, the value of the data can be maximized, the automatic interface test and the high-efficiency accurate interface test are convenient to utilize, a combined utilization mechanism of multiple test methods is provided, the test efficiency is improved, and the time and the energy of research and development personnel are saved.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show several embodiments of the present invention, and the description thereof is specific and detailed, but not to be construed as limiting the scope of the invention. It should be noted that various changes and modifications can be made by those skilled in the art without departing from the spirit of the invention, and these changes and modifications are all within the scope of the invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (6)
1. A method for automatic testing and accurate testing of a construction interface is characterized by comprising the following steps:
controlling UI automation to simulate user operation, and executing UI automation test on the tested software;
setting an agent to monitor an interface data packet generated by a UI automation case, and capturing the packet of an interface involved in each service scene;
carrying out multi-dimensional statistical modeling on the captured interface data;
according to the multi-dimensional statistical modeling data, an automatic interface test and an accurate test are built;
the step of performing multi-dimensional statistical modeling on the captured interface data comprises:
sequentially recording interface data of the system, and generating interface detailed information modeling;
acquiring an interface calling record and corresponding UI automation service data, and generating an interface calling record and UI automation service data mapping correlation modeling;
acquiring an interface calling data record caused by interface automation, and generating an interface calling data record for modeling;
according to a scenario interface called by UI automation of each service scenario, establishing automation test case data of the scenario, generating interface automation test case data and modeling;
according to the multidimensional statistical modeling data, the steps of constructing an interface automatic test and an accurate test comprise:
modeling according to the interface detailed information, mapping correlation modeling of the interface calling records and UI automation service data, modeling of the interface calling data records and modeling of interface automation test case data, counting the corresponding relation between interface changes and various UI changes, counting the corresponding relation between the interface and the service, counting the calling relation between the UI changes and an old interface, and automatically inputting the interface calling records into preposed data of the precision test;
before the step of performing multidimensional statistical modeling on the captured interface data, the method further includes:
a data cleansing operation associated with the interface data in the interface data packet is performed.
2. The method of claim 1, wherein the step of building an interface automation test and precision test based on the multi-dimensional statistical modeling data comprises:
and modeling according to the interface detailed information, mapping and associating the interface calling record with UI automation service data, modeling the interface calling data record and modeling the interface automation test case data, and automatically inputting data corresponding to the interface and the case for constructing an interface automation test.
3. The method of claim 2, wherein the step of building an interface automation test and a precision test based on the multi-dimensional statistical modeling data further comprises:
and performing assertion corresponding to the interface calling according to the interface detailed information modeling, the interface calling record and UI automation service data mapping association modeling, the interface calling data record modeling and the interface automation test case data modeling, wherein the assertion comprises interface calling quantity assertion and interface calling sequence assertion.
4. The utility model provides a device of automatic test of construction interface and accurate test which characterized in that includes:
the control module is used for controlling the UI to automatically simulate the user operation and executing the UI automatic test on the tested software;
the acquisition module is used for setting an agent to monitor an interface data packet generated by the UI automation case and capturing the interface involved in each service scene;
the statistical module is used for carrying out multi-dimensional statistical modeling on the captured interface data;
the generating module is used for establishing an interface automatic test and an accurate test according to the multidimensional statistical modeling data;
the statistic module is specifically configured to:
sequentially recording interface data of the system, and generating interface detailed information modeling;
acquiring an interface calling record and corresponding UI automation service data, and generating an interface calling record and UI automation service data mapping association modeling;
acquiring an interface calling data record caused by interface automation, and generating an interface calling data record for modeling;
according to a scenic interface called by UI automation of each business scene, establishing automatic test case data of the scene, and generating interface automatic test case data for modeling;
according to the multidimensional statistical modeling data, the steps of constructing an automatic interface test and an accurate test comprise:
modeling according to the interface detailed information, mapping and associating the interface calling records with UI automation service data, modeling the interface calling data records and modeling the interface automation test case data, counting the corresponding relation between interface changes and various UI changes, counting the corresponding relation between the interface and the service, counting the calling relation between the UI changes and the old interface, and automatically inputting the interface changes and the UI changes into the preposed data of the precision test;
before the step of performing multidimensional statistical modeling on the captured interface data, the method further includes:
a data cleansing operation associated with the interface data in the interface data packet is performed.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the method for building interface automation test and precision test as claimed in any one of claims 1 to 3.
6. A computer storage medium having a computer program stored thereon, wherein the program when executed by a processor implements the method for building interface automation testing and precision testing according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210641815.2A CN114721970B (en) | 2022-06-08 | 2022-06-08 | Method and device for automatic testing and accurate testing of construction interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210641815.2A CN114721970B (en) | 2022-06-08 | 2022-06-08 | Method and device for automatic testing and accurate testing of construction interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114721970A CN114721970A (en) | 2022-07-08 |
CN114721970B true CN114721970B (en) | 2022-10-04 |
Family
ID=82232479
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210641815.2A Active CN114721970B (en) | 2022-06-08 | 2022-06-08 | Method and device for automatic testing and accurate testing of construction interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114721970B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532169A (en) * | 2019-07-08 | 2019-12-03 | 平安科技(深圳)有限公司 | Interface testing case generation method, device, computer equipment and storage medium |
CN110908909A (en) * | 2019-11-21 | 2020-03-24 | 望海康信(北京)科技股份公司 | Automatic testing method and device, storage medium and equipment |
CN112181845A (en) * | 2020-10-13 | 2021-01-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Interface testing method and device |
CN114138628A (en) * | 2021-10-28 | 2022-03-04 | 济南浪潮数据技术有限公司 | Method and device for selecting regression test case based on layered test model |
CN114201397A (en) * | 2021-12-13 | 2022-03-18 | 中国电信集团系统集成有限责任公司 | Interface test modeling method and device, electronic equipment and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080295076A1 (en) * | 2007-05-23 | 2008-11-27 | Microsoft Corporation | Graphical user interface testing |
US10453019B1 (en) * | 2012-08-23 | 2019-10-22 | Jpmorgan Chase Bank, N.A. | Business activity resource modeling system and method |
CN104216826A (en) * | 2013-06-05 | 2014-12-17 | 腾讯科技(深圳)有限公司 | Test method and device |
CN104376418B (en) * | 2014-11-20 | 2018-05-25 | 上海新炬网络信息技术股份有限公司 | System variation risk control method based on business |
CN110032517A (en) * | 2019-04-17 | 2019-07-19 | 北京网聘咨询有限公司 | Realize the method and system of interface coverage rate automation statistics |
CN111538651A (en) * | 2020-03-30 | 2020-08-14 | 中国平安人寿保险股份有限公司 | Interface testing method, device, server and storage medium |
CN112364107A (en) * | 2020-11-10 | 2021-02-12 | 平安普惠企业管理有限公司 | System analysis visualization method and device, electronic equipment and computer readable storage medium |
-
2022
- 2022-06-08 CN CN202210641815.2A patent/CN114721970B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110532169A (en) * | 2019-07-08 | 2019-12-03 | 平安科技(深圳)有限公司 | Interface testing case generation method, device, computer equipment and storage medium |
CN110908909A (en) * | 2019-11-21 | 2020-03-24 | 望海康信(北京)科技股份公司 | Automatic testing method and device, storage medium and equipment |
CN112181845A (en) * | 2020-10-13 | 2021-01-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Interface testing method and device |
CN114138628A (en) * | 2021-10-28 | 2022-03-04 | 济南浪潮数据技术有限公司 | Method and device for selecting regression test case based on layered test model |
CN114201397A (en) * | 2021-12-13 | 2022-03-18 | 中国电信集团系统集成有限责任公司 | Interface test modeling method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
基于SilkTest和XML的通用高效的用户界面测试方法;何浩等;《计算机应用》;20130101(第01期);第264-267页 * |
Also Published As
Publication number | Publication date |
---|---|
CN114721970A (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021042914A1 (en) | Test data generation method and apparatus, computer device and storage medium | |
CN111651366B (en) | SDK test method, device, equipment and storage medium | |
CN110941546A (en) | Automatic test method, device, equipment and storage medium for WEB page case | |
CN108491321B (en) | Method and device for determining test case range and storage medium | |
CN110209652A (en) | Tables of data moving method, device, computer equipment and storage medium | |
CN112363941A (en) | Interface testing method and device, computer equipment and storage medium | |
CN110493812B (en) | Distribution network test processing method, device and system, processor and master control equipment | |
CN111414309B (en) | Automatic test method of application program, computer equipment and storage medium | |
CN109543417B (en) | Vulnerability mining method and device based on Qemu platform | |
CN111240905B (en) | Screen projection diagnosis method, device, system, storage medium and equipment | |
CN111459796B (en) | Automated testing method, apparatus, computer device and storage medium | |
CN105868097A (en) | System testing method and apparatus thereof | |
CN113176995B (en) | Interface testing method, device, equipment and medium based on testing scene | |
CN111240976A (en) | Software testing method and device, computer equipment and storage medium | |
CN110659435A (en) | Page data acquisition processing method and device, computer equipment and storage medium | |
CN111090593A (en) | Method, device, electronic equipment and storage medium for determining crash attribution | |
CN108446224B (en) | Performance analysis method of application program on mobile terminal and storage medium | |
CN112506795A (en) | Method, system, terminal and storage medium for testing security vulnerability of industrial control equipment | |
CN112988606B (en) | Test case generation method, device, equipment and storage medium | |
CN110232018A (en) | Interface test method, device, computer equipment | |
US20190236223A1 (en) | Identification of changes in functional behavior and runtime behavior of a system during maintenance cycles | |
CN114721970B (en) | Method and device for automatic testing and accurate testing of construction interface | |
CN112433953A (en) | Embedded automatic testing method, device, equipment and medium based on network game client | |
CN113064816A (en) | Testing device and testing method for programmable logic device software | |
CN110704218B (en) | Data processing method, data processing device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Room 402, No. 66, North Street, University Town Center, Panyu District, Guangzhou City, Guangdong Province, 510006 Applicant after: Yifang Information Technology Co.,Ltd. Address before: 510006 room 402, No. 66 (innovation building), North Central Street, University City, Panyu District, Guangzhou, Guangdong Province Applicant before: GUANGZHOU EASEFUN INFORMATION TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |