CN110704307A - Application product testing method and device, user equipment and computer storage medium - Google Patents
Application product testing method and device, user equipment and computer storage medium Download PDFInfo
- Publication number
- CN110704307A CN110704307A CN201910846558.4A CN201910846558A CN110704307A CN 110704307 A CN110704307 A CN 110704307A CN 201910846558 A CN201910846558 A CN 201910846558A CN 110704307 A CN110704307 A CN 110704307A
- Authority
- CN
- China
- Prior art keywords
- simulation
- test
- test node
- node
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 243
- 238000004088 simulation Methods 0.000 claims abstract description 281
- 238000000034 method Methods 0.000 claims abstract description 62
- 230000004044 response Effects 0.000 claims abstract description 62
- 230000008569 process Effects 0.000 claims abstract description 35
- 238000010998 test method Methods 0.000 claims abstract description 8
- 230000002427 irreversible effect Effects 0.000 claims description 31
- 238000012795 verification Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides a test method and device of an application product, user equipment and a computer storage medium, which are used for overcoming the interference of a test node which cannot repeatedly execute the same information submission event in the test process of the application product and completing the automatic test of the application product. The method of the present application comprises: the UE receives a test request of an application product; the UE identifies a test node of an application product for executing an information submission event to a server; when the UE detects that the test node repeatedly executes the same information submission event to be in a failure state, the UE sends indication information to the simulation database, wherein the indication information is used for indicating the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used for simulating different responses of the test node to different information submission events; the UE sends a simulation information submission event to a simulation database; the UE receives a simulation response result sent by the simulation database; and the UE loads the simulation response result so as to bypass the test node for subsequent test.
Description
Technical Field
The present application relates to the field of test tools, and in particular, to a method and an apparatus for testing an application product, a user equipment, and a computer storage medium.
Background
In the life cycle of an application product, a development stage is inevitably carried out, software coding is designed according to the development requirement of the application product, and the application product is finally pushed to a user after debugging and acceptance.
In the debugging process, each functional node needs to be tested repeatedly so as to screen out the functional node with abnormal operation, and locate and correct the corresponding abnormal program segment.
In practical application, nodes which are difficult to test in an automatic test mode often appear in application products, and the nodes need to be manually tested by debugging personnel, so that interference is brought to automatic test of the application products, and therefore, how to overcome the interference of the nodes needs to be considered.
Disclosure of Invention
The application provides a method and a device for testing an application product, User Equipment (UE) and a computer storage medium, which are used for overcoming the interference of a test node which cannot repeatedly execute the same information submission event in the test process of the application product and completing the automatic test of the application product.
In a first aspect, the present application provides a method of testing an application product, the method comprising:
the UE receives a test request of an application product;
the UE identifies a test node of an application product for executing an information submission event to a server;
when the UE detects that the test node repeatedly executes the same information submission event to be in a failure state, the UE sends indication information to the simulation database, wherein the indication information is used for indicating the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used for simulating different responses of the test node to different information submission events;
the UE sends a simulation information submission event to a simulation database;
the UE receives a simulation response result sent by the simulation database, and the simulation response result is obtained by submitting an event and a simulation rule by the simulation database according to the simulation information;
and the UE loads the simulation response result so as to bypass the test node for subsequent test.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, the test node is a flow application class node, and the flow application class node is configured to apply for updating a flow state to a server.
With reference to the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, the flow application type node is specifically a user identity verification node, the simulation information submission event carries a simulation user identity (Identification, ID), the simulation user ID includes a user name, a simulation identity card number, or a simulation account ID, and the simulation response result includes a verification result of the simulation user name, the simulation identity card number, or the simulation account ID.
With reference to the second possible implementation manner of the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the method further includes:
UE generates a simulation user ID group;
the UE carries the simulated user ID group in the indication information, and the indication information is specifically used for indicating the simulation database to generate the simulation rule according to the simulated user ID group.
With reference to the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, the method further includes:
the UE acquires the updating information corresponding to the test node from the server;
the UE judges whether the test node repeatedly executes the same information submission event successfully or not according to the updated information;
if not, the UE determines that the test node repeatedly executes the same information submission event to be in a failure state.
With reference to the first aspect of the present application, in a fifth possible implementation manner of the first aspect of the present application, the method further includes:
and if the UE detects that the server closes the information submission interface of the test node, the UE determines that the test node repeatedly executes the same information submission event to be in a failure state.
With reference to the first aspect of the present application, in a sixth possible implementation manner of the first aspect of the present application, the simulation database is built in the UE, the server, or the simulation server;
when the simulation database is built on the simulation server and an irreversible test node exists, the method further comprises the following steps:
and the UE switches the connection object from the server to the simulation server so as to send the indication information and the simulation information submission event to the simulation database, and receives the simulation response result sent by the simulation database.
In a second aspect, the present application provides a test apparatus for an application product, the apparatus comprising:
the receiving unit is used for receiving a test request of an application product;
the identification unit is used for identifying a test node of the application product, which is used for executing the information submission event to the server;
the device comprises a sending unit, a simulation database and a processing unit, wherein the sending unit is used for sending indication information to the simulation database when detecting that the test node repeatedly executes the same information submission event to be in a failure state, the indication information is used for indicating the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used for simulating different responses of the test node to different information submission events;
the sending unit is also used for sending simulation information submission events to the simulation database;
the receiving unit is also used for receiving a simulation response result sent by the simulation database, and the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule;
and the loading unit is used for loading the simulation response result so as to bypass the test node for subsequent test.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the test node is a flow application class node, and the flow application class node is configured to apply for updating a flow state to a server.
In combination with the first possible implementation manner of the second aspect of the present application, in the second possible implementation manner of the second aspect of the present application, the process application type node is specifically a user authentication node, the simulation information submission event carries a simulation user identity ID, the simulation user ID includes a user name, a simulation identity card number, or a simulation account ID, and the simulation response result includes an authentication result for the simulation user name, the simulation identity card number, or the simulation account ID.
With reference to the second possible implementation manner of the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the apparatus further includes:
a generating unit for generating a simulated user ID group;
and the carrying unit is used for carrying the simulation user ID group in the indication information, and the indication information is specifically used for indicating the simulation database to generate the simulation rule according to the simulation user ID group.
With reference to the second aspect of the present application, in a fourth possible implementation manner of the second aspect of the present application, the apparatus further includes:
the acquisition unit is used for acquiring the updating information corresponding to the test node from the server;
and the judging unit is used for judging whether the test node repeatedly executes the same information submitting event according to the updating information, and if not, determining that the test node repeatedly executes the same information submitting event to be in a failure state.
With reference to the second aspect of the present application, in a fifth possible implementation manner of the second aspect of the present application, the apparatus further includes:
and the determining unit is used for determining that the same information submitting event repeatedly executed by the testing node is in a failure state if the server is detected to close the information submitting interface of the testing node.
With reference to the second aspect of the present application, in a sixth possible implementation manner of the second aspect of the present application, the simulation database is built in the device, the server, or the simulation server;
when the simulation database is built in the simulation server and an irreversible test node exists, the device further comprises:
and the switching unit is used for switching the connection object from the server to the simulation server so as to send the indication information and the simulation information submission event to the simulation database and receive the simulation response result sent by the simulation database.
In a third aspect, a UE is provided, the UE comprising a processor and a memory, the memory storing program code, and the processor calling the program code stored in the memory to execute the method for testing an application product as provided in the first aspect.
In a fourth aspect, the present application provides a computer storage medium comprising instructions which, when run on a computer, cause the computer to perform the method of testing an application product as provided in the first aspect.
According to the technical scheme, the method has the following advantages:
in the test process of automatically testing the application product according to the test request, firstly identifying the test nodes of the application product for executing the information submission event to the server, and identifying the test nodes as irreversible test nodes when detecting that the test nodes repeatedly execute the same information submission event as a failure state, wherein the irreversible test nodes can cause the failure of the automatic test in the traditional test process; in the scheme, the instruction information can be sent to the simulation database to instruct the simulation database to generate the simulation rule corresponding to the test node, the simulation rule is used for simulating different responses of the test node to different information submission events, so that the simulation information submission event can be sent to the simulation database and a simulation response result sent by the simulation database can be received, the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule, the simulation response result can be loaded, the subsequent test can be continuously carried out by bypassing the test node, the whole automatic test can be ensured not to be interrupted at the technical level due to the irreversible test node, the breakpoint debugging of the irreversible test nodes is facilitated, the debugging efficiency, the debugging accuracy and the data coverage boundary range related to the irreversible test node are improved, the interference of an irreversible test node is overcome, and the debugging process of an application product is greatly improved.
Drawings
FIG. 1 is a schematic flow chart of a method for testing a product of the present application;
FIG. 2 is a schematic flow chart of another method for testing a product according to the present application;
FIG. 3 is a schematic flow chart of another method for testing a product according to the present application;
FIG. 4 is a schematic structural diagram of a testing device for a product of the present application;
fig. 5 is a schematic structural diagram of a UE according to the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
The application provides a test method and device of an application product, UE and a computer storage medium, which are used for overcoming the interference of a test node which cannot repeatedly execute the same information submission event in the test process of the application product and completing the automatic test of the application product.
Before introducing the present application, a UE, a server, and a simulation database related to the present application will be first introduced.
In the application, the UE may specifically be a terminal device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or an all-in-one computer, and the UE may locally test the application product, and by applying the test method for the application product provided by the application, the interference of the test node that cannot repeatedly execute the same information submission event is overcome, and the test for the application product is completed.
The server may specifically include one or more server devices, and the plurality of server devices may be a local server cluster, or may be connected through a remote network to form a server cluster.
It should be noted that, in the present application, the application product to be tested includes a client and a server, and the functions of the application product are realized through interaction between the server and the client, that is, including information submission from the client to the server and information issue from the server to the client. Correspondingly, the UE and the server are two devices respectively related to a client side and a server side of an application product to be tested, and for convenience of description, the application product related to the following content of the application product should be understood as a client side part of the application product to be tested.
The simulation database is specifically used for generating simulation rules corresponding to the test nodes when the test nodes which cannot repeatedly execute the same information submission event are identified, so that simulation response results corresponding to the test nodes can be obtained, and the test nodes are bypassed to continue subsequent tests.
Referring to fig. 1, fig. 1 shows a schematic flow chart of a testing method for an application product of the present application, and in the present application, the testing method for an application product may specifically include the following steps:
step S101, UE receives a test request of an application product;
it can be understood that, in the development process of an application product, when there is a test requirement for the application product, a tester may initiate a test request for the application product locally at the UE, and the UE may run the application product and test the application product through a related test tool.
The test tool can automatically and repeatedly run the program submitted by the related information of the application product, so that when an abnormal condition, such as blockage, stagnation or breakdown, occurs, the corresponding abnormal program segment can be positioned and corrected, and the purpose of debugging is achieved.
Step S102, UE identifies a test node of an application product for executing an information submission event to a server;
it is understood that the functional implementation of the application product involves a plurality of functional nodes.
When testing an application product, the UE may test nodes involved in interaction between the client side and the server side, where the nodes include a test node targeted by the application, that is, a test node for executing an information submission event to the server.
Therefore, different from the test processing of the existing test tool, in the present application, in the test process, the UE first identifies the test node of the application product for executing the information submission event to the server, and performs the subsequent related processing.
Step S103, when the UE detects that the test node repeatedly executes the same information submission event to be in a failure state, the UE sends indication information to the simulation database;
the indication information is used for indicating the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used for simulating different responses of the test node to different information submitting events.
In the process of testing the application product, all or specific functional nodes are specifically selected as test nodes to test the application product, and in practical application, some irreversible nodes also exist in the test nodes.
For example, the input data on which the test node depends is complex in structure, and depending on a plurality of previous test nodes, it is difficult to perform the test of the test node again using the same input data; or the test node is set to run once, and when the test node is automatically deleted or frozen after running, the test node cannot pass through the test node and subsequent tests are performed, and testers need to manually create new data or abandon existing data and re-run programs of application products, so that the test node can be passed through again and the subsequent tests are performed.
In the present application, when it is detected that a test node for executing an information submission event to a server repeatedly executes the same information submission event, the test node is identified as an irreversible test node. After finding that the irreversible test node exists, the UE can automatically send indication information to the simulation database according to the triggering of the test tool; certainly, after being triggered by the test tool, the test tool can also send indication information to the simulation database through the confirmation operation of a tester; alternatively, the tester may manually transmit the instruction information, and the details are not limited herein.
In the application, the simulation database is configured to receive indication information sent by the UE, where the indication information is used to indicate the simulation database to generate a simulation rule corresponding to the irreversible test node, and the simulation rule is specifically used to simulate different responses of the test node to different information submission events, so that the response of the test node to the information submission events can be simulated through the simulation database, and the test on the application product is assisted.
Step S104, the UE sends a simulation information submission event to a simulation database;
and indicating the simulation database to generate a simulation rule through the indication information, so that the UE can simulate the information submission processing of the application product to the server, generate a simulation information submission event corresponding to the test node, and feed back a simulation response result of the simulation information submission event through the simulation database.
Step S105, the UE receives a simulation response result sent by the simulation database;
and the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule.
After sending the simulation information submission event to the simulation database, the UE can receive the simulation rule generated on line fed back by the simulation database, and obtain the simulation response result corresponding to the simulation information submission event.
And step S106, the UE loads the simulation response result so as to bypass the test node for subsequent test.
After receiving the simulation response result fed back by the simulation database, the UE can load the simulation response result, and the simulation response result replaces the operation of the irreversible test node, so that the test node can be bypassed in the actual test to perform the subsequent test.
It can be seen from the above that, in the test process of the UE performing the automatic test on the application product according to the test request, the UE first identifies the test node of the application product for executing the information submission event to the server, and when the UE detects that the test node repeatedly executes the same information submission event and is in a failure state, the test node can be identified as an irreversible test node, and in the conventional test process, the irreversible test node can cause the failure of the automatic test; in the scheme, the UE can send indication information to the simulation database to indicate the simulation database to generate the simulation rule corresponding to the test node, the simulation rule is used for simulating different responses of the test node to different information submission events, so that the UE can send the simulation information submission events to the simulation database and receive the simulation response results sent by the simulation database, the simulation response results are obtained by the simulation database according to the simulation information submission events and the simulation rule, the UE can load the simulation response results and continue subsequent tests by bypassing the test node, the whole automatic test can be ensured not to be interrupted in the technical level due to the irreversible test node, the breakpoint debugging of the irreversible test nodes is facilitated, the debugging efficiency, the debugging accuracy and the boundary range of the coverage data related to the irreversible test node are improved, the interference of an irreversible test node is overcome, and the debugging process of an application product is greatly improved.
In practical applications, the UE identifies an irreversible test node, that is, a test node that is used for executing an information submission event to a server and repeatedly executing the same information submission event as a failure state, and specifically includes the following implementation manners.
First, according to the class of the node
In an embodiment, it can be understood that, the process application result of the process application class node for applying for updating the process state to the server is often unrevedable and unrevedable, on one hand, in the actual application, the process state that needs to be repeatedly updated rarely exists, and on the other hand, the possibility of returning and returning can also be abandoned, so that the forward direction of the process is ensured, and meaningless repeated processes or process logic errors are avoided.
Therefore, when the UE determines that the current test node is a procedure application class node, it can be identified as an irreversible test node.
Specifically, the process application node may be a user identity authentication node, and it can be understood that the application product has a requirement of a real name system, and especially an insurance application product or a financing application product and other application products related to important properties of the user can authenticate the user identity of the login user so as to ensure the security of information.
The user identity verification node is aimed at the user identity ID of the user, the user ID can be specifically shown through one-to-one binding information of the user name, the identity card number, the account ID and the like with the user identity, and therefore the simulation rule is specifically used for simulating different verification responses of the user identity verification node to different user IDs.
Therefore, the subsequent UE can carry the simulation user ID in the simulation information submission event sent to the simulation database, where the simulation user ID may include a simulation user name, a simulation identity card number, or a simulation account ID, and correspondingly, the simulation response result fed back by the simulation database received by the UE may include a verification result for the simulation user name, the simulation identity card number, or the simulation account ID.
It should be understood that, in the user authentication scenario corresponding to the user authentication node, the wrong or illegal user name, identity card number, and account ID may be covered, so as to simulate different user authentication modes of the irreversible user authentication node and different response results that may occur in actual operation.
In another embodiment, on the basis of the user authentication node, a simulated user ID group may be specifically carried in the indication information, where the simulated user ID group includes a plurality of simulated user IDs, and the simulated user ID may further include a simulated user name, a simulated identity number, or a simulated account ID, so that the simulation database may directly generate corresponding simulation rules for the simulated user ID group in the indication information, and provide different simulation response results for different simulated user IDs.
Further, the simulated user ID set may be manually filled in by a commissioning person; or the simulation ID group corresponding to the user identity authentication node can be generated automatically by the UE, so that the simulation ID group corresponding to the user identity authentication node can be generated locally by the UE conveniently, and the labor cost and the time cost of debugging personnel can be further greatly saved.
Correspondingly, referring to fig. 2, fig. 2 shows another schematic flow chart of the application product of the present application, and the testing method of the application product of the present application may further include the following steps:
step S201, UE generates a simulation user ID group;
it will be appreciated that, as mentioned above, the UE may automatically generate the simulated user ID groups.
Step S202, the UE carries the simulation user ID group in the indication information.
The indication information is specifically used for indicating the simulation database to generate simulation rules according to the simulation user ID group.
After the simulated user ID group is automatically generated, the UE can directly carry the simulated user ID group in a preset field of the indication information, the simulated user ID group can be extracted from the preset field after the indication information is received by the simulation database, and the simulation rule is generated on the basis of the simulated user ID group.
Second, submitting events according to the same information can be repeatedly executed
In another embodiment, referring to another flow chart of the testing method for application products of the present application shown in fig. 3, in the process of identifying an irreversible test node, the method may specifically include the following steps:
step S301, the UE acquires the updating information corresponding to the test node from the server;
it can be understood that after the test node executes the information submission event to the server, if the event execution is valid, the server will perform corresponding information update, and therefore the UE obtains the update information corresponding to the test node from the server.
Step S302, the UE judges whether the test node repeatedly executes the same information submitting event successfully according to the updating information, if not, the step S303 is triggered;
after obtaining the update information corresponding to the test node from the server side, the UE may determine whether the test node repeatedly executes the same information submitting event successfully according to the update information, and if the update time of the update information points to the previous or previous information submitting event, or the content of the update information points to the previous or previous information submitting event, it obviously means that the current information submitting event fails to be executed, the UE may trigger step S303.
Step S303, the UE determines that the test node repeatedly executes the same information submission event to be in a failure state.
After determining that the test node cannot repeatedly execute the same information submission event, the UE may determine that the test node repeatedly executes the same information submission event as a failure state, and add a state identifier indicating the failure state to the test node.
Thirdly, submitting the interface according to the information of the server side
In another embodiment, the UE may also directly detect the information submitting interface corresponding to the test node, and if the server closes the interface, the test node obviously cannot execute the information submitting event again, so that if the UE detects that the server closes the information submitting interface of the test node, the UE may determine that the test node repeatedly executes the same information submitting event and that the test node fails.
In another embodiment, in practical application, the simulation database may be directly built on the UE, and the sending of the indication information is performed inside the UE, so that interaction between the UE and other devices may be avoided, and a complete test of the application product may be performed locally on the UE;
or the simulation database can be built on the server side corresponding to the application product, so that the simulation database can be built simultaneously in the application development of the application product on the server side, and when the application product is tested on different UEs respectively, the simulation database on the server side can be shared, so that the building cost of the simulation database, such as hardware cost and time cost, is saved;
or, the simulation database can be built on an independent simulation server, so that the simulation database has the advantage of saving the building cost of the simulation database, can be specially used for simulating the response of the information submission event from the UE to the server, is separated from the original server of the application product, and can work independently, so that the simulation database is operated on the simulation server, thereby having more advantages in processing efficiency, being convenient for different application products, simulating the response of the information submission event from the UE to the server, and having the characteristics of higher practical value and convenience in popularization.
Under the setting, the UE switches the connection object from the server to the simulation server so as to send the indication information to the simulation server, and then can also send the simulation information submission event to the simulation server and receive the simulation response result sent by the simulation database.
The above is the description of the test method of the application product of the present application, and the following is a description of the test apparatus of the application product of the present application.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a testing apparatus for a product of application of the present application, and in the present application, the testing apparatus for a product of application may specifically include the following structure:
a receiving unit 401, configured to receive a test request of an application product;
an identifying unit 402, configured to identify a test node of an application product for executing an information submission event to a server;
a sending unit 403, configured to send, when it is detected that the same information submission event repeatedly executed by the test node is in a failure state, indication information to the simulation database, where the indication information is used to indicate the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used to simulate different responses of the test node to different information submission events;
a sending unit 403, configured to send a simulation information submission event to the simulation database;
the receiving unit 401 is further configured to receive a simulation response result sent by the simulation database, where the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule;
and a loading unit 404, configured to load the simulation response result to bypass the test node for subsequent testing.
In one embodiment, the test node is a process application class node, and the process application class node is used for applying for updating the process state to the server.
In another embodiment, the process application node is specifically a user identity verification node, the simulation information submission event carries a simulation user identity ID, the simulation user ID includes a user name, a simulation identity card number, or a simulation account ID, and the simulation response result includes a verification result for the simulation user name, the simulation identity card number, or the simulation account ID.
In yet another embodiment, the apparatus may further comprise:
a generating unit 405 for generating a simulated user ID group;
the carrying unit 406 is configured to carry the simulated user ID group in the indication information, where the indication information is specifically used to indicate the simulation database to generate the simulation rule according to the simulated user ID group.
In yet another embodiment, the apparatus may further comprise:
an obtaining unit 407, configured to obtain, from the server, update information corresponding to the test node;
the determining unit 408 is configured to determine whether the test node repeatedly executes the same information submission event successfully according to the update information, and if not, determine that the test node repeatedly executes the same information submission event as a failure state.
In yet another embodiment, the apparatus may further comprise:
a determining unit 409, configured to determine that the test node repeatedly executes the same information submission event to be in a failure state if it is detected that the server closes the information submission interface of the test node.
In yet another embodiment, the simulation database is built on the device, the server or the simulation server;
when the simulation database is built in the simulation server and there is an irreversible test node, the apparatus may further include:
and a switching unit 410, configured to switch the connection object from the server to the simulation server, to send the indication information and the simulation information submission event to the simulation database, and to receive the simulation response result sent by the simulation database.
The above is a testing apparatus for an application product of the present application from the perspective of a modular functional entity, and the UE of the present application is described below from the perspective of hardware, referring to a schematic structural diagram of the UE of the present application shown in fig. 5, the UE may include a processor 501, a memory 502, a memory 302 for storing program codes, and the processor 501 for calling the program codes stored in the memory 502 to execute a testing method for an application product in the corresponding embodiment of fig. 1 to fig. 3; alternatively, the processor 501 calls the program code stored in the memory 502 to execute the functions of the units in the corresponding embodiment of fig. 4.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the UE and various interfaces and lines connecting the various parts of the overall UE.
The memory 502 may be used to store computer programs and/or modules, and the processor 501 implements various functions of the UE by running or executing the computer programs and/or modules stored in the memory 502 and invoking data stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The UE may also include an input output unit, and the processor 501, the memory 502, and the input output unit may be connected by a bus.
The input and output units may be replaced by input units and output units, which may be the same or different physical entities. When they are the same physical entity, they may be collectively referred to as an input-output unit. The input-output unit may be a transceiver.
The memory 502 may be integrated in the processor 501 or may be provided separately from the processor 501.
The present application also provides a computer storage medium having stored thereon a computer program which, when run on a computer, causes the computer to execute a method of testing an application product as in the corresponding embodiments of fig. 1 to 3.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM), and includes several instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the above-described specific working processes of the testing apparatus, the UE and the units thereof for the application product may refer to the descriptions of the testing method for the application product in the embodiments corresponding to fig. 1 to fig. 3, and are not described herein again in detail.
To sum up, in the test process of automatically testing an application product according to a test request, a test node of the application product, which is used for executing an information submission event to a server, is identified first, and when it is detected that the same information submission event executed repeatedly by the test node is in a failure state, the test node can be identified as an irreversible test node, and in the conventional test process, the irreversible test nodes can cause the failure of the automatic test; in the scheme, the instruction information can be sent to the simulation database to instruct the simulation database to generate the simulation rule corresponding to the test node, the simulation rule is used for simulating different responses of the test node to different information submission events, so that the simulation information submission event can be sent to the simulation database and a simulation response result sent by the simulation database can be received, the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule, the simulation response result can be loaded, the subsequent test can be continuously carried out by bypassing the test node, the whole automatic test can be ensured not to be interrupted at the technical level due to the irreversible test node, the breakpoint debugging of the irreversible test nodes is facilitated, the debugging efficiency, the debugging accuracy and the data coverage boundary range related to the irreversible test node are improved, the interference of an irreversible test node is overcome, and the debugging process of an application product is greatly improved.
The embodiments of the present application have been described above with reference to the drawings, but the present application is not limited to the above-mentioned embodiments, which are only illustrative and not restrictive, and those skilled in the art can make many changes and modifications without departing from the spirit and scope of the present application and the protection scope of the claims, and all changes and modifications that come within the meaning and range of equivalency of the claims are to be embraced within their scope.
Claims (10)
1. A method of testing an application product, the method comprising:
user Equipment (UE) receives a test request of an application product;
the UE identifies a test node of the application product for executing an information submission event to a server;
when the UE detects that the test node repeatedly executes the same information submission event to be in a failure state, the UE sends indication information to a simulation database, wherein the indication information is used for indicating the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used for simulating different responses of the test node to different information submission events;
the UE sends a simulation information submission event to the simulation database;
the UE receives a simulation response result sent by the simulation database, and the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule;
and the UE loads the simulation response result so as to bypass the test node for subsequent tests.
2. The method of claim 1, wherein the test node is a process application class node, and wherein the process application class node is configured to apply for updating a process state from the server.
3. The method as claimed in claim 2, wherein the process application node is a user authentication node, the simulation information submission event carries a simulation user ID, the simulation user ID includes a user name, a simulation identity card number, or a simulation account ID, and the simulation response result includes an authentication result of the simulation user name, the simulation identity card number, or the simulation account ID.
4. The method of claim 3, further comprising:
the UE generates a simulated user ID group;
and the UE carries the simulation user ID group in the indication information, wherein the indication information is specifically used for indicating the simulation database to generate the simulation rule according to the simulation user ID group.
5. The method of claim 1, further comprising:
the UE acquires the updating information corresponding to the test node from the server;
the UE judges whether the test node repeatedly executes the same information submission event successfully or not according to the updating information;
if not, the UE determines that the test node repeatedly executes the same information submission event to be in a failure state.
6. The method of claim 1, further comprising:
and if the UE detects that the server closes the information submission interface of the test node, the UE determines that the test node repeatedly executes the same information submission event to be in a failure state.
7. The method of claim 1, wherein the simulation database is built into the UE, the server, or a simulation server;
when the simulation database is built in the simulation server and an irreversible test node exists, the method further comprises the following steps:
and the UE switches the connection object from the server to the simulation server so as to send the indication information and the simulation information submission event to the simulation database, and receives the simulation response result sent by the simulation database.
8. A test apparatus for application of a product, the apparatus comprising:
the receiving unit is used for receiving a test request of an application product;
the identification unit is used for identifying a test node of the application product, which is used for executing an information submission event to a server;
the sending unit is used for sending indication information to a simulation database when the test node detects that the same information submission event repeatedly executed by the test node is in a failure state, wherein the indication information is used for indicating the simulation database to generate a simulation rule corresponding to the test node, and the simulation rule is used for simulating different responses of the test node to different information submission events;
the sending unit is further configured to send a simulation information submission event to the simulation database;
the receiving unit is further configured to receive a simulation response result sent by the simulation database, where the simulation response result is obtained by the simulation database according to the simulation information submission event and the simulation rule;
and the loading unit is used for loading the simulation response result so as to bypass the test node for subsequent test.
9. A user equipment, UE, comprising a processor and a memory, the memory for storing program code, the processor for invoking the program code stored in the memory to perform the method of any of claims 1-7.
10. A computer storage medium characterized in that it comprises instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910846558.4A CN110704307A (en) | 2019-09-09 | 2019-09-09 | Application product testing method and device, user equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910846558.4A CN110704307A (en) | 2019-09-09 | 2019-09-09 | Application product testing method and device, user equipment and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110704307A true CN110704307A (en) | 2020-01-17 |
Family
ID=69194768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910846558.4A Pending CN110704307A (en) | 2019-09-09 | 2019-09-09 | Application product testing method and device, user equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110704307A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199281A (en) * | 2020-09-30 | 2021-01-08 | 中国平安财产保险股份有限公司 | Data processing method and device, terminal equipment and readable storage medium |
CN114281673A (en) * | 2021-11-23 | 2022-04-05 | 中国联合网络通信集团有限公司 | Test method, equipment and storage medium based on virtualization service |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855188A (en) * | 2012-08-03 | 2013-01-02 | 福州瑞芯微电子有限公司 | Android based system pressure testing method |
US20140114644A1 (en) * | 2012-10-19 | 2014-04-24 | Oracle International Corporation | Method and apparatus for simulated failover testing |
CN108009050A (en) * | 2017-11-29 | 2018-05-08 | 郑州云海信息技术有限公司 | A kind of memory node failure restart after service reliability test method and device |
CN108563567A (en) * | 2018-04-09 | 2018-09-21 | 平安普惠企业管理有限公司 | Automated testing method, device, equipment and computer readable storage medium |
CN108964993A (en) * | 2018-06-29 | 2018-12-07 | 郑州云海信息技术有限公司 | Failure simulation method, device, equipment and readable storage medium storing program for executing based on dynamic proxy |
US20190179733A1 (en) * | 2017-12-13 | 2019-06-13 | Arm Limited | Software test program generation |
-
2019
- 2019-09-09 CN CN201910846558.4A patent/CN110704307A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855188A (en) * | 2012-08-03 | 2013-01-02 | 福州瑞芯微电子有限公司 | Android based system pressure testing method |
US20140114644A1 (en) * | 2012-10-19 | 2014-04-24 | Oracle International Corporation | Method and apparatus for simulated failover testing |
CN108009050A (en) * | 2017-11-29 | 2018-05-08 | 郑州云海信息技术有限公司 | A kind of memory node failure restart after service reliability test method and device |
US20190179733A1 (en) * | 2017-12-13 | 2019-06-13 | Arm Limited | Software test program generation |
CN108563567A (en) * | 2018-04-09 | 2018-09-21 | 平安普惠企业管理有限公司 | Automated testing method, device, equipment and computer readable storage medium |
CN108964993A (en) * | 2018-06-29 | 2018-12-07 | 郑州云海信息技术有限公司 | Failure simulation method, device, equipment and readable storage medium storing program for executing based on dynamic proxy |
Non-Patent Citations (1)
Title |
---|
唐宁 等: "基于拜占庭容错体系构架的航天器控制***测试性设计与分析", 空间控制技术与应用, no. 05, pages 58 - 63 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199281A (en) * | 2020-09-30 | 2021-01-08 | 中国平安财产保险股份有限公司 | Data processing method and device, terminal equipment and readable storage medium |
CN114281673A (en) * | 2021-11-23 | 2022-04-05 | 中国联合网络通信集团有限公司 | Test method, equipment and storage medium based on virtualization service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762803B (en) | Configuration management method, device, terminal equipment and storage medium | |
CN110493812B (en) | Distribution network test processing method, device and system, processor and master control equipment | |
US11893331B2 (en) | Device verification method, UVM verification platform, electronic apparatus and storage medium | |
CN112714158B (en) | Transaction processing method, relay network, cross-link gateway, system, medium and equipment | |
CN111177003A (en) | Test method, device, system, electronic equipment and storage medium | |
CN109683997B (en) | Method for accessing application program interface through sandbox, sandbox and sandbox equipment | |
CN109408309B (en) | Multi-terminal testing method and device | |
CN107621963B (en) | Software deployment method, software deployment system and electronic equipment | |
CN110704307A (en) | Application product testing method and device, user equipment and computer storage medium | |
CN107220169B (en) | Method and equipment for simulating server to return customized data | |
CN112148607A (en) | Interface testing method and device for service scene | |
CN105323748B (en) | Test error uploading method and device | |
CN114546837A (en) | Interface test method, device, equipment and storage medium | |
CN117076330A (en) | Access verification method, system, electronic equipment and readable storage medium | |
CN110688173B (en) | Positioning method and device of components in cross-platform interface framework and electronic equipment | |
CN110704301B (en) | TPC-E automatic test method and TPC-E test system | |
CN113535578B (en) | CTS test method, CTS test device and CTS test equipment | |
CN112131127B (en) | Interface testing method, device and system and electronic equipment | |
CN115373929A (en) | Test method, device, equipment, readable storage medium and program product | |
CN115185829A (en) | Business process testing method and device, terminal equipment and storage medium | |
CN110855526B (en) | Method and device for detecting data source connection, storage medium and electronic equipment | |
CN114745749A (en) | Virtual network element testing method and device, electronic equipment and readable storage medium | |
CN110457187B (en) | TPC-E test method and test server capable of conveniently running based on backup test data | |
CN115391168A (en) | Sandbox testing method, sandbox testing device, sandbox testing equipment and storage medium | |
CN111225075A (en) | Configuration method and device for Internet of things directional access service |
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 |