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

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

Info

Publication number
CN112699047A
CN112699047A CN202110039927.6A CN202110039927A CN112699047A CN 112699047 A CN112699047 A CN 112699047A CN 202110039927 A CN202110039927 A CN 202110039927A CN 112699047 A CN112699047 A CN 112699047A
Authority
CN
China
Prior art keywords
test
application
operation result
tested
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.)
Granted
Application number
CN202110039927.6A
Other languages
Chinese (zh)
Other versions
CN112699047B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110039927.6A priority Critical patent/CN112699047B/en
Publication of CN112699047A publication Critical patent/CN112699047A/en
Application granted granted Critical
Publication of CN112699047B publication Critical patent/CN112699047B/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
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application test method and device, the computer equipment and the storage medium can be applied to the related field of computer technologies such as cloud computing and the like, and are used for solving the problem of low application test efficiency. The method comprises the following steps: obtaining test account information aiming at an application to be tested; aiming at a target service logic to be tested in the at least one service logic, simulating user side operation of each operation node in the running process of the target service logic by using the test account information; configuring the operation result of each user side operation into the application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result; and when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.

Description

Application testing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an application testing method and apparatus, a computer device, and a storage medium.
Background
In some scenes, for example, a scene of watching a video, a merchant may set some watching permissions, and when a user account satisfies the watching permissions, the merchant may watch the video only, so as to facilitate the user to register a member or recharge. Then, after the program corresponding to the scene is written, the program needs to be comprehensively tested by using the user accounts meeting different viewing permissions, whether a logic bug or the like exists in the program is determined, and after the test is passed, the program can be online and put into use.
In a traditional testing method, in the process of program operation, a tester repeatedly tests a program through operations of actually watching a video, registering a member or recharging and the like, and the tester judges whether an abnormality exists in the program according to experience to obtain a testing result. Therefore, the testing process completely depends on the working experience and professional literacy of the tester, and the tester repeatedly watches videos, registers members or supplements the value and other operations, so that the testing process is low in efficiency, and similar problems exist in other scenes.
Disclosure of Invention
The embodiment of the application test method and device, computer equipment and storage medium is used for solving the problem of low test efficiency.
In a first aspect, an application testing method is provided, including:
obtaining test account information aiming at an application to be tested; wherein the application to be tested comprises at least one business logic;
aiming at a target service logic to be tested in the at least one service logic, simulating user side operation of each operation node in the running process of the target service logic by using the test account information;
configuring the operation result of each user side operation into the application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result;
and when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.
In a second aspect, an application testing apparatus is provided, comprising:
an acquisition module: the system comprises a test account information acquisition module, a test account information acquisition module and a test account information acquisition module, wherein the test account information acquisition module is used for acquiring test account information aiming at an application to be tested; wherein the application to be tested comprises at least one business logic;
a processing module: the system comprises a test account number information acquisition module, a service logic analysis module and a service logic analysis module, wherein the test account number information acquisition module is used for acquiring test account number information of a target service logic to be tested in the at least one service logic;
the processing module is further configured to: configuring the operation result of each user side operation into the application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result;
the processing module is further configured to: and when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.
Optionally, the obtaining module is further configured to:
aiming at a target business logic to be tested in the at least one business logic, determining a test account configuration strategy matched with the target business logic;
and configuring the test account information of the test account based on the test account configuration strategy to obtain the test account information aiming at the application to be tested.
Optionally, the processing module is further configured to:
before the target service logic operates, simulating user side operation matched with the operating condition according to the operating condition of the target service logic; alternatively, the first and second electrodes may be,
and in the running process of the target service logic, simulating user side operation corresponding to the operation node according to the operation node.
Optionally, when the target service logic is a login service logic, and the login service logic provides a service for logging in the application to be tested, the processing module is further configured to:
and in the operation process of the login service logic, if the login service logic is determined to be operated to a login operation node, simulating user side login operation according to the login operation node to obtain an operation result of the user side login operation.
Optionally, when the current service logic is a payment service logic, and the payment service logic provides a service for paying the application to be tested, the processing module is further configured to:
before the payment business logic operates, determining the operating condition of the payment business logic as the charging service provided by the application to be tested;
and simulating the user side playing the charging video operation matched with the running condition according to the running condition of the payment service logic.
Optionally, the operation result of each user-side operation is preconfigured with a priority, the priority is used for characterizing the relevance between the operation result and other operation nodes, the size of the priority is inversely proportional to the level of the relevance, and the processing module is further configured to:
when the test operation result of the application to be tested, which is operated according to the operation result, does not meet the target operation result, determining the priority of the operation result;
if the priority is greater than the preset priority, continuing to test the target service logic; otherwise, ending the test aiming at the target service logic.
Optionally, an association relationship is preconfigured between the operation result and other operation nodes, the association relationship is used to characterize that the other operation nodes need to operate on the premise that a test operation result of the application to be tested, which is operated according to the operation result, meets the target operation result, and the processing module is further configured to:
and when the test operation result of the to-be-tested application after operation according to the operation result does not meet the target operation result, determining at least one associated operation node configured with an association relation with the operation result, and ending the test aiming at the at least one associated operation node.
In a third aspect, a computer device comprises:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method according to the first aspect according to the obtained program instructions.
In a fourth aspect, a storage medium stores computer-executable instructions for causing a computer to perform the method of the first aspect.
In the embodiment of the application, in the target service logic, the user side operation in each operation node is obtained through simulation, and a tester does not need to execute any operation, so that the time for the application to be tested to wait for responding to the user side operation is reduced, and the efficiency of testing the application is improved. And the test operation result of the application to be tested is obtained in an inquiry mode, and the test operation result is compared with the target operation result to determine whether the target service logic is normal or not, the test operation result of the application to be tested is visualized without other display equipment areas, and then the test operation result is determined by a tester, and whether the target service logic is normal or not is determined by the tester subjectively according to the visualized test operation result, so that the efficiency of testing the application is improved.
Drawings
Fig. 1 is an application scenario of an application testing method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an application testing method according to an embodiment of the present application;
fig. 3 is a first schematic structural diagram of an application testing apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a second application testing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
The embodiment of the application relates to a server, a database, a cloud technology, cloud security and the like.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
Database (Database), which can be regarded as an electronic file cabinet in short, a place for storing electronic files, a user can add, query, update, delete, etc. to data in files. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application.
Cloud technology refers to a hosting technology for unifying serial resources such as hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data. The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied in the cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-like websites and more web portals. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
Cloud computing (cloud computing) is a computing model that distributes computing tasks over a pool of resources formed by a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the "cloud" appear to the user as being infinitely expandable and available at any time, available on demand, expandable at any time, and paid for on-demand.
As a basic capability provider of cloud computing, a cloud computing resource pool (called as an ifas (Infrastructure as a Service) platform for short is established, and multiple types of virtual resources are deployed in the resource pool and are selectively used by external clients.
According to the logic function division, a PaaS (Platform as a Service) layer can be deployed on an IaaS (Infrastructure as a Service) layer, a SaaS (Software as a Service) layer is deployed on the PaaS layer, and the SaaS can be directly deployed on the IaaS. PaaS is a platform on which software runs, such as a database, a web container, etc. SaaS is a variety of business software, such as web portal, sms, and mass texting. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.
A distributed cloud storage system (hereinafter, referred to as a storage system) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces to cooperatively work by using functions such as cluster application, grid technology, and a distributed storage file system, and provides a data storage function and a service access function to the outside.
At present, a storage method of a storage system is as follows: logical volumes are created, and when created, each logical volume is allocated physical storage space, which may be the disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as data identification (ID, ID entry), the file system writes each object into a physical storage space of the logical volume, and the file system records storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
The process of allocating physical storage space for the logical volume by the storage system specifically includes: physical storage space is divided in advance into stripes according to a group of capacity measures of objects stored in a logical volume (the measures often have a large margin with respect to the capacity of the actual objects to be stored) and Redundant Array of Independent Disks (RAID), and one logical volume can be understood as one stripe, thereby allocating physical storage space to the logical volume.
The application field of the application test method provided by the embodiment of the application is briefly introduced below.
In the technical field of computers, developers can develop different applications by writing programs according to different business requirements. Before the developed application is used online, a tester is required to test the application for multiple times, when the tester determines that the application is used in the test process, the application can stably run according to service requirements, and each service logic can be used online only when no abnormity exists. When the tester determines that there is an abnormal business logic in the test process, the developer needs to modify the abnormal business logic.
Applications on the market are rich and diverse, and testers need to perform targeted tests according to all business logics included in the applications when testing the applications. For example, in a video application, after a user enters a live broadcast room, it needs to be tested whether the user account can watch live broadcast, send comments, give gifts, and the like in the case of logging in and the case of not logging in respectively. For example, in the take-out application, when the user selects food, it is necessary to test whether the take-out price is displayed accurately, whether the take-out price is the optimal price, how much money is required to reach the full reduction price, and the like when the user selects food and when the user selects food which reaches the full reduction price and does not reach the full reduction price.
In the existing automatic test, generally, only whether a return value of a certain function in an application is matched with a preset reference value can be determined, and whether the function is abnormal or not cannot be tested for business logic interacted between a user side and an application side related to the application. Therefore, a tester is usually required to determine whether the application is abnormal by actually operating the application and by viewing the feedback of the running result of the application on the user side. However, the manual testing process requires the tester to repeat the same operation continuously, the application needs to wait for the operation of the tester, and the process of testing the application is inefficient.
For example, in video application, when testing that a user account is logged in, a tester needs to log in the user account manually and enter a live broadcast room; after entering a live broadcast room, a tester determines whether live broadcast can be watched by watching whether the live broadcast is normally played; the tester determines whether the comments can be sent or not by editing the comments and clicking a sending key; the tester determines whether the gift can be presented, etc. by opening the gift panel, selecting the gift, paying the corresponding amount.
For another example, in the take-away application, when testing the benefit policy, the tester needs to manually select at least one food which reaches the full-minus price, determine whether the take-away price is accurately displayed by watching the displayed price, and calculate whether the food is the most favorable price by watching the displayed benefit policy; the tester manually selects at least one food that does not reach the full reduction price, determines how much more money is needed to reach the full reduction price by looking at whether the difference is displayed, and the like.
In order to solve the problem of low efficiency of the application testing process, the application testing method is provided. The method aims at a target service logic to be tested in at least one service logic included in the application to be tested, and simulates user side operation of each operation node in the running process of the target service logic by testing account information. And configuring the operation result of each time of the user side into the application to be tested, and inquiring whether the test operation result of the application to be tested meets the target operation result according to the operation result of the user side according to the corresponding relation between the operation result of each operation node configured in advance and the target operation result. And when each test operation result in the application to be tested meets the corresponding target operation result, determining that the test result of the target service logic is normal. Therefore, the operation result is configured to the application to be tested by simulating the operation of the user side, the application to be tested does not need to wait for the manual operation of a tester, and the application testing efficiency is greatly improved. And according to the preset corresponding relation between the operation result of each operation node and the target operation result, whether the test operation result of the application to be tested operated according to the user side meets the target operation result is inquired, and whether the application to be tested is abnormal is determined without a tester watching a display interface of the application to be tested, so that the application test efficiency is improved.
An application scenario of the application test method provided by the present application is described below.
Referring to fig. 1, an application scenario of the application test method is shown. The application scenario includes user-side device 101, application-side device 102, and test device 103. The user side device 101 and the application side device 102 can communicate with each other, the application side device 102 and the test device 103 can communicate with each other, and the user side device 101 and the test device 103 can communicate with each other. The communication mode can be wired communication, for example, communication is performed through a connecting network line or a serial port line; alternatively, the communication may be wireless communication, such as bluetooth, and the like, and is not limited in particular.
The user-side device 101 generally refers to a device that can respond to a user operation, such as a terminal device or a client. The terminal device can be a mobile phone, a desktop computer or a tablet computer. The client may be a third party application installed in the terminal device or a web page or the like accessible by the terminal device. The application-side device 102 generally refers to a device that can run an application to be tested, such as a terminal device or a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein. The test device 103 generally refers to a device, such as a terminal device, a server, or a client, which can test an application to be tested.
As an embodiment, the user-side device 101 and the application-side device 102 may be the same device, or the application-side device 102 and the testing device 103 may be the same device, or the user-side device 101, the application-side device 102, and the testing device 103 may be the same device, which is not limited specifically. In the embodiment of the present application, the user-side device 101, the application-side device 102, and the test device 103 are different devices, respectively.
The following illustrates the interaction between the devices based on fig. 1:
the test device 103 obtains test account information for the application to be tested. Aiming at a target service logic to be tested in at least one service logic included in the application to be tested, simulating user side operation triggered by a user through user side equipment 101 in each operation node in the running process of the target service logic by using test account information. The test device 103 sends the simulated operation result generated by the user-side device 101 each time to the application-side device 102, and the application-side device 102 receives the operation result generated by the user-side device 101 each time sent by the test device 103. The application side device 102 configures the received operation result into the application to be tested.
The test device 103 queries a test operation result when the application to be tested operates according to the configured operation result in the application side device 102, and the test device 103 determines whether the queried test operation result meets the target operation result according to a pre-configured corresponding relationship between each operation node and the target operation result.
When the test device 103 determines that each test operation result satisfies the corresponding target operation result, the test device 103 determines that the test result of the target service logic is normal.
In the embodiment of the application, in the target service logic, the user side operation in each operation node is simulated through the test equipment 103, and a tester does not need to execute any operation on the user side equipment 101, so that the time for the application to be tested to wait for responding to the user side operation is reduced, and the efficiency of testing the application is improved. Moreover, the testing device 103 obtains the test operation result of the application to be tested by querying, and determines whether the target service logic is normal by determining whether the test operation result meets the target operation result, after the test operation result of the application to be tested, which is visualized by the user side device 101, is not needed, the tester determines the test operation result again, and does not need to subjectively judge whether the target service logic is normal according to the visualized test operation result, so that the efficiency of testing the application is improved.
Referring to fig. 2, a schematic flow chart of the application test method is shown, and the following description specifically describes the flow of the application test method.
S201, test account information for the application to be tested is obtained.
When the application to be tested provides services for each user, each user can be characterized by the account of each user, and any operation of the user aiming at the application to be tested can be associated with the account of the user and is embodied in the account information of the account, namely the account information is related to the operation of the user side. For example, for a video application, a user enters a live broadcast room to watch a live broadcast by operating the user-side device 101, and then the watching information related to the live broadcast may appear in the historical watching record in the account of the user. The user recharges by operating the user side device 101 to send gifts to the main broadcast of the live broadcast room, so that the payment record of the user for the live broadcast room can appear in the historical payment record in the account of the user.
The account of the user may be obtained by registering the user in the application to be tested, or may be an account registered by the user in the third-party application after the user associates the application to be tested with the third-party application, or may be automatically generated by the application to be tested after the user associates the application to be tested with the user-side device 101, and the like, which is not limited specifically.
The account of the user and the account information of the account may be stored in a database of the application-side device 102, or may be stored in a third-party database associated with the application-side device 102, or may be stored in a cloud database associated with the application-side device 102, so as to implement cloud storage and the like.
Therefore, when the application to be tested is tested, the test account can be obtained by simulating the operation of the user side. For example, the test device 103 simulates an operation of the user-side device 101 in response to a user inputting personal information in an application to be tested and registering an account, and generates a corresponding control instruction. The test device 103 sends a control instruction to the application side device 102, and the application side device 102 receives the control instruction sent from the test device 103. And the application side equipment 102 generates a test account according to the control instruction. The application-side device 102 may store the test account number, so as to test the application to be tested with the test account number in the following process.
Or, when testing the application to be tested, the test account matched with the storage rule can be generated according to the storage rule of the account in the database. For example, the testing device 103 queries a database of the application-side device 102, and determines storage rules of the account to be tested in the database, such as which data related to the account are stored in the database, the length of each data, characters that may be included in each data, and the like. After obtaining the storage rule of the account of the application to be tested in the database, the testing device 103 may generate a testing account matched with the storage rule according to the storage rule. The test equipment 103 sends the generated test account to the application side equipment 102, and after the application side equipment 102 receives the test account sent by the test equipment 103, the test account is stored so that the application to be tested can be tested with the test account in the following process.
The process of testing the application to be tested may be a process of performing a plurality of tests in cycles, or may be a process of performing only one test. When generating the test account, one test account may be generated each time the application to be tested is tested, or in order to reduce the memory occupation of the application side device 102 by the test account, only one test account may be generated for the application to be tested. When the application to be tested is tested each time, different account information and the like can be configured for the test account.
Because the application to be tested comprises at least one business logic, when the application to be tested is tested, each business logic in the at least one business logic can be tested, and the automatic closed-loop test of the application to be tested is realized; or, when some service logics in at least one service logic are normal, only other one or more service logics in at least one service logic can be tested individually, so that the process of repeatedly testing the normal service logics in the testing process is reduced, and the efficiency of testing application is improved.
When each service logic in at least one service logic is subjected to automatic closed-loop test, the test account information of the test account can be configured according to the requirement of the initial account information to be tested and applied. For example, the requirement of the initial account information is that the test account information does not include any record, that is, it indicates that the user corresponding to the test account has not performed any operation in the application to be tested.
When one of the at least one service logic is tested independently, a test account matching strategy matched with the target service logic can be determined according to the target service logic to be tested. And configuring test account information of the test account based on the test account matching strategy. For example, for a video application, in order to test whether a certain video can be played with the end time of the last viewing as the start time of the current viewing when the video is viewed next time by the test account, it may be determined that the test account matching policy is a viewing record configured to view the video, and thus, based on the test account matching policy, the viewing record of the video in the test account information of the test account is configured. For another example, in order to test a certain pay video, after the test account pays a corresponding amount, whether the pay video can be completely played or not may be determined, the test account matching policy may be a payment record for the pay video, so that based on the test account matching policy, a payment record for the pay video in the test account information of the test account is configured.
The test device 103 may obtain the test account information together in the process of obtaining the test account as discussed above; alternatively, after obtaining the test account, the test device 103 may generate a configuration instruction for the account information according to a storage rule of the account information in the application-side device 102. The test device 103 sends a configuration instruction to the application side device 102, and the test device 103 receives the configuration instruction sent by the test device 103. The application-side device 102 may configure the test account information of the test account of the application to be tested through the configuration instruction, so that the test device 103 may obtain the test account information for the application to be tested.
S202, aiming at a target service logic to be tested in at least one service logic, simulating user side operation of each operation node in the running process of the target service logic by using test account information.
In the process of testing the application to be tested, the service logic which needs to be tested currently in at least one service logic can be used as the target service logic. The target service logic may include a plurality of operations of the user that needs to respond to the user-side device 101, that is, the target service logic may include a plurality of operation nodes that need to perform the user-side operation. Then, the testing device 103 can simulate the user-side operation of each operation node in the target service logic, so that the testing personnel is not required to really operate the user-side device 101 to generate the user-side operation, thereby implementing the front-end and back-end combined testing process.
After the test account information is obtained, the test account information may be used to simulate the user-side operation of each operation node in the target service logic operation process, and there are various methods for simulating the user-side operation of the operation node, two of which are described below as examples.
The method comprises the following steps:
and simulating the user side operation matched with the running condition according to the running condition of the target service logic.
In the application to be tested, each service logic corresponds to one operation condition, and when the operation conditions are met, the service logic can start to operate. For example, for video applications, it is necessary for a user to enter a live broadcast room to run business logic such as whether the user can comment on the live broadcast, whether the user can enjoy the live broadcast, whether the user pays attention to the live broadcast, and the like.
Therefore, before the target business logic starts to run, the user side operation matched with the running condition can be determined according to the running condition of the target business logic. After determining the user-side operation, a control instruction corresponding to the user-side operation may be generated, and after receiving the control instruction, the application to be tested determines that the user performs the user-side operation, thereby starting to run the target service logic. For example, before the payment service logic is operated, the operation condition of the payment service logic is determined to obtain the charging service provided by the application to be tested. And simulating the user side playing the charging video operation matched with the running condition according to the running condition of the payment service logic.
For example, the running condition of the target service logic is to enter a live broadcast room, and the test device 103 determines that the user-side operation is to enter a live broadcast room according to the running condition of the target service logic. The test equipment 103 sends a control instruction for executing a function entering a live broadcast room in the application to be tested to the application side equipment 102 according to the user side operation, the control instruction can also comprise a live broadcast room identifier, and after the application side equipment 102 receives the control instruction sent by the test equipment, the live broadcast room identifier is used as input to execute the function entering the live broadcast room, so that the test equipment 103 simulates a real place of the user side to click a live broadcast room thumbnail to enter the user side operation of the live broadcast room.
The second method comprises the following steps:
and simulating user side operation corresponding to the operation node according to the operation node in the logic operation process of the target service.
In the application to be tested, each service logic may include one or more operation nodes in the running process, and when the service logic runs to the operation node, the service logic suspends running and waits for responding to the user side operation. And after responding to the user side operation, continuing to run the service logic according to the operation result of the user side operation to obtain a running result corresponding to the operation result. That is, the service logic may include a plurality of sub-service logics, each operation node corresponds to one sub-service logic, and after responding to the user-side operation, the corresponding sub-service logic of the operation node may be executed. For example, for the payment service logic, the payment service logic includes an operation node for user payment, and when the payment service logic runs to the operation node for user payment, the payment service logic suspends running and waits for responding to the payment operation on the user side. And after the user finishes payment, obtaining a payment result of the payment operation of the user side, continuing to operate the payment service logic according to the payment result, obtaining an operation result whether the payment amount corresponding to the payment result reaches an amount threshold value, and the like.
Therefore, in the running process of the target service logic, if it is determined that the target service logic runs to the operation node, the user side operation of the operation node may be simulated according to one operation result of all possible operation results associated with the operation node, so that after the operation result of the user side operation is configured to the application to be tested, the application to be tested may determine that the user side has executed the operation corresponding to the operation result, and thus, the target service logic, that is, the sub-service logic corresponding to the operation node may continue to run according to the operation result. For example, in the process of operating the login service logic, if it is determined that the login service logic is operated to the login operation node, the user-side login operation is simulated according to the login operation node, and the operation result of the user-side login operation is obtained.
For example, the payment service logic operates to the operation node paid by the user, and the payment amount associated with the operation node paid by the user is in the range of 0 to 100 yuan, so that the test equipment 103 can simulate the operation paid by the user according to any value of 0 to 100, such as 5. Therefore, after the test device 103 sends the operation instruction corresponding to the operation result to the application side device 102, and when the application side device 102 configures the operation result into the application to be tested, the application to be tested determines that the user pays 5 yuan, and continues to run the payment service logic according to the operation result.
S203, configuring the operation result of each user side operation to the application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result.
After the user side operation of each operation node is simulated, the operation result of the operation node corresponding to the user side operation can be configured to the application to be tested, so that the application to be tested runs the target service logic with the operation result, and the test running result corresponding to the operation result is obtained.
For example, when a user enters a pay live broadcast room and is tested whether the target service logic of the complete live broadcast can be watched, if the test account does not pay for the pay live broadcast room, the complete live broadcast is not played to the test account, and the application to be tested waits for responding to the payment operation of the user side. And if the application to be tested responds to the payment operation of the user side, if the payment result of the payment operation is 5 yuan, when the payment result is configured into the application to be tested, the application to be tested runs a target business logic by using the payment result, determines whether the payment result reaches an amount threshold value, and obtains a test running result whether the payment result reaches the amount threshold value.
Each operation node in the target service logic may pre-configure a target operation result corresponding to a different operation result, that is, a correspondence between the operation result of each operation node and the target operation result. For example, for a pay live broadcast room, the target execution result of the payment operation on the user side may be that the payment amount is greater than the amount threshold, and the payment amount is less than the amount threshold. For the operation result larger than the amount threshold, corresponding to the target operation result with the payment amount larger than the amount threshold; and for the operation result smaller than the sum threshold, corresponding to the target operation result with the payment sum smaller than the sum threshold.
The corresponding relation between the operation result of the operation node configured in advance and the target operation result can be configured in advance by a tester according to the service requirement of the application to be tested; or, the test device 103 may be generated according to a preset rule according to the comment in the source code of the application to be tested; or, the test device 103 may be generated according to a preset rule and the like according to the service requirement document, and is not limited specifically.
After the operation result of the operation node corresponding to the user side operation is configured in the application to be tested, the test operation result after the application to be tested operates according to the operation result of the user side operation can be inquired. The method for querying the test operation result of the application to be tested may be that the test device 103 sends a query instruction to the application-side device 102 for querying the value of one or more parameters in the application to be tested, after receiving the query instruction, the application-side device 102 queries the value of the corresponding parameter and feeds back the query result to the test device 103, and after receiving the query result fed back by the application-side device 102, the test device 103 obtains the query result. Or, the test result may be a monitoring instruction configured in the application to be tested when the operation result is configured in the application to be tested, and the test operation result corresponding to the operation result may be fed back to the test device 103 when the monitoring instruction determines that the operation result of the application to be tested is the test operation result corresponding to the operation result.
After the test operation result corresponding to the operation result is obtained, it may be determined whether the test operation result meets a target operation result corresponding to the operation result in a preset correspondence between the operation result of each operation node and the target operation result. For example, after the payment result of the payment operation on the user side, such as 5 yuan, is configured to the application to be tested, the test run result of the target business logic corresponding to the payment result is obtained, and the test run result may be that the payment result is smaller than the amount threshold, such as 10 yuan. The target execution result of the payment operation comprises that the payment amount is larger than the amount threshold value and the payment amount is smaller than the amount threshold value. The payment result is larger than the amount threshold value, and the corresponding target operation result is larger than the amount threshold value; the operation result less than the amount threshold corresponds to the target operation result with the payment amount less than the amount threshold, and thus, the 5-dollar payment amount corresponds to the target operation result less than the amount threshold. After the test operation result and the target operation result are obtained, it may be determined whether the test operation result satisfies the target operation result, i.e., whether the payment result is less than the amount threshold and matches the payment amount less than the amount threshold.
And S204, when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.
After determining whether the test operation result meets the target operation result, if the test operation result meets the target operation result, the target service logic is indicated, and the service logic operated by the operation result is normal. And when each test operation result in the target service logic meets the corresponding target operation result, indicating that the service logic operated by each operation result in the target service logic is normal, indicating that the target service logic is normal.
And if the test operation result is determined not to meet the target operation result, indicating that the target service logic is in the target service logic and the service logic operated by the operation result is abnormal. When a service logic abnormality corresponding to one operation result exists in the target service logic, the test for the target service logic can be ended, and a test report is generated, so that developers can process the abnormality in the target service logic.
Or, the operation result of each operation node in the target business logic has a priority, the priority of the operation result may represent the relevance between the operation result and other operation nodes, and a higher priority represents a smaller relevance between the operation result and other operation nodes, and a lower priority represents a larger relevance between the operation result and other operation nodes.
For example, for a video application, whether to send the operation result of the comment or not has no relationship with the operation node of the reward anchor, and the reward anchor can be enjoyed regardless of whether to send the comment or not, so the priority of the operation result of whether to send the comment or not is high. The operation result of whether the video is paid is higher in relevance with the operation node for watching the complete video, the complete video can be watched only after the video is paid, and the complete video cannot be watched without paying the video, so that the priority of the operation result of whether the video is paid is lower.
When the sub-service logic corresponding to one operation result is abnormal, whether the priority is greater than the preset priority or not can be determined according to the priority of the operation result corresponding to the abnormal sub-service logic, if the priority is greater than the preset priority, the abnormal sub-service logic does not influence the operation of other sub-service logics, the sub-service logics corresponding to other operation nodes can be continuously tested, after all the service logics in the target service logic are tested, a test report is generated according to all the abnormal service logics, so that developers can test the sub-service logics after one-time processing, and the test efficiency is improved.
Or, the operation result of each operation node in the target service logic has an association relationship with other operation nodes, and the association relationship between the operation result and other operation nodes indicates that the triggering of other operation nodes needs to be performed on the premise that the service logic corresponding to the operation result is normal, so that when the sub-service logic corresponding to one operation result is abnormal, the sub-service logic corresponding to the operation node having no association relationship with the operation result can continue to be tested according to the association relationship between the operation result corresponding to the abnormal sub-service logic and other operation nodes, the sub-service logic corresponding to the operation node having an association relationship with the operation result ends the test, and the test is performed after the abnormal sub-service logic is repaired.
The following describes an application testing method provided in the embodiments of the present application by taking a video application as an example.
In order to perform an automatic closed-loop test on a video application, the test device 103 may configure test account information of a test account according to a requirement of the initial account information, that is, the test account information does not include any record for using the video application. After the test equipment 103 configures the test account information, the test account information for the video application is obtained. For example, the test account can be determined according to the specified ID, and the test account information of the test account is configured according to the requirement of the initial account information by clearing the value of each parameter in the test account information of the test account, for example, setting the value to 0. After all service logic tests in the video application are completed by using the test account information, one-time automatic closed-loop test on the video application is realized, and the video application can be circularly and automatically closed-loop tested for multiple times so as to improve the test accuracy.
Taking the live broadcast in the pay live broadcast viewing room as an example of a target service flow, where the operation condition of the target service flow is that a user enters the pay live broadcast room, the test device 103 simulates a user-side operation matched with the operation condition according to the operation condition of the target service flow, for example, simulates a user-side operation of clicking a thumbnail of the pay live broadcast room with test account information, and generates a configuration instruction corresponding to the user-side operation, where the configuration instruction includes an identifier of the pay live broadcast room. The test device 103 sends the configuration instruction to the application side device 102, and after receiving the configuration instruction, the application side device 102 plays the live broadcast corresponding to the pay live broadcast room identifier according to the configuration instruction, so that the video application responds to the simulated user side operation and enters the pay live broadcast room.
The pay live room may be a pay live room pre-configured for testing by the testing device 103. The test device 103 directly sends the live broadcast room identifier to the application side device 102, so that the effect of entering the live broadcast room is achieved, compared with a configuration instruction simulating a click-to-pay live broadcast room thumbnail, the efficiency of obtaining the configuration instruction is higher, and the test efficiency is improved.
After entering the live broadcast room with the test account information, the test device 103 may query the payment record of the test account information for the live broadcast pay room by calling the query interface, and since the test account information is configured to have no usage record, the current test account information has no payment record for the live broadcast pay room. At this time, the testing device 103 may query the configuration parameters of the live pay room in the video application, and determine that the playing duration of the live pay room is not recorded in the test account information for payment of the live pay room, for example, for an unpaid user, the live pay room only supports a viewing duration of 5 minutes, so that the testing device 103 may query whether the playing duration of the configuration parameters of the live pay room is 5 minutes. If it is 5 minutes, then it can be determined that the sub-business logic is normal. If not 5 minutes, then the sub-business logic is determined to be abnormal.
After determining that the sub-service logic is normal, the video application runs to a payment operation node and waits for responding to the user-side payment operation. In video applications, the payment operation may be implemented by purchasing different gifts, for example, a gift parameter gift _ id of 6584 represents a 1-element gift, and a gift parameter gift _ id of 6585 represents a 10-element gift. The test device 103 queries the parameters in the payment service logic in the video application, determines the target operation result, for example, queries the fe parameter in the buy _ info parameter, determines the amount threshold to be 50 yuan, and may view the complete live broadcast when the payment amount is greater than 50 yuan, and may not view the target operation result of the complete live broadcast when the payment amount is less than 50 yuan. The test device 103 may query a play _ info parameter in the application to be tested, and indicate that the complete live broadcast cannot be viewed when the play _ info value is 0, and indicate that the complete live broadcast can be viewed when the play _ info value is 1.
The testing device 103 simulates user side operations for purchasing gifts with different amounts, configures operation results of payment amounts corresponding to each user side operation into the to-be-tested application, queries test operation results of the to-be-tested application after the operation according to each operation result, for example, purchasing 5 gifts with 1 yuan, the payment amount being 5 yuan, and the testing device 103 determines whether the operation for purchasing the 5 gifts with 1 yuan is successful or not by querying a pay _ status parameter in a user _ pay _ info parameter, wherein the value of the pay _ status parameter is 0 to indicate that the operation is successful, and the value of the pay _ status parameter is 1 to indicate that the operation is failed.
The testing device 103 may obtain the total payment amount of the test account information for the live payment room by querying the pay _ total parameter, for example, the total payment amount is 5 yuan. The test device 103 determines whether the complete live broadcast can be viewed by querying a play _ info parameter in the application to be tested, and if the value is determined to be 0, it may be determined that the test operation result satisfies the target operation result, and if the value is determined to be 1, it may be determined that the test operation result does not satisfy the target operation result. If the total payment amount is 50 yuan and is larger than the amount threshold, when the value of the play _ info parameter is 1, it can be determined that the test operation result meets the target operation result, and when the value is 0, it can be determined that the test operation result does not meet the target operation result.
If the target operation result is that different payment amount intervals correspond to different viewing durations, the test device 103 may query a watch _ total parameter in the application to be tested, and determine whether the viewing duration corresponding to the total payment amount satisfies the target operation result.
Based on the same inventive concept, the embodiment of the present application provides an application testing apparatus, which is equivalent to the testing device 103 discussed above and can implement the corresponding functions of the application testing method. Referring to fig. 3, the apparatus includes an obtaining module 301 and a processing module 302, wherein:
the acquisition module 301: the system comprises a test account information acquisition module, a test account information acquisition module and a test account information acquisition module, wherein the test account information acquisition module is used for acquiring test account information aiming at an application to be tested; wherein, the application to be tested comprises at least one business logic;
the processing module 302: the system comprises a test account information simulation module, a service logic analysis module and a service logic analysis module, wherein the test account information simulation module is used for simulating user side operation of each operation node in the running process of the target service logic aiming at the target service logic to be tested in at least one service logic;
the processing module 302 is further configured to: configuring the operation result of each user side operation into an application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result;
the processing module 302 is further configured to: and when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.
In a possible embodiment, the obtaining module 301 is further configured to:
determining a test account configuration strategy matched with a target business logic aiming at the target business logic to be tested in at least one business logic;
and configuring test account information of the test account based on the test account configuration strategy to obtain the test account information aiming at the application to be tested.
In a possible embodiment, the processing module 302 is further configured to:
before the target service logic operates, simulating user side operation matched with the operating conditions according to the operating conditions of the target service logic; alternatively, the first and second electrodes may be,
and in the running process of the target service logic, simulating user side operation corresponding to the operation node according to the operation node.
In a possible embodiment, when the target business logic is a login business logic, and the login business logic provides a service for logging in the application to be tested, the processing module 302 is further configured to:
in the process of operating the login service logic, if the login service logic is determined to be operated to the login operation node, simulating the user side login operation according to the login operation node, and obtaining the operation result of the user side login operation.
In a possible embodiment, when the current business logic is a payment business logic, and the payment business logic provides a service for paying a fee to the application to be tested, the processing module 302 is further configured to:
before the payment business logic operates, determining the operating condition of the payment business logic as the charging service provided by the application to be tested;
and simulating the user side playing the charging video operation matched with the running condition according to the running condition of the payment service logic.
In a possible embodiment, the operation result of each user-side operation is preconfigured with a priority, the priority is used for characterizing an association between the operation result and other operation nodes, the size of the priority is inversely proportional to the level of the association, and the processing module 302 is further configured to:
when the test operation result of the application to be tested, which is operated according to the operation result, does not meet the target operation result, determining the priority of the operation result;
if the priority is greater than the preset priority, continuing to test the target service logic; otherwise, ending the test aiming at the target service logic.
In a possible embodiment, an association relationship is configured in advance between the operation result and other operation nodes, the association relationship is used to characterize that the other operation nodes need to operate on the premise that a test operation result of the application to be tested, which is operated according to the operation result, meets a target operation result, and the processing module 302 is further configured to:
and when the test operation result of the application to be tested after operation according to the operation result does not meet the target operation result, determining at least one associated operation node configured with an association relation with the operation result, and finishing the test aiming at the at least one associated operation node.
Based on the same inventive concept, the embodiment of the present application provides a computer device, and the computer device 400 is described below.
Referring to fig. 4, the application testing apparatus may be run on a computer device 400, a current version and a historical version of an application testing program and application software corresponding to the application testing program may be installed on the computer device 400, the computer device 400 includes a display unit 440, a processor 480 and a memory 420, wherein the display unit 440 includes a display panel 441 for displaying an interface for user interaction and the like.
In one possible embodiment, the Display panel 441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The processor 480 is used for reading the computer program and then executing the method defined by the computer program, for example, the processor 480 reads the application test program or file, etc., so as to run the application test program on the computer device 400 and display the corresponding interface on the display unit 440. The Processor 480 may include one or more general-purpose processors, and may further include one or more DSPs (Digital Signal processors) for performing relevant operations to implement the technical solutions provided by the embodiments of the present application.
Memory 420 typically includes both internal and external memory, which may be Random Access Memory (RAM), Read Only Memory (ROM), and CACHE memory (CACHE). The external memory can be a hard disk, an optical disk, a USB disk, a floppy disk or a tape drive. The memory 420 is used for storing a computer program including an application program and the like corresponding to each client, and other data, which may include data generated after an operating system or the application program is executed, including system data (e.g., configuration parameters of the operating system) and user data. In the embodiment of the present application, the program instructions are stored in the memory 420, and the processor 480 executes the program instructions stored in the memory 420 to implement any one of the application testing methods discussed in the previous figures.
The display unit 440 is used to receive input numerical information, character information, or touch operation/non-touch gesture, and generate signal input related to user setting and function control of the computer device 400, and the like. Specifically, in the embodiment of the present application, the display unit 440 may include a display panel 441. The display panel 441, such as a touch screen, may collect touch operations of a user (e.g., operations of the user on the display panel 441 or on the display panel 441 by using any suitable object or accessory such as a finger, a stylus, etc.) on or near the display panel 441, and drive the corresponding connection device according to a preset program.
In one possible embodiment, the display panel 441 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a player, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 480, and receives and executes commands sent from the processor 480.
The display panel 441 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the display unit 440, the computer device 400 may also include an input unit 430, which input unit 430 may include a graphical input device 431 and other input devices 432, wherein the other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
In addition to the above, the computer device 400 may also include a power supply 490 for powering other modules, audio circuitry 460, a near field communication module 470, and RF circuitry 410. The computer device 400 may also include one or more sensors 450, such as acceleration sensors, light sensors, pressure sensors, and the like. The audio circuit 460 specifically includes a speaker 461, a microphone 462, and the like, for example, the computer device 400 can collect the voice of the user through the microphone 462, perform corresponding operations, and the like.
For one embodiment, the number of the processors 480 may be one or more, and the processors 480 and the memories 420 may be coupled or relatively independent.
Processor 480 in fig. 4 may be used to implement the functions of acquisition module 301 and processing module 302 in fig. 3, as an example.
As an example, the processor 480 in fig. 4 may be used to implement the corresponding functions of the test equipment 103 discussed above.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. An application testing method, comprising:
obtaining test account information aiming at an application to be tested; wherein the application to be tested comprises at least one business logic;
aiming at a target service logic to be tested in the at least one service logic, simulating user side operation of each operation node in the running process of the target service logic by using the test account information;
configuring the operation result of each user side operation into the application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result;
and when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.
2. The method of claim 1, wherein obtaining test account information for an application to be tested comprises:
aiming at a target business logic to be tested in the at least one business logic, determining a test account configuration strategy matched with the target business logic;
and configuring the test account information of the test account based on the test account configuration strategy to obtain the test account information aiming at the application to be tested.
3. The method according to claim 1, wherein the simulating, with the test account information, user-side operations of each operation node in the running process of the target service logic for the target service logic to be tested in the at least one service logic comprises:
before the target service logic operates, simulating user side operation matched with the operating condition according to the operating condition of the target service logic; alternatively, the first and second electrodes may be,
and in the running process of the target service logic, simulating user side operation corresponding to the operation node according to the operation node.
4. The method according to claim 3, wherein when the target business logic is a login business logic, and the login business logic provides a service for logging in the application to be tested, the simulating, with the test account information, user-side operations of each operation node in the running process of the target business logic for the target business logic to be tested in the at least one business logic comprises:
and in the operation process of the login service logic, if the login service logic is determined to be operated to a login operation node, simulating user side login operation according to the login operation node to obtain an operation result of the user side login operation.
5. The method according to claim 3, wherein when the current business logic is a payment business logic, and the payment business logic provides a service for paying a fee to the application to be tested, the simulating, with the test account information, user-side operations of each operation node in an operation process of the target business logic with respect to the target business logic to be tested in the at least one business logic comprises:
before the payment business logic operates, determining the operating condition of the payment business logic as the charging service provided by the application to be tested;
and simulating the user side playing the charging video operation matched with the running condition according to the running condition of the payment service logic.
6. The method according to claim 1, wherein the operation result of each user-side operation is preconfigured with a priority, the priority is used for characterizing the relevance between the operation result and other operation nodes, and the size of the priority is inversely proportional to the level of the relevance, and the method further comprises:
when the test operation result of the application to be tested, which is operated according to the operation result, does not meet the target operation result, determining the priority of the operation result;
if the priority is greater than the preset priority, continuing to test the target service logic; otherwise, ending the test aiming at the target service logic.
7. The method according to claim 1, wherein an association relationship is configured in advance between the operation result and other operation nodes, and the association relationship is used to characterize that the other operation nodes need to operate on the premise that a test operation result of the application to be tested, which is operated according to the operation result, meets the target operation result, and the method further comprises:
and when the test operation result of the to-be-tested application after operation according to the operation result does not meet the target operation result, determining at least one associated operation node configured with an association relation with the operation result, and ending the test aiming at the at least one associated operation node.
8. An application testing apparatus, comprising:
an acquisition module: the system comprises a test account information acquisition module, a test account information acquisition module and a test account information acquisition module, wherein the test account information acquisition module is used for acquiring test account information aiming at an application to be tested; wherein the application to be tested comprises at least one business logic;
a processing module: the system comprises a test account number information acquisition module, a service logic analysis module and a service logic analysis module, wherein the test account number information acquisition module is used for acquiring test account number information of a target service logic to be tested in the at least one service logic;
the processing module is further configured to: configuring the operation result of each user side operation into the application to be tested, and inquiring whether the test operation result of the application to be tested after operation according to the operation result meets the target operation result or not according to the preset corresponding relation between the operation result of each operation node and the target operation result;
the processing module is further configured to: and when each test operation result meets the corresponding target operation result, determining that the test result of the target service logic is normal.
9. A computer device, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the method according to any one of claims 1 to 7 according to the obtained program instructions.
10. A storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202110039927.6A 2021-01-13 2021-01-13 Application testing method and device, computer equipment and storage medium Active CN112699047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110039927.6A CN112699047B (en) 2021-01-13 2021-01-13 Application testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110039927.6A CN112699047B (en) 2021-01-13 2021-01-13 Application testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112699047A true CN112699047A (en) 2021-04-23
CN112699047B CN112699047B (en) 2023-08-25

Family

ID=75514278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110039927.6A Active CN112699047B (en) 2021-01-13 2021-01-13 Application testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112699047B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165597A1 (en) * 2004-01-27 2005-07-28 Arm Limited Apparatus and method for performing hardware and software co-verification testing
DE102013105848A1 (en) * 2013-02-01 2014-08-07 Electronics And Telecommunications Research Institute Test application service support system has test agent module that executes control for application service to collection of test data which are necessary to allow test management module provides service test and test procedure
US20140344788A1 (en) * 2013-05-15 2014-11-20 Oracle International Corporation Logic validation and deployment
US20150006724A1 (en) * 2013-06-28 2015-01-01 Sonic Ip, Inc. System, method, and computer program product for providing test logic to user devices
CN105930259A (en) * 2015-12-23 2016-09-07 中国银联股份有限公司 Method and apparatus for WEB regression testing
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN108563584A (en) * 2018-05-09 2018-09-21 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN108632089A (en) * 2018-05-07 2018-10-09 平安普惠企业管理有限公司 Test management method, device, equipment and the computer storage media of terminal
CN109213685A (en) * 2018-09-29 2019-01-15 阿里巴巴集团控股有限公司 Service logic test method and device
CN110008109A (en) * 2018-11-28 2019-07-12 阿里巴巴集团控股有限公司 Application testing method and device
CN110262964A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test method, device, equipment and computer readable storage medium
CN110362493A (en) * 2019-07-18 2019-10-22 中国工商银行股份有限公司 Electronic equipment response method and device, electronic equipment and readable storage medium storing program for executing
CN110610089A (en) * 2019-08-16 2019-12-24 阿里巴巴集团控股有限公司 User behavior simulation method and device and computer equipment
CN110795331A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Software testing method and device
CN111352844A (en) * 2020-03-04 2020-06-30 腾讯科技(深圳)有限公司 Test method and related device
CN111352853A (en) * 2020-05-25 2020-06-30 南京领行科技股份有限公司 Compatibility testing method, device, server and storage medium
CN111367821A (en) * 2020-05-22 2020-07-03 支付宝(杭州)信息技术有限公司 Software testing method and system

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165597A1 (en) * 2004-01-27 2005-07-28 Arm Limited Apparatus and method for performing hardware and software co-verification testing
DE102013105848A1 (en) * 2013-02-01 2014-08-07 Electronics And Telecommunications Research Institute Test application service support system has test agent module that executes control for application service to collection of test data which are necessary to allow test management module provides service test and test procedure
US20140344788A1 (en) * 2013-05-15 2014-11-20 Oracle International Corporation Logic validation and deployment
US20150006724A1 (en) * 2013-06-28 2015-01-01 Sonic Ip, Inc. System, method, and computer program product for providing test logic to user devices
CN105930259A (en) * 2015-12-23 2016-09-07 中国银联股份有限公司 Method and apparatus for WEB regression testing
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN108632089A (en) * 2018-05-07 2018-10-09 平安普惠企业管理有限公司 Test management method, device, equipment and the computer storage media of terminal
CN108563584A (en) * 2018-05-09 2018-09-21 平安普惠企业管理有限公司 Test data generating method, device, computer equipment and storage medium
CN110795331A (en) * 2018-08-03 2020-02-14 北京京东尚科信息技术有限公司 Software testing method and device
CN109213685A (en) * 2018-09-29 2019-01-15 阿里巴巴集团控股有限公司 Service logic test method and device
CN110008109A (en) * 2018-11-28 2019-07-12 阿里巴巴集团控股有限公司 Application testing method and device
CN110262964A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test method, device, equipment and computer readable storage medium
CN110362493A (en) * 2019-07-18 2019-10-22 中国工商银行股份有限公司 Electronic equipment response method and device, electronic equipment and readable storage medium storing program for executing
CN110610089A (en) * 2019-08-16 2019-12-24 阿里巴巴集团控股有限公司 User behavior simulation method and device and computer equipment
CN111352844A (en) * 2020-03-04 2020-06-30 腾讯科技(深圳)有限公司 Test method and related device
CN111367821A (en) * 2020-05-22 2020-07-03 支付宝(杭州)信息技术有限公司 Software testing method and system
CN111352853A (en) * 2020-05-25 2020-06-30 南京领行科技股份有限公司 Compatibility testing method, device, server and storage medium

Also Published As

Publication number Publication date
CN112699047B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
US11838350B2 (en) Techniques for identifying issues related to digital interactions on websites
US11622225B2 (en) Systems and methods for providing mobile proving ground
CN107402880B (en) Test method and electronic equipment
CN103959745B (en) The method and apparatus of supervision application program resource consumption
US10037548B2 (en) Application recommendations based on application and lifestyle fingerprinting
JP6426732B2 (en) User support experience with automatically generated virtual environment
US20160328463A1 (en) Management of application state data
US9842133B2 (en) Auditing of web-based video
CN104765678A (en) Method and device for testing applications on mobile terminal
JP6127241B2 (en) Application fulfillment to device
US20150242297A1 (en) Method and system for testing of applications in asset management software
CN109462777B (en) Video heat updating method, device, terminal and storage medium
US10241845B2 (en) Application event tracing
US10269029B1 (en) Application monetization based on application and lifestyle fingerprinting
US10579446B2 (en) Per-request event detection to improve request-response latency
CN112699047B (en) Application testing method and device, computer equipment and storage medium
CN108319444B (en) Music drumbeat-based control terminal vibration method, storage device and computer device
CN114297245A (en) Image tag processing method, image tag processing device, storage medium, processor, and electronic device
CN109992614B (en) Data acquisition method, device and server
CN112988304A (en) Recording method and device of operation mode, electronic equipment and storage medium
CN105262829A (en) Method and system for monitoring geographic position
KR102298562B1 (en) System and method for service execution quality of application
CN112291329B (en) Information display method, device and equipment
CN110399243B (en) Blue screen reason determining method, system, computer readable medium and electronic device
CN113535016A (en) Receipt generation method and device, computer equipment and storage medium

Legal Events

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