CN111352853A - Compatibility testing method, device, server and storage medium - Google Patents

Compatibility testing method, device, server and storage medium Download PDF

Info

Publication number
CN111352853A
CN111352853A CN202010446034.9A CN202010446034A CN111352853A CN 111352853 A CN111352853 A CN 111352853A CN 202010446034 A CN202010446034 A CN 202010446034A CN 111352853 A CN111352853 A CN 111352853A
Authority
CN
China
Prior art keywords
test
interactive
terminal
interaction
compatibility
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
CN202010446034.9A
Other languages
Chinese (zh)
Other versions
CN111352853B (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.)
Nanjing Leading Technology Co Ltd
Original Assignee
Nanjing Leading Technology 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 Nanjing Leading Technology Co Ltd filed Critical Nanjing Leading Technology Co Ltd
Priority to CN202010446034.9A priority Critical patent/CN111352853B/en
Publication of CN111352853A publication Critical patent/CN111352853A/en
Application granted granted Critical
Publication of CN111352853B publication Critical patent/CN111352853B/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/3692Test management for test results analysis
    • 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

Abstract

The embodiment of the invention discloses a compatibility testing method, a device, a server and a storage medium. A first interaction end, a second interaction end and a testing end are built on a compatibility platform. For travel application, the first interactive end is a passenger end, and the second interactive end is a driver end. And the compatibility platform determines the test node of each interactive task through the test end according to the test script, automatically triggers the second interactive end to execute simulation operation on the test node of each interactive task, and the test end performs compatibility test on the first interactive end according to the simulation operation and the test script of the second interactive end. The problem of need artifical constantly monitoring test node and manual trigger driver end just can carry out the compatibility test to passenger end among the prior art is solved, reach the purpose that automatic trigger driver end carries out the simulation operation, realize improving the automatic test function that awaits measuring to use, reduce the effect of human cost and time cost.

Description

Compatibility testing method, device, server and storage medium
Technical Field
The embodiment of the invention relates to a software testing technology, in particular to a compatibility testing method, a device, a server and a storage medium.
Background
The compatibility test refers to testing whether software can run friendly on a specific hardware platform, among different application software, on different operating system platforms, in different networks and other environments. At present, the fragmentation is serious, and the fragmentation, such as the fragmentation of android devices, brand fragmentation, system fragmentation, plane fragmentation and the like, brings great challenges to the compatibility test.
In the network car booking industry, the compatibility test of trip software relates to the interaction between a driver end and a passenger end. At present, the mainstream compatibility test scheme of the travel software is that after a passenger end finishes ordering, a driver orders the passenger to perform the next operation, otherwise, the compatibility test of the travel software cannot be continued. When the compatibility test is performed on the trip software in the mode, the subsequent test steps can be executed only by manually monitoring the test nodes continuously and clicking manually, and the labor cost and the time cost are high.
Disclosure of Invention
The embodiment of the invention provides a compatibility testing method, a device, a server and a storage medium, which are used for reducing the compatibility testing cost of an application to be tested and improving the testing efficiency.
In a first aspect, an embodiment of the present invention provides a compatibility testing method, which is applied to a compatibility testing platform, where the compatibility testing platform includes: the system comprises a first interactive end, a second interactive end and a testing end, wherein the first interactive end and the second interactive end are constructed according to pre-collected information;
the method comprises the following steps:
inquiring the interaction tasks and the interaction information sent by a first interaction terminal of an application to be tested every set time period through the testing terminal, and sending the interaction information of each interaction task to a second interaction terminal;
determining a test node of each interactive task through the test end based on the test script of the application to be tested, and triggering the second interactive end to execute simulation operation on the test node of each interactive task;
performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation of the second interaction terminal and the test script, and determining an actual test result of the first interaction terminal;
and determining the compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result by the test end.
In a second aspect, an embodiment of the present invention further provides a compatibility testing apparatus configured on a compatibility testing platform, where the compatibility testing platform includes: the device comprises a first interactive end, a second interactive end and a testing end, wherein the first interactive end and the second interactive end are constructed according to pre-collected information, and the device comprises:
the interactive information inquiry and sending module is used for inquiring interactive tasks and interactive information sent by a first interactive end of an application to be tested every set time period through the testing end and sending the interactive information of each interactive task to a second interactive end;
the simulation operation triggering module is used for determining the testing node of each interaction task through the testing end based on the testing script of the application to be tested and triggering the second interaction end to execute simulation operation on the testing node of each interaction task;
the actual test result determining module is used for performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation of the second interaction terminal and the test script, and determining an actual test result of the first interaction terminal;
and the compatibility test result determining module is used for determining the compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result through the test end.
In a third aspect, an embodiment of the present invention further provides a server, including a compatibility testing platform, where the compatibility testing platform includes a testing end, a first interaction end, a second interaction end, a memory, and a computer program that is stored in the memory and can be run on the testing end, and when the testing end executes the computer program, the compatibility testing method as described in any one of the first aspect is implemented.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor implement the compatibility testing method according to any one of the first aspect.
According to the technical scheme provided by the embodiment, the first interaction end, the second interaction end and the testing end are built on the compatibility platform. And the compatibility platform determines the test node of each interactive task through the test end according to the test script, automatically triggers the second interactive end to execute simulation operation on the test node of each interactive task, and the test end performs compatibility test on the first interactive end according to the simulation operation and the test script of the second interactive end. The problem that the testing node is not required to be monitored continuously by manpower, and the compatibility test can be executed on the first interaction end only by triggering the second interaction end manually is solved, the purpose of automatically triggering the second interaction end to execute the simulation operation is achieved, the automatic testing function of the application to be tested is improved, and the effects of reducing the labor cost and the time cost are achieved.
Drawings
Fig. 1 is a schematic flowchart of a compatibility testing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of a driver and passenger interaction provided by an embodiment of the present invention;
fig. 3 is a schematic flowchart of a compatibility testing method according to a second embodiment of the present invention; (ii) a
Fig. 4 is a schematic structural diagram of a compatibility testing method according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a compatibility testing method according to an embodiment of the present invention, where the method is applicable to a testing end of a compatibility testing platform, where a second interaction end is triggered to execute a simulation operation according to a testing script of an application to be tested, and the method is executed by a compatibility testing device according to a situation that the simulation operation and the testing script perform a compatibility test on a first interaction end, where the device may be implemented by software and/or hardware and is generally integrated in the compatibility testing platform. Referring specifically to fig. 1, the method may include the steps of:
s110, the interactive tasks and the interactive information sent by the first interactive end of the application to be tested are inquired at intervals of a set time period through the testing end, and the interactive information of each interactive task is sent to the second interactive end.
The application to be tested can be understood as an application program which needs to be subjected to compatibility testing through the compatibility testing platform, and the compatibility testing platform in the embodiment can be used for performing compatibility testing on the interaction process of the application to be tested. Illustratively, the application to be tested may be a travel application, a shopping application, a home service application, and the like. For travel application, the compatibility test platform can carry out compatibility test on the interaction process between the driver end and the passenger end; for shopping application, the compatibility test platform can perform compatibility test on the interaction process between a buyer and a seller; for the household service, the compatibility testing platform can perform compatibility testing on the interaction process between the service provider and the reservation client.
Specifically, if the application to be tested is a travel application, the first interactive terminal is used as a passenger terminal, the second interactive terminal is used as a driver terminal, the interactive tasks can be in order quantity, and the interactive information can be the order number of each order. As shown in fig. 2, which is an interaction diagram of a driver and a passenger of a travel application, a compatibility testing platform may receive an order through a passenger terminal, query the order sent by the passenger terminal every set time period (e.g., 5 seconds) through a testing terminal (i.e., refresh whether the order exists), if so, the testing terminal determines an order quantity and an order number of each order, and send the order number of each order to the driver terminal through the testing terminal, so that the driver terminal is on line and receives the order.
Optionally, the compatibility test platform may be built based on a business execution logic of the travel application, where the business execution logic includes test nodes of the travel application, an execution sequence between adjacent test nodes, and a business logic of each test node. The passenger end is constructed on the basis of basic information of the passenger end, and the driver end is constructed on the basis of basic information of the driver end. The passenger-side basic information includes passenger-side basic information and passenger identification information, and the driver-side basic information includes vehicle basic information, driver-side basic information, and driver identification information. Alternatively, the passenger terminal basic information may be a model of a terminal used by a passenger, the passenger identity information may include a passenger name and a passenger nickname, the vehicle basic information may include information such as a frame number, a vehicle type code, a brand, a vehicle type name, a vehicle type and a vehicle money, the driver terminal basic information may be a model of a mobile phone used by a driver, and the driver identity information may be a driver name.
And S120, determining the test node of each interactive task through the test end based on the test script of the application to be tested, and triggering the second interactive end to execute simulation operation on the test node of each interactive task.
Optionally, the test node of each interactive task may be determined and the second interactive end may be triggered to perform a simulation operation on the test node of each interactive task in the following manner:
step (a): determining a test interface between each test node in the test script and a second interaction end test logic of each test node; determining the current test node of each interactive task according to the test interface and the pre-stored last test node of each interactive task;
step (b): and triggering the second interactive end to execute simulation operation on the current test node of each interactive task based on the second interactive end test logic of the current test node of each interactive task until the current test node is the last test node.
Optionally, the test script may include a test interface between each test node and a test logic of each test node, including a first interaction end test logic and a second interaction end test logic of each test node. The test interface can be determined according to the test sequence among the test nodes of the application to be tested, and the test logic can be determined according to the service logic of each test node.
As explained in detail in connection with fig. 2. The travel application sequentially comprises test nodes such as passenger issuing, system dispatching, driver receiving, driver arrival, passenger boarding, destination arrival, driver confirmation cost, passenger payment completion, passenger evaluation and order ending, the arrow direction shown in fig. 2 is used as an execution sequence among the test nodes of the travel software, the business logic of the test nodes is determined, and a test script of the travel application can be predetermined according to the execution sequence among the test nodes and the business logic of the test nodes. When the compatibility test of the travel application is carried out through the test script of the travel application, the compatibility test platform determines a test interface according to the test nodes and determines the test logic of a driver end of the test nodes, the compatibility test platform can store the last test node of each order, if the last test node is a system order, the compatibility test platform determines the current test node of each order as a driver order, the driver end is triggered to execute simulation operation on the driver order-receiving test node through the test end according to the driver end test logic of the driver order-receiving test node, namely the driver end is triggered to complete the driver order-receiving operation, the driver end can be automatically triggered to execute the simulation operation, and the test end can conveniently carry out the compatibility test on the passenger end according to the simulation operation of the driver end.
S130, performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation and the test script of the second interaction terminal, and determining an actual test result of the first interaction terminal.
Optionally, the method for determining the actual test result of the first interactive end includes: determining a first interaction end test logic of each test node in a test script; and performing compatibility test on the first interaction terminal according to the simulation operation, the first interaction terminal test logic of the test node and the prestored basic information of the first interaction terminal to obtain an actual test result of the first interaction terminal.
As described in the previous steps, the test script may include a first inter-terminal test logic and a second inter-terminal test logic for each test node. When the compatibility test is carried out on the travel application, the passenger end test logic of each test node can be determined according to the test script of the travel application, and for the travel application with unified vehicle basic information and driver terminal basic information, only the passenger end can be tested, namely, the compatibility test is carried out on the passenger end according to the passenger end test logic, the simulation operation of the driver end and the passenger end basic information, so that the actual test result of the passenger end is obtained. According to the description, the test end can determine the test node of each order according to the test script, and automatically trigger the driver end to execute the simulation operation on the test node of each order, so that the test end performs compatibility test on the passenger end according to the simulation operation and the test script of the driver end. Compared with the prior art, the compatibility test can be executed on the passenger side without continuously monitoring the test nodes manually and triggering the driver side manually, the automatic test function of the trip software can be improved, and the labor cost and the time cost are reduced.
In this embodiment, if the application to be tested is a travel application, passenger identity information of each interactive task (i.e., an order number) may be determined according to the interactive information (i.e., an order number) of each interactive task, passenger terminal basic information may be determined based on the passenger identity information of each interactive task and a pre-stored wind control table, and a compatibility test may be performed on a passenger terminal corresponding to the passenger terminal basic information according to a simulation operation and a test script. The passenger identity information and the passenger terminal basic information are correspondingly stored in the wind control table, for example, the passenger nickname and the mobile phone model used by the passenger are correspondingly stored. Therefore, the identity information of the passenger is confirmed according to the order number, the mobile phone model used by the passenger is determined according to the wind control table, and the compatibility test process can be carried out orderly.
And S140, determining a compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result by the test end.
The test end determines the actual test result of the passenger end through the steps, and can compare the actual test result with the theoretical test result prestored in the compatibility test platform and determine the compatibility test result according to the comparison result.
It should be noted that, the embodiment may also build a dependent system side on the compatibility platform. The test end can inquire the interactive tasks and the interactive information sent by the first interactive end of the application to be tested through the calling dependency system side, send the interactive information of each interactive task to the second interactive end through the dependency system side, and trigger the second interactive end to execute the simulation operation on the test nodes of each interactive task through the calling dependency system side.
According to the technical scheme provided by the embodiment, the first interaction end, the second interaction end and the testing end are built on the compatibility platform. For travel application, the first interactive end is a passenger end, and the second interactive end is a driver end. And the compatibility platform determines the test node of each interactive task through the test end according to the test script, automatically triggers the second interactive end to execute simulation operation on the test node of each interactive task, and the test end performs compatibility test on the first interactive end according to the simulation operation and the test script of the second interactive end. The problem of need artifical constantly monitoring test node and manual trigger driver end just can carry out the compatibility test to passenger end among the prior art is solved, reach the purpose that automatic trigger driver end carries out the simulation operation, realize improving the automatic test function that awaits measuring to use, reduce the effect of human cost and time cost.
Example two
Fig. 3 is a flowchart illustrating a compatibility testing method according to a second embodiment of the present invention. The technical scheme of the embodiment adds a new step on the basis of the embodiment. Optionally, the determining, by the testing end, a compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result includes: acquiring at least one preset check point of all the test nodes and theoretical test results of each check point; determining an actual test result of each check point; and if the actual test result of each check point is consistent with the theoretical test result of each check point, determining that the application to be tested successfully completes the compatibility test. In the method, reference is made to the above-described embodiments for those parts which are not described in detail. Referring specifically to fig. 3, the method may include the steps of:
s210, the interactive tasks and the interactive information sent by the first interactive end of the application to be tested are inquired every other set time period through the testing end, and the interactive information of each interactive task is sent to the second interactive end.
S220, determining the test node of each interactive task through the test end based on the test script of the application to be tested, and triggering the second interactive end to execute simulation operation on the test node of each interactive task.
And S230, performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation and the test script of the second interaction terminal, and determining an actual test result of the first interaction terminal.
S240, at least one preset check point of all the test nodes and theoretical test results of all the check points are obtained, and actual test results of all the check points are determined.
Optionally, the compatibility test platform may set at least one checkpoint for each test node. For example, the application to be tested is a trip application, the compatibility testing platform sets at least one check point for testing nodes such as passenger issuing, system dispatching, driver receiving, driver arrival, passenger boarding, destination arrival, driver confirmation cost, passenger payment completion, order completion and the like, the theoretical testing result of each check point is predetermined, the actual testing result of each check point is determined based on the actual testing result of the first interaction end, the actual testing result of each check point is conveniently compared with the theoretical testing result, and whether the application to be tested has errors or not is determined according to the comparison result.
And S250, if the actual test result of each check point is consistent with the theoretical test result of each check point, determining that the application to be tested successfully completes the compatibility test.
Optionally, if the actual test result of at least one of the check points is inconsistent with the theoretical test result of the check point, positioning the check point with the actual test result inconsistent with the theoretical test result through the test end, and determining an abnormal check point and an abnormal test node to which the abnormal check point belongs; determining a target interaction task through the test end according to the interaction information of the abnormal test node and each interaction task; and determining basic information of the target interactive terminal according to the interactive information of the target interactive task and the basic information of the first interactive terminal through the testing terminal, and displaying the basic information of the target interactive terminal.
Specifically, if the software to be tested is a trip application, if the test end detects that a theoretical test result of a check point in a test node where a passenger end completes payment is inconsistent with an actual test result, the test end positions the check point where the actual test result is inconsistent with the theoretical test result, determines an abnormal test node where the abnormal check point and the abnormal check point are located, determines an abnormal order according to the abnormal test node and an order number of each order, determines passenger end basic information according to the order number of the abnormal order, determines an abnormal passenger terminal according to the passenger end basic information, and displays the model of the abnormal passenger terminal to a tester so that the tester records the abnormal check point. It can be seen from the foregoing description that, by capturing the abnormal check point, the full link information of the abnormal test node, the abnormal passenger terminal and the like related to the abnormal check point in the trip software is acquired according to the abnormal check point, which facilitates all information related to the abnormal check point and facilitates debugging and recording by a tester.
It should be noted that, in the compatibility test platform described in the foregoing steps, the test end triggers the second interaction end to execute the simulation operation on the test node of each interaction task according to the test script, and the compatibility test is performed on the first interaction end according to the simulation operation of the second interaction end and the test script. For example, when the basic information of the vehicle and the basic information of the driver terminal are unified, the testing end only performs compatibility testing on the passenger end according to the simulation operation of the driver end.
Different from the previous steps, the compatibility test platform can also trigger the first interactive end to execute simulation operation on the test node of each interactive task through the test end based on the test script of the application to be tested, and perform compatibility test on the second interactive end through the test end according to the simulation operation and the test script of the first interactive end to determine the compatibility test result of the application to be tested. For example, when the basic information of the driver terminal is not uniform, the compatibility test platform performs compatibility test on the driver terminal through the test terminal according to the simulation operation of the passenger terminal.
Similar to the method for performing compatibility test on the first interactive end through the test end according to the simulation operation and the test script of the second interactive end, the method for triggering the first interactive end to execute the simulation operation on the test node of each interactive task is as follows: determining a test interface between each test node in the test script and a first interaction end test logic of each test node; determining the current test node of each interactive task according to the test interface and the pre-stored last test node of each interactive task; and triggering the first interactive end to execute simulation operation on the current test node of each interactive task based on the first interactive end test logic of the current test node of each interactive task until the current test node is the last test node.
Further, the method for determining the actual test result of the second interactive end comprises the following steps: determining a second interactive end test logic of each test node in the test script; and performing compatibility test on the second interaction terminal according to the simulation operation, the second interaction terminal test logic of the test node and the prestored second interaction terminal basic information to obtain an actual test result of the second interaction terminal.
Further, determining a compatibility test result of the application to be tested, including: acquiring at least one preset check point of all test nodes and theoretical test results of each check point; determining an actual test result of each check point; and if the actual test result of each check point is consistent with the theoretical test result of each check point, determining that the application to be tested successfully completes the compatibility test.
Further, if the actual test result of at least one check point is inconsistent with the theoretical test result of the check point, positioning the check point with the actual test result inconsistent with the theoretical test result through the test end, and determining an abnormal check point and an abnormal test node to which the abnormal check point belongs; determining a target interaction task through the test end according to the interaction information of the abnormal test node and each interaction task; and determining basic information of the target interactive terminal according to the interactive information of the target interactive task and the basic information of the second interactive terminal through the testing terminal, and displaying the basic information of the target interactive terminal.
The technical scheme provided by the embodiment determines theoretical test results and actual test results of all check points, compares the theoretical test results and the actual test results of all check points, determines that the application to be tested successfully completes compatibility test and captures an abnormal check point if the actual test results of all check points are consistent with the theoretical test results of all check points, locates all link information such as the abnormal check point, the abnormal test node, the target interaction task, the basic information of the target interaction terminal and the like if the actual test results of all check points are inconsistent with the theoretical test results of all check points, and displays the information, thereby facilitating debugging and recording of a tester. In addition, for the trip application, the compatibility test platform can also trigger a first interactive end (namely, a passenger end) to execute simulation operation on a test node of each interactive task through the test end based on a test script of the application to be tested, and perform compatibility test on a second interactive end (namely, a driver end) through the test end according to the simulation operation of the first interactive end and the test script to determine a compatibility test result of the application to be tested, so that the purposes of automatically triggering the first interactive end to execute the simulation operation and performing the compatibility test on the second interactive end according to the simulation operation of the first interactive end are achieved, and the automatic test function of the application to be tested is further improved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a compatibility testing apparatus according to a third embodiment of the present invention. The device is configured on the compatibility test platform. The compatibility test platform, the compatibility test platform includes: the device comprises a first interactive end, a second interactive end and a testing end, wherein the first interactive end and the second interactive end are constructed according to pre-collected information. As shown in fig. 4, the apparatus includes: an interactive information inquiry and transmission module 31, a simulation operation triggering module 32, an actual test result determining module 33, and a compatibility test result determining module 34.
The interaction information query and transmission module 31 is configured to query, by the test terminal, interaction tasks and interaction information sent by a first interaction terminal of an application to be tested every set time period, and send interaction information of each interaction task to a second interaction terminal;
the simulation operation triggering module 32 is configured to determine, by the testing terminal, a testing node of each interaction task based on the test script of the application to be tested, and trigger the second interaction terminal to perform a simulation operation on the testing node of each interaction task;
an actual test result determining module 33, configured to perform a compatibility test on the first interaction end through the test end according to the simulation operation of the second interaction end and the test script, and determine an actual test result of the first interaction end;
and the compatibility test result determining module 34 is configured to determine, by the testing end, a compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result.
On the basis of the above embodiments, the application to be tested is a trip application, and the compatibility test platform is built based on a business execution logic of the trip application, where the business execution logic includes test nodes of the trip application, an execution sequence between adjacent test nodes, and a business logic of each test node.
On the basis of the above embodiments, the first interactive terminal is a passenger terminal and is constructed based on passenger terminal basic information, wherein the passenger terminal basic information includes passenger terminal basic information and passenger identity information; the second interactive terminal is a driver terminal and is constructed based on basic information of the driver terminal, wherein the basic information of the driver terminal comprises basic information of a vehicle, basic information of the driver terminal and identity information of a driver.
On the basis of the foregoing embodiments, the simulation operation triggering module 32 is further configured to determine a test interface between each test node in the test script and a second interaction end test logic of each test node;
determining the current test node of each interactive task according to the test interface and the pre-stored last test node of each interactive task;
and triggering the second interactive end to execute simulation operation on the current test node of each interactive task based on the second interactive end test logic of the current test node of each interactive task until the current test node is the last test node.
On the basis of the foregoing embodiments, the actual test result determining module 33 is further configured to determine a first interaction end test logic of each test node in the test script;
and performing compatibility test on the first interaction terminal according to the simulation operation, the first interaction terminal test logic of the test node and pre-stored first interaction terminal basic information to obtain an actual test result of the first interaction terminal.
On the basis of the foregoing embodiments, the compatibility test result determining module 34 is further configured to obtain at least one preset check point of all the test nodes and a theoretical test result of each check point;
determining an actual test result of each check point;
and if the actual test result of each check point is consistent with the theoretical test result of each check point, determining that the application to be tested successfully completes the compatibility test.
On the basis of the foregoing embodiments, the compatibility test result determining module 34 is further configured to, if there is at least one actual test result of the checkpoint that is inconsistent with the theoretical test result of the checkpoint, locate, through the test end, the checkpoint that is inconsistent with the actual test result and the theoretical test result, and determine an abnormal checkpoint and an abnormal test node to which the abnormal checkpoint belongs;
determining a target interaction task through the test end according to the interaction information of the abnormal test node and each interaction task;
and determining basic information of the target interactive terminal according to the interactive information of the target interactive task and the basic information of the first interactive terminal through the testing terminal, and displaying the basic information of the target interactive terminal.
On the basis of the above embodiments, if the application to be tested is a travel application, the compatibility test result determining module 34 is further configured to determine passenger identity information of each interaction task according to the interaction information of each interaction task;
determining passenger terminal basic information based on the passenger identity information of each interactive task and a pre-stored wind control table;
and performing compatibility test on the passenger terminal corresponding to the basic information of the passenger terminal according to the simulation operation and the test script.
On the basis of the above embodiments, the apparatus further includes: a second interaction end compatibility test module;
the second interaction end compatibility testing module is used for triggering the first interaction end to execute simulation operation on the testing node of each interaction task through the testing end based on the testing script of the application to be tested;
and performing compatibility test on the second interactive terminal through the test terminal according to the simulation operation of the first interactive terminal and the test script, and determining a compatibility test result of the application to be tested.
According to the technical scheme provided by the embodiment, the first interaction end, the second interaction end and the testing end are built on the compatibility platform. For travel application, the first interactive end is a passenger end, and the second interactive end is a driver end. And the compatibility platform determines the test node of each interactive task through the test end according to the test script, automatically triggers the second interactive end to execute simulation operation on the test node of each interactive task, and the test end performs compatibility test on the first interactive end according to the simulation operation and the test script of the second interactive end. The problem of need artifical constantly monitoring test node and manual trigger driver end just can carry out the compatibility test to passenger end among the prior art is solved, reach the purpose that automatic trigger driver end carries out the simulation operation, realize improving the automatic test function that awaits measuring to use, reduce the effect of human cost and time cost.
Example four
Fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. The server comprises a compatibility testing platform, wherein the compatibility testing platform comprises a testing end, a first interaction end and a second interaction end. FIG. 5 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 5 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The server 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. The memory 28 may include at least one program product having a set of program modules (e.g., a compatibility test apparatus mutual information inquiry and transmission module 31, a simulation operation triggering module 32, an actual test result determination module 33, and a compatibility test result determination module 34) configured to perform the functions of the embodiments of the present invention.
A program/utility 44 having a set of program modules 46 (e.g., the compatibility test device's mutual information query and transmission module 31, the simulated operation triggering module 32, the actual test result determination module 33, and the compatibility test result determination module 34) may be stored, for example, in memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination of which may comprise an implementation of a network environment. Program modules 46 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the server 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the server 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a compatibility testing method provided by an embodiment of the present invention, the method including:
inquiring the interaction tasks and the interaction information sent by a first interaction terminal of an application to be tested every set time period through the testing terminal, and sending the interaction information of each interaction task to a second interaction terminal;
determining a test node of each interactive task through the test end based on the test script of the application to be tested, and triggering the second interactive end to execute simulation operation on the test node of each interactive task;
performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation of the second interaction terminal and the test script, and determining an actual test result of the first interaction terminal;
and determining the compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result by the test end.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a compatibility test method provided by the embodiment of the present invention.
Of course, those skilled in the art can understand that the processor may also implement the technical solution of the compatibility testing method provided in any embodiment of the present invention.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a compatibility testing method provided in an embodiment of the present invention, where the method includes:
inquiring the interaction tasks and the interaction information sent by a first interaction terminal of an application to be tested every set time period through the testing terminal, and sending the interaction information of each interaction task to a second interaction terminal;
determining a test node of each interactive task through the test end based on the test script of the application to be tested, and triggering the second interactive end to execute simulation operation on the test node of each interactive task;
performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation of the second interaction terminal and the test script, and determining an actual test result of the first interaction terminal;
and determining the compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result by the test end.
Of course, the computer program stored on the computer-readable storage medium provided in the embodiments of the present invention is not limited to the above method operations, and may also perform related operations in a compatibility subsidy method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
A computer readable signal medium may include a test script, a test node, actual test results, etc. which carry a computer readable program code. The form of the propagated test script, the test node, the actual test result and the like. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the embodiment of the compatibility testing apparatus, each included module is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A compatibility testing method is characterized by being applied to a compatibility testing platform, and the compatibility testing platform comprises the following steps: the system comprises a first interactive end, a second interactive end and a testing end, wherein the first interactive end and the second interactive end are constructed according to pre-collected information;
the method comprises the following steps:
inquiring the interaction tasks and the interaction information sent by a first interaction terminal of an application to be tested every set time period through the testing terminal, and sending the interaction information of each interaction task to a second interaction terminal;
determining a test node of each interactive task through the test end based on the test script of the application to be tested, and triggering the second interactive end to execute simulation operation on the test node of each interactive task;
performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation of the second interaction terminal and the test script, and determining an actual test result of the first interaction terminal;
and determining the compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result by the test end.
2. The method according to claim 1, wherein the application to be tested is a travel application, and the compatibility testing platform is built based on business execution logic of the travel application, wherein the business execution logic includes testing nodes of the travel application, execution sequence between adjacent testing nodes, and business logic of each testing node.
3. The method of claim 2, wherein the first interactive terminal is a passenger terminal and is constructed based on passenger terminal basic information, wherein the passenger terminal basic information comprises passenger terminal basic information and passenger identity information; the second interactive terminal is a driver terminal and is constructed based on basic information of the driver terminal, wherein the basic information of the driver terminal comprises basic information of a vehicle, basic information of the driver terminal and identity information of a driver.
4. The method of claim 1, wherein determining, by the testing end, a testing node of each of the interaction tasks based on a testing script of the application to be tested, and triggering the second interaction end to perform a simulation operation on the testing node of each of the interaction tasks comprises:
determining a test interface between each test node in the test script and a second interaction end test logic of each test node;
determining the current test node of each interactive task according to the test interface and the pre-stored last test node of each interactive task;
and triggering the second interactive end to execute simulation operation on the current test node of each interactive task based on the second interactive end test logic of the current test node of each interactive task until the current test node is the last test node.
5. The method of claim 4, wherein the determining, by the testing end, the actual test result of the first interaction end by performing the compatibility test on the first interaction end according to the simulation operation of the second interaction end and the test script comprises:
determining a first interaction end test logic of each test node in the test script;
and performing compatibility test on the first interaction terminal according to the simulation operation, the first interaction terminal test logic of the test node and pre-stored first interaction terminal basic information to obtain an actual test result of the first interaction terminal.
6. The method of claim 1, wherein the determining, by the testing end, the compatibility test result of the application to be tested according to the actual test result and a pre-stored theoretical test result comprises:
acquiring at least one preset check point of all the test nodes and theoretical test results of each check point;
determining an actual test result of each check point;
and if the actual test result of each check point is consistent with the theoretical test result of each check point, determining that the application to be tested successfully completes the compatibility test.
7. The method of claim 6, further comprising:
if the actual test result of at least one check point is inconsistent with the theoretical test result of the check point, positioning the check point with the inconsistent actual test result and the theoretical test result through the test end, and determining an abnormal check point and an abnormal test node to which the abnormal check point belongs;
determining a target interaction task through the test end according to the interaction information of the abnormal test node and each interaction task;
and determining basic information of the target interactive terminal according to the interactive information of the target interactive task and the basic information of the first interactive terminal through the testing terminal, and displaying the basic information of the target interactive terminal.
8. The method of claim 3, wherein if the application to be tested is a travel application, the performing, by the testing terminal, a compatibility test on the first interaction terminal according to the simulation operation of the second interaction terminal and the test script comprises:
determining passenger identity information of each interactive task according to the interactive information of each interactive task;
determining passenger terminal basic information based on the passenger identity information of each interactive task and a pre-stored wind control table;
and performing compatibility test on the passenger terminal corresponding to the basic information of the passenger terminal according to the simulation operation and the test script.
9. The method of claim 1, further comprising:
triggering the first interactive terminal to execute simulation operation on the test node of each interactive task through the test terminal based on the test script of the application to be tested;
and performing compatibility test on the second interactive terminal through the test terminal according to the simulation operation of the first interactive terminal and the test script, and determining a compatibility test result of the application to be tested.
10. A compatibility testing apparatus configured to be disposed on a compatibility testing platform, the compatibility testing platform comprising: the device comprises a first interactive end, a second interactive end and a testing end, wherein the first interactive end and the second interactive end are constructed according to pre-collected information, and the device comprises:
the interactive information inquiry and sending module is used for inquiring interactive tasks and interactive information sent by a first interactive end of an application to be tested every set time period through the testing end and sending the interactive information of each interactive task to a second interactive end;
the simulation operation triggering module is used for determining the testing node of each interaction task through the testing end based on the testing script of the application to be tested and triggering the second interaction end to execute simulation operation on the testing node of each interaction task;
the actual test result determining module is used for performing compatibility test on the first interaction terminal through the test terminal according to the simulation operation of the second interaction terminal and the test script, and determining an actual test result of the first interaction terminal;
and the compatibility test result determining module is used for determining the compatibility test result of the application to be tested according to the actual test result and a prestored theoretical test result through the test end.
11. A server comprising a compatibility testing platform, said compatibility testing platform comprising a testing end, a first interacting end, a second interacting end, a memory and a computer program stored on said memory and operable on said testing end, wherein said testing end implements the compatibility testing method according to any one of claims 1-9 when executing said computer program.
12. A storage medium containing computer-executable instructions which, when executed by a computer processor, implement the compatibility testing method of any of claims 1-9.
CN202010446034.9A 2020-05-25 2020-05-25 Compatibility testing method, device, server and storage medium Active CN111352853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010446034.9A CN111352853B (en) 2020-05-25 2020-05-25 Compatibility testing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010446034.9A CN111352853B (en) 2020-05-25 2020-05-25 Compatibility testing method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111352853A true CN111352853A (en) 2020-06-30
CN111352853B CN111352853B (en) 2020-09-18

Family

ID=71197770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010446034.9A Active CN111352853B (en) 2020-05-25 2020-05-25 Compatibility testing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111352853B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162915A (en) * 2020-08-27 2021-01-01 杭州大搜车汽车服务有限公司 Test data generation method, device, equipment and storage medium
CN112699047A (en) * 2021-01-13 2021-04-23 腾讯科技(深圳)有限公司 Application testing method and device, computer equipment and storage medium
CN113568834A (en) * 2021-07-28 2021-10-29 南方电网数字电网研究院有限公司 SDK code compatibility detection method, device, computer equipment and medium
CN114817079A (en) * 2022-06-30 2022-07-29 云账户技术(天津)有限公司 Software stability testing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699612A (en) * 2015-03-25 2015-06-10 北京嘀嘀无限科技发展有限公司 Processing method, equipment and system used in software testing
CN106371990A (en) * 2016-08-30 2017-02-01 福建天晴数码有限公司 Testing method and testing system of concurrent processing capability of interactive software
CN106445810A (en) * 2016-08-30 2017-02-22 福建天晴数码有限公司 Interactive software and device compatibility test method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699612A (en) * 2015-03-25 2015-06-10 北京嘀嘀无限科技发展有限公司 Processing method, equipment and system used in software testing
CN106371990A (en) * 2016-08-30 2017-02-01 福建天晴数码有限公司 Testing method and testing system of concurrent processing capability of interactive software
CN106445810A (en) * 2016-08-30 2017-02-22 福建天晴数码有限公司 Interactive software and device compatibility test method and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162915A (en) * 2020-08-27 2021-01-01 杭州大搜车汽车服务有限公司 Test data generation method, device, equipment and storage medium
CN112699047A (en) * 2021-01-13 2021-04-23 腾讯科技(深圳)有限公司 Application testing method and device, computer equipment and storage medium
CN112699047B (en) * 2021-01-13 2023-08-25 腾讯科技(深圳)有限公司 Application testing method and device, computer equipment and storage medium
CN113568834A (en) * 2021-07-28 2021-10-29 南方电网数字电网研究院有限公司 SDK code compatibility detection method, device, computer equipment and medium
CN114817079A (en) * 2022-06-30 2022-07-29 云账户技术(天津)有限公司 Software stability testing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111352853B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN111352853B (en) Compatibility testing method, device, server and storage medium
CN108416485B (en) User identity recognition method, electronic device and computer readable storage medium
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN107193747B (en) Code testing method and device and computer equipment
CN111260930A (en) Vehicle management system, device, method and computer system
CN111324441A (en) Operating environment switching method and device, computer equipment and storage medium
CN109636424A (en) A kind of management method and relevant device of information of vehicles
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
WO2023165256A1 (en) Information generation method and apparatus, and electronic device
CN114490161A (en) Fault diagnosis method and device, vehicle and storage medium
CN112199277A (en) Browser-based defect reproduction method, device, equipment and storage medium
CN115268854A (en) Service expansion implementation method, system, electronic equipment and readable storage medium
CN113934758A (en) Vehicle fault repairing method and device, vehicle-mounted terminal, server and storage medium
CN110414704A (en) A kind of order processing method, apparatus, equipment and storage medium
CN109240928A (en) A kind of test method, device, equipment and storage medium
CN109885431B (en) Method and apparatus for backing up data
CN113392002B (en) Test system construction method, device, equipment and storage medium
US6470491B1 (en) Method for monitoring computer programs on window-based operating platforms
CN111652650B (en) Guiding method, device and system for vehicle source management
CN112214201A (en) Method, device, equipment and storage medium for authenticating bottom interface of vehicle machine system
CN112084114A (en) Method and apparatus for testing an interface
CN111881381A (en) Display method, device, equipment and storage medium
CN112799957A (en) User behavior based fault handling method, system, device and medium
CN111708684B (en) Recording method and device for page access and computer system
CN112463635B (en) Software acceptance testing method and device

Legal Events

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