Result information verification method and device and storage medium
By reading and sending test cases at the user terminal, receiving and verifying the result information, the problem of being unable to completely test the vehicle cloud link in the existing technology is solved, and automated testing from the user terminal to the cloud platform to the vehicle terminal is realized, improving the efficiency Test efficiency and quality.
Patent Information
- Application Number
- CN202410739755.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
AI Technical Summary
Existing automated testing of vehicle-cloud integration can only target the cloud or vehicle, and cannot completely test the link from the user terminal to the cloud platform to the vehicle terminal, and cannot reasonably calculate the link duration, resulting in low test efficiency.
Provide a result information verification method that reads the target test cases in the preset database through the user terminal, sends service request messages to the cloud platform, receives and compares the result information, verifies the validity of the link, and realizes the process from the user terminal to the cloud platform Automated testing to vehicle terminals.
It realizes the effectiveness test of the entire link, improves the test efficiency, and can be completed automatically, thereby shortening the test time, enhancing the test quality and rapid response capability.
Smart Images

Figure CN118612121A
Abstract
Description
Technical Field
[0001] The disclosed embodiments relate to the field of vehicle-to-cloud technology, and more particularly to a result information verification method, device, and storage medium. Background Art
[0002] Existing automated tests for vehicle-cloud integration are mostly semi-automated tests that only target the cloud or the vehicle, which do not cover the entire link and cannot reasonably calculate the duration of the entire link.
[0003] Therefore, there is an urgent need for a result information verification method that can test the effectiveness of the entire link from the user terminal to the cloud platform to the vehicle terminal, and can be completed automatically to improve test efficiency. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the embodiments of the present disclosure provide a result information verification method, device and storage medium.
[0005] A first aspect of an embodiment of the present disclosure provides a result information verification method, which is applied to a user terminal, and the method includes:
[0006] In response to a request operation of a user terminal, a target test case associated with the request operation in a preset database is read, and a service request message in the target test case is sent to a cloud platform; wherein the service request message represents a service requested by the user terminal to the vehicle terminal through the cloud platform;
[0007] Receive result information according to a preset callback address, compare the result information with the preset result in the target test case, and obtain a comparison result; wherein the preset callback address is an address of a third-party cloud simulated by the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform;
[0008] According to the comparison result, the result information is verified to obtain a verification result.
[0009] In one example, in response to a request operation of a user terminal, reading a target test case associated with the request operation in a preset database includes:
[0010] In response to a request operation of a user terminal, a preset program file is called; wherein the preset program file is used to traverse each test case in the preset database;
[0011] According to the preset program file, each test case in the preset database is traversed, and the target test case is determined in each test case.
[0012] In one example, traversing each test case in the preset database according to the preset program file and determining the target test case in each test case includes:
[0013] According to the preset program file, traverse each test case in the preset database;
[0014] If the test case is a non-automated test case, read the next test case;
[0015] If the test case is an automated test case and the test case is associated with the request operation, the test case is determined to be the target test case; wherein the association between the test case and the request operation indicates that a first keyword in the test case matches a second keyword in the request operation.
[0016] In one example, before receiving result information according to a preset callback address, the method further includes:
[0017] The preset application framework is called to create a third-party cloud, and the address of the third-party cloud is used as the preset callback address.
[0018] In one example, after sending the service request message in the target test case to the cloud platform, the method further includes:
[0019] The start timestamp information is recorded and stored in a preset location.
[0020] In one example, after receiving result information according to the preset callback address, the method further includes:
[0021] Record the end timestamp information, and retrieve the start timestamp information from the preset location;
[0022] The time information of the test is calculated according to the start timestamp information and the end timestamp information.
[0023] In one example, the method further includes:
[0024] The verification result is written into a preset column of the target test case to obtain an updated test case, and the updated test case is sent to a preset terminal.
[0025] A second aspect of the embodiments of the present disclosure provides a result information verification method, which is applied to a cloud platform, and the method includes:
[0026] receiving a service request message in a target test case, and if the service request message has user authority, sending the service request message to a vehicle terminal;
[0027] Receive result information, and send the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform.
[0028] A third aspect of the embodiments of the present disclosure provides a result information verification device, which is configured in a user terminal, and the device includes:
[0029] A sending module, configured to respond to a request operation of a user terminal, read a target test case associated with the request operation in a preset database, and send a service request message in the target test case to a cloud platform; wherein the service request message represents a service requested by the user terminal to the vehicle terminal through the cloud platform;
[0030] A comparison module, used to receive result information according to a preset callback address, compare the result information with the preset result in the target test case, and obtain a comparison result; wherein the preset callback address is an address of a third-party cloud simulated by the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform;
[0031] The verification module is used to verify the result information according to the comparison result to obtain a verification result.
[0032] A fourth aspect of the embodiments of the present disclosure provides a result information verification device, which is configured on a cloud platform, and the device includes:
[0033] A first receiving module, configured to receive a service request message in a target test case, and if the service request message has user authority, send the service request message to a vehicle terminal;
[0034] The second receiving module is used to receive result information and send the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message and sent by the vehicle terminal to the cloud platform.
[0035] A fifth aspect of an embodiment of the present disclosure provides a user terminal, including:
[0036] A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method described in the first aspect.
[0037] A sixth aspect of the embodiments of the present disclosure provides a cloud platform, including:
[0038] A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method described in the second aspect.
[0039] A seventh aspect of an embodiment of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of the first aspect or the second aspect described above can be implemented.
[0040] The disclosed embodiment provides a result information verification method, device and storage medium, which are applied to a user terminal, and the method includes: in response to a request operation of the user terminal, reading a target test case associated with the request operation in a preset database, and sending a service request message in the target test case to a cloud platform; wherein the service request message represents the service requested by the user terminal to the vehicle terminal through the cloud platform; receiving result information according to a preset callback address, comparing the result information with the preset result in the target test case, and obtaining a comparison result; wherein the preset callback address is an address of a third-party cloud simulated by the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform; according to the comparison result, verifying the result information to obtain a verification result. The adoption of this technical solution can test the effectiveness of the entire link from the user terminal to the cloud platform to the vehicle terminal, and can be completed automatically, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0043] Figure 1It is a flowchart of a result information verification method provided in the first embodiment of the present disclosure;
[0044] Figure 2 is a schematic diagram of an interactive structure of a user terminal, a cloud platform and a vehicle terminal provided in the first embodiment of the present disclosure;
[0045] Figure 3 It is a flowchart of another result information verification method provided in the second embodiment of the present disclosure;
[0046] Figure 4 This is an interactive schematic diagram provided by Embodiment 2 of the present disclosure;
[0047] Figure 5 It is a flowchart of a result information verification method provided in Embodiment 3 of the present disclosure;
[0048] Figure 6 It is a structural diagram of a result information verification device provided by Embodiment 4 of the present disclosure;
[0049] Figure 7 It is a structural diagram of a result information verification device provided by Embodiment 5 of the present disclosure;
[0050] Figure 8 It is a structural diagram of a user terminal in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0052] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0053] Figure 1 The flowchart of a result information verification method provided in the first embodiment of the present disclosure is shown in FIG. 1 , which can be executed by a user terminal. The user terminal can be exemplarily understood as a device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, etc.
[0054] like Figure 1 As shown, the method provided in this embodiment includes the following steps:
[0055] S101. In response to a request operation of a user terminal, read a target test case associated with the request operation in a preset database, and send a service request message in the target test case to a cloud platform; wherein the service request message represents a service requested by the user terminal to the vehicle terminal through the cloud platform.
[0056] In an example, in order to describe the embodiments of the present disclosure more clearly, see Figure 2 A schematic diagram of the interaction structure of a user terminal, a cloud platform and a vehicle terminal is shown. The request operation of the user terminal can be a touch operation of the user, a click operation of the user, or an operation performed by an automated script. Multiple test cases are pre-stored in the preset database, and each test case can test the vehicle terminal, but the service request message requested in each test case is different. The test case is written by the tester according to the relevant vehicle-cloud link requirements. The title of the relevant test case uses keywords, such as: testing the cloud-consumed vehicle-side air conditioning service, and writing the Test Case ID, test steps and expected results in detail.
[0057] Specifically, the service request message may be a subscription request or a request for service content. In this embodiment, the service request message is sent from the user terminal to the cloud platform, and then sent from the cloud platform to the vehicle terminal.
[0058] S102. Receive result information according to a preset callback address, compare the result information with the preset result in the target test case, and obtain a comparison result; wherein the preset callback address is an address of a third-party cloud simulated in the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform.
[0059] In this embodiment, the preset callback address is the address of the third-party cloud simulated in the user terminal. Specifically, the third-party cloud simulated by the user terminal is used to receive result information, and the third-party cloud is set up in the user terminal to facilitate processing of the result information. If the preset callback address is not set to the address of the third-party cloud simulated by the user terminal, the result information will be sent to the original address of the user terminal. At this time, it is impossible to call the preset result in the target test case and then compare the two.
[0060] S103. Verify the result information according to the comparison result to obtain a verification result.
[0061] In this embodiment, if the comparison results are consistent, it means that the verification result of the result information is normal, and if the comparison results are inconsistent, it means that the verification result of the result information is abnormal.
[0062] The disclosed embodiment provides a result information verification method, which is applied to a user terminal, and the method includes: in response to a request operation of the user terminal, reading a target test case associated with the request operation in a preset database, and sending a service request message in the target test case to a cloud platform; wherein the service request message represents the service requested by the user terminal to the vehicle terminal through the cloud platform; receiving result information according to a preset callback address, comparing the result information with the preset result in the target test case, and obtaining a comparison result; wherein the preset callback address is an address of a third-party cloud simulated in the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform; according to the comparison result, verifying the result information to obtain a verification result. The use of this technical solution can test the effectiveness of the entire link from the user terminal to the cloud platform to the vehicle terminal, and can be completed automatically, thereby improving the test efficiency.
[0063] Figure 3 The flowchart of another result information verification method provided by the second embodiment of the present disclosure is shown. The present embodiment is optimized on the basis of the above embodiment and applied to the user terminal. The present embodiment can be combined with various optional solutions in one or more of the above embodiments.
[0064] like Figure 3 As shown, the method may include the following steps:
[0065] S301. In response to a request operation of a user terminal, a preset program file is called; wherein the preset program file is used to traverse each test case in a preset database.
[0066] In one example, the preset program file may be a Python program file or other program files, which are used to traverse each test case in the preset database after receiving a request operation from a user terminal.
[0067] S302: According to a preset program file, traverse each test case in a preset database, and determine a target test case in each test case.
[0068] In one example, according to a preset program file, each test case in a preset database is traversed, and a target test case is determined in each test case, including:
[0069] According to the preset program file, traverse each test case in the preset database;
[0070] If the test case is a non-automated test case, read the next test case;
[0071] If the test case is an automated test case and the test case is associated with a request operation, the test case is determined to be a target test case; wherein the association between the test case and the request operation represents that a first keyword in the test case matches a second keyword in the request operation.
[0072] In one example, if the test case is a non-automated test case, it means that the test case cannot perform the following operations, so the next test case is read. If the test case is an automated test case and the test case is associated with a request operation, the test case is determined to be a target test case. Specifically, the second keyword in the request operation may be determined, wherein the number of the second keywords may be at least one. Then, a first keyword whose similarity with the second keyword exceeds a threshold value is determined in the automated test case, and the automated test case containing the first keyword is determined as a target test case.
[0073] In an example, the openpyxl library may be used, and xlrd, xlwt, xlwings, and pandas may also be used to read automated test cases for Excel format files.
[0074] S303. Send the service request message in the target test case to the cloud platform; wherein the service request message represents the service requested by the user terminal to the vehicle terminal through the cloud platform.
[0075] In one example, after sending the service request message in the target test case to the cloud platform, the method further includes:
[0076] Record the start timestamp information and store the start timestamp information in a preset location.
[0077] In an example, the start timestamp information indicates the time when the service request message in the target test case is sent, and the start timestamp information is stored in a preset location for subsequent calling.
[0078] S304: Call a preset application framework to create a third-party cloud, and use the address of the third-party cloud as a preset callback address.
[0079] In an example, the preset application framework may be flask, Django of Python, or Springboot of Java.
[0080] Create a third-party cloud through flask, and use the address of the third-party cloud as the preset callback address.
[0081] S305. Receive result information according to a preset callback address, compare the result information with the preset result in the target test case, and obtain a comparison result; wherein the preset callback address is the address of the third-party cloud simulated in the user terminal; the result information is generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform.
[0082] In one example, after receiving the result information according to the preset callback address, the method further includes:
[0083] Record the end timestamp information and retrieve the start timestamp information from the preset location;
[0084] Calculate the test time information based on the start timestamp information and the end timestamp information.
[0085] In one example, the end timestamp information indicates the time when the preset callback address receives the result information. The time information of the test is calculated based on the start timestamp information and the end timestamp information. For example, if the start timestamp information is A and the end timestamp information is B, the time information of the test is the difference between A and B.
[0086] S306: Verify the result information according to the comparison result to obtain a verification result.
[0087] In one example, please refer to the content of step S103, which will not be repeated here.
[0088] S307 , writing the verification result into a preset column of the target test case, obtaining an updated test case, and sending the updated test case to a preset terminal.
[0089] In this embodiment, the preset column may be the first column in the blank columns. The updated test case is sent to the preset terminal.
[0090] For a better explanation, see Figure 4 An interactive diagram is shown. The specific steps are as follows:
[0091] S401. In response to a request operation of a user terminal, a preset program file is called; wherein the preset program file is used to traverse each test case in a preset database.
[0092] In one example, this step is performed by a user terminal.
[0093] S402: According to a preset program file, traverse each test case in a preset database, and determine a target test case in each test case.
[0094] In one example, this step is performed by a user terminal.
[0095] S403: Send the service request message in the target test case to the cloud platform.
[0096] In one example, this step is performed by a user terminal.
[0097] S404: Determine whether the service request message can access the vehicle terminal, and if so, send the service request message to the vehicle terminal.
[0098] In one example, this step is performed by a cloud platform.
[0099] S405. After receiving the service request message, determine the permission information of the content requested by the service request message. If the content requested has access rights, access is performed at the vehicle terminal, and the result information is sent to the cloud platform.
[0100] In one example, this step is performed by a vehicle terminal.
[0101] S406: Send result information according to the preset callback address.
[0102] In one example, this step is performed by a cloud platform.
[0103] The disclosed embodiment provides a result information verification method, which is applied to a user terminal, and the method includes: calling a preset application framework to create a third-party cloud, and using the address of the third-party cloud as a preset callback address, receiving result information according to the preset callback address, comparing the result information with the preset result in the target test case to obtain a comparison result, verifying the result information according to the comparison result to obtain a verification result, writing the verification result into a preset column of the target test case to obtain an updated test case, and sending the updated test case to a preset terminal. The adoption of this technical solution can more efficiently perform vehicle-cloud integration testing, and testers only need to focus on the design of test cases, thereby shortening the test time, improving the test quality, and enhancing the rapid response capability of the test.
[0104] Figure 5 FIG. 1 is a flow chart of a result information verification method provided in Embodiment 3 of the present disclosure, which can be executed by a cloud platform. Figure 5 As shown, the method provided in this embodiment includes the following steps:
[0105] S501. Receive a service request message in a target test case. If the service request message has user authority, send the service request message to a vehicle terminal.
[0106] In one example, the user authority is that the cloud platform determines whether the service request message can access the vehicle terminal, and if so, sends the service request message to the vehicle terminal.
[0107] S502, receiving result information, and sending the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform.
[0108] In one example, after receiving a service request message, the vehicle terminal determines the permission information of the content requested by the service request message. If the requested content has access permissions, the vehicle terminal accesses it and sends the result information to the cloud platform.
[0109] The disclosed embodiment provides a result information verification method, which is applied to a cloud platform, and includes: receiving a service request message in a target test case, and if the service request message has user authority, sending the service request message to a vehicle terminal, receiving result information, and sending the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message, and sent by the vehicle terminal to the cloud platform. By adopting this technical solution, the vehicle terminal and the user terminal are connected through the cloud platform, which can solve the problem of semi-automatic execution of the link-down test script and difficulty in closing the loop.
[0110] Figure 6 1 is a schematic diagram of the structure of a result information verification device provided by the fourth embodiment of the present disclosure. The result information verification device can be understood as the above-mentioned user terminal or some functional modules in the above-mentioned user terminal. Figure 6 As shown, the result information verification device 60 includes:
[0111] The sending module 601 is used to respond to the request operation of the user terminal, read the target test case associated with the request operation in the preset database, and send the service request message in the target test case to the cloud platform; wherein the service request message represents the service requested by the user terminal to the vehicle terminal through the cloud platform.
[0112] The comparison module 602 is used to receive the result information according to the preset callback address, compare the result information with the preset result in the target test case, and obtain the comparison result; wherein, the preset callback address is the address of the third-party cloud simulated in the user terminal; the result information is generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform.
[0113] The verification module 603 is used to verify the result information according to the comparison result to obtain a verification result.
[0114] In one example, the sending module 601 includes:
[0115] A calling submodule is used to call a preset program file in response to a request operation of a user terminal; wherein the preset program file is used to traverse each test case in a preset database;
[0116] The traversal submodule is used to traverse each test case in the preset database according to the preset program file, and determine the target test case in each test case.
[0117] In one example, the submodules are traversed, specifically for:
[0118] According to the preset program file, traverse each test case in the preset database;
[0119] If the test case is a non-automated test case, read the next test case;
[0120] If the test case is an automated test case and the test case is associated with a request operation, the test case is determined to be a target test case; wherein the association between the test case and the request operation represents that a first keyword in the test case matches a second keyword in the request operation.
[0121] In one example, the apparatus 60 further includes:
[0122] The first recording module 604 is used to record the start timestamp information and store the start timestamp information in a preset location.
[0123] In one example, the apparatus 60 further includes:
[0124] The creation module 605 is used to call the preset application framework to create a third-party cloud, and use the address of the third-party cloud as the preset callback address.
[0125] In one example, the apparatus 60 further includes:
[0126] The second recording module 606 is used to record the end timestamp information and retrieve the start timestamp information from a preset position.
[0127] The calculation module 607 is used to calculate the time information of the test according to the start timestamp information and the end timestamp information.
[0128] In one example, the apparatus 60 further includes:
[0129] The writing module 608 is used to write the verification result into the preset column of the target test case, obtain the updated test case, and send the updated test case to the preset terminal.
[0130] The device provided in this embodiment can execute the method of any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.
[0131] Figure 7 : is a schematic diagram of the structure of a result information verification device provided in Embodiment 5 of the present disclosure. The result information verification device can be understood as the above-mentioned cloud platform or some functional modules in the above-mentioned cloud platform. Figure 7 As shown, the result information verification device 70 includes:
[0132] The first receiving module 701 is used to receive a service request message in a target test case, and if the service request message has user authority, send the service request message to the vehicle terminal.
[0133] The second receiving module 702 is used to receive result information and send the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message and sent by the vehicle terminal to the cloud platform.
[0134] The device provided in this embodiment can execute the method of any of the above embodiments, and its execution method and beneficial effects are similar, which will not be repeated here.
[0135] The embodiments of the present disclosure further provide a user terminal, which includes: a memory storing a computer program; and a processor for executing the computer program. When the computer program is executed by the processor, the method of any of the above embodiments can be implemented.
[0136] For example, Figure 8 This is a schematic diagram of the structure of a user terminal in an embodiment of the present disclosure. Figure 8 , which shows a schematic diagram of the structure of a user terminal 1000 suitable for implementing the embodiment of the present disclosure. The user terminal 1000 in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The user terminal shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0137] like Figure 8As shown, the user terminal 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 to a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the user terminal 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0138] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the user terminal 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 8 The user terminal 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0139] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0140] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0141] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0142] The computer-readable medium may be included in the user terminal; or may exist independently without being assembled into the user terminal.
[0143] The computer-readable medium carries one or more programs. When the one or more programs are executed by the user terminal, the user terminal: responds to the request operation of the user terminal, reads the target test case associated with the request operation in the preset database, and sends the service request message in the target test case to the cloud platform; wherein the service request message represents the service requested by the user terminal to the vehicle terminal through the cloud platform; receives the result information according to the preset callback address, compares the result information with the preset result in the target test case, and obtains the comparison result; wherein the preset callback address is the address of the third-party cloud simulated in the user terminal; the result information is the result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform; according to the comparison result, the result information is verified to obtain the verification result. The computer program code for performing the operation of the present disclosure can be written in one or more programming languages or a combination thereof, and the programming language includes but is not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and also includes conventional procedural programming languages—such as "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0144] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0145] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.
[0146] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0147] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0148] The embodiments of the present disclosure also provide a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any of the above embodiments can be implemented. The execution method and beneficial effects are similar and will not be repeated here.
[0149] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0150] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A result information verification method, characterized in that: Applied to a user terminal, the method comprises: In response to a request operation of a user terminal, a target test case associated with the request operation in a preset database is read, and a service request message in the target test case is sent to a cloud platform; wherein the service request message represents a service requested by the user terminal to the vehicle terminal through the cloud platform; Receive result information according to a preset callback address, compare the result information with the preset result in the target test case, and obtain a comparison result; wherein the preset callback address is an address of a third-party cloud simulated by the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform; According to the comparison result, the result information is verified to obtain a verification result.
2. The method according to claim 1, characterized in that The step of responding to a request operation of a user terminal and reading a target test case associated with the request operation in a preset database includes: In response to a request operation of a user terminal, a preset program file is called; wherein the preset program file is used to traverse each test case in the preset database; According to the preset program file, each test case in the preset database is traversed, and the target test case is determined in each test case.
3. The method according to claim 2, characterized in that The step of traversing each test case in the preset database according to the preset program file and determining the target test case in each test case includes: According to the preset program file, traverse each test case in the preset database; If the test case is a non-automated test case, read the next test case; If the test case is an automated test case and the test case is associated with the request operation, the test case is determined to be the target test case; wherein the association between the test case and the request operation indicates that a first keyword in the test case matches a second keyword in the request operation.
4. The method according to claim 1, characterized in that Before receiving result information according to the preset callback address, the method further includes: Calling a preset application framework to create a third-party cloud, and using the address of the third-party cloud as a preset callback address; After sending the service request message in the target test case to the cloud platform, the method further includes: Recording the start timestamp information, and storing the start timestamp information in a preset location; After receiving the result information according to the preset callback address, the method further includes: Record the end timestamp information, and retrieve the start timestamp information from the preset location; The time information of the test is calculated according to the start timestamp information and the end timestamp information.
5. The method according to claim 1, characterized in that The method further comprises: The verification result is written into a preset column of the target test case to obtain an updated test case, and the updated test case is sent to a preset terminal.
6. A result information verification method, characterized in that: Applied to a cloud platform, the method includes: receiving a service request message in a target test case, and if the service request message has user authority, sending the service request message to a vehicle terminal; Receive result information, and send the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform.
7. A result information verification device, characterized in that: Configured in a user terminal, the device includes: A sending module, configured to respond to a request operation of a user terminal, read a target test case associated with the request operation in a preset database, and send a service request message in the target test case to a cloud platform; wherein the service request message represents a service requested by the user terminal to the vehicle terminal through the cloud platform; A comparison module, used to receive result information according to a preset callback address, compare the result information with the preset result in the target test case, and obtain a comparison result; wherein the preset callback address is an address of a third-party cloud simulated by the user terminal; the result information is a result generated by the vehicle terminal according to the service request message, and is sent by the vehicle terminal to the cloud platform, and then sent to the user terminal via the cloud platform; The verification module is used to verify the result information according to the comparison result to obtain a verification result.
8. A result information verification device, characterized in that: Configured on a cloud platform, the device includes: A first receiving module, configured to receive a service request message in a target test case, and if the service request message has user authority, send the service request message to a vehicle terminal; The second receiving module is used to receive result information and send the result information to a preset callback address in the user terminal; wherein the result information is generated by the vehicle terminal according to the service request message and sent by the vehicle terminal to the cloud platform.
9. A user terminal, characterized in that: include: A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 5.
10. A cloud platform, characterized in that: include: A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the method of claim 6.
11. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 or the method according to claim 6 is implemented.
