CN115357442A - System interface test method, system, computer equipment and storage medium - Google Patents

System interface test method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN115357442A
CN115357442A CN202211025364.6A CN202211025364A CN115357442A CN 115357442 A CN115357442 A CN 115357442A CN 202211025364 A CN202211025364 A CN 202211025364A CN 115357442 A CN115357442 A CN 115357442A
Authority
CN
China
Prior art keywords
test
generating
tester
data
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211025364.6A
Other languages
Chinese (zh)
Inventor
周慧婷
申亚坤
谭莹坤
余功菊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202211025364.6A priority Critical patent/CN115357442A/en
Publication of CN115357442A publication Critical patent/CN115357442A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

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

Abstract

The application discloses a system interface testing method, a system, computer equipment and a storage medium, which can be applied to the financial field and other technical fields. The method comprises the following steps: responding to the test operation of a tester, and acquiring an operation object; generating test data according to the test operation and the operation object; and obtaining a test record according to the test data. The method can automatically generate test data such as test cases and the like when a tester operates the interface to test, and improves the test efficiency.

Description

System interface test method, system, computer equipment and storage medium
Technical Field
The present application relates to the field of testing technologies, and in particular, to a method and a system for testing a system interface, a computer device, and a storage medium.
Background
With the development of the internet, more and more enterprises use the developed system to realize business collaboration, and a system interface with good interactivity is one of the key factors for realizing the system practicability.
When a system interface is tested, a great deal of time is spent on compiling test cases by testers, and the time for executing operation on the interface is relatively short, so that the efficiency of the test process is low.
Disclosure of Invention
Based on the above problems, the present application provides a method, a system, a computer device and a storage medium for testing a system interface, which can automatically generate test data such as test cases when a tester operates an interface to perform a test, thereby improving test efficiency.
The application discloses following technical scheme:
the first aspect of the present application provides a method for testing a system interface, including:
responding to the test operation of a tester, and acquiring an operation object;
generating test data according to the test operation and the operated object;
and obtaining a test record according to the test data.
In some possible implementations, the test data includes test results;
obtaining a test record from the test data, comprising:
responding to the test result of successful test, and generating a test screenshot;
and generating a test problem report in response to the test result of the test failure.
In some possible implementations, the generating test data according to the test operation and the object of the operation includes:
and responding to the object of the operation of confirming the input type clicked by the tester, acquiring the input data and generating the test case.
In some possible implementations, the obtaining the object of the operation in response to the test operation of the tester includes:
and in response to the test operation of the tester, capturing the element of the operation as an operation object by using the test tool.
A second aspect of the present application provides a system interface testing system, including:
an operation object acquisition unit for acquiring an object of an operation in response to a test operation by a tester;
the test data generating unit is used for generating test data according to the test operation and the object of the operation;
and the test record obtaining unit is used for obtaining the test record according to the test data.
In some possible implementations, the test data includes test results;
obtaining a test record from the test data, comprising:
responding to a test result of successful test, and generating a test screenshot;
and generating a test problem report in response to the test result of the test failure.
In some possible implementations, the generating test data according to the test operation and the object of the operation includes:
and responding to the object of the operation of confirming the input type clicked by the tester, acquiring the input data and generating the test case.
In some possible implementations, the obtaining the object of the operation in response to the test operation of the tester includes:
in response to a test operation by a tester, an element of the operation is captured as an operation object by a test tool.
A third aspect of the present application provides a computer device comprising: the system interface testing method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the computer program, the system interface testing method is realized according to any one of the first aspect of the application.
A fourth aspect of the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are executed on a terminal device, the instructions cause the terminal device to execute a method for testing a system interface according to any one of the first aspect of the present application.
Compared with the prior art, the method has the following beneficial effects:
the application provides a system interface testing method, which comprises the following steps: responding to the test operation of a tester, and acquiring an operation object; generating test data according to the test operation and the operated object; and obtaining a test record according to the test data. The method can automatically generate test data such as test cases and the like when a tester operates the interface to test, and improves the test efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the description below are only some embodiments of the present application, and for those skilled in the art, other drawings may be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a method for testing a system interface according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a system interface to be tested according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another system interface to be tested according to an embodiment of the present application;
fig. 4 is a diagram of a system interface test system according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying the drawings are described in detail below.
As mentioned above, more and more enterprises use developed systems to implement business collaboration, and a system interface with good interactivity is one of the key factors for implementing system utility.
When a system interface is tested, a great deal of time is spent on compiling test cases by testers, and the time for executing operation on the interface is relatively short, so that the efficiency of the test process is low.
In view of this, embodiments of the present application provide a method and a system for testing a system interface, a computer device, and a storage medium. The method comprises the following steps: responding to the test operation of a tester, and acquiring an operation object; generating test data according to the test operation and the operated object; and obtaining a test record according to the test data. The method can automatically generate test data such as test cases and the like when a tester operates the interface to test, and improves the test efficiency.
Referring to fig. 1, fig. 1 is a flowchart of a method for testing a system interface according to an embodiment of the present application, and as shown in fig. 1, the method includes:
and S110, responding to the test operation of the tester, and acquiring an operation object.
The operation object is determined according to the front-end element of the operation interface, for example, click corresponds to a click component, input corresponds to an input box component, and message corresponds to a prompt component.
In some possible implementations, the obtaining, in response to a test operation by a tester, an object of the operation includes:
in response to a test operation by a tester, an element of the operation is captured as an operation object by a test tool.
The test tool can be fused with the interface to be tested, when a tester enters the system and executes the operation according to the requirement, the elements of the operation captured by the test tool can be displayed on the right side of the interface to be tested according to the module, the function, the sub-function and the like, as shown in fig. 2, and online real-time modification is supported.
And S120, generating test data according to the test operation and the operation object.
In some possible implementations, the generating test data according to the test operation and the object of the operation includes:
and responding to the object of the operation of confirming the input type clicked by the tester, acquiring the input data and generating the test case.
And S130, obtaining a test record according to the test data.
In some possible implementations, the test data includes test results;
obtaining a test record from the test data, comprising:
responding to a test result of successful test, and generating a test screenshot;
and generating a test problem report in response to the test result of the test failure.
According to the system interface testing method, testing data such as testing cases can be automatically generated when a tester operates an interface to test, and testing efficiency is improved.
Referring to fig. 2, fig. 2 is a system interface diagram to be tested according to an embodiment of the present application, and as shown in fig. 2, a vocabulary entry management function module is located below a management center module of the system interface, and the vocabulary entry management function module includes a new noun interpreter sub-function module. Elements of the operation captured by the test tool can be displayed on the right side of the tested interface according to modules, functions, sub-functions and the like. When the system interface is tested, the management center module is clicked, and then the test tool captures the interface elements of the module as operation objects. Responding to the operation of clicking the management center module, if the interface of the entry management function module appears, the test is successful, and the test tool automatically captures the image as a test record; and if the interface of the entry management function module does not appear, the test fails, and a corresponding test problem report is generated. Responding to the test operation that the tester clicks the new construction, displaying a new noun explanation interface shown in fig. 3, which indicates that the sub-function test of the new noun explanation succeeds, and the test tool automatically captures the screen as a test record, and if the interface shown in fig. 3 is not displayed, the test fails, and a corresponding test problem report is generated. After inputting the character data of the new entry interface shown in fig. 3, clicking to confirm, displaying a prompt of "new successful creation", and then, capturing the screen successfully, and the testing tool automatically acquires the input character data and generates a testing case. If the prompt of 'new establishment success' is not displayed, the test fails, and a corresponding test problem report is generated. And forming a complete record according to the test screenshot or the problem report of each step.
Referring to fig. 4, fig. 4 is a structural diagram of a system interface testing system according to an embodiment of the present application, and as shown in fig. 4, the system interface testing system includes:
an operation object acquisition unit for acquiring an object of an operation in response to a test operation by a tester;
the test data generating unit is used for generating test data according to the test operation and the object of the operation;
and the test record obtaining unit is used for obtaining the test record according to the test data.
In some possible implementations, the test data includes test results;
obtaining a test record from the test data, comprising:
responding to a test result of successful test, and generating a test screenshot;
and generating a test problem report in response to the test result of the test failure.
In some possible implementations, the generating test data according to the test operation and the object of the operation includes:
and responding to the object of the operation of confirming the input type clicked by the tester, acquiring the input data and generating the test case.
In some possible implementations, the obtaining the object of the operation in response to the test operation of the tester includes:
and in response to the test operation of the tester, capturing the element of the operation as an operation object by using the test tool.
In practice, the computer-readable storage medium may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
As shown in fig. 5, an embodiment of the present application provides a schematic structural diagram of a computer device. Fig. 5 is shown as a computer device 12, and the computer device 12 is only an example and should not bring any limitation to the function and the scope of the use of the embodiments of the present invention.
As shown in FIG. 5, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5 and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown in FIG. 5, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The system interface testing method, the system, the computer equipment and the storage medium provided by the invention can be used in the financial field or other fields, for example, can be used in an application scene of testing the financial software system interface in the financial field. Other fields are any fields other than the financial field, for example, the field of software testing. The foregoing is merely an example, and does not limit the application fields of the method, system, computer device and storage medium for testing a system interface provided by the present invention.
It is noted that, as used herein, the term "include" and its variants are intended to be inclusive, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It is noted that, although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the application. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other combinations of features described above or equivalents thereof without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A method for testing a system interface, comprising:
responding to the test operation of a tester, and acquiring an operation object;
generating test data according to the test operation and the operation object;
and obtaining a test record according to the test data.
2. The method of claim 1, wherein the test data comprises test results;
obtaining a test record from the test data, comprising:
responding to the test result of successful test, and generating a test screenshot;
and generating a test problem report in response to the test result of the test failure.
3. The method of claim 1, wherein generating test data from the test operations and the objects of the operations comprises:
and responding to the object of the operation of the input type which is clicked and confirmed by the tester, acquiring the input data and generating the test case.
4. The method of claim 1, wherein said obtaining the subject of the operation in response to the test operation by the tester comprises:
and in response to the test operation of the tester, capturing the element of the operation as an operation object by using the test tool.
5. A system interface test system, comprising:
an operation object acquisition unit for acquiring an object of an operation in response to a test operation by a tester;
the test data generating unit is used for generating test data according to the test operation and the object of the operation;
and the test record obtaining unit is used for obtaining the test record according to the test data.
6. The system of claim 5, wherein the test data comprises test results;
obtaining a test record from the test data, comprising:
responding to the test result of successful test, and generating a test screenshot;
and generating a test problem report in response to the test result of the test failure.
7. The system of claim 5, wherein the generating test data from test operations and objects of operations comprises:
and responding to the object of the operation of confirming the input type clicked by the tester, acquiring the input data and generating the test case.
8. The system of claim 5, wherein the obtaining the subject of the operation in response to the test operation by the tester comprises:
in response to a test operation by a tester, an element of the operation is captured as an operation object by a test tool.
9. A computer device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method for testing a system interface according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium having stored therein instructions which, when run on a terminal device, cause the terminal device to execute a method of testing a system interface according to any one of claims 1-4.
CN202211025364.6A 2022-08-25 2022-08-25 System interface test method, system, computer equipment and storage medium Pending CN115357442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211025364.6A CN115357442A (en) 2022-08-25 2022-08-25 System interface test method, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211025364.6A CN115357442A (en) 2022-08-25 2022-08-25 System interface test method, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115357442A true CN115357442A (en) 2022-11-18

Family

ID=84005310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211025364.6A Pending CN115357442A (en) 2022-08-25 2022-08-25 System interface test method, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115357442A (en)

Similar Documents

Publication Publication Date Title
CN111881054B (en) User interface automatic test method, system, equipment and storage medium
CN110597704B (en) Pressure test method, device, server and medium for application program
CN111949509A (en) Application software response time testing method, device, equipment and storage medium
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN111309606B (en) Page exception handling method and device, computer equipment and storage medium
CN109165372B (en) Webpage loading method, device, equipment and storage medium
CN107193747B (en) Code testing method and device and computer equipment
CN108376333B (en) File approval method, medium, device and computing equipment
CN113312036B (en) Large screen display method, device and equipment of Web page and storage medium
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN113362173A (en) Anti-duplication mechanism verification method, anti-duplication mechanism verification system, electronic equipment and storage medium
CN112667517A (en) Method, device, equipment and storage medium for acquiring automatic test script
US9799326B2 (en) Training a cognitive agent using document output generated from a recorded process
CN113641575B (en) Test method, device, equipment and storage medium
CN115357442A (en) System interface test method, system, computer equipment and storage medium
CN111258875A (en) Interface test method and system, electronic device and storage medium
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
CN114115628A (en) U shield display information acquisition method, device, equipment, medium and program product applied to U shield test
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN113656301A (en) Interface testing method, device, equipment and storage medium
CN113392002A (en) Test system construction method, device, equipment and storage medium
CN111931465A (en) Method and system for automatically generating user manual based on user operation
CN110958243A (en) Network vulnerability submitting method and device, storage medium and electronic equipment
CN113760696A (en) Program problem positioning method and device, electronic 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