CN113157596A - Automatic testing method and device - Google Patents

Automatic testing method and device Download PDF

Info

Publication number
CN113157596A
CN113157596A CN202110578229.3A CN202110578229A CN113157596A CN 113157596 A CN113157596 A CN 113157596A CN 202110578229 A CN202110578229 A CN 202110578229A CN 113157596 A CN113157596 A CN 113157596A
Authority
CN
China
Prior art keywords
control
script
login
tested
automatic
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
CN202110578229.3A
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 CN202110578229.3A priority Critical patent/CN113157596A/en
Publication of CN113157596A publication Critical patent/CN113157596A/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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

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

Abstract

The embodiment of the application provides an automatic testing method and device, relates to the technical field of computers, and solves the problems that an existing automatic testing method is time-consuming and labor-consuming and low in efficiency. The automatic test method comprises the following steps: acquiring an automatic test script; the automated test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested; and running an automatic test script in the system to be tested so that the system to be tested completes the automatic test.

Description

Automatic testing method and device
Technical Field
The invention relates to the technical field of computers, in particular to an automatic testing method and device.
Background
For commercial banks, business development speed is faster and faster, business coverage is wider and wider, and business system complexity is higher and higher, which is a general development trend. And the online time of the version of the bank application system shows a shortening trend and an irreconcilable trend, the requirements on rapid development and software quality are higher and higher, and the time requirements of business on software development, testing and production are shorter and shorter. Based on these features, automated testing of banking systems has emerged.
However, because of the high security requirements of the banking system, a plurality of encryption controls are usually included in the banking system. If the automatic test is continuously carried out under the encryption control, an automatic tester needs to complete the automatic test by adopting a mode of shielding the encryption control or a mode of installing a plug-in. Therefore, the existing automatic testing method is time-consuming, labor-consuming and low in efficiency.
Disclosure of Invention
The application provides an automatic testing method and device, and solves the problems that an existing automatic testing method is time-consuming and labor-consuming and low in efficiency.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, an automated testing method is provided, including: acquiring an automatic test script; the automated test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested; and running an automatic test script in the system to be tested so that the system to be tested completes the automatic test.
Therefore, when the automatic test script runs in the system to be tested, the login operation can be executed on the interface corresponding to the encrypted login control, so that the system to be tested completes the automatic test. The problems that the existing automatic testing method wastes time and labor and is low in efficiency are solved, and the automatic testing efficiency is improved.
In a second aspect, an automated test apparatus is provided, the automated test apparatus comprising: an acquisition unit and a processing unit; the acquisition unit is used for acquiring an automatic test script; the automated test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested; and the processing unit is used for running the automatic test script in the system to be tested so as to enable the system to be tested to complete the automatic test.
In a third aspect, an automated test equipment is provided that includes a memory and a processor. The memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus. When the automated testing device is running, the processor executes the computer-executable instructions stored in the memory to cause the automated testing device to perform the automated testing method of the first aspect.
The automatic test device may be a network device, or may be a part of a device in the network device, such as a system on chip in the network device. The chip system is configured to support the network device to implement the functions related to the first aspect and any one of the possible implementations thereof, for example, to receive, determine, and shunt data and/or information related to the above-mentioned automated testing method. The chip system includes a chip and may also include other discrete devices or circuit structures.
In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the automated testing method of the first aspect.
In a fifth aspect, there is provided a computer program product which, when run on a computer, causes the computer to perform the automated testing method of the first aspect and any one of its possible designs.
It should be noted that all or part of the computer instructions may be stored on the first computer storage medium. The first computer storage medium may be packaged together with the processor of the automatic test device, or may be packaged separately from the processor of the automatic test device, which is not limited in this embodiment of the application.
For the description of the second, third, fourth and fifth aspects of the present invention, reference may be made to the detailed description of the first aspect; in addition, for the beneficial effects of the second aspect, the third aspect, the fourth aspect and the fifth aspect, reference may be made to the beneficial effect analysis of the first aspect, and details are not repeated here.
In the embodiment of the present application, the names of the automatic test apparatuses mentioned above do not limit the devices or the functional modules themselves, and in actual implementation, the devices or the functional modules may be presented by other names. Insofar as the functions of the respective devices or functional blocks are similar to those of the present invention, they are within the scope of the claims of the present invention and their equivalents.
These and other aspects of the invention will be more readily apparent from the following description.
Drawings
Fig. 1 is a schematic hardware structure diagram of an automatic test apparatus according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a hardware structure of another automatic test apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an automated testing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart illustrating another automated testing method according to an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart illustrating another automated testing method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, the terms "first" and "second" are used to distinguish the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the terms "first" and "second" are not used to limit the quantity and execution order.
As described in the background, a plurality of encryption controls are typically included in a banking system due to the high security requirements of the banking system. If the automatic test is continuously carried out under the encryption control, an automatic tester needs to complete the automatic test by adopting a mode of shielding the encryption control or a mode of installing a plug-in. Therefore, the existing automatic testing method is time-consuming, labor-consuming and low in efficiency.
In view of the above problems, an embodiment of the present application provides an automated testing method, in which an automated testing script is first obtained during automated testing, and since the automated testing script includes an automatic login script (used for performing login operation on an interface corresponding to an encrypted login control in an automated testing process of a system to be tested), when the automated testing script is run in the system to be tested, the login operation can be performed on the interface corresponding to the encrypted login control, so that the system to be tested completes automated testing. The problems that the existing automatic testing method wastes time and labor and is low in efficiency are solved, and the automatic testing efficiency is improved.
The automatic test device may be a device for performing an automatic test on a system to be tested, a chip in the device, or a system on a chip in the device.
Optionally, the device may be a physical machine, for example: desktop computers, also called desktop computers (desktop computers), mobile phones, tablet computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, Personal Digital Assistants (PDAs), and other terminal devices.
Optionally, the automatic testing apparatus may also implement a function to be implemented by the automatic testing apparatus through a Virtual Machine (VM) deployed on a physical machine.
For ease of understanding, the structure of the automated testing apparatus in the embodiment of the present application will be described below.
Fig. 1 shows a hardware structure diagram of an automated testing device according to an embodiment of the present application. As shown in fig. 1, the automatic test device includes a processor 11, a memory 12, a communication interface 13, and a bus 14. The processor 11, the memory 12 and the communication interface 13 may be connected by a bus 14.
The processor 11 is a control center of the automatic test apparatus, and may be a single processor or a collective term for a plurality of processing elements. For example, the processor 11 may be a general-purpose Central Processing Unit (CPU), or may be another general-purpose processor. Wherein a general purpose processor may be a microprocessor or any conventional processor or the like.
For one embodiment, processor 11 may include one or more CPUs, such as CPU 0 and CPU 1 shown in FIG. 1.
The memory 12 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 12 may be present separately from the processor 11, and the memory 12 may be connected to the processor 11 via a bus 14 for storing instructions or program code. The automated testing method provided by the embodiment of the present invention can be implemented when the processor 11 calls and executes the instructions or program codes stored in the memory 12.
In another possible implementation, the memory 12 may also be integrated with the processor 11.
And a communication interface 13 for connecting with other devices through a communication network. The communication network may be an ethernet network, a radio access network, a Wireless Local Area Network (WLAN), or the like. The communication interface 13 may comprise a receiving unit for receiving data and a transmitting unit for transmitting data.
The bus 14 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 1, but it is not intended that there be only one bus or one type of bus.
It should be noted that the configuration shown in fig. 1 does not constitute a limitation of the automated testing apparatus. In addition to the components shown in FIG. 1, the automated testing apparatus may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
Fig. 2 shows another hardware configuration of the automated test apparatus in the embodiment of the present application. As shown in fig. 2, the communication device may include a processor 21 and a communication interface 22. The processor 21 is coupled to a communication interface 22.
The function of the processor 21 may refer to the description of the processor 11 above. The processor 21 also has a memory function, and the function of the memory 12 can be referred to.
The communication interface 22 is used to provide data to the processor 21. The communication interface 22 may be an internal interface of the communication device or an external interface of the automatic test apparatus (corresponding to the communication interface 13).
It should be noted that the configuration shown in fig. 1 (or fig. 2) does not constitute a limitation of the automated testing apparatus, which may include more or less components than those shown in fig. 1 (or fig. 2), or may combine some components, or a different arrangement of components, in addition to those shown in fig. 1 (or fig. 2).
The following describes an automated testing method provided by an embodiment of the present application in detail with reference to the accompanying drawings.
Fig. 3 is a schematic flowchart of an automated testing method according to an embodiment of the present disclosure. As shown in fig. 3, the automated testing method includes the following steps S301 to S302.
S301, the automatic testing device obtains an automatic testing script.
The automatic test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested.
Specifically, in the process of automatic testing, a tester first edits an automatic test script for a system to be tested. After the tester edits the automated test script through the electronic device, the electronic device may send the automated test script to the automated test equipment through the communication link. Accordingly, the automated testing device receives the automated test script.
Optionally, the tester may also directly edit the automated test script on the automated testing apparatus. Accordingly, after the automatic test script is edited, the automatic test device can directly acquire the automatic test script.
Further, the auto-login script includes: acquiring a script and executing the script; the acquisition script is used for acquiring the position of a control in the system to be tested; the execution script is used for calling a keyboard control and a mouse control in the system to be tested and controlling the keyboard control and the mouse control to execute login operation.
S302, the automatic testing device runs an automatic testing script in the system to be tested so that the system to be tested completes automatic testing.
Specifically, after the automatic test script is obtained, the automatic test device runs the automatic test script in the system to be tested, so that the system to be tested completes the automatic test.
The embodiment of the application provides an automatic testing method, which comprises the following steps: acquiring an automatic test script; the automated test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested; and running an automatic test script in the system to be tested so that the system to be tested completes the automatic test.
Therefore, when the automatic test script runs in the system to be tested, the login operation can be executed on the interface corresponding to the encrypted login control, so that the system to be tested completes the automatic test. The problems that the existing automatic testing method wastes time and labor and is low in efficiency are solved, and the automatic testing efficiency is improved.
In one implementation, in combination with the above description, the automatic login script includes: acquiring a script and executing the script; the acquisition script is used for acquiring the position of a control in the system to be tested; the execution script is used for calling a keyboard control and a mouse control in the system to be tested and controlling the keyboard control and the mouse control to execute login operation. In this case, referring to fig. 3, as shown in fig. 4, in the above S302, the method for running the automated test script in the system to be tested specifically includes: S401-S402.
S401, in the process of running the automatic test script in the system to be tested, if the automatic test process at the current moment is a login process corresponding to the login encryption login control, the automatic test device calls the acquisition script to acquire a login page of the system to be tested at the current moment, and determines the position of the encryption login control from the login page.
Specifically, if the encryption control is used in the system to be tested, the automatic testing device cannot directly obtain the input frame element corresponding to the encryption control in a foreground manner such as JavaScript, but the encryption control is finally displayed on the interface of the system to be tested. Under the condition, in the process of running the automatic test script in the system to be tested, if the automatic test process at the current moment is the login process corresponding to the login encryption login control, the automatic test device calls the acquisition script to acquire the login page of the system to be tested at the current moment, and determines the position of the encryption login control from the login page.
Optionally, the automatic testing device calls the obtaining script to obtain a login page of the system to be tested at the current moment, and when the position of the encrypted login control is determined from the login page, an interface coordinate tool may be used to obtain coordinates of each element of the interface to be tested, and determine coordinates of the encrypted login control from the coordinates of each element of the interface to be tested, and then determine the coordinates of the encrypted login control as the position of the encrypted login control.
S402, the automatic testing device calls the execution script to control the keyboard control and the mouse control to execute login operation at the position of the encrypted login control.
Specifically, after a login page of the system to be tested at the current moment is obtained and the position of the encrypted login control is determined from the login page, the automatic testing device calls an execution script to control the keyboard control and the mouse control to execute login operation at the position of the encrypted login control. Therefore, the automatic testing device can complete automatic testing through the keyboard control and the mouse control of the system to be tested, the problems that the existing automatic testing method is time-consuming and labor-consuming and low in efficiency are solved, and the automatic testing efficiency is improved.
In an implementation manner, with reference to fig. 4 and as shown in fig. 5, the method for invoking the execution script and controlling the keyboard control and the mouse control to execute the login operation at the position of the encrypted login control specifically includes: S501-S502.
S501, the automatic testing device calls an execution script to control the mouse control to execute clicking operation at the position of the encrypted login control so as to call the keyboard control.
Specifically, after the login page of the system to be tested at the current moment is obtained and the position of the encrypted login control is determined from the login page, the automatic testing device can call the execution script and control the mouse control to execute the clicking operation at the position of the encrypted login control so as to call the keyboard control.
Illustratively, an encryption control which needs to input a user name and a password is arranged at a certain position of a display interface of the system to be tested. After the automatic testing device obtains the login page of the system to be tested at the current moment and determines the position of the encrypted login control from the login page, the automatic testing device can execute the script and control the mouse control to execute the click operation at the position of the encrypted control needing to input the user name and the password. In this case, the automated test equipment invokes the keyboard controls.
S502, the automatic testing device controls the keyboard control to execute input operation at the position of the encrypted login control so as to input an account name or a password which is stored in the automatic testing script in advance.
Specifically, after the execution script is called and the mouse control is controlled to execute the clicking operation at the position of the encrypted login control so as to call the keyboard control, the automatic testing device controls the keyboard control to execute the input operation at the position of the encrypted login control so as to input the account name or the password which is stored in the automatic testing script in advance.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the automatic testing device may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. Optionally, the division of the modules in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
FIG. 6 shows a schematic diagram of an automated test apparatus, comprising: an acquisition unit 601 and a processing unit 602.
An obtaining unit 601, configured to obtain an automation test script. The automated test script includes an auto-login script. The automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested. For example, in conjunction with fig. 3, the acquisition unit 601 is configured to execute S301.
The processing unit 602 is configured to run an automated test script in the system to be tested, so that the system to be tested completes an automated test. For example, in conjunction with fig. 3, the processing unit 602 is configured to execute S302.
Optionally, the automatic login script includes: obtaining a script and executing the script. The acquisition script is used for acquiring the control position in the system to be tested. The execution script is used for calling a keyboard control and a mouse control in the system to be tested and controlling the keyboard control and the mouse control to execute login operation.
Optionally, the processing unit 602 is specifically configured to:
in the process of running the automatic test script in the system to be tested, if the automatic test process at the current moment is a login process corresponding to the login encryption login control, calling the acquisition script, acquiring a login page of the system to be tested at the current moment, and determining the position of the encryption login control from the login page. For example, in conjunction with fig. 4, the processing unit 602 is configured to execute S401.
And calling the execution script to control the keyboard control and the mouse control to execute the login operation at the position of the encrypted login control. For example, in conjunction with fig. 4, the processing unit 602 is configured to execute S402.
Optionally, the processing unit 602 is specifically configured to:
and calling the execution script, and controlling the mouse control to execute clicking operation at the position of the encrypted login control so as to call the keyboard control. For example, in conjunction with fig. 5, the processing unit 602 is configured to perform S501.
And controlling the keyboard control to execute input operation at the position of the encrypted login control so as to input an account name or a password which is stored in the automatic test script in advance. For example, in connection with fig. 5, the processing unit 602 is configured to execute S502.
Embodiments of the present application also provide a computer-readable storage medium, which includes computer-executable instructions. When the computer executes the instructions to run on the computer, the computer is enabled to execute the steps executed by the device in the automatic testing method provided by the embodiment.
The embodiment of the present application further provides a computer program product, where the computer program product may be directly loaded into the memory and contains software codes, and after the computer program product is loaded and executed by the computer, the computer program product can implement each step executed by the apparatus in the automated testing method provided by the foregoing embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The processes or functions according to the embodiments of the present application are generated in whole or in part when the computer-executable instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or can comprise one or more data storage devices, such as servers, data centers, and the like, that can be integrated with the media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Through the above description of the embodiments, it is 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 completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other division ways in actual implementation. For example, various elements or components may be combined or may be integrated into another device, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An automated testing method, comprising:
acquiring an automatic test script; the automatic test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested;
and running the automatic test script in the system to be tested so that the system to be tested completes the automatic test.
2. The automated testing method of claim 1, wherein the auto-login script comprises: acquiring a script and executing the script; the acquisition script is used for acquiring the control position in the system to be tested; the execution script is used for calling a keyboard control and a mouse control in the system to be tested and controlling the keyboard control and the mouse control to execute login operation.
3. The automated testing method of claim 2, wherein running the automated testing script in the system under test comprises:
in the process of running the automatic test script in the system to be tested, if the automatic test process at the current moment is a login process corresponding to the encrypted login control, calling the acquisition script, acquiring a login page of the system to be tested at the current moment, and determining the position of the encrypted login control from the login page;
and calling the execution script to control the keyboard control and the mouse control to execute the login operation at the position of the encrypted login control.
4. The automated testing method of claim 2, wherein said invoking said execution script to control said keyboard control and said mouse control to perform said login operation at a location of said encrypted login control comprises:
calling the execution script to control the mouse control to execute clicking operation at the position of the encrypted login control so as to call the keyboard control;
and controlling the keyboard control to execute input operation at the position of the encrypted login control so as to input an account name or a password which is stored in the automatic test script in advance.
5. An automated testing apparatus, comprising: an acquisition unit and a processing unit;
the acquisition unit is used for acquiring an automatic test script; the automatic test script comprises an automatic login script; the automatic login script is used for executing login operation on an interface corresponding to the encrypted login control in the process of carrying out automatic testing on the system to be tested;
the processing unit is used for running the automatic test script in the system to be tested so as to enable the system to be tested to complete the automatic test.
6. The automated testing apparatus of claim 5, wherein the auto-login script comprises: acquiring a script and executing the script; the acquisition script is used for acquiring the control position in the system to be tested; the execution script is used for calling a keyboard control and a mouse control in the system to be tested and controlling the keyboard control and the mouse control to execute login operation.
7. The automated testing device of claim 6, wherein the processing unit is specifically configured to:
in the process of running the automatic test script in the system to be tested, if the automatic test process at the current moment is a login process corresponding to the encrypted login control, calling the acquisition script, acquiring a login page of the system to be tested at the current moment, and determining the position of the encrypted login control from the login page;
and calling the execution script to control the keyboard control and the mouse control to execute the login operation at the position of the encrypted login control.
8. The automated testing device of claim 6, wherein the processing unit is specifically configured to:
calling the execution script to control the mouse control to execute clicking operation at the position of the encrypted login control so as to call the keyboard control;
and controlling the keyboard control to execute input operation at the position of the encrypted login control so as to input an account name or a password which is stored in the automatic test script in advance.
9. An automated testing apparatus, comprising a memory and a processor; the memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus;
the computer-executable instructions stored by the memory are executable by the processor to cause the automated test equipment to perform the automated test method of any one of claims 1-4 when the automated test equipment is operating.
10. A computer-readable storage medium comprising computer-executable instructions that, when executed on a computer, cause the computer to perform the automated testing method of any of claims 1-4.
CN202110578229.3A 2021-05-26 2021-05-26 Automatic testing method and device Pending CN113157596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110578229.3A CN113157596A (en) 2021-05-26 2021-05-26 Automatic testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110578229.3A CN113157596A (en) 2021-05-26 2021-05-26 Automatic testing method and device

Publications (1)

Publication Number Publication Date
CN113157596A true CN113157596A (en) 2021-07-23

Family

ID=76877855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110578229.3A Pending CN113157596A (en) 2021-05-26 2021-05-26 Automatic testing method and device

Country Status (1)

Country Link
CN (1) CN113157596A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858321A (en) * 2020-07-09 2020-10-30 麒麟软件有限公司 Xdotool-based automatic testing method
US20210042215A1 (en) * 2016-02-10 2021-02-11 Eggplant Limited Method of, and apparatus for, testing computer hardware and software
CN112506785A (en) * 2020-12-15 2021-03-16 杭州电魂网络科技股份有限公司 Automatic testing method, device, equipment and medium for login of Html5 game page

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210042215A1 (en) * 2016-02-10 2021-02-11 Eggplant Limited Method of, and apparatus for, testing computer hardware and software
CN111858321A (en) * 2020-07-09 2020-10-30 麒麟软件有限公司 Xdotool-based automatic testing method
CN112506785A (en) * 2020-12-15 2021-03-16 杭州电魂网络科技股份有限公司 Automatic testing method, device, equipment and medium for login of Html5 game page

Similar Documents

Publication Publication Date Title
US9178746B2 (en) Browser-based fetch of external libraries
CN111740992B (en) Website security vulnerability detection method, device, medium and electronic equipment
US20150370556A1 (en) Establishing subsystem boundaries based on call flow graph topology
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN111752834A (en) Automatic testing method and device
CN102750493B (en) Access right control method, Apparatus and system
CN109491909A (en) A kind of CPLD refreshes verification method, device, terminal and storage medium
CN106709338A (en) Program detection method and device
CN105279164A (en) File processing method and device based on IOS system
US9730038B2 (en) Techniques to manage platform migrations
CN111459481A (en) Page sideslip method and device, electronic equipment and storage medium
CN104182331A (en) Browser performance test method, browser performance test system and terminal
CN113157596A (en) Automatic testing method and device
CN114579499A (en) Control method, device, equipment and storage medium of processor communication interface
CN113849195A (en) Application program loading method and device, storage medium and terminal
CN113472611A (en) Method and device for acquiring WiFi signal strength and readable storage medium
CN106020996A (en) Data updating method and data updating apparatus
CN113076728A (en) Data filling method of dialog box and related equipment
CN113760727A (en) Interface regression testing method and device
CN112073505A (en) Method for unloading on cloud server, control device and storage medium
US11886327B2 (en) Training a system to recognize scroll bars in an application under test
CN113407440B (en) Testing system and method for wireless communication module
US12013795B1 (en) System and method for managing ports of data processing systems and attached devices
CN108053336A (en) Customizable industry service method and device

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