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

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

Info

Publication number
CN110806981B
CN110806981B CN201911072087.2A CN201911072087A CN110806981B CN 110806981 B CN110806981 B CN 110806981B CN 201911072087 A CN201911072087 A CN 201911072087A CN 110806981 B CN110806981 B CN 110806981B
Authority
CN
China
Prior art keywords
test
tested
application program
matched
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911072087.2A
Other languages
Chinese (zh)
Other versions
CN110806981A (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.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN201911072087.2A priority Critical patent/CN110806981B/en
Publication of CN110806981A publication Critical patent/CN110806981A/en
Application granted granted Critical
Publication of CN110806981B publication Critical patent/CN110806981B/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/3684Test management for test design, e.g. generating new test cases
    • 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

Abstract

The embodiment of the invention discloses an application program testing method, device, equipment and storage medium. The method comprises the following steps: determining an alternative test mode matched with the target user according to the target test scene selected by the target user in the alternative test scenes, wherein the alternative test scenes comprise: comprehensive testing and stability testing; acquiring a target test mode selected by a target user in alternative test modes; acquiring an installation package of an application program to be tested matched with a target user; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data; and generating a test report matched with the application program to be tested according to the test data. The embodiment of the invention can effectively reduce the test cost and effectively enlarge the test coverage.

Description

Application program testing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an application program testing method, device, equipment and storage medium.
Background
Before the application program is released or updated on line, the adaptation test of the program and the equipment model is required to be carried out so as to ensure that the application program can normally function and stably run on each mainstream equipment.
In the prior art, adaptation tests are generally performed locally by research and development and test teams in enterprises. A large number of test devices of different types are purchased by an enterprise, an application program is installed on the test devices, relevant tests of functions and stability are manually carried out, and problems are recorded and submitted.
The prior art adaptation test scheme suffers from the following drawbacks: first, the test cost is high. The test cost is divided into three parts, namely material cost, labor cost and time cost. Each enterprise needs to purchase a large amount of test equipment, resulting in high material costs for testing. The test requires manual testing by a dedicated person, and the labor cost is increased. Because the test is performed by clicking operation manually by someone, the number of types of equipment to be tested is large, and when a problem occurs, a tester needs to manually record the problem and acquire information such as related stacks, the test time is long, and the time cost is high. Secondly, manual intervention is needed, and the coverage range is limited. Since the test needs to be performed manually, the coverage for the adaptation, especially the stability test, is also limited.
Disclosure of Invention
Embodiments of the present invention provide an application program testing method, apparatus, device, and storage medium, so as to optimize an existing application program testing method, effectively reduce testing cost, and enlarge a testing coverage.
In a first aspect, an embodiment of the present invention provides an application program testing method, including:
determining an alternative test mode matched with the target user according to the target test scene selected by the target user in the alternative test scenes, wherein the alternative test scenes comprise: comprehensive testing and stability testing;
acquiring a target test mode selected by a target user in alternative test modes;
acquiring an installation package of an application program to be tested matched with a target user;
according to a target test mode and an application program to be tested, obtaining test information matched with the target test mode and a device model to be tested, wherein the test information comprises test parameters, a test flow script file and/or login parameters;
determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data;
and generating a test report matched with the application program to be tested according to the test data.
In a second aspect, an embodiment of the present invention further provides an application program testing apparatus, including:
the candidate mode determining module is used for determining a candidate test mode matched with the target user according to a target test scene selected by the target user in the candidate test scenes, wherein the candidate test scenes comprise: comprehensive testing and stability testing;
the test mode acquisition module is used for acquiring a target test mode selected by a target user in alternative test modes;
the program package acquisition module is used for acquiring an installation package of the application program to be tested, which is matched with the target user;
the information acquisition module is used for acquiring test information matched with the target test mode and the model of the equipment to be tested according to the target test mode and the application program to be tested, wherein the test information comprises test parameters, a test flow script file and/or login parameters;
the testing module is used for determining the to-be-tested equipment matched with the to-be-tested application program according to the model of the to-be-tested equipment, calling the to-be-tested equipment according to the testing information to test and recording testing data;
and the test report generating module is used for generating a test report matched with the application program to be tested according to the test data.
In a third aspect, an embodiment of the present invention further provides a computer device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the application testing method according to the embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the application program testing method according to the embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the alternative test mode matched with the target user is determined according to the target test scene selected by the target user in the alternative test scenes, wherein the alternative test scenes comprise: the method comprises the steps of comprehensively testing and stably testing, then obtaining a target testing mode selected by a target user in alternative testing modes and an installation package of an application program to be tested matched with the target user, obtaining testing information matched with the target testing mode and a model of equipment to be tested, determining the equipment to be tested matched with the application program to be tested according to the model of the equipment to be tested, calling the equipment to be tested according to the testing information, recording testing data, generating a testing report matched with the application program to be tested, calling equipment of a specified model to automatically test according to the testing information matched with each testing mode, effectively reducing testing cost and effectively expanding the coverage range of testing.
Drawings
Fig. 1a is a flowchart of an application program testing method according to an embodiment of the present invention;
fig. 1b is a schematic diagram of an installation package upload page of an application program to be tested according to an embodiment of the present invention;
fig. 1c is a schematic diagram of an installation package upload page of an application program to be tested according to an embodiment of the present invention;
FIG. 1d is a diagram illustrating a test report according to an embodiment of the present invention;
FIG. 1e is a diagram illustrating a test report according to an embodiment of the present invention;
FIG. 1f is a diagram illustrating a test report according to an embodiment of the present invention;
fig. 2 is a flowchart of an application testing method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an application program testing method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an application test apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant elements of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1a is a flowchart of an application program testing method according to an embodiment of the present invention. The embodiment may be applicable to the case of performing adaptation test on the application program, and the method may be performed by an application program testing apparatus provided in the embodiment of the present invention, which may be implemented in a software and/or hardware manner, and may be generally integrated in a computer device. Such as a server. As shown in fig. 1a, the method of this embodiment specifically includes:
step 101, determining an alternative test mode matched with a target user according to a target test scenario selected by the target user in alternative test scenarios, wherein the alternative test scenario comprises: full test and stability test.
The adaptation test of the application program is divided into two test scenes, namely a comprehensive test scene and a stability test scene. And comprehensively testing whether each function flow in the application program is normal on each equipment model. The stability test is used to test the stability of an application program on each device model under various extreme operating environments.
Optionally, the user sends the target test scenario selected from the candidate test scenarios to the server through the client. And the server determines an alternative test mode matched with the target user according to the target test scene selected by the target user in the alternative test scenes.
Optionally, determining an alternative test mode matched with the target user according to the target test scenario selected by the target user from the alternative test scenarios may include: according to the comprehensive test selected by the target user in the alternative test scene, determining an alternative test mode matched with the target user, wherein the alternative test mode comprises the following steps: full traversal control testing, script flow testing, and composite full testing.
The overall test corresponds to three test modes: full traversal control testing, script flow testing, and composite full testing.
The full traversal control test refers to a test mode of clicking all control links in an application program once and striving to comprehensively cover all functions. The full traversal control test may click blanket to the level of the page. The user needs to set the number of layers to be traversed and the single test duration. And when all the hierarchies are completely traversed or the time length of single test is reached, the test of the full traversal control is completed.
Optionally, the full-traversal control test is performed, and a user needs to upload an installation package of an application program to be tested to the server first, and then set test parameters for the full-traversal control test. The test parameters set for the full traversal control test include: the method comprises the following steps of single machine testing time length, traversal depth (default 2 layers), the number of times of the most breakdown (exceeding automatic termination test), installation overtime, notification bar viewing, secondary starting after suspension and application program interference. If the login operation is required in the test process, the user can set login parameters for login. The login parameters may be a set of account passwords. The account password set comprises an account for login and a login password matched with the account. The user may then select the device model to be tested in a device library provided by the server. The server calls equipment of a specified machine type to automatically carry out full-traversal control test according to the test parameters configured by the user and the machine type of the equipment to be tested selected by the user, records test data, and automatically generates a test report according to the test data when the test is finished.
The script flow test refers to a test mode of testing a flow script file and calling equipment of a specified machine type to automatically test according to a flow specified by the test flow script file.
Optionally, the script flow test is performed, and the user needs to upload the installation package of the application program to be tested to the server first, or select the installation package of the application program to be tested from the application program packages uploaded to the server. And then, recording a test flow script file by the user through the transaction script recorder, and uploading the test flow script file to the server. The user can then select the model of the device to be tested in a library of devices provided by the server. The server calls equipment of a specified machine type according to the test flow script file and the flow specified by the test flow script file to automatically test, records test data, and automatically generates a test report according to the test data when the test is finished.
The composite full test is a combination of a full traversal control test and a script flow test.
Optionally, a composite comprehensive test is performed, and a user needs to upload an installation package of an application program to be tested to the server, record a test flow script file through the transaction script recorder, and upload the test flow script file to the server. The user then sets the test parameters. If the login operation is required in the test process, the user can set login parameters for login. The user then selects the device model to be tested in a device library provided by the server. The server calls equipment of a specified machine type to automatically perform full-traversal control test according to test parameters configured by a user and the machine type of the equipment to be tested selected by the user, records test data, automatically generates a test report according to the test data when the test is finished, calls the equipment of the specified machine type to automatically perform the test according to a flow specified by the test flow script file according to the test flow script file, records the test data, and automatically generates the test report according to the test data when the test is finished.
Optionally, determining an alternative test mode matched with the target user according to the target test scenario selected by the target user in the alternative test scenarios may include: according to the stability test selected by the target user in the candidate test scene, determining a candidate test mode matched with the target user, wherein the candidate test mode comprises the following steps: monkey testing and composite stability testing.
The stability test corresponds to two test modes: monkey testing and composite stability testing.
The Monkey test refers to a test mode for performing a pressure test on an application program by simulating operations of a user such as touching a screen, sliding a mouse, and pressing keys. The Monkey test is used for verifying the stability condition of the application program on different equipment models. For example, by simulating an irregular, non-logical click operation, an application is subjected to a high-intensity random click test.
Optionally, the Monkey test is performed, and the user needs to upload the installation package of the application program to be tested to the server first, and then set the test parameters set for the Monkey test. The test parameters set for Monkey testing can include stand-alone test duration, click intervals, whether restarting is encountered due to errors, and application program interference. If the login operation is required in the test process, the user can set login parameters for login. The user then selects the model of the device to be tested in a library of devices provided by the server. The server calls equipment of a specified machine type to automatically and irregularly click at will according to the testing parameters configured by the user and the machine type of the equipment to be tested selected by the user, records stability data in the testing process and generates a stability testing report when the testing is finished.
The composite stability test is a combination of script flow testing and Monkey testing.
Optionally, the composite stability test is performed, and the user needs to upload the installation package of the application program to be tested to the server, record the test flow script file through the transaction script recorder, and upload the test flow script file to the server. The user then sets the test parameters. If the login operation is required in the test process, the user can set login parameters for login. The user then selects the device model to be tested in a device library provided by the server. The server calls the equipment of the appointed model to automatically and irregularly click according to the testing parameters configured by the user and the model of the equipment to be tested selected by the user, and simultaneously calls the equipment of the appointed model to automatically test according to the flow specified by the testing flow script file according to the testing flow script file, records the stability data in the whole testing process, and generates a stability testing report when the test is completed.
And 102, acquiring a target test mode selected by a target user in the alternative test modes.
Optionally, the server obtains a target test mode selected by the target user in the full traversal control test, the script flow test and the composite full test.
Optionally, the server obtains a target test mode selected by the target user in the Monkey test and the composite stability test.
And 103, acquiring an installation package of the application program to be tested, which is matched with the target user.
Optionally, obtaining an installation package of an application to be tested, which is matched with the target user, includes: acquiring an installation package of an application program to be tested uploaded by a target user; or acquiring the installation package of the application program to be tested selected by the target user in the alternative installation packages.
Optionally, the alternative installation package may be an installation package of an application to be tested that has been uploaded to the server.
In one embodiment, the target test mode selected by the target user is a full traversal control test. The target user may upload the installation package of the application program to be tested through the installation package upload page of the application program to be tested as described in fig. 1 b.
In another embodiment, the target testing mode selected by the target user is Monkey testing. The target user may upload the installation package of the application program to be tested through the installation package upload page of the application program to be tested as described in fig. 1 c.
And 104, acquiring test information matched with the target test mode and the model of the equipment to be tested according to the target test mode and the application program to be tested, wherein the test information comprises test parameters, a test flow script file and/or login parameters.
Optionally, the target test mode is full traversal control test; according to a target test mode and an application program to be tested, obtaining test information matched with the target test mode and a model of equipment to be tested, comprising the following steps: acquiring test parameters set by a target user aiming at the test of the full traversal control; judging whether login operation is performed in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the full traversal control test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the full traversal control test.
Optionally, the target test mode is script flow test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which can include: acquiring a test flow script file uploaded by a target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the script flow test.
Optionally, the target test mode is a composite comprehensive test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring a test flow script file uploaded by a target user; acquiring test parameters set by a target user aiming at the test of the full traversal control; judging whether login operation is performed in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite comprehensive test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: and if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite comprehensive test.
Optionally, the target test mode is Monkey test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring test parameters set by a target user aiming at Monkey testing; judging whether login operation is carried out in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the Monkey test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the Monkey test.
Optionally, the target test mode is a composite stability test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring a test flow script file uploaded by a target user; acquiring test parameters set by a target user aiming at Monkey test; judging whether login operation is carried out in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite stability test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: and if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite stability test.
And 105, determining the to-be-tested equipment matched with the to-be-tested application program according to the model of the to-be-tested equipment, calling the to-be-tested equipment according to the test information to test, and recording test data.
Optionally, the target test mode is full traversal control test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; and calling the equipment to be tested to carry out full traversal control test according to the test parameters and the login parameters, and recording test data.
Specifically, according to the test parameters and the login parameters, the device to be tested is called to perform a full traversal control test for the application program to be tested, and the installation performance, the starting performance and the unloading performance of the application program to be tested, and information such as electric quantity, memory and collapse in the using process are recorded.
Optionally, the target test mode is script flow test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; and calling the equipment to be tested to perform script flow test according to the test flow script file, and recording test data.
Specifically, according to the test flow script file, the device to be tested is called according to the flow specified by the test flow script file to perform script flow test for the application program to be tested, and the installation performance, the starting performance and the unloading performance of the application program to be tested, and information such as electric quantity, memory and collapse in the using process are recorded.
Optionally, the target test mode is a composite comprehensive test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; calling the equipment to be tested to carry out full traversal control test according to the test parameters and the login parameters, and recording test data; and calling the equipment to be tested to perform script flow test according to the test flow script file, and recording test data.
Specifically, according to the test parameters and the login parameters, calling the to-be-tested equipment to perform a full traversal control test for the to-be-tested application program, according to the test flow script file, calling the to-be-tested equipment to perform a script flow test for the to-be-tested application program according to a flow specified by the test flow script file, and recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and collapse in the using process.
Optionally, the target test mode is Monkey test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; and calling the equipment to be tested to perform Monkey testing according to the testing parameters and the login parameters, and recording testing data.
Specifically, according to the test parameters and the login parameters, the device to be tested is called to perform Monkey test aiming at the application program to be tested, and information in the test process is recorded.
Optionally, the target test mode is a composite stability test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; calling the equipment to be tested to perform Monkey testing according to the testing parameters and the login parameters, and recording testing data; and calling the equipment to be tested to perform script flow test according to the test flow script file, and recording test data.
Specifically, the device to be tested is called to perform Monkey testing for the application program to be tested according to the testing parameters and the login parameters, the device to be tested is called to perform script flow testing for the application program to be tested according to the testing flow script file and the flow specified by the testing flow script file, and information in the testing process is recorded.
And 106, generating a test report matched with the application program to be tested according to the test data.
Optionally, the target test mode is full traversal control test. And calling the to-be-tested equipment to perform full traversal control test aiming at the to-be-tested application program according to the test parameters and the login parameters, recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and collapse in the using process, and generating a test report matched with the to-be-tested application program according to the information.
Optionally, the target test mode is a script flow test. According to the test flow script file, calling the to-be-tested equipment according to the flow specified by the test flow script file to perform script flow test aiming at the to-be-tested application program, recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and breakdown in the using process, and generating a test report matched with the to-be-tested application program according to the information.
Optionally, the target test mode is a composite full test. Calling the to-be-tested equipment to perform full traversal control testing on the to-be-tested application program according to the testing parameters and the login parameters, calling the to-be-tested equipment to perform script flow testing on the to-be-tested application program according to the flow specified by the testing flow script file, recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and collapse in the using process, and generating a testing report matched with the to-be-tested application program according to the information.
Optionally, the target test mode is Monkey test. And calling the to-be-tested equipment to perform Monkey testing aiming at the to-be-tested application program according to the testing parameters and the login parameters, recording information in the testing process and generating a stability report.
Optionally, the target test mode is a composite stability test. And calling the to-be-tested equipment to perform Monkey testing aiming at the to-be-tested application program according to the testing parameters and the login parameters, calling the to-be-tested equipment to perform script flow testing aiming at the to-be-tested application program according to the testing flow script file and the flow specified by the testing flow script file, recording information in the testing process and generating a stability report.
In a specific example, the server calls the device to be tested to perform a full traversal control test for the application program 1 according to the test parameters and the login parameters, records the installation performance, the starting performance and the unloading performance of the application program to be tested, and information such as electric quantity, memory and breakdown in the using process, and generates a test report matched with the application program 1 according to the information. As shown in fig. 1d, the test report matching the application program 1, i.e. the comprehensive test report, includes the relevant information of the application program 1 and the statistical report matching the application program 1. Clicking on the "Performance report" control on the test report, as shown in FIG. 1d, may result in the test report being completed as
The test report shown in fig. 1e includes a performance emphasis report and an adaptation pass rate matching with the application 1. Clicking on the "terminal report" control on the test report shown in FIG. 1d results in the test report shown in FIG. 1f, including the terminal report matching application 1.
The embodiment of the invention provides an application program testing method, which determines an alternative testing mode matched with a target user according to a target testing scene selected by the target user in alternative testing scenes, wherein the alternative testing scenes comprise the following steps: the method comprises the steps of comprehensively testing and stability testing, then obtaining a target testing mode selected by a target user in alternative testing modes and an installation package of an application program to be tested matched with the target user, obtaining testing information matched with the target testing mode and a model of equipment to be tested, determining the equipment to be tested matched with the application program to be tested according to the model of the equipment to be tested, calling the equipment to be tested according to the testing information to test, recording testing data, generating a testing report matched with the application program to be tested, calling equipment of a specified model to automatically test according to the testing information matched with each testing mode, effectively reducing testing cost and effectively expanding the coverage range of testing.
Example two
Fig. 2 is a flowchart of an application testing method according to a second embodiment of the present invention. In this embodiment, determining an alternative test mode matching the target user according to the target test scenario selected by the target user in the alternative test scenarios may include: according to the comprehensive test selected by the target user in the alternative test scene, determining an alternative test mode matched with the target user, wherein the alternative test mode comprises the following steps: full traversal control testing, script flow testing, and composite full testing.
As shown in fig. 2, the method of this embodiment specifically includes:
step 201, determining an alternative test mode matched with a target user according to a comprehensive test selected by the target user in an alternative test scene, wherein the alternative test mode comprises the following steps: full traversal control testing, script flow testing, and composite full testing.
Step 202, obtaining a target test mode selected by the target user in the alternative test modes.
And step 203, acquiring an installation package of the application program to be tested, which is matched with the target user.
And 204, acquiring test information matched with the target test mode and the model of the equipment to be tested according to the target test mode and the application program to be tested, wherein the test information comprises test parameters, a test flow script file and/or login parameters.
Optionally, the target test mode is a full traversal control test; according to a target test mode and an application program to be tested, obtaining test information matched with the target test mode and a model of equipment to be tested, comprising the following steps: acquiring test parameters set by a target user for testing the full traversal control; judging whether login operation is carried out in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the full traversal control test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the full traversal control test.
Optionally, the target test mode is script flow test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring a test flow script file uploaded by a target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the script flow test.
Optionally, the target test mode is a composite comprehensive test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring a test flow script file uploaded by a target user; acquiring test parameters set by a target user aiming at the test of the full traversal control; judging whether login operation is performed in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite comprehensive test.
Optionally, after determining whether a login operation is performed in the test process of the application program to be tested, the method further includes: and if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite comprehensive test.
Step 205, determining the device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data.
Optionally, the target test mode is full traversal control test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; and calling the equipment to be tested to carry out full traversal control test according to the test parameters and the login parameters, and recording test data.
Specifically, according to the test parameters and the login parameters, the device to be tested is called to perform a full traversal control test for the application program to be tested, and the installation performance, the starting performance and the unloading performance of the application program to be tested, and information such as electric quantity, memory and crash in the using process are recorded.
Optionally, the target test mode is script flow test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; and calling the equipment to be tested to perform script flow test according to the test flow script file, and recording test data.
Specifically, according to the test flow script file, the device to be tested is called according to the flow specified by the test flow script file to perform script flow test for the application program to be tested, and the installation performance, the starting performance and the unloading performance of the application program to be tested, and information such as electric quantity, memory and collapse in the using process are recorded.
Optionally, the target test mode is a composite comprehensive test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; calling the equipment to be tested to carry out full traversal control test according to the test parameters and the login parameters, and recording test data; and calling the equipment to be tested to perform script flow test according to the test flow script file, and recording test data.
Specifically, according to the test parameters and the login parameters, calling the to-be-tested equipment to perform a full traversal control test for the to-be-tested application program, according to the test flow script file, calling the to-be-tested equipment to perform a script flow test for the to-be-tested application program according to a flow specified by the test flow script file, and recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and collapse in the using process.
And step 206, generating a test report matched with the application program to be tested according to the test data.
Optionally, the target test mode is full traversal control test. And calling the to-be-tested equipment to perform full traversal control test aiming at the to-be-tested application program according to the test parameters and the login parameters, recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and collapse in the using process, and generating a test report matched with the to-be-tested application program according to the information.
Optionally, the target test mode is a script flow test. And calling the equipment to be tested according to the test flow script file and the flow specified by the test flow script file to perform script flow test aiming at the application program to be tested, recording the installation performance, the starting performance and the unloading performance of the application program to be tested, and information such as electric quantity, memory and collapse in the using process, and generating a test report matched with the application program to be tested according to the information.
Optionally, the target test mode is a composite full test. Calling the to-be-tested equipment to perform a full traversal control test aiming at the to-be-tested application program according to the test parameters and the login parameters, calling the to-be-tested equipment to perform a script flow test aiming at the to-be-tested application program according to the test flow script file and the flow specified by the test flow script file, recording the installation performance, the starting performance and the unloading performance of the to-be-tested application program, and information such as electric quantity, memory and collapse in the using process, and generating a test report matched with the to-be-tested application program according to the information.
The embodiment of the invention provides an application program testing method, which determines an alternative testing mode matched with a target user through comprehensive testing selected by the target user in an alternative testing scene, wherein the alternative testing mode comprises the following steps: the full traversal control test, the script flow test and the composite full test can call equipment of a specified machine type to automatically perform the full test according to the test information matched with each test mode.
EXAMPLE III
Fig. 3 is a flowchart of an application testing method according to a third embodiment of the present invention. In this embodiment, determining an alternative test mode matching the target user according to the target test scenario selected by the target user in the alternative test scenarios may include: according to the stability test selected by the target user in the candidate test scene, determining a candidate test mode matched with the target user, wherein the candidate test mode comprises the following steps: monkey test, composite stability test.
As shown in fig. 3, the method of this embodiment specifically includes:
step 301, determining an alternative test mode matched with the target user according to the stability test selected by the target user in the alternative test scenario, where the alternative test mode includes: monkey testing and composite stability testing.
And 302, acquiring a target test mode selected by the target user in the alternative test modes.
And 303, acquiring an installation package of the application program to be tested, which is matched with the target user.
And 304, acquiring test information matched with the target test mode and the model of the equipment to be tested according to the target test mode and the application program to be tested, wherein the test information comprises test parameters, a test flow script file and/or login parameters.
Optionally, the target test mode is Monkey test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring test parameters set by a target user aiming at Monkey test; judging whether login operation is carried out in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the Monkey test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the Monkey test.
Optionally, the target test mode is a composite stability test; according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and the model of the equipment to be tested, which may include: acquiring a test flow script file uploaded by a target user; acquiring test parameters set by a target user aiming at Monkey testing; judging whether login operation is performed in the test process of the application program to be tested; if so, acquiring login parameters set by the target user; and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite stability test.
Optionally, after determining whether to perform a login operation in the test process of the application program to be tested, the method further includes: and if not, acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the composite stability test.
And 305, determining the to-be-tested equipment matched with the to-be-tested application program according to the model of the to-be-tested equipment, calling the to-be-tested equipment according to the test information to test, and recording test data.
Optionally, the target test mode is Monkey test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; and calling the equipment to be tested to perform Monkey testing according to the testing parameters and the login parameters, and recording testing data.
Specifically, according to the test parameters and the login parameters, the device to be tested is called to perform Monkey testing aiming at the application program to be tested, and information in the testing process is recorded.
Optionally, the target test mode is a composite stability test; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data, wherein the method comprises the following steps: determining a device to be tested matched with the application program to be tested according to the model of the device to be tested; calling the equipment to be tested to perform Monkey testing according to the testing parameters and the login parameters, and recording testing data; and calling the equipment to be tested to perform script flow test according to the test flow script file, and recording test data.
Specifically, the device to be tested is called to perform Monkey testing for the application program to be tested according to the testing parameters and the login parameters, the device to be tested is called to perform script flow testing for the application program to be tested according to the testing flow script file and the flow specified by the testing flow script file, and information in the testing process is recorded.
And step 306, generating a test report matched with the application program to be tested according to the test data.
Optionally, the target test mode is Monkey test. And calling the to-be-tested equipment to perform Monkey testing aiming at the to-be-tested application program according to the testing parameters and the login parameters, recording information in the testing process and generating a stability report.
Optionally, the target test mode is a composite stability test. And calling the to-be-tested equipment to perform Monkey testing aiming at the to-be-tested application program according to the testing parameters and the login parameters, calling the to-be-tested equipment to perform script flow testing aiming at the to-be-tested application program according to the flow specified by the testing flow script file according to the testing flow script file, recording information in the testing process and generating a stability report.
The embodiment of the invention provides an application program testing method, which determines an alternative testing mode matched with a target user through a stability test selected by the target user in an alternative testing scene, wherein the alternative testing mode comprises the following steps: the Monkey test and the composite stability test can call equipment of a specified machine type to automatically perform the stability test according to the test information matched with each test mode, can effectively reduce the test cost, and can effectively enlarge the coverage range of the stability test.
Example four
Fig. 4 is a schematic structural diagram of an application test apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus may be configured with a computer device, including: an alternative mode determining module 401, a test mode obtaining module 402, a package obtaining module 403, an information obtaining module 404, a test module 405, and a test report generating module 406.
The candidate mode determining module 401 is configured to determine, according to a target test scenario selected by a target user from candidate test scenarios, a candidate test mode matched with the target user, where the candidate test scenario includes: comprehensive testing and stability testing; a test mode obtaining module 402, configured to obtain a target test mode selected by a target user from alternative test modes; a program package obtaining module 403, configured to obtain an installation package of an application to be tested, where the installation package is matched with a target user; the information acquisition module 404 is configured to acquire test information and a model of the device to be tested, which are matched with a target test mode, according to the target test mode and the application program to be tested, where the test information includes test parameters, a test flow script file, and/or login parameters; the testing module 405 is used for determining the to-be-tested equipment matched with the to-be-tested application program according to the model of the to-be-tested equipment, calling the to-be-tested equipment according to the testing information to test, and recording testing data; and the test report generating module 406 is configured to generate a test report matched with the application to be tested according to the test data.
The embodiment of the invention provides an application program testing device, which determines an alternative testing mode matched with a target user according to a target testing scene selected by the target user in alternative testing scenes, wherein the alternative testing scenes comprise: the method comprises the steps of comprehensively testing and stability testing, then obtaining a target testing mode selected by a target user in alternative testing modes and an installation package of an application program to be tested matched with the target user, obtaining testing information matched with the target testing mode and a model of equipment to be tested, determining the equipment to be tested matched with the application program to be tested according to the model of the equipment to be tested, calling the equipment to be tested according to the testing information to test, recording testing data, generating a testing report matched with the application program to be tested, calling equipment of a specified model to automatically test according to the testing information matched with each testing mode, effectively reducing testing cost and effectively expanding the coverage range of testing.
On the basis of the foregoing embodiments, the alternative mode determining module 401 may include: a first determining unit, configured to determine, according to a comprehensive test selected by a target user in an alternative test scenario, an alternative test manner matched with the target user, where the alternative test manner includes: full traversal control testing, script flow testing, and composite full testing.
On the basis of the above embodiments, the target test mode may be a full traversal control test; the information acquisition module 404 may include: the parameter acquisition unit is used for acquiring test parameters set by a target user for the test of the full traversal control; the login operation judging unit is used for judging whether login operation is carried out in the test process of the application program to be tested; the login parameter acquiring unit is used for acquiring the login parameters set by the target user if the login parameters are set by the target user; and the first model acquisition unit is used for acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the full traversal control test.
On the basis of the above embodiments, the test module 405 may include: the device determining unit is used for determining the device to be tested matched with the application program to be tested according to the model of the device to be tested; and the testing unit is used for calling the equipment to be tested to carry out full traversal control testing according to the testing parameters and the login account password parameters, and recording testing data.
On the basis of the above embodiments, the target test mode may be script flow test; the information obtaining module 404 may include: the script file acquisition unit is used for acquiring a test flow script file uploaded by a target user; and the second model acquisition unit is used for acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the script flow test.
On the basis of the foregoing embodiments, the alternative mode determining module 401 may include: a second determining unit, configured to determine, according to the stability test selected by the target user in the candidate test scenario, a candidate test manner matched with the target user, where the candidate test manner includes: monkey test, composite stability test.
On the basis of the foregoing embodiments, the test mode obtaining module 402 may include: the first acquisition unit is used for acquiring an installation package of the application program to be tested uploaded by a target user; or the second obtaining unit is used for obtaining the installation package of the application program to be tested selected by the target user in the alternative installation packages.
The application program testing device can execute the application program testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the application program testing method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, computer device 12 is embodied in the form of a general purpose computer device. The components of computer device 12 may include, but are not limited to: one or more processors 16, a memory 28, and a bus 18 that couples various system components (including the memory 28 and the processors 16). The processor 16 includes, but is not limited to, an AI processor.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 over the bus 18. It should be understood that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 of the computer device 12 executes various functional applications and data processing by executing programs stored in the memory 28, for example, to implement the application program test method provided by the embodiment of the present invention. The method specifically comprises the following steps: determining an alternative test mode matched with the target user according to the target test scene selected by the target user in the alternative test scenes, wherein the alternative test scenes comprise: comprehensive testing and stability testing; acquiring a target test mode selected by a target user in alternative test modes; acquiring an installation package of an application program to be tested matched with a target user; according to a target test mode and an application program to be tested, test information matched with the target test mode and a device model to be tested are obtained, wherein the test information comprises test parameters, a test flow script file and/or login parameters; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data; and generating a test report matched with the application program to be tested according to the test data.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the application program testing method provided in the fifth embodiment of the present invention. The method specifically comprises the following steps: determining an alternative test mode matched with the target user according to the target test scene selected by the target user in the alternative test scenes, wherein the alternative test scenes comprise: comprehensive testing and stability testing; acquiring a target test mode selected by a target user in alternative test modes; acquiring an installation package of an application program to be tested matched with a target user; according to a target test mode and the application program to be tested, test information matched with the target test mode and a device model to be tested are obtained, wherein the test information comprises test parameters, a test flow script file and/or login parameters; determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data; and generating a test report matched with the application program to be tested according to the test data.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, ruby, go, and conventional procedural programming languages, such as the "C" programming language or similar programming languages, and computer languages for AI algorithms. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (8)

1. An application testing method, comprising:
determining an alternative test mode matched with a target user according to a target test scene selected by the target user in alternative test scenes, wherein the alternative test scenes comprise: comprehensive testing and stability testing;
acquiring a target test mode selected by the target user in the alternative test modes;
acquiring an installation package of an application program to be tested matched with the target user;
according to the target test mode and the application program to be tested, test information matched with the target test mode and the model of the equipment to be tested are obtained, wherein the test information comprises test parameters, a test flow script file and/or login parameters;
determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested according to the test information to test, and recording test data;
generating a test report matched with the application program to be tested according to the test data;
the determining the candidate test mode matched with the target user according to the target test scene selected by the target user in the candidate test scenes comprises the following steps:
according to the comprehensive test selected by a target user in an alternative test scene, determining an alternative test mode matched with the target user, wherein the alternative test mode comprises the following steps: a full traversal control test, a script flow test and a composite full test;
according to the stability test selected by a target user in an alternative test scene, determining an alternative test mode matched with the target user, wherein the alternative test mode comprises the following steps: monkey test, composite stability test.
2. The method of claim 1, wherein the target test mode is a full traversal control test;
according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and a model of equipment to be tested, and the method comprises the following steps:
acquiring test parameters set by the target user for the test of the full traversal control;
judging whether login operation is performed in the test process of the application program to be tested;
if so, acquiring login parameters set by the target user;
and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the full traversal control test.
3. The method of claim 2, wherein determining a device to be tested matched with the application program to be tested according to the model of the device to be tested, calling the device to be tested to test according to the test information, and recording test data comprises:
determining a device to be tested matched with the application program to be tested according to the model of the device to be tested;
and calling the equipment to be tested to carry out full traversal control test according to the test parameters and the login parameters, and recording test data.
4. The method of claim 1, wherein the target test mode is a script flow test;
according to the target test mode and the application program to be tested, obtaining test information matched with the target test mode and a model of equipment to be tested, and the method comprises the following steps:
acquiring a test flow script file uploaded by the target user;
and acquiring the equipment model selected by the target user from the alternative equipment models as the equipment model to be tested matched with the script flow test.
5. The method of claim 1, wherein obtaining an installation package of an application under test that matches the target user comprises:
acquiring an installation package of the application program to be tested uploaded by the target user; or
And acquiring the installation package of the application program to be tested selected by the target user in the alternative installation packages.
6. An application testing apparatus, comprising:
an alternative mode determining module, configured to determine, according to a target test scenario selected by a target user from alternative test scenarios, an alternative test mode matching the target user, where the alternative test scenario includes: comprehensive testing and stability testing;
the test mode acquisition module is used for acquiring a target test mode selected by the target user in the alternative test modes;
the program package acquisition module is used for acquiring an installation package of the application program to be tested, which is matched with the target user;
the information acquisition module is used for acquiring test information and a device model to be tested, which are matched with the target test mode, according to the target test mode and the application program to be tested, wherein the test information comprises test parameters, a test flow script file and/or login parameters;
the testing module is used for determining the to-be-tested equipment matched with the to-be-tested application program according to the model of the to-be-tested equipment, calling the to-be-tested equipment to test according to the testing information and recording testing data;
the test report generating module is used for generating a test report matched with the application program to be tested according to the test data;
the alternative mode determination module comprises:
a first determining unit, configured to determine, according to a comprehensive test selected by a target user in an alternative test scenario, an alternative test manner matched with the target user, where the alternative test manner includes: full traversal control test, script flow test and composite full test;
a second determining unit, configured to determine, according to a stability test selected by a target user in an alternative test scenario, an alternative test manner matched with the target user, where the alternative test manner includes: monkey test, composite stability test.
7. A computer device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the application testing method of any of claims 1-5.
8. 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 5.
CN201911072087.2A 2019-11-05 2019-11-05 Application program testing method, device, equipment and storage medium Active CN110806981B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911072087.2A CN110806981B (en) 2019-11-05 2019-11-05 Application program testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911072087.2A CN110806981B (en) 2019-11-05 2019-11-05 Application program testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110806981A CN110806981A (en) 2020-02-18
CN110806981B true CN110806981B (en) 2023-03-31

Family

ID=69501244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911072087.2A Active CN110806981B (en) 2019-11-05 2019-11-05 Application program testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110806981B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455420A (en) * 2013-08-16 2013-12-18 华为技术有限公司 Test data construction method and equipment
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software
CN104679659A (en) * 2015-03-24 2015-06-03 小米科技有限责任公司 Testing method and testing device of application program as well as electronic equipment
CN105975394A (en) * 2016-05-06 2016-09-28 华为技术有限公司 Program testing method and device
CN107590066A (en) * 2016-07-08 2018-01-16 广州市动景计算机科技有限公司 Method of testing, equipment and the programmable device of application program
CN107967214A (en) * 2017-08-15 2018-04-27 北京摩拜科技有限公司 The test method and test equipment of application program
CN108763076A (en) * 2018-05-22 2018-11-06 深圳乐信软件技术有限公司 A kind of Software Automatic Testing Method, device, equipment and medium
CN109800144A (en) * 2018-12-12 2019-05-24 北京京东尚科信息技术有限公司 Test method, system and the device of application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7526681B2 (en) * 2006-08-07 2009-04-28 Sap Portals Israel Ltd. Software testing framework

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063305A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Pressure testing method, device and system for intelligent terminal software
CN103455420A (en) * 2013-08-16 2013-12-18 华为技术有限公司 Test data construction method and equipment
CN104679659A (en) * 2015-03-24 2015-06-03 小米科技有限责任公司 Testing method and testing device of application program as well as electronic equipment
CN105975394A (en) * 2016-05-06 2016-09-28 华为技术有限公司 Program testing method and device
CN107590066A (en) * 2016-07-08 2018-01-16 广州市动景计算机科技有限公司 Method of testing, equipment and the programmable device of application program
CN107967214A (en) * 2017-08-15 2018-04-27 北京摩拜科技有限公司 The test method and test equipment of application program
CN108763076A (en) * 2018-05-22 2018-11-06 深圳乐信软件技术有限公司 A kind of Software Automatic Testing Method, device, equipment and medium
CN109800144A (en) * 2018-12-12 2019-05-24 北京京东尚科信息技术有限公司 Test method, system and the device of application program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A NICE way to test OpenFlow applications;Marco Canini等;《The 9th USENIX Symposium on Networked Systems Design and Implementation》;第127-140页 *
面向移动智能终端应用性能测试平台的研究;李少杰等;《中国优秀硕士学位论文全文数据库 信息科技辑》;第I138-326页 *

Also Published As

Publication number Publication date
CN110806981A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
US10853232B2 (en) Adaptive system for mobile device testing
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN109388569B (en) Method for remotely detecting environmental anomaly of client, test server and storage medium
CN105955881A (en) Automated test step recording and playback method and apparatus
CN111814354B (en) Simulation test method, system, medium and electronic device for instrument performance
CN109558331B (en) Application program defect detection method, device, equipment and storage medium
CN111291330A (en) SVN authority management method, SVN authority management device, computer equipment and storage medium
CN110597704B (en) Pressure test method, device, server and medium for application program
CN110677307B (en) Service monitoring method, device, equipment and storage medium
CA2811617C (en) Commit sensitive tests
CN110716843B (en) System fault analysis processing method and device, storage medium and electronic equipment
CN111414309A (en) Automatic test method of application program, computer equipment and storage medium
CN111694684B (en) Abnormal construction method and device of storage device, electronic device and storage medium
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN108647284B (en) Method and device for recording user behavior, medium and computing equipment
CN108228611B (en) Document information copying method and device
CN112069158A (en) Data restoration method, device, equipment and storage medium
CN110806981B (en) Application program testing method, device, equipment and storage medium
CN115952079A (en) Method and system for recording mobile application automation behaviors and analyzing and positioning defects
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN113656301A (en) Interface testing method, device, equipment and storage medium
CN113392002A (en) Test system construction method, device, equipment and storage medium
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN112965910A (en) Automatic regression testing method and device, electronic equipment and storage medium
CN115484200B (en) Buried point testing method, buried point testing device, server, storage medium and buried point testing system

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