CN112905428A - Test method, test device, electronic equipment and storage medium - Google Patents

Test method, test device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112905428A
CN112905428A CN201911229452.6A CN201911229452A CN112905428A CN 112905428 A CN112905428 A CN 112905428A CN 201911229452 A CN201911229452 A CN 201911229452A CN 112905428 A CN112905428 A CN 112905428A
Authority
CN
China
Prior art keywords
logistics
event
test
interface
determining
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
Application number
CN201911229452.6A
Other languages
Chinese (zh)
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.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding 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 Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201911229452.6A priority Critical patent/CN112905428A/en
Publication of CN112905428A publication Critical patent/CN112905428A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a test method, a test device, electronic equipment and a storage medium, so that the test efficiency is improved. The method comprises the following steps: the simulation tool acquires logistics event information corresponding to a logistics event, determines a corresponding logistics event request according to the logistics event information, and sends the logistics event request to a server; the server side determines corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, executing the logistics operation and acquiring operation information, and determining a test result according to the operation information, wherein the other logistics operations comprise logistics operations except the logistics operation needing to be sent to the logistics object management equipment. The operation of simulation equipment such as simulation tools, interfaces and the like can be simulated, various required information can be fed back to the server side, the test steps are simplified, and the test efficiency is improved.

Description

Test method, test device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a test method, a test apparatus, an electronic device, and a storage medium.
Background
Along with the development of the logistics express industry, the logistics express business provides efficient and convenient logistics transportation services for users, the users send out logistics objects such as goods through express delivery, and the logistics objects can be received through the express delivery.
In the field of logistics, many services need support of a server, and for example, the storage and the access of a logistics object in a logistics object management device such as a self-service cabinet and the like need the cooperative cooperation of the server. Therefore, the stability of the server and the like affect the normal execution of various transactions in the logistics field.
In the process of testing the server, some logistics object management equipment is often required to participate in the test, but the server and the logistics object management equipment are usually in different places, the test operation is complex, the hardware resources are high in price and large in occupied area, batch purchase is difficult, resource preemption is easy in the concentrated test process of the project, and the test progress is influenced.
Disclosure of Invention
The embodiment of the application provides a test method to improve test efficiency.
Correspondingly, the embodiment of the application also provides a testing device, electronic equipment and a storage medium, so as to ensure the realization and application of the system.
In order to solve the above problem, an embodiment of the present application discloses a testing method, which is applied to a testing system, where the testing system includes a server and a simulation tool, and the simulation tool is used to simulate a logistics object management device, and the method includes: the simulation tool acquires logistics event information corresponding to a logistics event, determines a corresponding logistics event request according to the logistics event information, and sends the logistics event request to a server; the server side determines corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, executing the logistics operation and acquiring operation information, and determining a test result according to the operation information, wherein the other logistics operations comprise logistics operations except the logistics operation needing to be sent to the logistics object management equipment.
The embodiment of the application also discloses a test method, which comprises the following steps: receiving a logistics event request, wherein the logistics event request is determined according to logistics event information corresponding to a logistics event acquired by a simulation tool; determining corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; aiming at other logistics operations, executing the logistics operations and acquiring operation information, wherein the other logistics operations comprise logistics operations except the logistics operations needing to be sent to the logistics object management equipment; and determining a test result according to the operation information.
The embodiment of the application also discloses a test method, which comprises the following steps: providing a test interface, the test interface comprising: a parameter setting control; determining logistics event information corresponding to the logistics event through the parameter setting control; and generating a logistics event request according to the logistics event information, and sending the logistics event request.
The embodiment of the application also discloses a test method, which comprises the following steps: receiving a logistics event request, wherein the logistics event request is determined according to data of a test interface of a simulation tool, and the data comprises logistics event information and mode parameters; determining a corresponding logistics operation and test mode according to the logistics event request; if the test mode is an isolation mode, isolating the logistics object management equipment, and operating to obtain operation information through a simulation interface; if the test mode is a non-isolation mode, forwarding the logistics operation to corresponding logistics object management equipment, and receiving operation information returned by the logistics object management equipment; and determining a test result according to the operation information.
The embodiment of the application also discloses a test method, which comprises the following steps: receiving a storage event request, wherein the storage event request is determined according to storage event information received by a test interface of a simulation tool; generating a processing message according to the storage event request; processing the storage processing message through an analog interface, and returning successful operation information; sending a query message to a logistics server and receiving a returned query result; determining an item taking code and a corresponding item taking code feedback message, and determining a feedback success message through a simulation interface; sending a storage synchronization message to a logistics server and receiving a feedback message; and determining a test result.
The embodiment of the application also discloses a test method, which comprises the following steps: receiving a request for taking out an event, wherein the request for taking out the event is determined according to the information of the taken out event received by a test interface of the simulation tool; processing according to the taking-out event request, and determining a container number, wherein the container number is the container number of a container for storing the logistics object; generating pickup information according to the container number, and determining pickup success information corresponding to the pickup information through a simulation interface; sending the extracted synchronous message to other server sides, and receiving a feedback message; and determining a test result.
The embodiment of the application also discloses a testing device, the device includes: the request acquisition module is used for receiving a logistics event request, and the logistics event request is determined according to logistics event information corresponding to the logistics event acquired by the simulation tool; the test processing module is used for determining corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; aiming at other logistics operations, executing the logistics operations and acquiring operation information, wherein the other logistics operations comprise logistics operations except the logistics operations needing to be sent to the logistics object management equipment; and the result determining module is used for determining a test result according to the operation information.
The embodiment of the application also discloses a testing device, the device includes: an interface providing module for providing a test interface, the test interface comprising: a parameter setting control; the event setting module is used for determining logistics event information corresponding to the logistics event through the parameter setting control; and the request module is used for generating a logistics event request according to the logistics event information and sending the logistics event request.
The embodiment of the application also discloses a testing device, the device includes: the system comprises a receiving module, a simulation module and a display module, wherein the receiving module is used for receiving a logistics event request, the logistics event request is determined according to data of a test interface of a simulation tool, and the data comprises logistics event information and mode parameters; the mode determining module is used for determining a corresponding logistics operation and test mode according to the logistics event request; the isolation test module is used for isolating the logistics object management equipment if the test mode is the isolation mode and acquiring operation information through simulation interface operation; the non-isolation test module is used for forwarding the logistics operation to corresponding logistics object management equipment and receiving operation information returned by the logistics object management equipment if the test mode is the non-isolation mode; and the test result determining module is used for determining a test result according to the operation information.
The embodiment of the application also discloses a testing device, the device includes: the storage triggering module is used for receiving a storage event request, wherein the storage event request is based on the storage event information of the storage event received by the test interface of the simulation tool; the storage event testing module is used for generating a processing message according to the storage event request; processing the storage processing message through an analog interface, and returning successful operation information; sending a query message to a logistics server and receiving a returned query result; determining an item taking code and a corresponding item taking code feedback message, and determining a feedback success message through a simulation interface; sending a storage synchronization message to a logistics server and receiving a feedback message; and the storage result determining module is used for determining the test result.
The embodiment of the application also discloses a testing device, the device includes: the system comprises a taking-out triggering module, a simulation tool and a data processing module, wherein the taking-out triggering module is used for receiving a taking-out event request, and the taking-out event request is based on taking-out event information of a taking-out event received by a test interface of the simulation tool; the taking-out event testing module is used for processing according to the taking-out event request and determining a container number, wherein the container number is the container number of a container for storing the logistics object; generating pickup information according to the container number, and determining pickup success information corresponding to the pickup information through a simulation interface; sending the extracted synchronous message to other server sides, and receiving a feedback message; and the extraction result determining module is used for determining the test result.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a testing method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a testing method as described in one or more of the embodiments of the present application are also disclosed.
Compared with the prior art, the embodiment of the application has the following advantages:
in the embodiment of the application, logistics event information corresponding to a logistics event can be set on a simulation tool, and then a corresponding logistics event request is determined according to the logistics event and sent to a server, so that the server can perform testing under the condition of isolating logistics object management equipment, and the server determines a corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, the logistics operations are executed, the operation information is obtained, and the test result is determined according to the operation information, so that various required information can be fed back to the server through the operation of simulation equipment such as simulation tools, interfaces and the like, the test steps are simplified, and the test efficiency is improved.
Drawings
FIG. 1 is an interactive schematic diagram of a testing process according to an embodiment of the present application;
FIG. 2 is a flow chart of steps of one embodiment of a testing method of an embodiment of the present application;
FIG. 3 is a schematic diagram of an example test interface of a simulation tool in an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps for storing an example of an event in an embodiment of a testing method of the present application;
FIG. 5 is a schematic diagram of an example test interface of another simulation tool in an embodiment of the present application;
FIG. 6 is a flowchart illustrating steps taken to sample events in one embodiment of a testing method of the present application;
FIG. 7 is a flow chart of steps in another test method embodiment of the present application;
FIG. 8 is a block diagram of a test apparatus according to an embodiment of the present application;
FIG. 9 is a block diagram of an alternative embodiment of a test apparatus of the present application;
FIG. 10 is a block diagram of another test apparatus embodiment of the present application;
FIG. 11 is a block diagram of a test apparatus according to yet another embodiment of the present application;
FIG. 12 is a block diagram of a test apparatus according to yet another embodiment of the present application;
FIG. 13 is a block diagram of a further test apparatus embodiment of the present application;
fig. 14 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
In the embodiment of the application, the method and the device can be applied to the field of logistics and test a logistics system. The system for testing the logistics system may be referred to as a test system, and the test system includes a server and a simulation tool, where the server is a server of the logistics system, such as a server interacting with the logistics object management device. The logistics object management device refers to a device for managing logistics objects, such as an express self-service cabinet. The simulation tool is used for simulating the logistics object management equipment, and can simulate an interface required by interaction between the server and the logistics object management equipment, so that data circulation corresponding to various logistics events can be driven based on the simulation tool, and the operation of the server corresponding to the logistics events can be tested. The server can include various logistics service providing devices such as a server (cluster), a cloud device, a virtual machine and the like. The simulation tool can be arranged in the test equipment, can also be arranged at the server side, and can be specifically set according to requirements.
The logistics event refers to an event corresponding to various services corresponding to the logistics field, and the logistics event comprises at least one of the following: device activation events, online detection events, deposit events, and withdraw events. The device activation event refers to an event activated by the logistics object management device, and is usually processed at the server after the logistics object management device is initially installed, so as to activate the logistics object management device, so that the server can manage and control the logistics object management device, and the process is the processing process of the activation event. The online detection event refers to an event that the logistics object management equipment interacts with the server side so that the server side determines that the logistics object management equipment is in an online state. The storage event refers to an event that the logistics object is stored in the logistics object management device, and in the process, the logistics object management device needs to interact with a server side to store the logistics object. The taking out event refers to an event of taking out the logistics object from the logistics object management equipment, and in the process, the logistics object management equipment needs to interact with a server side to take out the logistics object.
In each logistics event, the logistics object management device and the server are generally required to interact, and in the embodiment of the application, a simulation tool can be used for simulating the operation required to be executed by the logistics object management device in the logistics event, and providing data such as required information for the server.
Referring to fig. 1, an interactive schematic diagram of a test process according to an embodiment of the present application is shown.
And 102, receiving logistics event information of the logistics object in a test interface of the simulation tool.
The simulation tool can encapsulate an interactive Interface corresponding to the logistics event and provide a test Interface for the outside, the test Interface can be a Graphical User Interface (GUI) such as a web page, a client Interface and the like, a test User can access the test Interface, the test Interface comprises a parameter setting control, and the parameter setting control is used for determining logistics event information corresponding to the logistics event. Different logistics events can correspond to different test interfaces, so that one test interface can be set as a main interface, the main interface comprises an event selection control, the logistics events can be selected in the main interface through the event selection control, and the test interfaces corresponding to the logistics events can be jumped to through the selection of the logistics events. And setting a control corresponding to the parameters of the logistics event in the test interface of each logistics event, so that the parameters corresponding to the logistics event can be set to obtain the logistics event information.
For example, device information such as device name, device identification, device address, etc. may be input at the test interface for the device activation event as logistics event information. Equipment information such as equipment name, equipment identification, equipment address and the like and other information required by online detection can be input in the test interface aiming at the online detection event as logistics event information. For a storage event, device information such as a device name, a device identifier, a device address and the like, and other parameters required for storing a logistics object, such as a logistics list number, a user mobile phone number and other user information, may be input in a test interface, and the user may be a receiving user, a sending user and the like, specifically determined according to the logistics event, that is, the user sends the storage event, the sending user information, and if the user receives the storage event, the receiving user information and the like, for example, an example of a test interface for storing an event is shown in fig. 3. For the event to be taken out, device information such as a device name, a device identifier, a device address and the like, and other parameters required for storing the logistics object, such as a logistics list number, user information such as a user mobile phone number and the like, may be input in the test interface, the user may be a recipient user, a courier and the like, and is specifically determined according to the logistics event, if the event to be taken out is sent by the user, the information is the courier, if the event to be taken out is received by the user, the information is the recipient user and the like, and for example, an example of the test interface for taking out the event is shown in fig. 5. After the test user finishes inputting the logistics event information in the test interface, the test user can click the set key to submit the logistics event information of the logistics event, so that the simulation tool can acquire the logistics event information of the logistics event.
When the logistics object management equipment is operated to perform processes of equipment activation, storage, taking out and the like, data circulation is driven through a User Interface (UI) of the logistics object management equipment, the simulation tool can simulate the UI and the operation of the logistics object management equipment, and data circulation is driven through the simulation Interface, so that testing and development work can be performed more efficiently under the condition of not paying attention to specific UI operation.
And 104, determining a corresponding logistics event request by the simulation tool according to the logistics event.
After receiving the logistics event information of the logistics event, the simulation tool can determine a corresponding logistics event request according to the logistics event information. The equipment activation event request can be triggered for the equipment activation event, so that the server side can execute the test process of the equipment activation event; the storage event request can be triggered for the storage event so that the server can execute the test process of the storage event; the event fetching request can be triggered for the event fetching, so that the server side can execute the test flow of the event fetching; and triggering an online detection event request for the online detection event so that the server can execute a test process of the online detection event.
And step 106, the simulation tool sends a logistics event request to the server.
And step 108, the server side determines the corresponding logistics operation according to the logistics event request.
For the received logistics event request, the server can determine a logistics event according to the logistics event request and acquire parameters required by the event, and can determine a corresponding logistics operation to be executed according to the logistics event and the parameters.
If an activation verification operation may be determined for a device activation event, a timing detection operation may be determined for an online detection event, a pick code feedback message may be determined for a deposit event, a pick code validation pass message may be determined for a pick event, etc. The system can also comprise account number acquisition information, user information acquisition information, logistics single number query information and the like.
For the generated logistics operation, some operations need to be sent to the logistics object management equipment for processing, and some operations may be sent to other equipment or server for processing, such as to other service management ends of the logistics service. Therefore, the logistics operation is divided into the logistics operation which needs to be sent to the logistics object management equipment and other logistics operations, and the other logistics operations comprise logistics operations which need to be sent to the logistics object management equipment and are not the same.
And 110a, aiming at the logistics operation needing to be sent to the logistics object management equipment, obtaining operation information through simulating interface operation.
Aiming at the logistics operation needing to be sent to the logistics object management equipment, the embodiment of the application supports the test which is carried out by separating from the physical equipment, namely, the logistics operation is not sent to the logistics object management equipment, but the operation information corresponding to the logistics operation is obtained through the operation of the simulation interface. In an example, the simulation interface operation may be understood as simulating an operation of calling an interface by the server, and returning operation information responding to the logistics operation without calling the interface, where the simulation interface operation may be implemented in various ways. In one example, the simulation interface operation can be implemented by a switch assembly, and in other examples, the simulation interface operation can be implemented by a simulation tool.
In an optional embodiment, the obtaining operation information through an analog interface operation for the logistics operation that needs to be sent to the logistics object management device includes: determining that the logistics operation is the logistics operation needing to be sent to the logistics object management equipment under the condition that a receiving end corresponding to the logistics operation is in an equipment list; and simulating interface operation, and determining operation information corresponding to the logistics operation.
In the embodiment of the application, an equipment list can be set, where the equipment list is a white list of logistics object management equipment capable of being isolated in a test process, so that a receiving end corresponding to the logistics operation can be determined by logistics operation of a server, and if the receiving end is located in the equipment list, the receiving end can be determined to be the logistics object management equipment needing to be isolated, that is, simulated logistics object management equipment in the test process, and the logistics operation is logistics operation needing to be sent to the logistics object management equipment, and interface operation can be simulated, and operation information corresponding to the logistics operation can be determined.
In a further optional embodiment, the simulating the interface operation and determining the operation information corresponding to the logistics operation includes: simulating interface operation through a switch assembly, and determining operation information corresponding to the logistics operation; and/or processing the logistics operation through an analog interface to determine corresponding operation information.
For the logistics operation of the server, the switch component can simulate the operation of the calling interface of the server and directly return the operation information corresponding to the logistics operation, such as successful activation verification, online signals and the like, so that the operation information which needs to be processed and fed back by the logistics object management equipment can be obtained under the condition that the server is isolated from the logistics object management equipment. For example, the processes of activation and online detection of the device can also be realized through a switch component, the switch component can be a switch component, a white list is configured through the switch component, a code is developed and processed aiming at the configured device information, and the subsequent processes of activation, online detection and the like are executed by interaction of the direct server and the logistics object management device. The switch is a lightweight switch and dynamic configuration item management framework, and provides a uniform and safe interface to modify the service switch or dynamic configuration item of each application program while ensuring low intrusiveness.
For the equipment activation event, the verification process in the activation process of the logistics object management equipment can be shielded through switch configuration, and the server side can directly activate the hardware through simulating interface operation of the switch assembly, so that the aims of virtualizing hardware data and achieving virtual equipment information library falling are fulfilled.
For the online detection event, a device white list can be configured through the switch, and for the logistics object management device to be detected by the server, if the logistics object management device is in the white list, the network detection process can be skipped over and the online result (such as true feedback result) can be directly fed back, so that the continuous online state can be maintained.
In other examples, the simulation interface operation may also return operation information corresponding to the logistics operation through interface data transmission between the simulation (mock) logistics object management device and the server. The actual device has indeterminate behaviors, such as device failure, network disconnection and the like, which may affect the normal execution of the test, so that the logistics object management device can be isolated through the mock to obtain the operation information corresponding to the logistics operation, thereby ensuring the normal execution of the test.
For example, if the server and the logistics object management device interact data through a Message Queue Telemetry Transport (MQTT) protocol, interaction of the MQTT data of the server and the logistics object management device can be simulated, and corresponding operation information is directly returned. In order to facilitate management and interaction of the MQTT mock, data transmitted between the logistics object management equipment and the server based on the MQTT protocol can be uniformly managed through software, application and the like, and an equipment list can be configured for the logistics object management equipment required by testing, so that the logistics object management equipment in the equipment list directly returns operation information corresponding to logistics operation, and the server is isolated from the equipment end where the logistics object management equipment is located. Therefore, when the server sends the logistics operation to the logistics object management device through the MQTT protocol, the related code implementation does not really send the logistics operation to obtain the operation information, but directly returns the operation information required by the logistics operation, such as a successful receiving part code, so that the subsequent operation flow of the server for the logistics event can be continuously executed, and the interaction between the server and the device is shielded.
Thus in some alternative embodiments, the logistic events include: a device activation event; the logistics operation needing to be sent to the logistics object management equipment comprises an activation check operation, the logistics object management equipment can carry out activation check based on an activation code when sending the activation code to the logistics object management equipment, a check result of successful activation check is reported to realize activation of the logistics object management equipment, and for the situation, the check result of successful activation check can be determined to be fed back to the server side through the switch component.
The logistics event comprises: detecting an event online; the logistics operation that needs to be sent to the logistics object management device includes a timing detection operation, for example, a detection request message is sent to the logistics object management device at a timing so that the logistics object management device can report an online signal, and for this situation, a timing reporting result, such as an online signal of the device, can be determined by the switch component, and in short, a normal online result of the device is determined.
The logistics event comprises: storing the event; the logistics operation needing to be sent to the logistics object management equipment comprises storage operation, such as sending a message of an item fetching code, and the like.
The logistics event comprises: storing the event; the logistics operation needing to be sent to the logistics object management equipment comprises pickup information, and for the situation, a pickup success message can be returned through data interaction based on MQTT between the simulation server and the logistics object management equipment, so that the server can continue to execute subsequent storage processes.
Therefore, interface operation can be simulated in various modes, so that the server side can also obtain operation information corresponding to logistics operation to execute testing under the condition of isolating the logistics object management equipment.
And step 110b, aiming at other logistics operations, executing the logistics operations and acquiring operation information.
Some logistics operations in the logistics event are sent to other service terminals on the service side for processing, and the logistics operations can be normally sent and returned operation information can be received for the logistics operations.
For example, for a storage event, query operations such as acquiring an account number, receiving/sending user information of a user, querying a logistics list number and the like, and logistics operations such as data synchronization operations and the like may be sent to a service server of the logistics platform, so that returned operation information such as query results and the like may be acquired from other corresponding servers.
And step 112, determining a test result according to the operation information.
According to the operation information, a test result can be determined, for example, each operation flow of the logistics event is normally executed, a test result with successful test can be obtained, if the operation flow is not normally executed, a test result with failed test can be obtained, and a fault position, a failure analysis reason and the like can be determined to be added into the test result. The test results may also be returned to the test tool so that the user can determine the corresponding test results.
In summary, logistics event information corresponding to a logistics event can be set on a simulation tool, and then a corresponding logistics event request is determined according to the logistics event and sent to a server, so that the server can perform a test under the condition of isolating a logistics object management device, and the server determines a corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, the logistics operations are executed, the operation information is obtained, and the test result is determined according to the operation information, so that various required information can be fed back to the server through the operation of simulation equipment such as simulation tools, interfaces and the like, the test steps are simplified, and the test efficiency is improved.
Based on the foregoing embodiments, embodiments of the present application provide an example of performing a test in conjunction with a test interface, as shown in fig. 2:
step 202, providing a test interface, wherein the test interface comprises: and a parameter setting control.
The simulation tool may be disposed on the user equipment side, and the user equipment may be used as the test equipment, for example, the simulation tool may be installed on the user equipment side, and the simulation tool may provide a test interface, where the test interface is used for performing related settings of the logistics event test. Therefore, the test comprises the parameter setting control corresponding to the logistics event, and corresponding parameters can be set for different logistics events to obtain the logistics event information.
And step 204, determining logistics event information corresponding to the logistics event through the parameter setting control.
In an optional embodiment, the determining, by the parameter setting control, logistics event information corresponding to the logistics event includes: selecting a logistics event in the test interface, and displaying the test interface corresponding to the logistics event; and receiving logistics event information of the logistics event through a parameter setting control of the test interface.
The parameter setting control can comprise various forms of controls such as a selection control, an input box and a button control, and parameters can be received by the controls in different forms in a corresponding mode, so that logistics event information of a logistics event is obtained. Wherein each selection control can provide a plurality of options, and one or more options can be selected at each selection control; the input box can input parameters; the button control can be triggered by clicking or the like, such as a submit button or the like. Various parameters such as the device information can be set by selecting a control, an input box, and the like, so that the logistics event information corresponding to the logistics event is obtained from the parameters determined by the parameter device control.
And step 206, generating a logistics event request according to the logistics event information, and sending the logistics event request.
After receiving the logistics event information of the logistics event, the simulation tool can determine a corresponding logistics event request according to the logistics event information. The equipment activation event request can be triggered for the equipment activation event, so that the server side can execute the test process of the equipment activation event; the storage event request can be triggered for the storage event so that the server can execute the test process of the storage event; the event fetching request can be triggered for the event fetching, so that the server side can execute the test flow of the event fetching; and triggering an online detection event request for the online detection event so that the server can execute a test process of the online detection event.
In an optional embodiment of the present application, the server executes the test processing of the logistics event to obtain a corresponding test result, and the test result can be returned to the user equipment, so that the corresponding test result can be displayed in the test interface.
Therefore, the visual processing of the test parameters can be carried out through the test interface, various logistics event information can be flexibly set, and visual and convenient services can be provided for users.
Taking a deposit event as an example, fig. 3 shows an example of a deposit event test interface of a simulation tool, in which a user can input deposit event information of the deposit event. The system comprises a storage mode, an equipment identifier, a logistics list number, a mobile phone number of a recipient user and the logistics list number, and can also set other parameters based on requirements, for example, triggering 'expansion advanced parameters' can display other settable parameters, for example, the size of a container for storing a logistics object is required. For example, in fig. 3, the storage mode is "direct casting", that is, the logistics object is directly stored, the device identifier is "normal direct casting device", that is, the logistics object management device, in some other examples, the device identifier may also be a character string formed by a plurality of characters, and specifically, according to a requirement setting, the device represented by the device identifier is determined in a device list, so as to ensure that the logistics object management device and the service end are isolated for testing.
After receiving the storage event information of the storage event input by the test user, the test interface of the simulation tool can determine the corresponding storage event request and send the storage event request to the server, so that the server can execute the test of the storage event. The server may include the following steps as shown in fig. 4:
step 402, the server receives a request for storing an event. The deposit event request may be a deposit message for depositing the logistics object, such as a logistics list number of the deposited logistics object, and the like.
Step 404, the server may generate a storage processing message according to the storage event request. According to the storage message for storing the logistics object, the server side can perform message synchronization based on the message middleware and then return corresponding processing messages such as container numbers for storing the logistics object. In other examples, parameters such as a container number for storing the logistics object may also be set by the simulation tool, carried in the storage event request, and synchronized to the server, which may be specifically determined according to an actual logistics event processing procedure.
And step 406, processing the storage processing message through the analog interface, and returning successful operation information. For example, the confirmation message is processed through an interactive interface simulating an MQTT protocol, and successful operation information, such as successful storage of the logistics object and the like, is returned.
Step 408, sending query messages to other servers, and receiving returned query results.
For example, the information of the addressee, such as a mobile phone number and the like, of the addressee can be inquired from the logistics server according to the logistics list number, the information of a third-party logistics service provider (a partner) and the like can be inquired according to the logistics list number, the information of an addressee user or logistics distribution personnel for storing a logistics object and the like can be inquired, and in short, the inquiry information can be sent to the corresponding logistics server according to the information required to be inquired, and the returned inquiry result can be received.
And step 410, the server determines the pickup code and the corresponding pickup code feedback message, and determines a feedback success message through the analog interface.
After the server determines that the logistics object is successfully stored, a pickup code can be generated for the storage event, the pickup code refers to a certificate of the logistics object obtained from the logistics object management equipment, and the pickup code at the server can be associated with a container number, a logistics list number, pickup person information and the like of the logistics object. According to the pick-up code, a pick-up code feedback message can be generated and sent to the logistics object management equipment in the normal process of storing events, and in the test process, the pick-up code feedback message can be processed through an interactive interface simulating an MQTT protocol, and a corresponding feedback success message is determined to indicate that the logistics object management equipment has successfully received the pick-up code.
In some other embodiments, after the logistics object is successfully stored, the server may further modify the container state of the container storing the logistics object, record the stored result of the logistics object, and the like, which may be determined according to the business requirement of the storage event.
And step 412, generating a user feedback message according to the pickup code, and sending the user feedback message to the mail sending user. For example, a short message, a push message, etc. is generated according to the pickup code, and then the short message, the push message, etc. are sent to the mobile phone of the mail sending user.
Step 414, sending the storage synchronization message to other servers, and receiving the feedback message.
After the logistics objects are successfully stored and the server completes various message processing, various messages can be synchronized to other servers, for example, the logistics list numbers, container labels and the like of the stored logistics objects are sent to the logistics server for data synchronization, and feedback messages are received, so that the synchronization is successful.
At step 416, the test results are determined.
If all the steps in the process are normally executed, the test result of successful test can be determined, if any step is not normally executed, if other servers do not feed back messages, if the fed back messages have problems, such as unsuccessful synchronization, results not queried, and the like, the test result of failed test can be caused, or the test result containing the fault position and the fault reason is generated. The test result can be returned to the test interface for display.
Taking a taking-out event as an example, as shown in fig. 5, which is an example of a taking-out event test interface of a simulation tool, a test user may input taking-out event information of the taking-out event in the test interface, such as an equipment identifier, a mobile phone number of a recipient user, and the like, and may also set other parameters based on requirements, such as triggering "unfolding high-level parameters" and displaying other settable parameters, such as a logistics list number, a pickup code, and the like of a logistics object to be stored. For example, in fig. 5, a mobile phone number of a recipient may be filled in, and the device identifier is a "normal direct casting device", that is, a logistics object management device, in some other examples, the device identifier may also be a character string formed by a plurality of characters, and specifically, the device represented by the device identifier may be determined in a device list according to a requirement setting, so as to ensure that the logistics object management device and a server are isolated for testing.
After receiving the event taking-out information of the event taking-out input by the test user, the test interface of the simulation tool can determine a corresponding event taking-out request and send the event taking-out request to the server, so that the server can execute the test of the event taking-out. The server may include the following steps as shown in fig. 6:
in step 602, the server receives an event request. The fetching event request can be a fetching message for fetching the logistics object, such as a fetching code or a mobile phone number of a receiving user.
And step 604, the server side processes according to the event taking request and determines the container number.
The server side can obtain the pickup code, the mobile phone number of the addressee and other pickup parameters from the pickup event request, and can query the database according to the pickup parameters and correspond to the container label of the container of the stored logistics object.
Step 606, generating a pickup message according to the container number, and determining a pickup success message corresponding to the pickup message through the simulation interface.
After the container stored by the logistics object is determined, the container number can be carried in the pickup message, the pickup message in the normal flow of the pickup event is sent to the logistics object management equipment to open the corresponding container to pick up the logistics object and feed back the pickup success message, and in the test process, the pickup message can be processed through an interactive interface simulating an MQTT protocol, the corresponding pickup success message is determined, and the logistics object is successfully picked up.
Step 608, sending the fetch synchronization message to other servers, and receiving the feedback message.
After the logistics object is taken out successfully, the server can also execute other operations, such as changing the state of the container and the like, and can also generate a taking-out synchronization message to other servers, such as sending the logistics single number of the taken-out logistics object to the logistics server for data synchronization, so that the logistics server determines that the logistics object is taken out. And a short message, a push message and the like can be generated to inform the user of successful pickup and the like.
Step 610, determining a test result.
If all the steps in the process are normally executed, the test result of successful test can be determined, if any step is not normally executed, if other servers do not feed back messages, if the fed back messages have problems, such as unsuccessful synchronization, results not queried, and the like, the test result of failed test can be caused, or the test result containing the fault position and the fault reason is generated. The test result can be returned to the test interface for display.
The embodiment of the application can support the test under the condition that the server side is isolated from the logistics object management equipment, reduces the influence of other factors in the test process, and improves the accurate determination of the test.
In the above embodiments, for the logistics operation that needs to be sent to the logistics object management device, the remote hardware such as the logistics object management device is isolated as an example to perform the test.
Therefore, the test interface can also comprise mode setting controls, such as adding the mode setting controls in the test interface of the equipment activation event, the online detection event, the storage event and the taking-out event, and the like. The mode setting control is used for setting a test mode, wherein the test mode comprises an isolation mode and/or a non-isolation mode, the isolation mode is a mode for testing isolation hardware, such as isolating remote logistics object management equipment, and the non-isolation mode is a test mode without hardware isolation, and can normally interact with the remote logistics object management equipment to execute corresponding logistics event operations. The corresponding mode parameters can be set through the mode setting control, so that the test mode is determined, and therefore, the mode parameters can be added in the logistics event request of the server, and the server can execute the test processing of the corresponding test mode.
Therefore, by selecting the mode setting control in the test interface, the test mode of the current time can be determined, and the test processing corresponding to the test mode is executed. As shown in fig. 7:
step 702, receiving a logistics event request, where the logistics event request is determined according to data of a test interface of a simulation tool, and the data includes logistics event information and mode parameters.
Step 704, determining a corresponding logistics operation and test mode according to the logistics event request. If the test mode is the isolated mode, go to step 706; if the test mode is a non-isolated mode, go to step 708.
Step 706, isolating the logistics object management equipment and obtaining operation information through simulation interface operation.
Under the condition that a receiving end corresponding to the logistics operation is in an equipment list, determining the logistics operation as the logistics operation needing to be sent to logistics object management equipment; and simulating interface operation, and determining operation information corresponding to the logistics operation.
The simulating interface operation is used for determining operation information corresponding to the logistics operation, and comprises the following steps: simulating interface operation through a switch assembly, and determining operation information corresponding to the logistics operation; and/or processing the logistics operation through an analog interface to determine corresponding operation information.
The logistics event comprises: a device activation event; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps: and aiming at the activation verification operation needing to be sent to the logistics object management equipment, determining a verification result of successful activation verification through the switch component.
The logistics event comprises: detecting an event online; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps: and determining a timing report result through the switch component aiming at the timing detection operation of the logistics object management equipment.
The logistics event comprises: storing the event; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps: and determining a feedback success message through the analog interface aiming at the pickup code feedback message of the logistics object management equipment.
The logistics event comprises: storing the event; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps: and determining a pickup success message through the simulation interface aiming at the pickup message of the logistics object management equipment.
Step 708, forwarding the logistics operation to the corresponding logistics object management equipment, and receiving operation information returned by the logistics object management equipment.
For the scheme without isolating the remote hardware, an operator may be arranged to perform a test operation in cooperation with a hardware device such as a remote logistics object management device, the remote logistics object management device and the like may interact with a server to perform processing, and the operator may perform information input in cooperation as necessary, for example, a pick-up code may be input in a pick-up event, and a test may be performed by whether a corresponding container is opened or not, assisting in closing the container, and the like, and for example, checking whether the device is normally activated or not in the device activation process, and of course, the remote logistics object management device and the like may return operation information, a system log, and the like.
Step 710, determining a test result according to the operation information.
Therefore, the server side can obtain a test result according to the returned operation information and the like, determine whether the test is executed smoothly, and analyze the failure reason of the test failure and the like.
The method can self-define the logistics event through a simulation tool, support the test of various equipment types, scenes and events, can support the test of various logistics events through one tool, does not need real equipment operation, simplifies data preparation and reduces the complexity of equipment operation. The logistic event information of the related logistic event can be directly input on the simulation tool, and then the test of the corresponding logistic event can be executed.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
On the basis of the above embodiments, the present embodiment further provides a testing apparatus, which is applied to a server.
Referring to fig. 8, a block diagram of a structure of an embodiment of the testing apparatus of the present application is shown, which may specifically include the following modules:
the request obtaining module 802 is configured to receive a logistics event request, where the logistics event request is determined according to logistics event information corresponding to a logistics event obtained by a simulation tool.
The test processing module 804 is used for determining the corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, executing the logistics operations and acquiring operation information, wherein the other logistics operations comprise logistics operations except the logistics operations needing to be sent to the logistics object management equipment.
A result determining module 806, configured to determine a test result according to the operation information.
Wherein the logistics event comprises at least one of: device activation events, online detection events, deposit events, and withdraw events.
The test processing module 804 is configured to determine that the logistics operation is a logistics operation that needs to be sent to the logistics object management device when the receiving end corresponding to the logistics operation is in the device list; and simulating interface operation, and determining operation information corresponding to the logistics operation.
The test processing module 804 is configured to simulate an interface operation through a switch component, and determine operation information corresponding to the logistics operation; and/or processing the logistics operation through an analog interface to determine corresponding operation information.
In an optional embodiment, the test processing module 804 includes: activating test submodule 8042, detecting online submodule 8044, storing test submodule 8066, and taking out test submodule 8068, as shown in fig. 9, wherein:
the logistics event comprises: a device activation event; the activation testing sub-module 8042 is configured to determine, by the switch component, a verification result that activation verification is successful in response to an activation verification operation that needs to be sent to the logistics object management device.
The logistics event comprises: detecting an event online; the online detection submodule 8044 is configured to determine a timing report result by the switch component according to a timing detection operation of the logistics object management device.
The logistics event comprises: storing the event; the storage test submodule 8066 is configured to determine, through the analog interface, a feedback success message for the pickup code feedback message of the logistics object management device.
The logistics event comprises: storing the event; the pickup test submodule 8068 is configured to determine, through the analog interface, a pickup success message for the pickup message of the logistics object management apparatus.
In summary, logistics event information corresponding to a logistics event can be set on a simulation tool, and then a corresponding logistics event request is determined according to the logistics event and sent to a server, so that the server can perform a test under the condition of isolating a logistics object management device, and the server determines a corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, the logistics operations are executed, the operation information is obtained, and the test result is determined according to the operation information, so that various required information can be fed back to the server through the operation of simulation equipment such as simulation tools, interfaces and the like, the test steps are simplified, and the test efficiency is improved.
On the basis of the above embodiments, the present embodiment further provides a testing apparatus, which is applied to a server.
Referring to fig. 10, a block diagram of another testing apparatus according to another embodiment of the present application is shown, which may specifically include the following modules:
the storage triggering module 1002 is configured to receive a storage event request, where the storage event request is based on storage event information of a storage event received by a test interface of the simulation tool.
A deposit event test module 1004 for generating a processing message according to the deposit event request; processing the storage processing message through an analog interface, and returning successful operation information; sending a query message to a logistics server and receiving a returned query result; determining an item taking code and a corresponding item taking code feedback message, and determining a feedback success message through a simulation interface; and sending a storage synchronization message to the logistics server and receiving a feedback message.
And a storage result determining module 1006 for determining the test result.
On the basis of the above embodiments, the present embodiment further provides a testing apparatus, which is applied to a server.
Referring to fig. 11, a block diagram of a structure of another embodiment of the testing apparatus of the present application is shown, which may specifically include the following modules:
the fetching trigger module 1102 is configured to receive a fetching event request, where the fetching event request is based on fetching event information of a fetching event received by a test interface of the simulation tool.
A taking-out event testing module 1104, configured to perform processing according to the taking-out event request, and determine a container number, where the container number is a container number of a container storing the logistics object; generating pickup information according to the container number, and determining pickup success information corresponding to the pickup information through a simulation interface; and sending the extracted synchronous message to other service terminals and receiving the feedback message.
A fetch result determination module 1106 for determining the test result.
On the basis of the above embodiments, the embodiment of the present application further provides a test system, which includes a simulation tool and a server.
The simulation tool acquires logistics event information corresponding to a logistics event, determines a corresponding logistics event request according to the logistics event, and sends the logistics event request to a server;
the server side determines corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, executing the logistics operation and acquiring operation information, and determining a test result according to the operation information, wherein the other logistics operations comprise logistics operations except the logistics operation needing to be sent to the logistics object management equipment.
Wherein the logistics event comprises at least one of: device activation events, online detection events, deposit events, and withdraw events.
The server side determines the logistics operation to be the logistics operation needing to be sent to the logistics object management equipment under the condition that the receiving end corresponding to the logistics operation is in the equipment list; and simulating interface operation, and determining operation information corresponding to the logistics operation.
In a further optional embodiment, interface operation is simulated through a switch assembly, and operation information corresponding to the logistics operation is determined; and/or processing the logistics operation through an analog interface to determine corresponding operation information.
The server according to the embodiment of the present application may include the testing apparatus according to the above embodiment, and refer to the discussion of the above embodiment specifically.
On the basis of the above embodiments, the present embodiment further provides a testing apparatus, which is applied to testing devices such as terminal devices.
Referring to fig. 12, a block diagram of a structure of another embodiment of the testing apparatus of the present application is shown, which may specifically include the following modules:
an interface providing module 1202 for providing a test interface, the test interface comprising: and a parameter setting control.
And an event setting module 1204, configured to determine logistics event information corresponding to the logistics event through the parameter setting control.
The request module 1206 is configured to generate a logistics event request according to the logistics event information, and send the logistics event request.
The event setting module 1204 is configured to select a logistics event in the test interface, and display the test interface corresponding to the logistics event; and receiving logistics event information of the logistics event through a parameter setting control of the test interface.
Wherein, still include: and the result module is used for receiving the test result returned by the server and displaying the test result.
The test interface further includes a mode setting control, and the event setting module 1204 is further configured to set a mode parameter of a test mode through the mode setting control, where the test mode includes: isolated mode and/or non-isolated mode.
On the basis of the above embodiments, the present embodiment further provides a testing apparatus, which is applied to testing devices such as terminal devices.
Referring to fig. 13, a block diagram of a structure of another embodiment of the testing apparatus of the present application is shown, which may specifically include the following modules:
the receiving module 1302 is configured to receive a logistics event request, where the logistics event request is determined according to data of a test interface of a simulation tool, and the data includes logistics event information and mode parameters.
And a mode determining module 1304, configured to determine a corresponding logistics operation and test mode according to the logistics event request.
An isolation test module 1306, configured to, if the test mode is an isolation mode, isolate the logistics object management apparatus, and obtain operation information through a simulation interface operation.
A non-isolation test module 1308, configured to forward the logistics operation to a corresponding logistics object management device if the test mode is the non-isolation mode, and receive operation information returned by the logistics object management device.
A test result determining module 1310, configured to determine a test result according to the operation information.
The embodiment of the application can support the test under the condition that the server side is isolated from the logistics object management equipment, reduces the influence of other factors in the test process, and improves the accurate determination of the test.
The method can self-define the logistics event through a simulation tool, support the test of various equipment types, scenes and events, can support the test of various logistics events through one tool, does not need real equipment operation, simplifies data preparation and reduces the complexity of equipment operation. The logistic event information of the related logistic event can be directly input on the simulation tool, and then the test of the corresponding logistic event can be executed.
The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic device comprises a server-side device.
Embodiments of the present disclosure may be implemented as an apparatus for performing a desired configuration using any suitable hardware, firmware, software, or any combination thereof, and the apparatus may include electronic devices such as a terminal device, a server (cluster), a server-side corresponding virtual machine device, and a cloud device. Fig. 14 schematically illustrates an example apparatus 1400 that can be used to implement various embodiments described herein.
For one embodiment, fig. 14 illustrates an exemplary apparatus 1400 having one or more processors 1402, a control module (chipset) 1404 coupled to at least one of the processor(s) 1402, a memory 1406 coupled to the control module 1404, a non-volatile memory (NVM)/storage 1408 coupled to the control module 1404, one or more input/output devices 1410 coupled to the control module 1404, and a network interface 1412 coupled to the control module 1404.
Processor 1402 may include one or more single-core or multi-core processors, and processor 1402 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1400 can be used as the server device in the embodiments of the present application.
In some embodiments, apparatus 1400 may include one or more computer-readable media (e.g., memory 1406 or NVM/storage 1408) having instructions 1414 and one or more processors 1402 in combination with the one or more computer-readable media and configured to execute instructions 1414 to implement modules to perform the actions described in this disclosure.
For one embodiment, the control module 1404 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1402 and/or any suitable device or component in communication with the control module 1404.
The control module 1404 may include a memory controller module to provide an interface to the memory 1406. The memory controller module may be a hardware module, a software module, and/or a firmware module.
The memory 1406 may be used, for example, to load and store data and/or instructions 1414 for the apparatus 1400. For one embodiment, memory 1406 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1406 may comprise double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, control module 1404 may include one or more input/output controllers to provide interfaces to NVM/storage 1408 and input/output device(s) 1414.
For example, NVM/storage 1408 may be used to store data and/or instructions 1414. NVM/storage 1408 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disk (CD) drives, and/or one or more Digital Versatile Disk (DVD) drives).
The NVM/storage 1408 may include storage resources that are physically part of the device on which the apparatus 1400 is installed, or it may be accessible by the device and need not be part of the device. For example, NVM/storage 1408 may be accessible over a network via input/output device(s) 1414.
Input/output device(s) 1410 may provide an interface for apparatus 1400 to communicate with any other suitable device, input/output devices 1410 may include communication components, audio components, sensor components, and so forth. Network interface 1412 may provide an interface for device 1400 to communicate over one or more networks, and device 1400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as access to a communication standard-based wireless network, e.g., WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1402 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of control module 1404. For one embodiment, at least one of the processor(s) 1402 may be packaged together with logic for one or more controller(s) of control module 1404 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1402 may be integrated on the same die with logic for one or more controller(s) of the control module 1404. For one embodiment, at least one of the processor(s) 1402 may be integrated on the same die with logic for one or more controller(s) of control module 1404 to form a system on chip (SoC).
In various embodiments, the apparatus 1400 may be, but is not limited to being: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. In various embodiments, the apparatus 1400 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1400 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
The detection device can adopt a main control chip as a processor or a control module, sensor data, position information and the like are stored in a memory or an NVM/storage device, a sensor group can be used as an input/output device, and a communication interface can comprise a network interface.
An embodiment of the present application further provides an electronic device at a server, including: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a testing method as described in one or more of the embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having executable code stored thereon that, when executed, cause a processor to perform a testing method as described in one or more of the embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The foregoing detailed description of a test method, a test apparatus, an electronic device and a storage medium provided by the present application, and the present application describes the principles and embodiments of the present application by applying specific examples, and the description of the foregoing examples is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (29)

1. A testing method is applied to a testing system, the testing system comprises a server side and a simulation tool, the simulation tool is used for simulating logistics object management equipment, and the method comprises the following steps:
the simulation tool acquires logistics event information corresponding to a logistics event, determines a corresponding logistics event request according to the logistics event information, and sends the logistics event request to a server;
the server side determines corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; and aiming at other logistics operations, executing the logistics operation and acquiring operation information, and determining a test result according to the operation information, wherein the other logistics operations comprise logistics operations except the logistics operation needing to be sent to the logistics object management equipment.
2. The method of claim 1, wherein the logistic event comprises at least one of: device activation events, online detection events, deposit events, and withdraw events.
3. The method according to claim 2, wherein the obtaining operation information through the simulation interface operation for the logistics operation that needs to be sent to the logistics object management device comprises:
determining that the logistics operation is the logistics operation needing to be sent to the logistics object management equipment under the condition that a receiving end corresponding to the logistics operation is in an equipment list;
and simulating interface operation, and determining operation information corresponding to the logistics operation.
4. The method of claim 3, wherein simulating the interface operation and determining the operational information corresponding to the logistics operation comprises:
simulating interface operation through a switch assembly, and determining operation information corresponding to the logistics operation; and/or the presence of a gas in the gas,
and processing the logistics operation through the simulation interface, and determining corresponding operation information.
5. The method of claim 3, wherein the simulation tool corresponds to a test interface, the method further comprising:
and providing a test interface corresponding to the logistics event, wherein the test interface comprises a parameter setting control, and the parameter setting control is used for setting the logistics event information of the logistics event.
6. A method of testing, the method comprising:
receiving a logistics event request, wherein the logistics event request is determined according to logistics event information corresponding to a logistics event acquired by a simulation tool;
determining corresponding logistics operation according to the logistics event request;
aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation;
aiming at other logistics operations, executing the logistics operations and acquiring operation information, wherein the other logistics operations comprise logistics operations except the logistics operations needing to be sent to the logistics object management equipment;
and determining a test result according to the operation information.
7. The method of claim 6, wherein the logistic event comprises at least one of: device activation events, online detection events, deposit events, and withdraw events.
8. The method according to claim 6, wherein the obtaining operation information through the simulation interface operation for the logistics operation that needs to be sent to the logistics object management device comprises:
determining that the logistics operation is the logistics operation needing to be sent to the logistics object management equipment under the condition that a receiving end corresponding to the logistics operation is in an equipment list;
and simulating interface operation, and determining operation information corresponding to the logistics operation.
9. The method of claim 8, wherein simulating the interface operation and determining the operational information corresponding to the logistics operation comprises:
simulating interface operation through a switch assembly, and determining operation information corresponding to the logistics operation; and/or the presence of a gas in the gas,
and processing the logistics operation through the simulation interface, and determining corresponding operation information.
10. The method of claim 6, wherein the logistic event comprises: a device activation event; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps:
and aiming at the activation verification operation needing to be sent to the logistics object management equipment, determining a verification result of successful activation verification through the switch component.
11. The method of claim 6, wherein the logistic event comprises: detecting an event online; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps:
and determining a timing report result through the switch component aiming at the timing detection operation of the logistics object management equipment.
12. The method of claim 6, wherein the logistic event comprises: storing the event; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps:
and determining a feedback success message through the analog interface aiming at the pickup code feedback message of the logistics object management equipment.
13. The method of claim 6, wherein the logistic event comprises: storing the event; the acquiring operation information through simulating the interface operation aiming at the logistics operation needing to be sent to the logistics object management equipment comprises the following steps:
and determining a pickup success message through the simulation interface aiming at the pickup message of the logistics object management equipment.
14. A method of testing, the method comprising:
providing a test interface, the test interface comprising: a parameter setting control;
determining logistics event information corresponding to the logistics event through the parameter setting control;
and generating a logistics event request according to the logistics event information, and sending the logistics event request.
15. The method of claim 14, wherein determining the logistics event information corresponding to the logistics event via the parameter setting control comprises:
selecting a logistics event in the test interface, and displaying the test interface corresponding to the logistics event;
and receiving logistics event information of the logistics event through a parameter setting control of the test interface.
16. The method of claim 14 or 15, further comprising:
and receiving a test result returned by the server side, and displaying the test result.
17. The method of claim 14, wherein the test interface further comprises a mode setting control, the method further comprising:
setting mode parameters of a test mode through the mode setting control, wherein the test mode comprises: isolated mode and/or non-isolated mode.
18. A method of testing, the method comprising:
receiving a logistics event request, wherein the logistics event request is determined according to data of a test interface of a simulation tool, and the data comprises logistics event information and mode parameters;
determining a corresponding logistics operation and test mode according to the logistics event request;
if the test mode is an isolation mode, isolating the logistics object management equipment, and operating to obtain operation information through a simulation interface;
if the test mode is a non-isolation mode, forwarding the logistics operation to corresponding logistics object management equipment, and receiving operation information returned by the logistics object management equipment;
and determining a test result according to the operation information.
19. A method of testing, the method comprising:
receiving a storage event request, wherein the storage event request is determined according to storage event information received by a test interface of a simulation tool;
generating a processing message according to the storage event request;
processing the storage processing message through an analog interface, and returning successful operation information;
sending a query message to a logistics server and receiving a returned query result;
determining an item taking code and a corresponding item taking code feedback message, and determining a feedback success message through a simulation interface;
sending a storage synchronization message to a logistics server and receiving a feedback message;
and determining a test result.
20. A method of testing, the method comprising:
receiving a request for taking out an event, wherein the request for taking out the event is determined according to the information of the taken out event received by a test interface of the simulation tool;
processing according to the taking-out event request, and determining a container number, wherein the container number is the container number of a container for storing the logistics object;
generating pickup information according to the container number, and determining pickup success information corresponding to the pickup information through a simulation interface;
sending the extracted synchronous message to other server sides, and receiving a feedback message;
and determining a test result.
21. A test apparatus, the apparatus comprising:
the request acquisition module is used for receiving a logistics event request, and the logistics event request is determined according to logistics event information corresponding to the logistics event acquired by the simulation tool;
the test processing module is used for determining corresponding logistics operation according to the logistics event request; aiming at logistics operation needing to be sent to logistics object management equipment, operation information is obtained through simulation interface operation; aiming at other logistics operations, executing the logistics operations and acquiring operation information, wherein the other logistics operations comprise logistics operations except the logistics operations needing to be sent to the logistics object management equipment;
and the result determining module is used for determining a test result according to the operation information.
22. A test apparatus, the apparatus comprising:
an interface providing module for providing a test interface, the test interface comprising: a parameter setting control;
the event setting module is used for determining logistics event information corresponding to the logistics event through the parameter setting control;
and the request module is used for generating a logistics event request according to the logistics event information and sending the logistics event request.
23. A test apparatus, the apparatus comprising:
the system comprises a receiving module, a simulation module and a display module, wherein the receiving module is used for receiving a logistics event request, the logistics event request is determined according to data of a test interface of a simulation tool, and the data comprises logistics event information and mode parameters;
the mode determining module is used for determining a corresponding logistics operation and test mode according to the logistics event request;
the isolation test module is used for isolating the logistics object management equipment if the test mode is the isolation mode and acquiring operation information through simulation interface operation;
the non-isolation test module is used for forwarding the logistics operation to corresponding logistics object management equipment and receiving operation information returned by the logistics object management equipment if the test mode is the non-isolation mode;
and the test result determining module is used for determining a test result according to the operation information.
24. A test apparatus, the apparatus comprising:
the storage triggering module is used for receiving a storage event request, wherein the storage event request is based on the storage event information of the storage event received by the test interface of the simulation tool;
the storage event testing module is used for generating a processing message according to the storage event request; processing the storage processing message through an analog interface, and returning successful operation information; sending a query message to a logistics server and receiving a returned query result; determining an item taking code and a corresponding item taking code feedback message, and determining a feedback success message through a simulation interface; sending a storage synchronization message to a logistics server and receiving a feedback message;
and the storage result determining module is used for determining the test result.
25. A test apparatus, the apparatus comprising:
the system comprises a taking-out triggering module, a simulation tool and a data processing module, wherein the taking-out triggering module is used for receiving a taking-out event request, and the taking-out event request is based on taking-out event information of a taking-out event received by a test interface of the simulation tool;
the taking-out event testing module is used for processing according to the taking-out event request and determining a container number, wherein the container number is the container number of a container for storing the logistics object; generating pickup information according to the container number, and determining pickup success information corresponding to the pickup information through a simulation interface; sending the extracted synchronous message to other server sides, and receiving a feedback message;
and the extraction result determining module is used for determining the test result.
26. An electronic device, comprising: a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a test method as claimed in one or more of claims 6-13, 18-20.
27. One or more machine readable media having executable code stored thereon that, when executed, causes a processor to perform a testing method as recited in one or more of claims 6-13, 18-20.
28. An electronic device, comprising: a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a test method according to one or more of claims 14-17.
29. One or more machine readable media having executable code stored thereon that, when executed, causes a processor to perform a testing method as recited in one or more of claims 14-17.
CN201911229452.6A 2019-12-04 2019-12-04 Test method, test device, electronic equipment and storage medium Pending CN112905428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911229452.6A CN112905428A (en) 2019-12-04 2019-12-04 Test method, test device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911229452.6A CN112905428A (en) 2019-12-04 2019-12-04 Test method, test device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112905428A true CN112905428A (en) 2021-06-04

Family

ID=76110702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911229452.6A Pending CN112905428A (en) 2019-12-04 2019-12-04 Test method, test device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112905428A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067847A1 (en) * 2022-09-30 2024-04-04 顺丰科技有限公司 Logistics system connection method and apparatus, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009123368A1 (en) * 2008-03-31 2009-10-08 Pantos Logistics Co., Ltd. Bidirectional logistics management system
US20100218044A1 (en) * 2007-06-05 2010-08-26 Astrium Limited Remote testing system and method
US20120311718A1 (en) * 2010-11-05 2012-12-06 Atc Logistics & Electronics, Inc. System and method for performing a software comparison
CN103312554A (en) * 2012-03-16 2013-09-18 阿里巴巴集团控股有限公司 Testing method and system of multi-server interactive services
CN104063772A (en) * 2013-03-20 2014-09-24 阿里巴巴集团控股有限公司 Logistical-information reliability test method and device
CN106470133A (en) * 2015-08-20 2017-03-01 阿里巴巴集团控股有限公司 System pressure method of testing and device
CN109409622A (en) * 2017-08-17 2019-03-01 北京小度信息科技有限公司 Test method and device
CN109787863A (en) * 2019-01-18 2019-05-21 杭州复杂美科技有限公司 Bifurcated analogy method, bifurcated test method, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100218044A1 (en) * 2007-06-05 2010-08-26 Astrium Limited Remote testing system and method
WO2009123368A1 (en) * 2008-03-31 2009-10-08 Pantos Logistics Co., Ltd. Bidirectional logistics management system
US20120311718A1 (en) * 2010-11-05 2012-12-06 Atc Logistics & Electronics, Inc. System and method for performing a software comparison
CN103312554A (en) * 2012-03-16 2013-09-18 阿里巴巴集团控股有限公司 Testing method and system of multi-server interactive services
CN104063772A (en) * 2013-03-20 2014-09-24 阿里巴巴集团控股有限公司 Logistical-information reliability test method and device
CN106470133A (en) * 2015-08-20 2017-03-01 阿里巴巴集团控股有限公司 System pressure method of testing and device
CN109409622A (en) * 2017-08-17 2019-03-01 北京小度信息科技有限公司 Test method and device
CN109787863A (en) * 2019-01-18 2019-05-21 杭州复杂美科技有限公司 Bifurcated analogy method, bifurcated test method, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024067847A1 (en) * 2022-09-30 2024-04-04 顺丰科技有限公司 Logistics system connection method and apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN108334436B (en) Application software optimization method, device, equipment and computer readable storage medium
US10540271B2 (en) Document processing events
US8046638B2 (en) Testing of distributed systems
CN108415820A (en) The test method and device of application installation package
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN111913884A (en) Distributed test method, device, equipment, system and readable storage medium
CN115481030A (en) Automatic testing method, device, terminal and storage medium
CN114661594A (en) Method, apparatus, medium, and program product for automated testing
US11935004B2 (en) Reading and writing processing improvements as a single command
CN112905428A (en) Test method, test device, electronic equipment and storage medium
JP2023519774A (en) Automated test method, apparatus, electronic device, storage medium, and program
US20200320612A1 (en) Document evaluation, alerting and validation system
CN106484604B (en) Application test control method and device
CN111144804A (en) Order processing method, device and system
CN110244934B (en) Method and device for generating product demand document and test information
CN111045720A (en) Code management method, code management system, server, and medium
CN110674045A (en) Information tracking detection method and device, electronic equipment and storage medium
CN107797927B (en) Application automation test method, device, equipment and readable storage medium
CN113392343A (en) Data extraction method, device, medium and computer program product
CN109756393B (en) Information processing method, system, medium, and computing device
CN112583660A (en) Main domain and standby domain test comparison method, device and system of recommendation platform
CN115080062A (en) Application packaging deployment method and system
CN114840596A (en) Interface data synchronization method and device, electronic equipment and medium
CN115114553A (en) Data management system, method and device, electronic equipment and storage medium
CN115617671A (en) Automatic generation method and device of test script, computer equipment and storage medium

Legal Events

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