CN114721970A - 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 PDF

Info

Publication number
CN114721970A
CN114721970A CN202210641815.2A CN202210641815A CN114721970A CN 114721970 A CN114721970 A CN 114721970A CN 202210641815 A CN202210641815 A CN 202210641815A CN 114721970 A CN114721970 A CN 114721970A
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.)
Granted
Application number
CN202210641815.2A
Other languages
Chinese (zh)
Other versions
CN114721970B (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.)
Guangzhou Easefun Information Technology Co ltd
Original Assignee
Guangzhou Easefun Information Technology 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 Guangzhou Easefun Information Technology Co ltd filed Critical Guangzhou Easefun Information Technology Co ltd
Priority to CN202210641815.2A priority Critical patent/CN114721970B/en
Publication of CN114721970A publication Critical patent/CN114721970A/en
Application granted granted Critical
Publication of CN114721970B publication Critical patent/CN114721970B/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
    • 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/3692Test 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 multidimensional statistical modeling data, establishing an interface automatic test and an accurate test. 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 testing and the accurate testing of the interface can be efficiently utilized, and the time and the energy of research and development personnel are saved.

Description

Method and device for automatic testing and accurate testing of construction interface
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, unit test, interface test and 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 between the various types of automation tests, and respective technical schemes are usually adopted in the aspects of case writing and generation.
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 on an automatic scheme, 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 precise 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 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 multi-dimensional statistical modeling data, establishing an automatic test and an accurate test of an interface.
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:
and modeling according to the interface detailed information, mapping and associating the interface calling record with the UI automation service data, modeling the interface calling data record and modeling the interface automation test case data, counting the corresponding relation between the interface change and each UI change, counting the calling relation between the UI change and the old interface, and automatically inputting the interface change and the UI change into the preposed data of the precision test.
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 user operation and executing UI automatic test on the software to be tested;
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 accurate 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 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.
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 embodiments or the description of the prior art will be briefly described below, 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 the drawings without creative efforts.
FIG. 1 is a flowchart of a method for automated testing and precision testing of a building 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 described herein and illustrated in the figures can 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 automation to simulate the user operation, and executing the UI automation 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 automatic test of UI (User Interface Design) is a means for simulating case automation operation from an Interface to the tested software, and can achieve end-to-end automation effect by means of the automatic test of the UI and simulate the most real behavior of a User on the software.
And S12, setting an agent to monitor interface data packets generated by the UI automation case, and capturing the packets of the interfaces involved in each service scene.
In this embodiment, by synchronously capturing interface data during UI automation, a UI automation test case is generally used to describe a service scenario in which all the involved interface data are captured by a 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. 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.
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 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.
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:
and S201, controlling the 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.
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, the present embodiment proposes steps S204 to S207, compared to step S13 of the first embodiment;
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.
And S205, acquiring the interface calling record and the corresponding UI automation service data, and generating the interface calling record and the UI automation service data mapping correlation 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 correctness assertion comparison of the interface calling quantity, the calling sequence and the like caused by UI automation.
And S207, establishing scene automatic test case data according to the scene interface called by UI automation of each service scene, and generating interface automatic test case data for modeling.
The UI automation of one 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.
The embodiment of 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 implementing the automatic test and the precision test of the construction interface in the above embodiments is implemented.
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 can be implemented by a computer program, which can be stored in a non-volatile computer readable storage medium, and when executed, can 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 Direct RAM (RDRAM), direct 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 operation of an operating system and computer programs in 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 the 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 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 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.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure 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, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

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;
and according to the multidimensional statistical modeling data, establishing an interface automatic test and an accurate test.
2. The method of claim 1, wherein the step of performing multi-dimensional statistical modeling of 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 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.
3. The method of claim 2, wherein the step of building interface automation tests and precision tests 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.
4. The method of claim 3, 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 the UI automation service data, modeling the interface calling data record and modeling the interface automation test case data, counting the corresponding relation between the interface change and each UI change, counting the calling relation between the UI change and the old interface, and automatically inputting the interface change and the UI change into the preposed data of the precision test.
5. The method of claim 4, wherein the step of multi-dimensionally statistically modeling the captured interface data is preceded by:
a data cleansing operation associated with the interface data in the interface data packet is performed.
6. The method of claim 5, 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.
7. 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 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 automatic test and an accurate test of an interface according to the multi-dimensional statistical modeling data.
8. The apparatus of claim 7, wherein the statistics 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 correlation 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.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executed on the processor, wherein the processor when executing the computer program implements the method for building interface automation testing and precision testing as claimed in any one of claims 1 to 6.
10. 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 as claimed in any one of claims 1 to 6.
CN202210641815.2A 2022-06-08 2022-06-08 Method and device for automatic testing and accurate testing of construction interface Active CN114721970B (en)

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 true CN114721970A (en) 2022-07-08
CN114721970B 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 (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080295076A1 (en) * 2007-05-23 2008-11-27 Microsoft Corporation Graphical user interface testing
CN104216826A (en) * 2013-06-05 2014-12-17 腾讯科技(深圳)有限公司 Test method and device
CN104376418A (en) * 2014-11-20 2015-02-25 上海新炬网络信息技术有限公司 System alteration 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
US10453019B1 (en) * 2012-08-23 2019-10-22 Jpmorgan Chase Bank, N.A. Business activity resource modeling system and method
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
CN111538651A (en) * 2020-03-30 2020-08-14 中国平安人寿保险股份有限公司 Interface testing method, device, server and storage medium
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
WO2022100032A1 (en) * 2020-11-10 2022-05-19 平安普惠企业管理有限公司 System analysis visualization method and apparatus, electronic device, and computer readable storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
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
CN104376418A (en) * 2014-11-20 2015-02-25 上海新炬网络信息技术有限公司 System alteration 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
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
CN111538651A (en) * 2020-03-30 2020-08-14 中国平安人寿保险股份有限公司 Interface testing method, device, server and storage medium
CN112181845A (en) * 2020-10-13 2021-01-05 湖南快乐阳光互动娱乐传媒有限公司 Interface testing method and device
WO2022100032A1 (en) * 2020-11-10 2022-05-19 平安普惠企业管理有限公司 System analysis visualization method and apparatus, electronic device, and computer readable storage medium
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 (2)

* Cited by examiner, † Cited by third party
Title
何浩等: "基于SilkTest和XML的通用高效的用户界面测试方法", 《计算机应用》 *
白文江等: "面向服务Web用户界面的动态组合框架", 《计算机工程与设计》 *

Also Published As

Publication number Publication date
CN114721970B (en) 2022-10-04

Similar Documents

Publication Publication Date Title
WO2021042914A1 (en) Test data generation method and apparatus, computer device and storage medium
CN110941546A (en) Automatic test method, device, equipment and storage medium for WEB page case
CN110008118A (en) Page data test method, device, computer equipment and storage medium
CN111651366B (en) SDK test method, device, equipment and storage medium
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
CN109543417B (en) Vulnerability mining method and device based on Qemu platform
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN105868097A (en) System testing method and apparatus thereof
CN111782505A (en) Train system simulation test method and device, computer equipment and storage medium
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
CN112115038A (en) Application testing method and device and storage medium
CN111090593A (en) Method, device, electronic equipment and storage medium for determining crash attribution
CN105808420A (en) Implementation method and device of robustness testing process
CN111459796B (en) Automated testing method, apparatus, computer device and storage medium
CN110232018A (en) Interface test method, device, computer equipment
CN107679423A (en) Partition integrity inspection method and device
CN114721970B (en) Method and device for automatic testing and accurate testing of construction interface
CN111277476A (en) Gateway controller function verification method, gateway controller function verification device, computer equipment and storage medium
CN109032874A (en) A kind of memory pressure test method, device, terminal and storage medium
CN113495764B (en) Automatic data extraction method and device, computer equipment and storage medium
CN113176995B (en) Interface testing method, device, equipment and medium based on testing scene
CN110704218B (en) Data processing method, data processing device, computer equipment and storage medium
CN111083007B (en) Test method, test 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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant