CN114579473A - Application testing method, device, equipment and storage medium - Google Patents

Application testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114579473A
CN114579473A CN202210496233.XA CN202210496233A CN114579473A CN 114579473 A CN114579473 A CN 114579473A CN 202210496233 A CN202210496233 A CN 202210496233A CN 114579473 A CN114579473 A CN 114579473A
Authority
CN
China
Prior art keywords
test
target
application
tested
testing
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
CN202210496233.XA
Other languages
Chinese (zh)
Other versions
CN114579473B (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.)
Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch
Original Assignee
Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch
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 Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch filed Critical Taiping Financial Technology Services Shanghai Co Ltd Shenzhen Branch
Priority to CN202210496233.XA priority Critical patent/CN114579473B/en
Publication of CN114579473A publication Critical patent/CN114579473A/en
Application granted granted Critical
Publication of CN114579473B publication Critical patent/CN114579473B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W90/00Enabling technologies or technologies with a potential or indirect contribution to greenhouse gas [GHG] emissions mitigation

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 application relates to an application test method, device, equipment and storage medium, and belongs to the technical field of application test. The application test method comprises the following steps: receiving a call instruction aiming at a target test task in a test task pool, and generating a test instruction based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene; sending the test instruction to target test equipment bound with the target address information; the target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program. The application testing method provided by the application can improve the testing efficiency of the application.

Description

Application testing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of application testing technologies, and in particular, to an application testing method, apparatus, device, and storage medium.
Background
In recent years, with the popularization of network technology and the development of new application development technology, the application is increasingly widely used, and in a development link or a maintenance update link, application testing is required, and abnormal parts appearing in the testing are corrected to improve the application performance.
The existing application testing method is to test multiple functions of an application one by developing a test program for multiple functions of the application and storing the test program on a device to be tested. And calling corresponding test programs for each test device one by one in the test process to perform application test.
However, the existing application test method has the problem of low test efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide an application testing method, apparatus, device and storage medium, which can improve the testing efficiency of the application.
In a first aspect, an embodiment of the present application provides an application testing method, where the method includes: receiving a call instruction aiming at a target test task in a test task pool, and generating a test instruction based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene; sending the test instruction to target test equipment bound with the target address information; the target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program.
In one embodiment, before receiving a call instruction for a target test task in the test task pool, the method further comprises: determining a plurality of applications to be tested, and distributing a test scene for each application to be tested from a plurality of pre-established test scenes; and establishing a test task corresponding to each application to be tested according to the scene identification information of the test scene distributed to each application to be tested, the application identification information of each application to be tested and the address information of the terminal storing each application to be tested, and establishing a test task pool based on the established test tasks.
In one embodiment, determining a plurality of applications to be tested, and assigning a test scenario to each application to be tested from a plurality of pre-created test scenarios includes: acquiring address information of each terminal, and determining any application to be tested stored on the terminal according to the address information of each terminal; and distributing the same test scene for each application to be tested.
In one embodiment, before receiving a call instruction for a target test task in the test task pool, the method further comprises: distributing corresponding test equipment for each terminal, and binding address information of the terminal with the test equipment distributed for the terminal; the testing equipment distributed for the terminal is used for storing a testing program of the application to be tested in the terminal.
In one embodiment, after allocating the corresponding test device to each terminal, the method further includes:
and appointing the storage positions of the test programs corresponding to different test scenes on the test equipment, and sending the appointed storage positions to the test equipment so that the test equipment stores the test programs corresponding to different test scenes according to the appointed storage positions.
In one embodiment, after receiving a call instruction for a target test task in the test task pool, the method further comprises:
and acquiring test parameters corresponding to the target test scene, and sending the test parameters to the target test equipment so that the target test equipment adds the test parameters to the target test program.
In one embodiment, receiving a call instruction for a target test task in a test task pool includes:
receiving a calling instruction aiming at a target test task in a test task pool after reaching preset test time; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
In one embodiment, the application to be tested is an application included in an application system, and the receiving of the call instruction for the target test task in the test task pool includes:
after indication information sent by the third-party equipment is received, a call instruction for a target test task in the test task pool is received, wherein the indication information is used for indicating the application system to be changed in program.
In one embodiment, the target test program comprises at least one exception capture program, and the exception capture program is used for capturing and processing an exception response condition of the target application to be tested in the process of testing the target application to be tested.
In one embodiment, after sending the test instruction to the target test device bound with the target address information, the method further comprises:
and receiving a test report sent by the target test equipment, wherein the test report is used for indicating the test result of the target application to be tested.
In one embodiment, the test report includes target address information; the method further comprises the following steps: and after receiving the test report sent by the target test equipment, calling a mail sending program to send the test report to the terminal storing the target application to be tested according to the target address information through the mail sending program.
In one embodiment, the test report includes abnormal indication information of the target application to be tested in the target test scenario, and the method further includes: detecting whether the handle sequence of the target application to be tested is consistent with the page switching sequence of the target application to be tested in the testing process; if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in a target test scene in the current handle list; and taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
In a second aspect of the embodiments of the present application, there is provided an application testing apparatus, including:
the generation module is used for receiving a call instruction aiming at a target test task in the test task pool and generating a test instruction based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene;
the sending module is used for sending the test instruction to the target test equipment bound with the target address information;
the target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program.
In a third aspect of the embodiments of the present application, a server is further provided, where the server includes: the application testing method comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is used for realizing the application testing method of any one of the first aspects of the embodiment of the application when being executed by the processor.
In a fourth aspect of the embodiments of the present application, there is further provided a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the application testing method according to any one of the first aspect of the embodiments of the present application.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
according to the embodiment of the application, a call instruction for a target test task in a test task pool is received, and the test instruction is generated based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps that application identification information of a target application to be tested, target address information of a terminal for storing the target application to be tested and scene identification information of a target test scene are stored, and then a test instruction is sent to target test equipment bound with the target address information; and finally, the target testing equipment positions the target application to be tested according to the application identification information of the target application to be tested, calls a target testing program corresponding to the scene identification information of the target testing scene, and tests the target application to be tested by using the target testing program. According to the application testing method provided by the embodiment of the application testing method, the plurality of testing scenes for the applications to be tested are created in advance, the testing programs corresponding to the testing scenes are stored in the corresponding testing equipment, in the testing process of the applications, the testing instructions are generated according to the testing tasks for the applications on a plurality of different applications or different equipment, the corresponding testing equipment tests the applications to be tested according to the testing instructions, and the testing efficiency of the applications on a plurality of terminals can be improved.
Drawings
Fig. 1 is a flowchart of an application testing method according to an embodiment of the present application;
FIG. 2 is a flowchart of an application testing method before a call instruction for a target test task in a test task pool is received according to an embodiment of the present application;
fig. 3 is a schematic diagram of a relationship among an application, a scenario, and a task according to an embodiment of the present application;
FIG. 4 is a flowchart of an exemplary process for determining a plurality of applications to be tested and assigning a test scenario to each application to be tested from a plurality of pre-created test scenarios according to an embodiment of the present application;
FIG. 5 is a diagram illustrating a test report of an application to be tested according to an embodiment of the present application;
fig. 6 is a block diagram of an application testing apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic internal structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In recent years, with the popularization of network technology and the development of new application development technology, the application is increasingly widely used, and in a development link or a maintenance update link, application testing is required, and abnormal parts appearing in the testing are corrected to improve the application performance.
In daily development and operation and maintenance work, operation and maintenance personnel need to verify some core functions after system version iteration and fault repair, and the judgment basis for verifying success or failure comprises the following steps: whether the web page normally responds, whether the form is normally created, whether the jump between different pages is normal, and the like.
The existing application testing method is to test multiple functions of an application one by developing a test program for multiple functions of the application and storing the test program on a device to be tested. And calling corresponding test programs for each test device one by one in the test process to perform application test.
However, because the test functions of the applications are many and there is often a need to test the applications on multiple devices simultaneously, the conventional application test method has a problem of low test efficiency.
In view of the above, it is necessary to provide an application testing method capable of improving the testing efficiency of the application.
In the application testing method, a calling instruction aiming at a target testing task in a testing task pool is received, and a testing instruction is generated based on the target testing task, wherein the target testing task comprises the following steps: the method comprises the steps that application identification information of a target application to be tested, target address information of a terminal for storing the target application to be tested and scene identification information of a target test scene are stored, and then a test instruction is sent to target test equipment bound with the target address information; and finally, the target testing equipment positions the target application to be tested according to the application identification information of the target application to be tested, calls a target testing program corresponding to the scene identification information of the target testing scene, and tests the target application to be tested by using the target testing program. According to the application testing method provided by the embodiment of the application testing method, the plurality of testing scenes for the applications to be tested are created in advance, the testing programs corresponding to the testing scenes are stored in the corresponding testing equipment, in the testing process of the applications, the testing instructions are generated according to the testing tasks for the applications on a plurality of different applications or different equipment, the corresponding testing equipment tests the applications to be tested according to the testing instructions, and the testing efficiency of the applications on a plurality of terminals can be improved.
It should be noted that in the application testing method provided in the embodiments of the present application, the execution main body may be an application testing apparatus, and the application testing apparatus may be implemented as part or all of a server in a software, hardware, or a combination of software and hardware. In the following method embodiments, the following method embodiments are all described by taking the example where the execution subject is a server.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. These several specific embodiments may be combined with each other below, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Please refer to fig. 1, which shows a flowchart of an application testing method provided in an embodiment of the present application, and the application testing method can be applied to the above server. As shown in fig. 1, the application test method may include the steps of:
step 101, receiving a call instruction for a target test task in a test task pool, and generating a test instruction based on the target test task.
The test task pool comprises a plurality of pre-established test tasks, and the target test task is one of the plurality of test tasks. The target test task comprises the following steps: the system comprises application identification information of a target application to be tested, target address information of a terminal for storing the target application to be tested and scene identification information of a target test scene.
The application to be tested may be an application to be tested stored in a plurality of terminal devices, or an application to be tested stored in a server, which is not limited in this application.
Optionally, the application to be tested may be a Web application.
The target test scenario includes a test function of at least one application to be tested, for example, if the application to be tested is an OA system, the target test scenario may be: simulating login, form creation, form examination and approval, form recovery, document inquiry or personnel check, and the like.
Optionally, an ID may be generated for the test task, and the ID may be used as an API call entry, and in the case of a call event being triggered, the corresponding test task is called through the API call entry by a calling program.
It should be noted that the application identification information of the application to be tested may be input by an operator, may be sent by another device, or may be actively obtained by the server. That is to say, the server may receive application identification information of the application to be tested, which is input by an operator, may receive application identification information of the application to be tested, which is sent by other devices, and may also actively acquire the application identification information of the application to be tested under a preset rule.
And 102, sending the test instruction to target test equipment bound with the target address information.
The target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program.
The target test equipment stores test programs corresponding to a plurality of test scenes.
Step 103, the target testing device positions the target application to be tested according to the application identification information of the target application to be tested, calls a target testing program corresponding to the scene identification information of the target testing scene, and tests the target application to be tested by using the target testing program.
Optionally, the target test device may be a virtual machine. The test program is stored in the virtual machine, so that the verification requirement can be met, and meanwhile, information safety related accidents such as account secret leakage and the like caused by placing a script on the server are avoided.
Optionally, a zeromq communication and data transmission mode is used between the server and the virtual machine. When the server sends the instruction to the virtual machine, the instruction is realized by using a pub/sub socket of zeromq, all transmitted data are encrypted, and only the virtual machine can decrypt the received data. The virtual machine uses a zeromq req/rep socket to implement when returning data to the server.
According to the application testing method provided by the embodiment of the application testing method, the calling instruction aiming at the target testing task in the testing task pool is received, and the testing instruction is generated based on the target testing task, wherein the target testing task comprises the following steps: the method comprises the steps that application identification information of a target application to be tested, target address information of a terminal for storing the target application to be tested and scene identification information of a target test scene are stored, and then a test instruction is sent to target test equipment bound with the target address information; and finally, the target testing equipment positions the target application to be tested according to the application identification information of the target application to be tested, calls a target testing program corresponding to the scene identification information of the target testing scene, and tests the target application to be tested by using the target testing program. According to the application testing method provided by the embodiment of the application testing method, the plurality of testing scenes for the application to be tested are created in advance, the testing programs corresponding to the testing scenes are stored in the corresponding testing equipment, in the application testing process, for the plurality of different applications or the applications on the plurality of different equipment, only the testing instruction needs to be generated according to the testing task, and the corresponding testing equipment tests the application to be tested according to the testing instruction, so that the testing efficiency of the applications on the plurality of terminals can be improved.
Referring to fig. 2, an embodiment of the present application provides a flowchart of an application testing method before receiving a call instruction for a target test task in a test task pool, and as shown in fig. 2, the technical process may include the following steps:
step 201, determining a plurality of applications to be tested, and distributing a test scene for each application to be tested from a plurality of pre-created test scenes.
Step 202, creating a test task corresponding to each application to be tested according to scene identification information of a test scene distributed to each application to be tested, application identification information of each application to be tested and address information of a terminal storing each application to be tested, and constructing a test task pool based on the created test tasks.
The embodiment is a process for creating a test task, and the creating of the test task may include: creating a test application, creating a test scene, and combining the test scenes according to test requirements to generate a test task. Creating a test application includes: an application is created in the front-end, which informs the server of the address of the virtual machine that needs to be invoked, and at the same time the application needs to specify the system to be verified. Creating a test scenario includes: and a test scene is created, the front end informs the server of verifying the execution path of the script in the virtual machine, and the server encrypts and transmits the verification script to the virtual machine for execution. The scene can be a complete verification process or only the verification of a certain functional point for combination during task creation, when the configured scene starts to execute, the server uniformly generates tasks on the operation platform and encrypts and issues data to the specified virtual machine, and after the virtual machine receives and decrypts the data, the virtual machine mainly runs the test program of the target path under the virtual machine through the running program.
In the actual test process, the applications to be tested are determined, test scenes are distributed to the applications according to test requirements, and the test scenes are combined to generate a test task. For example, if the application to be tested is an OA system, the target test scenario may be: simulating login, form creation, form approval, form recovery, document inquiry or personnel check, etc., then the test task may be a verification form, which includes simulating login, form creation, form approval and form recovery.
In the process of creating, the front end part of the server needs to gradually create applications, scenes and tasks; and the back end of the server processes the data returned by the front end part, communicates with the corresponding virtual machine according to the filled parameters and issues and executes the operation.
The creation of the task may be regarded as integrating the scenes, combining a plurality of scenes under application according to verification requirements, and setting the execution time or period. The developed set of business execution logic can lead a system principal to carry out task arrangement according to needs, lead the verification process to be more flexible and controllable, and is used for managing multi-functional and multi-scenario verification codes of a plurality of sets of systems, thus improving the management efficiency of application test.
As shown in fig. 3, a relationship diagram of an application, a scenario and a task is provided, where an application includes an application system, and an application may have multiple scenarios for the application, and the combination of different scenarios forms a task.
Referring to fig. 4, an exemplary technical process for determining a plurality of applications to be tested and allocating a test scenario to each application to be tested from a plurality of pre-created test scenarios is provided in an embodiment of the present application, as shown in fig. 4, the technical process may include the following steps:
401. and acquiring the address information of each terminal, and determining any application to be tested stored on the terminal according to the address information of each terminal.
402. And distributing the same test scene for each application to be tested.
In a cluster environment, after a single node exits abnormally, verification of other nodes is not influenced, and a single-point fault can be found conveniently in time; when a single node verifies that a certain function is abnormal, the continuous verification of other functions is not influenced, so that a responsible person can quickly locate the problem, and the repair time after the fault occurs is effectively shortened. The algorithm rules involved are as follows: and writing all the addresses to be verified into a list, circularly traversing each address, verifying one by one, embedding an exception capture program into the circulation, and jumping out of the circulation of the current address if an exception occurs.
In the embodiment, any application to be tested stored on the terminal is determined according to the address information of each terminal by acquiring the address information of each terminal; and distributing the same test scene for each application to be tested. For example, the test scenario may be a simulated login scenario, and in order to avoid a single point of failure, all addresses assigned during initialization are taken out for functional verification, and a pre-written login function is first introduced for login. And then checking whether the title of the page is matched with the normal title or not, so that whether the site is normal or not can be checked, if responses such as 502, 404 and the like are met, the title of the site is printed, and a report is sent to a system supervisor for processing through a mail, thereby ensuring the stable operation of the system.
In one embodiment, before receiving a call instruction for a target test task in the test task pool, the method further comprises: distributing corresponding test equipment for each terminal, and binding address information of the terminal with the test equipment distributed for the terminal; the testing equipment distributed for the terminal is used for storing a testing program of the application to be tested in the terminal.
The embodiment refers to that during application testing, corresponding testing equipment is firstly allocated to a terminal of an application to be tested, and address information of the terminal is bound with the testing equipment allocated to the terminal, wherein the testing equipment allocated to the terminal is used for storing a testing program of the application to be tested in the terminal. And corresponding test equipment is allocated for the terminal, and the test program is stored in the test equipment, so that the test efficiency can be improved, and the test safety can be improved.
In one embodiment, storage positions of test programs corresponding to different test scenes on the test equipment are designated, and the designated storage positions are sent to the test equipment, so that the test equipment stores the test programs corresponding to the different test scenes according to the designated storage positions.
The embodiment refers to that before application testing, storage positions of test programs corresponding to different test scenes on the test equipment are designated, the designated storage positions are sent to the test equipment, and then the test equipment stores the test programs corresponding to the different test scenes according to the designated storage positions.
As an embodiment, after receiving a call instruction for a target test task in the test task pool, the method further includes: and acquiring test parameters corresponding to the target test scene, and sending the test parameters to the target test equipment so that the target test equipment adds the test parameters to a target test program.
The present embodiment means that before performing an application test, test parameters for different test applications may be sent to a target test device, so that the target test device adds the test parameters to a target test program.
It should be noted that the test parameters corresponding to the target test scenario may be input by an operator or sent by another terminal, that is, the server may receive the test parameters corresponding to the target test scenario input by the operator or receive the test parameters corresponding to the target test scenario sent by another device. By sending the test parameters to the target test equipment, the target test equipment can add the test parameters to the target test program, and can directly add the corresponding test parameters to the target test program for testing in the same test scene of different applications to be tested.
As one embodiment, receiving a call instruction for a target test task in a test task pool includes: receiving a calling instruction aiming at a target test task in a test task pool after reaching preset test time; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
Wherein, the testing time or the testing period can be set in advance for the testing task. Receiving a calling instruction aiming at a target test task in a test task pool after reaching preset test time; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
As one embodiment, the application to be tested is an application included in an application system, and receiving a call instruction for a target test task in a test task pool includes: after indication information sent by the third-party equipment is received, a call instruction for a target test task in the test task pool is received, wherein the indication information is used for indicating the application system to be changed in program.
The program change refers to a situation that a version of a program of an application system is released or a failure is repaired. After the indication information sent by the third-party equipment is received, the calling program is triggered and a calling instruction of the testing task is generated.
According to one embodiment, the target test program comprises at least one exception capture program, and the exception capture program is used for capturing an exception response condition of the target application to be tested in the process of testing the target application to be tested.
When the business system scene is customized and developed, in the test program, each to three steps can configure abnormal capture according to the probability of error, and the advantage of doing so is that: when an abnormality occurs in the verification process, the printed content can help a system person in charge to quickly locate a link of occurrence of a problem; when the application page has function change or new functions are added, the method can help a developer to quickly locate the code block where the corresponding step is located, and effectively shorten the repair time after the fault occurs. The program is stopped due to more or less faults in the verification process of each function point, the verification of each function point is packaged into a mode convenient to call at the beginning of the design of the scheme, and detailed abnormal capture information is configured for corresponding steps, so that the rapid positioning is facilitated; and when an error is reported, the key node is intelligently captured, and the functional verification of the subsequent address and the operation of the program are not influenced.
As an embodiment, after sending the test instruction to the target test device bound with the target address information, the method further includes: and receiving a test report sent by the target test equipment, wherein the test report is used for indicating the test result of the target application to be tested.
As shown in fig. 5, a schematic diagram of a test report is provided, the test report including target address information; the method further comprises the following steps: and after receiving the test report sent by the target test equipment, calling a mail sending program to send the test report to a terminal storing the target application to be tested according to the target address information through the mail sending program.
After the test task is finished, the test equipment generates a test report and sends the test report to the server, after the server receives the test report sent by the target test equipment, the server calls a mail sending program to send the test report to a terminal storing a target application to be tested according to target address information through the mail sending program, or the server sends the test report to a mailbox of corresponding staff according to prestored mailbox information of the staff, the test process does not need to be monitored at any time, and the test result can be obtained only by receiving the test report through the mail. Meanwhile, after the version of the application is released and the fault is repaired, the core functions of the application of the multiple systems can be automatically verified, manual verification is not needed in the whole process, only the mails of the operation reports need to be waited, and remarkable effects on the aspects of saving manpower and improving efficiency are achieved.
In order to ensure information safety and carry out normal mail notification, a corresponding mailbox address and a mail sending script are configured on the server, and the mail sending script can be triggered by a corresponding request. In order to strengthen the information security of the system, corresponding application ID and identity identification need to be filled in when sending the mail.
As one embodiment, the test report includes abnormal indication information of the target application to be tested in the target test scenario, and the method further includes: detecting whether the handle sequence of the target application to be tested is consistent with the page switching sequence of the target application to be tested in the testing process; if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in a target test scene in the current handle list; and taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
In this embodiment, a situation that page switching fails may occur in the test process of the application, in this case, the list storing the handles may be copied by judging the number of the handles in the list, and at this time, a button in the first page is clicked, and the second page is popped up. And taking out the handle in the handle list, if the taken out handle is not in the list which is just copied, indicating that the taken out handle is the handle of the new page, and then switching in through the handle to finish the access to the new page, thereby solving the problem that the code sometimes fails in page switching.
The embodiment of the application also provides an application testing method, which comprises the following steps:
(1) and distributing corresponding test equipment for each terminal, and binding the address information of the terminal with the test equipment distributed for the terminal.
(2) And appointing the storage positions of the test programs corresponding to different test scenes on the test equipment, and sending the appointed storage positions to the test equipment so that the test equipment stores the test programs corresponding to different test scenes according to the appointed storage positions.
(3) Determining a plurality of applications to be tested, and distributing a test scene for each application to be tested from a plurality of pre-established test scenes.
(4) And acquiring the address information of each terminal, and determining any application to be tested stored on the terminal according to the address information of each terminal.
(5) And distributing the same test scene for each application to be tested.
(6) And establishing a test task corresponding to each application to be tested according to the scene identification information of the test scene distributed to each application to be tested, the application identification information of each application to be tested and the address information of the terminal storing each application to be tested, and establishing a test task pool based on the established test tasks.
(7) And receiving a calling instruction aiming at the target test task in the test task pool, and generating a test instruction based on the target test task.
(8) And acquiring test parameters corresponding to the target test scene, and sending the test parameters to the target test equipment so that the target test equipment adds the test parameters to the target test program.
(9) Receiving a calling instruction aiming at a target test task in a test task pool after reaching preset test time; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
(10) After indication information sent by the third-party equipment is received, a call instruction for a target test task in the test task pool is received, wherein the indication information is used for indicating the application system to be changed in program.
(11) And sending the test instruction to the target test equipment bound with the target address information.
(12) The target testing equipment positions the target application to be tested according to the application identification information of the target application to be tested, calls a target testing program corresponding to the scene identification information of the target testing scene, and tests the target application to be tested by using the target testing program.
(13) And receiving a test report sent by the target test equipment, wherein the test report is used for indicating the test result of the target application to be tested.
(14) And after receiving the test report sent by the target test equipment, calling a mail sending program to send the test report to the terminal storing the target application to be tested according to the target address information through the mail sending program.
(15) And detecting whether the handle sequence of the target application to be tested is consistent with the page switching sequence of the target application to be tested in the testing process.
(16) And if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in a target test scene in the current handle list.
(17) And taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
According to the application testing method provided by the embodiment of the application testing method, the calling instruction aiming at the target testing task in the testing task pool is received, and the testing instruction is generated based on the target testing task, wherein the target testing task comprises the following steps: the method comprises the steps that application identification information of a target application to be tested, target address information of a terminal for storing the target application to be tested and scene identification information of a target test scene are stored, and then a test instruction is sent to target test equipment bound with the target address information; and finally, the target testing equipment positions the target application to be tested according to the application identification information of the target application to be tested, calls a target testing program corresponding to the scene identification information of the target testing scene, and tests the target application to be tested by using the target testing program. According to the application testing method provided by the embodiment of the application testing method, the plurality of testing scenes for the application to be tested are created in advance, the testing programs corresponding to the testing scenes are stored in the corresponding testing equipment, in the application testing process, for the plurality of different applications or the applications on the plurality of different equipment, only the testing instruction needs to be generated according to the testing task, and the corresponding testing equipment tests the application to be tested according to the testing instruction, so that the testing efficiency of the applications on the plurality of terminals can be improved.
According to the method and the system, a universal framework is developed according to the verification requirements of different service systems, so that the codes can be quickly adapted to different systems, and the subsequent development efficiency is improved. Because the emphasis points of each set of service system guarantee are different, the functions needing verification are greatly different, when a plurality of systems are faced and automatic verification codes of different applications need to be developed, the framework provides a universal development process, the change-related place is mainly a part for core function verification, other parts such as browser login control, parameter transmission, abnormal capture and the like basically do not need to be changed too much, the development efficiency is greatly improved, the development duration is effectively shortened, management is realized by less manpower, and the stability of the systems is guaranteed. The reproducible framework used by the application is established on the basis of object-oriented programming, a verified service system is taken as a core object, and the characteristics and the change rule of the object are abstracted through the idea of the object-oriented programming, so that the specific function is realized. The method can greatly reduce redundant codes, conveniently expand the existing codes, improve the coding efficiency, reduce the error probability and reduce the maintenance difficulty.
Furthermore, the application testing method provided by the embodiment of the application automatically completes the verification task without manually verifying the application after the application system is subjected to fault processing and the version is released, and does not omit key functions; single point of failure is effectively avoided, and all addresses under the same service system can be verified; the use scenes are enriched, and the scheme is suitable for scenes such as online pre-test, service guarantee, fault processing, version release and the like; the triggering modes are various, the requirements of different scenes can be met, and the triggering modes comprise manual triggering, timing triggering, periodic triggering and API triggering; the front-end interface is easy to manage, the running of a plurality of system tasks is not influenced mutually, and the hierarchy is clear; a universal development framework is developed, codes do not need to be written from the head, only part of the codes of the core function verification are needed to be changed, and the universal development framework can be put into use, can be quickly adapted to different service systems, improves the development efficiency and reduces the maintenance cost; whether a single-point fault exists in a service system can be found in time, and a key node is intelligently captured when an error is reported, so that the functional verification of a subsequent address and the operation of a program are not influenced; the cooperative work with the automatic version issuing, fault processing and monitoring system and the operation platform is realized, and the operation and maintenance automation system is assisted to be more comprehensive.
As shown in fig. 6, an application testing apparatus 60 according to an embodiment of the present application includes: a generating module 61 and a sending module 62; the generating module 61 is configured to receive a call instruction for a target test task in the test task pool, and generate a test instruction based on the target test task, where the target test task includes: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene; a sending module 62, configured to send the test instruction to the target test device bound to the target address information; the target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program.
In one embodiment, the apparatus further includes a creating module 63, configured to determine a plurality of applications to be tested, and assign a test scenario to each application to be tested from a plurality of pre-created test scenarios; and establishing a test task corresponding to each application to be tested according to the scene identification information of the test scene distributed to each application to be tested, the application identification information of each application to be tested and the address information of the terminal storing each application to be tested, and establishing a test task pool based on the established test tasks.
In an embodiment, the creating module 63 is further configured to obtain address information of each terminal, and determine any application to be tested stored on the terminal according to the address information of each terminal; and distributing the same test scene for each application to be tested.
In one embodiment, the apparatus further includes an allocating module 64, configured to allocate corresponding test devices to each terminal, and bind address information of the terminal with the test devices allocated to the terminal;
the testing equipment distributed for the terminal is used for storing a testing program of the application to be tested in the terminal.
In an embodiment, the allocating module 64 is further configured to designate storage locations of the test programs corresponding to different test scenarios on the test equipment, and send the designated storage locations to the test equipment, so that the test equipment stores the test programs corresponding to different test scenarios according to the designated storage locations.
In one embodiment, the apparatus further includes an obtaining module 65, which obtains a test parameter corresponding to the target test scenario and sends the test parameter to the target test device, so that the target test device adds the test parameter to the target test program.
In one embodiment, the apparatus further includes a receiving module 66, configured to receive a call instruction for a target test task in the test task pool after a preset test time is reached; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
In one embodiment, the receiving module 66 is further configured to receive a call instruction for a target test task in the test task pool after receiving indication information sent by the third-party device, where the indication information is used to indicate that a program change occurs in the application system.
In one embodiment, the target test program comprises at least one exception capture program, and the exception capture program is used for capturing and processing an exception response condition of the target application to be tested in the process of testing the target application to be tested.
In an embodiment, the receiving module 66 is further configured to receive a test report sent by the target testing device, where the test report is used to indicate a test result of the target application to be tested.
In one embodiment, the apparatus further includes a calling module 67, configured to, after receiving the test report sent by the target testing device, call a mailing program to send, by the mailing program, the test report to the terminal storing the target application to be tested according to the target address information.
In one embodiment, the apparatus further includes a detecting module 68, configured to detect whether a handle sequence of the target application to be tested is consistent with a page switching sequence of the target application to be tested in the testing process; if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in a target test scene in the current handle list; and taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
The application testing device provided by the embodiment of the application testing method can realize the method embodiment, the realization principle and the technical effect are similar, and the details are not repeated.
For the specific definition of the application testing device, reference may be made to the above definition of the application testing method, which is not described herein again. The modules in the application testing device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the server, or can be stored in a memory in the server in a software form, so that the server can call and execute operations corresponding to the modules.
Fig. 7 is a schematic internal structural diagram of a server according to an embodiment of the present application. As shown in fig. 7, the server includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement an application testing method provided in the above embodiments. The internal memory provides a cached execution environment for the operating system and computer programs in the non-volatile storage medium.
It will be appreciated by those skilled in the art that the architecture shown in fig. 7 is a block diagram of only a portion of the architecture associated with the present application, and is not intended to limit the servers to which the present application may be applied, and that a particular server may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a server comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
receiving a call instruction aiming at a target test task in a test task pool, and generating a test instruction based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene; sending the test instruction to target test equipment bound with the target address information; the target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program.
In one embodiment, the processor, when executing the computer program, performs the steps of: determining a plurality of applications to be tested, and distributing a test scene for each application to be tested from a plurality of pre-established test scenes; and establishing a test task corresponding to each application to be tested according to the scene identification information of the test scene distributed to each application to be tested, the application identification information of each application to be tested and the address information of the terminal storing each application to be tested, and establishing a test task pool based on the established test tasks.
In one embodiment, the processor, when executing the computer program, performs the steps of: acquiring address information of each terminal, and determining any application to be tested stored on the terminal according to the address information of each terminal; and distributing the same test scene for each application to be tested.
In one embodiment, the processor, when executing the computer program, performs the steps of: distributing corresponding test equipment for each terminal, and binding address information of the terminal with the test equipment distributed for the terminal; the testing equipment distributed for the terminal is used for storing a testing program of the application to be tested in the terminal.
In one embodiment, the processor, when executing the computer program, performs the steps of: and appointing the storage positions of the test programs corresponding to different test scenes on the test equipment, and sending the appointed storage positions to the test equipment so that the test equipment stores the test programs corresponding to different test scenes according to the appointed storage positions.
In one embodiment, the processor, when executing the computer program, performs the steps of: and acquiring test parameters corresponding to the target test scene, and sending the test parameters to the target test equipment so that the target test equipment adds the test parameters to the target test program.
In one embodiment, the processor, when executing the computer program, performs the steps of: receiving a calling instruction aiming at a target test task in a test task pool after reaching preset test time; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
In one embodiment, the processor, when executing the computer program, performs the steps of: after indication information sent by the third-party equipment is received, a call instruction for a target test task in the test task pool is received, wherein the indication information is used for indicating the application system to be changed in program.
In one embodiment, the processor, when executing the computer program, performs the steps of: the target test program comprises at least one exception capture program, and the exception capture program is used for capturing and processing the exception response condition of the target application to be tested in the process of testing the target application to be tested.
In one embodiment, the processor, when executing the computer program, performs the steps of: and receiving a test report sent by the target test equipment, wherein the test report is used for indicating the test result of the target application to be tested.
In one embodiment, the processor, when executing the computer program, performs the steps of: and after receiving the test report sent by the target test equipment, calling a mail sending program to send the test report to a terminal storing the target application to be tested according to the target address information through the mail sending program.
In one embodiment, the processor when executing the computer program implements the steps of: detecting whether the handle sequence of the target application to be tested is consistent with the page switching sequence of the target application to be tested in the testing process; if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in a target test scene in the current handle list; and taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
The implementation principle and technical effect of the server provided in this embodiment are similar to those of the method embodiments described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
receiving a call instruction aiming at a target test task in a test task pool, and generating a test instruction based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene; sending the test instruction to target test equipment bound with the target address information; the target testing device is used for positioning the target application to be tested according to the application identification information of the target application to be tested, calling a target testing program corresponding to the scene identification information of the target testing scene, and testing the target application to be tested by using the target testing program.
In one embodiment, the computer program when executed by the processor implements the steps of: determining a plurality of applications to be tested, and distributing a test scene for each application to be tested from a plurality of pre-established test scenes; and establishing a test task corresponding to each application to be tested according to the scene identification information of the test scene distributed to each application to be tested, the application identification information of each application to be tested and the address information of the terminal storing each application to be tested, and establishing a test task pool based on the established test tasks.
In one embodiment, the computer program when executed by the processor implements the steps of: acquiring address information of each terminal, and determining any application to be tested stored on the terminal according to the address information of each terminal; and distributing the same test scene for each application to be tested.
In one embodiment, the computer program when executed by the processor implements the steps of: distributing corresponding test equipment for each terminal, and binding address information of the terminal with the test equipment distributed for the terminal; the testing equipment distributed for the terminal is used for storing a testing program of the application to be tested in the terminal.
In one embodiment, the computer program when executed by the processor implements the steps of: and appointing the storage positions of the test programs corresponding to different test scenes on the test equipment, and sending the appointed storage positions to the test equipment so that the test equipment stores the test programs corresponding to different test scenes according to the appointed storage positions.
In one embodiment, the computer program when executed by the processor implements the steps of: and acquiring test parameters corresponding to the target test scene, and sending the test parameters to the target test equipment so that the target test equipment adds the test parameters to the target test program.
In one embodiment, the computer program when executed by the processor implements the steps of: receiving a calling instruction aiming at a target test task in a test task pool after reaching preset test time; or, periodically receiving a call instruction for the target test task in the test task pool according to a preset test period.
In one embodiment, the computer program when executed by a processor implements the steps of: after indication information sent by the third-party equipment is received, a call instruction for a target test task in the test task pool is received, wherein the indication information is used for indicating the application system to be subjected to program change.
In one embodiment, the computer program when executed by the processor implements the steps of: the target test program comprises at least one exception capture program, and the exception capture program is used for capturing and processing the exception response condition of the target application to be tested in the process of testing the target application to be tested.
In one embodiment, the computer program when executed by the processor implements the steps of: and receiving a test report sent by the target test equipment, wherein the test report is used for indicating the test result of the target application to be tested.
In one embodiment, the computer program when executed by the processor implements the steps of: and after receiving the test report sent by the target test equipment, calling a mail sending program to send the test report to a terminal storing the target application to be tested according to the target address information through the mail sending program.
In one embodiment, the computer program when executed by the processor implements the steps of: detecting whether the handle sequence of the target application to be tested is consistent with the page switching sequence of the target application to be tested in the testing process; if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in a target test scene in the current handle list; and taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. 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 M forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (SyMchliMk) DRAM (SLDRAM), RaMbus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not 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 (15)

1. An application testing method, the method comprising:
receiving a call instruction aiming at a target test task in a test task pool, and generating a test instruction based on the target test task, wherein the target test task comprises the following steps: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene;
sending the test instruction to target test equipment bound with the target address information;
the test instruction is used for instructing the target test equipment to position the target application to be tested according to the application identification information of the target application to be tested, calling a target test program corresponding to the scene identification information of the target test scene, and testing the target application to be tested by using the target test program.
2. The method of claim 1, wherein prior to receiving the call instruction for the target test task in the test task pool, the method further comprises:
determining a plurality of applications to be tested, and distributing a test scene for each application to be tested from a plurality of pre-established test scenes;
and creating a test task corresponding to each application to be tested according to the scene identification information of the test scene distributed to each application to be tested, the application identification information of each application to be tested and the address information of the terminal storing each application to be tested, and constructing the test task pool based on the created test tasks.
3. The method of claim 2, wherein determining a plurality of applications to be tested, assigning a test scenario to each application to be tested from a plurality of pre-created test scenarios comprises:
acquiring address information of each terminal, and determining any application to be tested stored on the terminal according to the address information of each terminal;
and distributing the same test scene for each application to be tested.
4. The method according to any one of claims 1 to 3, wherein before receiving the call instruction for the target test task in the test task pool, the method further comprises:
distributing corresponding test equipment for each terminal, and binding address information of the terminal with the test equipment distributed for the terminal;
the testing equipment distributed for the terminal is used for storing a testing program of the application to be tested in the terminal.
5. The method of claim 4, wherein after assigning the corresponding test device to each terminal, the method further comprises:
and appointing the storage positions of the test programs corresponding to different test scenes on the test equipment, and sending the appointed storage positions to the test equipment so that the test equipment stores the test programs corresponding to different test scenes according to the appointed storage positions.
6. The method according to any one of claims 1 to 3, wherein after receiving a call instruction for a target test task in the test task pool, the method further comprises:
and acquiring test parameters corresponding to the target test scene, and sending the test parameters to the target test equipment so that the target test equipment adds the test parameters to the target test program.
7. The method according to any one of claims 1 to 3, wherein the receiving a call instruction for a target test task in the test task pool comprises:
after the preset testing time is reached, receiving a calling instruction aiming at the target testing task in the testing task pool; or, according to a preset test period, periodically receiving a call instruction for the target test task in the test task pool.
8. The method according to any one of claims 1 to 3, wherein the application to be tested is an application included in an application system, and the receiving of the call instruction for the target test task in the test task pool comprises:
after indication information sent by third-party equipment is received, receiving a calling instruction aiming at a target test task in a test task pool, wherein the indication information is used for indicating the application system to generate program change.
9. The method as claimed in any one of claims 1 to 3, wherein the target test program includes at least one exception capture program, and the exception capture program is used for capturing an exception response condition of the target application to be tested in the process of testing the target application to be tested.
10. The method of any of claims 1 to 3, wherein after sending the test instruction to the target test device bound to the target address information, the method further comprises:
and receiving a test report sent by the target test equipment, wherein the test report is used for indicating a test result of the target application to be tested.
11. The method of claim 10, wherein the test report includes the target address information;
the method further comprises the following steps: and after receiving the test report sent by the target test equipment, calling a mail sending program so as to send the test report to a terminal storing the target application to be tested according to the target address information through the mail sending program.
12. The method of claim 10, wherein the test report includes anomaly indication information of the target application to be tested in the target test scenario, the method further comprising:
detecting whether the handle sequence of the target application to be tested is consistent with the page switching sequence of the target application to be tested in the testing process;
if the handle sequence is inconsistent with the page switching sequence, acquiring a current handle list of the target application to be tested, and searching each handle generated by page switching of the target application to be tested in the target test scene in the current handle list;
and taking the handle which is not in the handle list in each searched handle as a switching handle, and entering a target page of the application to be tested according to the switching handle.
13. An application testing apparatus, the apparatus comprising:
the generation module is used for receiving a call instruction aiming at a target test task in a test task pool and generating a test instruction based on the target test task, wherein the target test task comprises: the method comprises the steps of obtaining application identification information of a target application to be tested, storing target address information of a terminal of the target application to be tested and scene identification information of a target test scene;
the sending module is used for sending the test instruction to target test equipment bound with the target address information; the test instruction is used for instructing the target test equipment to position the target application to be tested according to the application identification information of the target application to be tested, calling a target test program corresponding to the scene identification information of the target test scene, and testing the target application to be tested by using the target test program.
14. A server, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements an application testing method according to any one of claims 1 to 12.
15. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the application testing method according to any one of claims 1 to 12.
CN202210496233.XA 2022-05-09 2022-05-09 Application testing method, device, equipment and storage medium Active CN114579473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210496233.XA CN114579473B (en) 2022-05-09 2022-05-09 Application testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210496233.XA CN114579473B (en) 2022-05-09 2022-05-09 Application testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114579473A true CN114579473A (en) 2022-06-03
CN114579473B CN114579473B (en) 2022-09-02

Family

ID=81767805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210496233.XA Active CN114579473B (en) 2022-05-09 2022-05-09 Application testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114579473B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116955044A (en) * 2023-09-12 2023-10-27 北京开源芯片研究院 Method, device, equipment and medium for testing cache working mechanism of processor

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220341A1 (en) * 2006-02-28 2007-09-20 International Business Machines Corporation Software testing automation framework
CN104461856A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Performance test method, device and system based on cloud computing platform
CN107590075A (en) * 2017-09-19 2018-01-16 郑州云海信息技术有限公司 A kind of method for testing software and device
US20180137286A1 (en) * 2016-11-16 2018-05-17 International Business Machines Corporation Method and apparatus for security testing of application flows that cannot be automated through http replay
CN108108297A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 The method and apparatus of automatic test
WO2020238066A1 (en) * 2019-05-24 2020-12-03 平安国际智慧城市科技股份有限公司 Software pressure test method and apparatus, and storage medium and server
CN112597020A (en) * 2020-12-24 2021-04-02 平安普惠企业管理有限公司 Interface testing method and device, computer equipment and storage medium
CN113886262A (en) * 2021-10-19 2022-01-04 平安不动产有限公司 Software automation test method and device, computer equipment and storage medium
CN114003421A (en) * 2021-10-22 2022-02-01 苏州浪潮智能科技有限公司 Virtual machine timeout mechanism testing method, system, terminal and storage medium
CN114253864A (en) * 2022-01-07 2022-03-29 挂号网(杭州)科技有限公司 Service testing method and device, electronic equipment and storage medium
CN114385485A (en) * 2021-12-15 2022-04-22 连连(杭州)信息技术有限公司 Interface test method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070220341A1 (en) * 2006-02-28 2007-09-20 International Business Machines Corporation Software testing automation framework
CN104461856A (en) * 2013-09-22 2015-03-25 阿里巴巴集团控股有限公司 Performance test method, device and system based on cloud computing platform
US20180137286A1 (en) * 2016-11-16 2018-05-17 International Business Machines Corporation Method and apparatus for security testing of application flows that cannot be automated through http replay
CN108108297A (en) * 2016-11-25 2018-06-01 腾讯科技(深圳)有限公司 The method and apparatus of automatic test
CN107590075A (en) * 2017-09-19 2018-01-16 郑州云海信息技术有限公司 A kind of method for testing software and device
WO2020238066A1 (en) * 2019-05-24 2020-12-03 平安国际智慧城市科技股份有限公司 Software pressure test method and apparatus, and storage medium and server
CN112597020A (en) * 2020-12-24 2021-04-02 平安普惠企业管理有限公司 Interface testing method and device, computer equipment and storage medium
CN113886262A (en) * 2021-10-19 2022-01-04 平安不动产有限公司 Software automation test method and device, computer equipment and storage medium
CN114003421A (en) * 2021-10-22 2022-02-01 苏州浪潮智能科技有限公司 Virtual machine timeout mechanism testing method, system, terminal and storage medium
CN114385485A (en) * 2021-12-15 2022-04-22 连连(杭州)信息技术有限公司 Interface test method, device, equipment and storage medium
CN114253864A (en) * 2022-01-07 2022-03-29 挂号网(杭州)科技有限公司 Service testing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116955044A (en) * 2023-09-12 2023-10-27 北京开源芯片研究院 Method, device, equipment and medium for testing cache working mechanism of processor
CN116955044B (en) * 2023-09-12 2023-12-22 北京开源芯片研究院 Method, device, equipment and medium for testing cache working mechanism of processor

Also Published As

Publication number Publication date
CN114579473B (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN108710673B (en) Method, system, computer device and storage medium for realizing high availability of database
CN106612204B (en) Service checking method and device
CN110673993B (en) Fault injection method, platform and system
CN110764998A (en) Data comparison method, device and equipment based on Django framework and storage medium
CN110704312A (en) Pressure testing method and device, computer equipment and storage medium
CN110990036A (en) OTA upgrading method and device for power change cabinet, power change equipment and storage medium
CN110221845A (en) Using dispositions method, device, equipment and medium
CN114579473B (en) Application testing method, device, equipment and storage medium
CN109582583B (en) Software testing method, device, computer equipment and storage medium
CN111258591A (en) Program deployment task execution method and device, computer equipment and storage medium
CN113986733A (en) Jar package based performance test method, device, equipment and storage medium
CN110727575A (en) Information processing method, system, device and storage medium
CN114546837A (en) Interface test method, device, equipment and storage medium
CN106294036A (en) A kind of hardware fault verification method, device and client
CN112559352A (en) Interface test method, device, equipment and storage medium
CN112540916A (en) Automatic rerun method and device for failed case, computer equipment and storage medium
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN111159025A (en) Application program interface testing method and device, computer equipment and storage medium
CN112737942B (en) Service route switching method, device, equipment and medium
CN111338848B (en) Failure application copy processing method and device, computer equipment and storage medium
CN114328275A (en) System testing method, device, computer equipment and storage medium
CN114385498A (en) Performance test method, system, computer equipment and readable storage medium
CN113778551A (en) Method and device for remotely modifying parameters based on multiple clients and computer equipment
CN110198249B (en) Power distribution automation system testing method and system
CN112751782A (en) Flow switching method, device, equipment and medium based on multi-activity data center

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant