CN117170350B - Service testing method and device, electronic equipment and storage medium - Google Patents

Service testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117170350B
CN117170350B CN202311446290.8A CN202311446290A CN117170350B CN 117170350 B CN117170350 B CN 117170350B CN 202311446290 A CN202311446290 A CN 202311446290A CN 117170350 B CN117170350 B CN 117170350B
Authority
CN
China
Prior art keywords
target
test
function
information
parameter information
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.)
Active
Application number
CN202311446290.8A
Other languages
Chinese (zh)
Other versions
CN117170350A (en
Inventor
韩可强
唐风敏
常伟
鲍振标
于晓倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd
Original Assignee
Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd filed Critical Guoqi Beijing Intelligent Network Association Automotive Research Institute Co ltd
Priority to CN202311446290.8A priority Critical patent/CN117170350B/en
Publication of CN117170350A publication Critical patent/CN117170350A/en
Application granted granted Critical
Publication of CN117170350B publication Critical patent/CN117170350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The method can receive parameters of target functions filled in a display panel after the hardware of an instrument to be tested is successfully connected with the diagnostic test system, and then generates target test case information corresponding to target protocols, wherein the number of the target functions can be multiple, that is, one diagnostic test cabinet provided with the diagnostic test system can test multiple target functions and can generate test case information of multiple target protocols for testing the instrument to be tested of different buses, and one diagnostic test cabinet can realize full coverage of the test functions, so that the test efficiency is high and the test cost is low.

Description

Service testing method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of diagnostic tests, and particularly relates to a service testing method, a service testing device, electronic equipment and a storage medium.
Background
With the advent of the automobile electric, networking, intelligent and sharing, the automobile industry is led to develop at a high speed and technology is updated and iterated rapidly.
Diagnostic techniques are critical elements throughout the vehicle's full life cycle, and vehicle pre-sale, production line, and after-sale play a vital role. Any function needs to be tested and verified stably and comprehensively to better serve the user. In the prior art, the diagnostic test system has a single test function, for example, only a single bus diagnostic test or a single functional diagnostic test can be realized, and the test efficiency is low and the test cost is high.
Thus, the prior art has the following problems: the diagnostic test system has single test function and low test efficiency and high cost.
Disclosure of Invention
The embodiment of the application provides a service testing method, a service testing device, an electronic device and a storage medium, and solves the problems of single testing function, low testing efficiency and high cost of a diagnostic testing system.
In a first aspect, an embodiment of the present application provides a method for testing a service, including:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling a target function in the control panel, and generating target parameter information;
generating target test case information corresponding to a target protocol based on the target parameter information, wherein the target protocol comprises any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, and the target protocol is the same as a bus protocol of a target instrument to be tested;
And sending the target test case information to the target instrument to be tested.
In some possible implementations, in a case of successful electrical connection with the target meter to be tested, the method further includes, before the parameter information of filling the target function in the control panel and generating the target parameter information:
acquiring hardware interface information of a target instrument to be tested;
and according to the hardware interface information, electrically connecting with the target instrument to be tested.
In some possible implementations, the target test case information includes request information and first response information, the method further including:
receiving second response information sent by the target instrument to be tested, wherein the second response information is generated by the target instrument to be tested based on the request information;
and generating a webpage version test report based on the second response information and the first response information.
In some possible implementations, in a case of successful electrical connection with the target meter to be tested, the method further includes, before the parameter information of filling the target function in the control panel and generating the target parameter information:
acquiring software function information of a target instrument to be tested;
and writing a test case template for diagnosing the target function according to the software function information.
In some possible implementations, the target function includes a protocol service function; the test case template comprises a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel; the control panel comprises a first test engineering control panel; the target parameter information includes first parameter information; according to the software function information, writing a test case template of the diagnosis target function, comprising:
according to the software function information, writing a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel of a diagnosis protocol service function;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling a protocol service function in a first test engineering control panel, and generating first parameter information;
based on the target parameter information, generating target test case information corresponding to the target protocol, including:
and generating target test case information corresponding to the target protocol based on the first parameter information, the diagnosis protocol service template, the diagnosis protocol conversion tool and the first test script.
In some possible implementations, the target functions include a fault code table function and/or a snapshot extension function; the test case template comprises a test case configuration file, a second test script and a second test engineering control panel; the control panel comprises a second test engineering control panel; the target parameter information includes second parameter information; according to the software function information, writing a test case template of the diagnosis target function, comprising:
writing a test case configuration file, a second test script and a second test engineering control panel for diagnosing the fault code table function and/or the snapshot expansion function according to the software function information;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling a fault code table function and/or a snapshot expansion function in a second test engineering control panel, and generating second parameter information;
based on the target parameter information, generating target test case information corresponding to the target protocol, including:
and generating target test case information corresponding to the target protocol based on the second parameter information, the test case configuration file and the second test script.
In some possible implementations, the target function includes at least one of a program flashing function, an information security function, a gateway routing function, and a DoIP protocol function; the test case template comprises a third test script and a third test engineering control panel; the control panel comprises a third test engineering control panel; the target parameter information includes third parameter information; according to the software function information, writing a test case template of the diagnosis target function, comprising:
writing a third test script and a third test engineering control panel of at least one of a diagnostic program writing function, an information security function, a gateway routing function and a DoIP protocol function according to the software function information;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of at least one of a program writing function, an information security function, a gateway routing function and a DoIP protocol function filled in a third test engineering control panel, and generating third parameter information;
based on the target parameter information, generating target test case information corresponding to the target protocol, including:
And generating target test case information corresponding to the target protocol based on the third parameter information and the third test script.
In a second aspect, an embodiment of the present application further provides a service testing apparatus, including:
the receiving module is used for receiving parameter information of filling a target function in the control panel and generating target parameter information under the condition that the electric connection with the target instrument to be tested is successful;
the generating module is used for generating target test case information corresponding to a target protocol based on the target parameter information, wherein the target protocol comprises any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, and the target protocol is the same as a bus protocol of a target instrument to be tested;
and the sending module is used for sending the target test case information to the target instrument to be tested.
In some possible implementations, in a case that the receiving module is configured to electrically connect with the target meter to be tested successfully, the receiving module receives parameter information of filling in the target function in the control panel, and before generating the target parameter information, the apparatus further includes an obtaining module and a connecting module:
the acquisition module is used for acquiring hardware interface information of the target instrument to be tested;
And the connection module is used for electrically connecting with the target instrument to be tested according to the hardware interface information.
In some possible implementations, the target test case information includes request information and first response information, the apparatus further comprising:
the receiving module is further used for receiving second response information sent by the target instrument to be tested, wherein the second response information is generated by the target instrument to be tested based on the request information;
and the generation module is also used for generating a webpage version test report based on the second response information and the first response information.
In some possible implementations, in a case that the receiving module is configured to electrically connect with the target meter to be tested successfully, the receiving module receives parameter information of filling in the target function in the control panel, and before generating the target parameter information, the apparatus further includes a writing module:
the acquisition module is also used for acquiring the software function information of the target instrument to be tested;
and the writing module is used for writing a test case template of the diagnosis target function according to the software function information.
In some possible implementations, the target function includes a protocol service function; the test case template comprises a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel; the control panel comprises a first test engineering control panel; the target parameter information includes first parameter information; the writing module is used for writing a test case template of the diagnosis target function according to the software function information, and comprises the following steps:
The writing unit is used for writing a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel of a diagnosis protocol service function according to the software function information;
the receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
the receiving unit is used for receiving parameter information of filling a protocol service function in the first test engineering control panel and generating first parameter information under the condition that the electric connection with the target instrument to be tested is successful;
the generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
the generating unit is used for generating target test case information corresponding to the target protocol based on the first parameter information, the diagnosis protocol service template, the diagnosis protocol conversion tool and the first test script.
In some possible implementations, the target functions include a fault code table function and/or a snapshot extension function; the test case template comprises a test case configuration file, a second test script and a second test engineering control panel; the control panel comprises a second test engineering control panel; the target parameter information includes second parameter information; the writing module is used for writing a test case template of the diagnosis target function according to the software function information, and comprises the following steps:
The writing unit is used for writing a test case configuration file, a second test script and a second test engineering control panel for diagnosing the fault code table function and/or the snapshot expansion function according to the software function information;
the receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
the receiving unit is used for receiving parameter information of filling a fault code table function and/or a snapshot expansion function in the second test engineering control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating second parameter information;
the generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
the generating unit is used for generating target test case information corresponding to the target protocol based on the second parameter information, the test case configuration file and the second test script.
In some possible implementations, the target function includes at least one of a program flashing function, an information security function, a gateway routing function, and a DoIP protocol function; the test case template comprises a third test script and a third test engineering control panel; the control panel comprises a third test engineering control panel; the target parameter information includes third parameter information; the writing module is used for writing a test case template of the diagnosis target function according to the software function information, and comprises the following steps:
The writing unit is used for writing a third test script and a third test engineering control panel of at least one of a diagnostic program writing function, an information security function, a gateway routing function and a DoIP protocol function according to the software function information;
the receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
the receiving unit is used for receiving parameter information of at least one of a program writing function, an information security function, a gateway routing function and a DoIP protocol function filled in a third test engineering control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating third parameter information;
the generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
and the generating unit is used for generating target test case information corresponding to the target protocol based on the third parameter information and the third test script.
In a third aspect, embodiments of the present application further provide an electronic device, including: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements a method of testing a service as in the first aspect, or any of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method for testing a service as in the first aspect, or any possible implementation manner of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the method of testing a service in the first aspect, or any one of the possible implementations of the first aspect.
According to the service testing method, device, electronic equipment and storage medium, under the condition that the electric connection with the target instrument to be tested is successful, parameter information of a target function is filled in a control panel, the target parameter information CAN be generated, then target test case information corresponding to a target protocol CAN be generated based on the target parameter information, wherein the target protocol CAN comprise any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, the target protocol is the same as the bus protocol of the target instrument to be tested, and then the target test case information is sent to the target instrument to be tested. After the diagnostic test system is successfully connected with the instrument hardware to be tested, parameters of target functions can be filled in the display panel, then target test case information corresponding to target protocols can be generated, wherein the number of the target functions can be multiple, and the number of the target protocols can also be multiple, that is, one diagnostic test cabinet provided with the diagnostic test system can test multiple target functions, and test case information of multiple target protocols can be generated for testing the instrument to be tested of different buses.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method for testing a service according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for testing services according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for developing and using a diagnostic protocol service test case according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for developing and using a diagnostic function case according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for developing and using a diagnostic program brush instance according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of a diagnostic test system for testing a meter under test according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a development flow of a diagnostic test system according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a testing device for a service provided by an embodiment of the present application;
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Features and exemplary embodiments of various aspects of the present application are described in detail below to make the objects, technical solutions and advantages of the present application more apparent, and to further describe the present application in conjunction with the accompanying drawings and the detailed embodiments. It should be understood that the specific embodiments described herein are intended to be illustrative of the application and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by showing examples of the present application.
It is noted that relational terms such as first and second, and the like are 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. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
With the advent of the automobile electric, networking, intelligent and sharing, the automobile industry is led to develop at a high speed and technology is updated and iterated rapidly.
Diagnostic techniques are critical elements throughout the vehicle's full life cycle, and vehicle pre-sale, production line, and after-sale play a vital role. Any function needs to be tested and verified stably and comprehensively to better serve the user. In the prior art, the diagnostic test system has single test function, for example, only a single bus diagnostic test or a single function diagnostic test, has low test efficiency, and has low utilization rate and high cost due to single cabinet function. Therefore, the prior art has the problems of single test function, low test efficiency and high cost of the diagnostic test system.
Based on the above, the embodiment of the application provides a service testing method, a service testing device, an electronic device and a storage medium, which can solve the problems of single testing function, low testing efficiency and high cost of a diagnostic testing system.
The following describes in detail a method for testing services provided in the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a method for testing a service according to an embodiment of the present application, as shown in fig. 1, the method may include steps S110 to S130.
S110, under the condition that the electric connection with the target instrument to be tested is successful, the parameter information of filling the target function in the control panel is received, and the target parameter information is generated.
The target instrument to be tested refers to an instrument which can be used for a user service after the function of the instrument is required to be subjected to diagnostic test through a test system.
The condition that the electric connection with the target meter to be tested is successful means that the test system and the target meter to be tested have established normal communication.
Specifically, step S110 may be understood that the test system receives parameter information of a target function filled in the control panel by a worker in case of successful electrical connection with the target meter to be tested, and then may generate the target parameter information.
In one example, the target function to be tested is an information security function, which may include: the security information diagnosis functions comprise a success event record, a rejection event record, security log protection access control, a success event-coverage strategy, a rejection event-coverage strategy, null event default value checking, random number generator verification, security constant traversal test, security access attempt times, a delay mechanism-switching session, a delay mechanism-re-power-on, a delay mechanism-reset, application software verification, security enablement performance and the like.
In another example, the target function to be tested is a program flush function, which may include: the test system comprises a pre-Memory erasure power-off test, an intra-Memory erasure power-off test, a post-Memory erasure power-off test, an application program flashing to 10% power-off test, an application program flashing to 50% power-off test, an application program flashing to 80% power-off test, an application program flashing to 100% power-off test, an application program flashing to 10% communication interrupt test, an application program flashing to 50% communication interrupt test, an application program flashing to 80% communication interrupt test, an application program flashing to 100% communication interrupt test, an application program flashing to 10% power-off test under a 9V voltage condition, an application program flashing to 10% power-off test under a 16V voltage condition, an application program flashing to 10% voltage jitter condition, an application program effective power-off test, a request downloading Memory address error test, a request downloading Memory size error test, a skip data transmission step flashing test, a skip request downloading and data transmission step flashing test, a skip data downloading and programming integrity checking step execution request programming dependency test, a test routine, a skip programming integrity checking test, a programming error (CRC) test, a test error checking function, a test is enabled by a test panel, a test error checking function is enabled to be executed by a test program error checking function, and the test panel is enabled to be controlled by a test program error test controller when the test has been selected after the test has been tested, and the test panel has been tested by a test function.
In some embodiments, in the case of successful electrical connection with the target meter to be tested, the method further includes, before the parameter information of the target function is received and the target parameter information is generated,:
acquiring hardware interface information of a target instrument to be tested;
and according to the hardware interface information, electrically connecting with the target instrument to be tested.
Specifically, the hardware interface information in the instruction book of the target meter to be tested may be further obtained before step S110, and then the test system and the target meter to be tested are electrically connected according to the hardware interface information, so as to establish communication between the test system and the target meter to be tested.
S120, generating target test case information corresponding to a target protocol based on the target parameter information, wherein the target protocol comprises any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, and the target protocol is the same as a bus protocol of a target instrument to be tested.
The target protocol refers to a bus protocol supported by the test system, and may include any one of LIN bus protocol, CAN bus protocol, CANFD bus protocol, ethernet bus protocol, and the like. The test system selects a target protocol of the test system according to the protocol of the target instrument to be tested.
The target test case information refers to test case information generated by the test system according to the target parameter information, and the target test case information can be a request message which is packaged according to a target protocol.
Specifically, step S120 may be understood that, based on the target parameter information, target test case information corresponding to a target protocol may be generated, where the target protocol may include any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol, and an ethernet bus protocol, and the target protocol is the same as a bus protocol of the target meter to be tested.
S130, sending target test case information to the target instrument to be tested.
Specifically, step S130 may be understood that after generating the target test case information, the test system may send the target test case information to the target to-be-tested instrument, for example, if the bus protocol used by the target to-be-tested instrument is CAN, and then the test system sends a request message corresponding to the CAN protocol to the target to-be-tested instrument.
In the embodiment of the application, under the condition that the electric connection with the target meter to be tested is successful, the parameter information of the target function is filled in the control panel, the target parameter information CAN be generated, then the target test case information corresponding to the target protocol CAN be generated based on the target parameter information, wherein the target protocol CAN comprise any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, and the target protocol is the same as the bus protocol of the target meter to be tested, and then the target test case information is sent to the target meter to be tested. After the diagnostic test system is successfully connected with the instrument hardware to be tested, parameters of target functions can be filled in the display panel, then target test case information corresponding to target protocols can be generated, wherein the number of the target functions can be multiple, and the number of the target protocols can also be multiple, that is, one diagnostic test cabinet provided with the diagnostic test system can test multiple target functions, and test case information of multiple target protocols can be generated for testing the instrument to be tested of different buses.
In some embodiments, the target test case information includes request information and first response information, and the test method of the service further includes:
receiving second response information sent by the target instrument to be tested, wherein the second response information is generated by the target instrument to be tested based on the request information;
and generating a webpage version test report based on the second response information and the first response information.
Specifically, the target test case information may include request information and response information, the response information may be referred to as first response information, the target meter to be tested may generate corresponding response information based on the request information after running and send the response information to the test system, the response information may be referred to as second response information, then the test system may receive the second response information sent by the target meter to be tested, and based on the second response information and the first response information, a web page version test report may be generated, and the web page version test report may facilitate query of a test result.
In one example, the test report may be in html format, and may implement statistics on test cases, for example, may include a total number of test cases, pass terms, fail terms, non-test terms, etc., and may implement classification of test cases, test steps, precise positioning of test problems and test timestamps, and may improve analysis efficiency of the problems.
In some embodiments, as shown in fig. 2, in the case of successful electrical connection with the target meter to be tested, the method further includes, before the parameter information of filling the target function in the control panel and generating the target parameter information:
s140, acquiring software function information of a target instrument to be tested; and writing a test case template for diagnosing the target function according to the software function information.
The target function may be plural, such as a protocol service function, a failure code table function, a snapshot extension function, a program flush function, an information security function, a gateway routing function, and a DoIP protocol function.
Specifically, before testing service functions of the target instrument to be tested, the diagnostic test system needs to develop a corresponding test case template, firstly obtains software function information in the instruction book of the target instrument to be tested, and then can write the test case template for diagnosing the target function according to the software function information of the target instrument to be tested. The test case template is written to realize the test of different functions of the target instrument to be tested, the test range is wide, and the test function is comprehensive.
In some embodiments, the target function comprises a protocol service function; the test case template comprises a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel; the control panel comprises a first test engineering control panel; the target parameter information includes first parameter information; according to the software function information, writing a test case template of the diagnosis target function, comprising:
According to the software function information, writing a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel of a diagnosis protocol service function;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling a protocol service function in a first test engineering control panel, and generating first parameter information;
based on the target parameter information, generating target test case information corresponding to the target protocol, including:
and generating target test case information corresponding to the target protocol based on the first parameter information, the diagnosis protocol service template, the diagnosis protocol conversion tool and the first test script.
Specifically, in the case where the target function includes a protocol service function, the written test case templates may include a diagnostic protocol service template, a diagnostic protocol conversion tool, a first test script, and a first test engineering control panel; the control panel may include a first test engineering control panel; the target parameter information may include first parameter information. According to the software function information, writing a test case template of the diagnosis target function can comprise: and writing a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel of the diagnosis protocol service function according to the software function information. Under the condition that the electric connection with the target instrument to be tested is successful, the parameter information of filling the target function in the control panel is received, and the generation of the target parameter information can comprise the following steps: and under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling the protocol service function in the first test engineering control panel, and generating first parameter information. Based on the target parameter information, generating target test case information corresponding to the target protocol may include: and generating target test case information corresponding to the target protocol based on the first parameter information, the diagnosis protocol service template, the diagnosis protocol conversion tool and the first test script. By writing the test case template of the protocol service function, the protocol service function of the target instrument to be tested can be tested, and the test function of the diagnostic test system is enriched.
In one example, as shown in fig. 3, the diagnostic protocol service use case development and test flow may be: the test system of the embodiment of the application develops a diagnosis protocol conversion tool by customizing a diagnosis protocol service template, develops an automatic test script based on a capl language, develops a test engineering control panel based on CANoe software, combines bus interface equipment such as a program-controlled power supply, a VT board card, VN1640/VN5650 and the like, can realize automatic test of diagnosis protocol service, enriches test functions of the diagnosis test system, improves test efficiency and reduces test cost.
In some embodiments, the target functions include a fault code table function and/or a snapshot extension function; the test case template comprises a test case configuration file, a second test script and a second test engineering control panel; the control panel comprises a second test engineering control panel; the target parameter information includes second parameter information; according to the software function information, writing a test case template of the diagnosis target function, comprising:
writing a test case configuration file, a second test script and a second test engineering control panel for diagnosing the fault code table function and/or the snapshot expansion function according to the software function information;
Under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling a fault code table function and/or a snapshot expansion function in a second test engineering control panel, and generating second parameter information;
based on the target parameter information, generating target test case information corresponding to the target protocol, including:
and generating target test case information corresponding to the target protocol based on the second parameter information, the test case configuration file and the second test script.
Specifically, in the case where the target function includes a fault code table function and/or a snapshot extension function, the test case template may include a test case configuration file, a second test script, and a second test engineering control panel; the control panel may include a second test engineering control panel; the target parameter information may include second parameter information. According to the software function information, writing a test case template of the diagnosis target function can comprise: and writing a test case configuration file, a second test script and a second test engineering control panel for diagnosing the fault code table function and/or the snapshot extension function according to the software function information. Under the condition that the electric connection with the target instrument to be tested is successful, the parameter information of filling the target function in the control panel is received, and the generation of the target parameter information can comprise the following steps: under the condition that the electric connection with the target instrument to be tested is successful, the receiving staff fills out parameter information of the fault code table function and/or the snapshot expansion function in the second test engineering control panel, and second parameter information can be generated. Based on the target parameter information, generating target test case information corresponding to the target protocol may include: based on the second parameter information, the test case configuration file and the second test script, target test case information corresponding to the target protocol can be generated. By writing the test case templates of the fault code table function and/or the snapshot expansion function, the test of the fault code table function and/or the snapshot expansion function of the target instrument to be tested can be realized, and the test function of the diagnostic test system is further enriched.
In one example, as shown in fig. 4, the diagnostic function automates the main test fault code table DTC and snapshot extension record functions, wherein DTC tests may include communication faults and electrical faults, wherein the electrical faults may simulate faults such as short circuits, open circuits, etc. of an associated interface of an automotive electronic control unit (Electronic Control Unit, ECU for short) through a VT board. And compiling an automatic test script in the software vTESTstudio, and generating an automatic test case configuration file, wherein the automatic test of the diagnostic function is realized by combining the configuration file with the configuration of CANoe engineering. In the embodiment of the application, the test cases can be expanded according to the functions of the ECU, so that the test functions of the diagnostic test system are enriched.
In some embodiments, the target function includes at least one of a program flashing function, an information security function, a gateway routing function, and a DoIP protocol function; the test case template comprises a third test script and a third test engineering control panel; the control panel comprises a third test engineering control panel; the target parameter information includes third parameter information; according to the software function information, writing a test case template of the diagnosis target function, comprising:
Writing a third test script and a third test engineering control panel of at least one of a diagnostic program writing function, an information security function, a gateway routing function and a DoIP protocol function according to the software function information;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of at least one of a program writing function, an information security function, a gateway routing function and a DoIP protocol function filled in a third test engineering control panel, and generating third parameter information;
based on the target parameter information, generating target test case information corresponding to the target protocol, including:
and generating target test case information corresponding to the target protocol based on the third parameter information and the third test script.
Specifically, in the case where the target function includes at least one of a program flashing function, an information security function, a gateway routing function, and a DoIP protocol function, the test case template may include a third test script and a third test engineering control panel; the control panel may include a third test engineering control panel; the target parameter information may include third parameter information. According to the software function information, writing a test case template of the diagnosis target function can comprise: and writing a third test script and a third test engineering control panel of at least one of a diagnostic program writing function, an information security function, a gateway routing function and a DoIP protocol function according to the software function information. Under the condition that the electric connection with the target instrument to be tested is successful, the parameter information of filling the target function in the control panel is received, and the generation of the target parameter information can comprise the following steps: and under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of at least one of a program writing function, an information security function, a gateway routing function and a DoIP protocol function filled in a third test engineering control panel, and generating third parameter information. Based on the target parameter information, generating target test case information corresponding to the target protocol may include: and generating target test case information corresponding to the target protocol based on the third parameter information and the third test script. By writing the test case template of at least one of the program writing function, the information security function, the gateway routing function and the DoIP protocol function, the test of at least one of the program writing function, the information security function, the gateway routing function and the DoIP protocol function of the target instrument to be tested can be realized, and the test function of the diagnostic test system is further enriched.
In one example, as shown in FIG. 5, the development and test use procedure for a diagnostic program brush case is: based on the capl language, an automatic test script is developed, and a brushing flow test, a safety test, a reliability test and an integrity test are realized, wherein voltage and current are controlled by a programmable power supply, and power failure of a controller is realized by a VT board card in short time, so that the test function of a diagnosis test system is enriched.
In one example, a diagnostic test system that adapts to different buses may include: the cabinet body, the industrial personal computer, the programmable power supply, the VT board card and the VN5650/VN1640 and CANoe, vTESTstudio. The cabinet can be opened and closed locally to provide input power; the industrial personal computer can monitor and execute the test engineering; the programmable power supply can supply power to the VT board card and control current and voltage; the VT board card realizes the power supply to the ECU and outputs various I/O analog quantities; the VN5650 CAN realize data transmission and reception of CAN/Ethernet bus protocol; the VN5650/VN1640 CAN realize data transceiving of LIN/CAN/CANFD bus protocol; the CANoe can realize test script editing, control panel development, test execution, test data storage and automatic generation of test reports; the vTESTstudio can develop diagnostic function automation test scripts and execution files, can realize the test of multiple target functions by installing the diagnostic test system in a diagnostic test cabinet, can generate test case information of multiple target protocols for testing the to-be-tested instruments of different buses, and can realize the full coverage of the test functions by one diagnostic test cabinet, and the diagnostic test system has high test efficiency and low test cost.
In another example, as shown in fig. 6, a process of testing a DUT of an automotive electronic control unit by a diagnostic test system is shown, where a host computer of the diagnostic test system installs diagnostic protocol conversion, and functions of the host computer may mainly include: calling the encrypted test script through CANoe software, and controlling a VT system or a programmable power supply; control of the test engineering panel is realized through CANoe software; implementing fault and snapshot expansion use case development through vTESTstudio software; and calling the encrypted test script through CANoe software to realize communication with the DUT and execute the test. The diagnosis test system is in bus communication with the automobile electronic control unit through the CANoe hardware interface, a VT subsystem in the diagnosis test system can simulate faults such as short circuit and open circuit, different fault scenes can be simulated according to different test cases, the diagnosis test system is arranged in the diagnosis test cabinet, the test of multiple target functions can be realized, test case information of multiple target protocols can be generated for testing to-be-tested instruments of different buses, the test function full coverage can be realized by one diagnosis test cabinet, the test efficiency is high, and the test cost is low.
In yet another example, as shown in fig. 7, the development flow of the diagnostic automated test system may be: test specification development, test case design, test script development and test equipment integration, and the service functions of the developed test case for diagnosis test are as follows:
1) Testing a diagnostic protocol of LIN/CAN/CANFD/Ethernet;
2) LIN/CAN/CANFD/Ethernet extended record and snapshot record function test;
3) LIN/CAN/CANFD/Ethernet brush test;
4) LIN/CAN/CANFD/Ethernet diagnostic trouble code test;
5) Gateway diagnostic route testing;
6) Testing the safety of diagnostic information;
7) Ethernet DoIP protocol test.
By integrating all the test functions into one diagnosis test cabinet, the full coverage of the test functions is realized, the test efficiency is improved, and the test cost is reduced.
The embodiment of the application also provides a service testing device, as shown in fig. 8, the device 800 may include a receiving module 810, a generating module 820, and a sending module 830:
the receiving module 810 is configured to receive parameter information of filling a target function in the control panel and generate target parameter information when the electrical connection with the target meter to be tested is successful;
The generating module 820 is configured to generate target test case information corresponding to a target protocol based on the target parameter information, where the target protocol includes any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol, and an ethernet bus protocol, and the target protocol is the same as a bus protocol of a target meter to be tested;
and the sending module 830 is configured to send the target test case information to the target meter to be tested.
According to the service testing device, under the condition that the electric connection with the target instrument to be tested is successful, parameter information of a target function filled in a control panel is received, target parameter information CAN be generated, then target test case information corresponding to a target protocol CAN be generated based on the target parameter information, wherein the target protocol CAN comprise any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, the target protocol is the same as the bus protocol of the target instrument to be tested, and then the target test case information is sent to the target instrument to be tested. After the diagnostic test system is successfully connected with the instrument hardware to be tested, parameters of target functions can be filled in the display panel, then target test case information corresponding to target protocols can be generated, wherein the number of the target functions can be multiple, and the number of the target protocols can also be multiple, that is, one diagnostic test cabinet provided with the diagnostic test system can test multiple target functions, and test case information of multiple target protocols can be generated for testing the instrument to be tested of different buses.
In some embodiments, in a case that the receiving module is used for receiving parameter information of filling a target function in the control panel and generating target parameter information when the receiving module is electrically connected with the target meter to be tested successfully, the device further comprises an obtaining module and a connecting module:
the acquisition module is used for acquiring hardware interface information of the target instrument to be tested;
and the connection module is used for electrically connecting with the target instrument to be tested according to the hardware interface information.
In some embodiments, the target test case information includes request information and first response information, the apparatus further comprising:
the receiving module is further used for receiving second response information sent by the target instrument to be tested, wherein the second response information is generated by the target instrument to be tested based on the request information;
and the generation module is also used for generating a webpage version test report based on the second response information and the first response information.
In some embodiments, in a case that the receiving module is used for receiving parameter information of filling a target function in the control panel and generating target parameter information when the receiving module is electrically connected with the target meter to be tested successfully, the device further comprises a writing module:
the acquisition module is also used for acquiring the software function information of the target instrument to be tested;
And the writing module is used for writing a test case template of the diagnosis target function according to the software function information.
In some embodiments, the target function comprises a protocol service function; the test case template comprises a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel; the control panel comprises a first test engineering control panel; the target parameter information includes first parameter information; the writing module is used for writing a test case template of the diagnosis target function according to the software function information, and comprises the following steps:
the writing unit is used for writing a diagnosis protocol service template, a diagnosis protocol conversion tool, a first test script and a first test engineering control panel of a diagnosis protocol service function according to the software function information;
the receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
the receiving unit is used for receiving parameter information of filling a protocol service function in the first test engineering control panel and generating first parameter information under the condition that the electric connection with the target instrument to be tested is successful;
The generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
the generating unit is used for generating target test case information corresponding to the target protocol based on the first parameter information, the diagnosis protocol service template, the diagnosis protocol conversion tool and the first test script.
In some embodiments, the target functions include a fault code table function and/or a snapshot extension function; the test case template comprises a test case configuration file, a second test script and a second test engineering control panel; the control panel comprises a second test engineering control panel; the target parameter information includes second parameter information; the writing module is used for writing a test case template of the diagnosis target function according to the software function information, and comprises the following steps:
the writing unit is used for writing a test case configuration file, a second test script and a second test engineering control panel for diagnosing the fault code table function and/or the snapshot expansion function according to the software function information;
the receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
The receiving unit is used for receiving parameter information of filling a fault code table function and/or a snapshot expansion function in the second test engineering control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating second parameter information;
the generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
the generating unit is used for generating target test case information corresponding to the target protocol based on the second parameter information, the test case configuration file and the second test script.
In some embodiments, the target function includes at least one of a program flashing function, an information security function, a gateway routing function, and a DoIP protocol function; the test case template comprises a third test script and a third test engineering control panel; the control panel comprises a third test engineering control panel; the target parameter information includes third parameter information; the writing module is used for writing a test case template of the diagnosis target function according to the software function information, and comprises the following steps:
the writing unit is used for writing a third test script and a third test engineering control panel of at least one of a diagnostic program writing function, an information security function, a gateway routing function and a DoIP protocol function according to the software function information;
The receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
the receiving unit is used for receiving parameter information of at least one of a program writing function, an information security function, a gateway routing function and a DoIP protocol function filled in a third test engineering control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating third parameter information;
the generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
and the generating unit is used for generating target test case information corresponding to the target protocol based on the third parameter information and the third test script.
The modules in the service testing device provided in the embodiment of the present application may implement the functions of the steps of the service testing method provided in fig. 1 to 7, and may achieve the corresponding technical effects, which are not described herein for brevity.
Fig. 9 shows a schematic hardware structure of a test device for services provided in an embodiment of the present application.
The test equipment of the service may comprise a processor 901 and a memory 902 in which computer program instructions are stored.
In particular, the processor 901 may include a central processing unit (Central Processing Unit, CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits of embodiments of the present application.
Memory 902 may include mass storage for data or instructions. By way of example, and not limitation, the memory 902 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory 902 may include removable or non-removable (or fixed) media, where appropriate. The memory 902 may be internal or external to the test equipment being serviced, where appropriate. In a particular embodiment, the memory 902 is a non-volatile solid state memory.
The Memory may include Read Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors) it is operable to perform the operations described with reference to a method according to an aspect of the present application.
The processor 901 implements the test method of any one of the services of the above embodiments by reading and executing the computer program instructions stored in the memory 902.
In one example, the test equipment of the service may also include a communication interface 903 and a bus 904. As shown in fig. 9, the processor 901, the memory 902, and the communication interface 903 are connected to each other via a bus 904, and communicate with each other.
The communication interface 903 is mainly used to implement communication between each module, device, unit, and/or apparatus in the embodiments of the present application.
Bus 904 includes hardware, software, or both, coupling the components of the serviced test equipment to one another. By way of example, and not limitation, the buses may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics Bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) Bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an industry standard architecture (Industry Standard Architecture, ISA) Bus, an Infiniband interconnect, a low pin count (Linear Predictive Coding, LPC) Bus, a memory Bus, a micro channel architecture (MicroChannel Architecture, MCa) Bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) Bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) Bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) Bus, a video electronics standards association Local Bus (VLB) Bus, or other suitable Bus, or a combination of two or more of these. Bus 904 may include one or more buses, where appropriate. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
The apparatus may perform the method for testing services in the embodiments of the present application based on the respective units/components in the device for testing services, thereby implementing the method for testing services described in connection with fig. 1 to 7.
In addition, in combination with the method for testing services in the above embodiments, the embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a method of testing any of the services of the above embodiments.
The present application also provides a computer program product, the instructions in which, when executed by a processor of an electronic device, cause the electronic device to perform the various processes of the test method embodiment implementing any of the services described above.
It should be clear that the present application is not limited to the particular arrangements and processes described above and illustrated in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps, after appreciating the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor Memory devices, read-Only Memory (ROM), flash Memory, erasable Read-Only Memory (Erasable Read Only Memory, EROM), floppy disks, compact discs (Compact Disc Read-Only Memory, CD-ROM), optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be different from the order in the embodiments, or several steps may be performed simultaneously.
Aspects of the present application are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations 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, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to being, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware which performs the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In the foregoing, only the specific embodiments of the present application are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, which are intended to be included in the scope of the present application.

Claims (10)

1. A method for testing a service, comprising:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of filling a target function in the control panel, and generating target parameter information;
generating target test case information corresponding to a target protocol based on the target parameter information, wherein the target protocol comprises any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, and the target protocol is the same as the bus protocol of the target instrument to be tested;
The target test case information is sent to the target instrument to be tested;
wherein the target function comprises a protocol service function; the control panel comprises a first test engineering control panel; the target parameter information comprises first parameter information;
under the condition that the electric connection with the target instrument to be tested is successful, the parameter information of filling the target function in the control panel is received, and the target parameter information is generated, which comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling the protocol service function in a first test engineering control panel, and generating the first parameter information;
the generating the target test case information corresponding to the target protocol based on the target parameter information comprises the following steps:
generating target test case information corresponding to a target protocol based on the first parameter information, a preset diagnostic protocol service template, a preset diagnostic protocol conversion tool and a preset first test script, wherein the diagnostic protocol service template, the diagnostic protocol conversion tool, the first test script and the first test engineering control panel are written based on software function information of the target instrument to be tested.
2. The method according to claim 1, wherein in case the electrical connection with the target meter to be tested is successful, the parameter information filling the target function in the control panel is received, and before generating the target parameter information, the method further comprises:
acquiring hardware interface information of a target instrument to be tested;
and electrically connecting with the target instrument to be tested according to the hardware interface information.
3. The method of claim 1, wherein the target test case information includes request information and first response information, the method further comprising:
receiving second response information sent by the target instrument to be tested, wherein the second response information is generated by the target instrument to be tested based on the request information;
and generating a webpage version test report based on the second response information and the first response information.
4. The method according to claim 1, wherein in case the electrical connection with the target meter to be tested is successful, the parameter information filling the target function in the control panel is received, and before generating the target parameter information, the method further comprises:
Acquiring software function information of a target instrument to be tested;
and writing a test case template for diagnosing the target function according to the software function information.
5. The method of claim 4, wherein the test case templates comprise a diagnostic protocol service template, a diagnostic protocol conversion tool, a first test script, and a first test engineering control panel; the test case template for compiling the diagnosis target function according to the software function information comprises the following steps:
and writing the diagnosis protocol service template, the diagnosis protocol conversion tool, the first test script and the first test engineering control panel for diagnosing the protocol service function according to the software function information.
6. The method according to claim 4, wherein the target function comprises a fault code table function and/or a snapshot extension function; the test case template comprises a test case configuration file, a second test script and a second test engineering control panel; the control panel comprises the second test engineering control panel; the target parameter information comprises second parameter information; the test case template for compiling the diagnosis target function according to the software function information comprises the following steps:
Writing the test case configuration file, the second test script and the second test engineering control panel for diagnosing the fault code table function and/or the snapshot extension function according to the software function information;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, parameter information of filling the fault code table function and/or the snapshot expansion function in a second test engineering control panel is received, and the second parameter information is generated;
based on the target parameter information, generating target test case information corresponding to a target protocol, including:
and generating target test case information corresponding to a target protocol based on the second parameter information, the test case configuration file and the second test script.
7. The method of claim 4, wherein the target function comprises at least one of a program flashing function, an information security function, a gateway routing function, and a DoIP protocol function; the test case template comprises a third test script and a third test engineering control panel; the control panel comprises the third test engineering control panel; the target parameter information comprises third parameter information; the test case template for compiling the diagnosis target function according to the software function information comprises the following steps:
Writing the third test script and the third test engineering control panel for diagnosing at least one of the program flashing function, the information security function, the gateway routing function and the DoIP protocol function according to the software function information;
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information for filling in a target function in the control panel, and generating target parameter information, wherein the method comprises the following steps:
under the condition that the electric connection with the target instrument to be tested is successful, receiving parameter information of at least one of the program refreshing function, the information security function, the gateway routing function and the DoIP protocol function filled in a third test engineering control panel, and generating third parameter information;
based on the target parameter information, generating target test case information corresponding to a target protocol, including:
and generating target test case information corresponding to a target protocol based on the third parameter information and the third test script.
8. A service testing apparatus, comprising:
the receiving module is used for receiving parameter information of filling a target function in the control panel and generating target parameter information under the condition that the electric connection with the target instrument to be tested is successful;
The generating module is used for generating target test case information corresponding to a target protocol based on the target parameter information, wherein the target protocol comprises any one of a LIN bus protocol, a CAN bus protocol, a CANFD bus protocol and an Ethernet bus protocol, and the target protocol is the same as the bus protocol of the target instrument to be tested;
the sending module is used for sending the target test case information to the target instrument to be tested;
wherein the target function comprises a protocol service function; the control panel comprises a first test engineering control panel; the target parameter information comprises first parameter information;
the receiving module is used for receiving parameter information of filling a target function in the control panel under the condition that the electric connection with the target instrument to be tested is successful, and generating target parameter information, and comprises the following steps:
the receiving unit is used for receiving parameter information for filling the protocol service function in a first test engineering control panel and generating the first parameter information under the condition that the electric connection with the target instrument to be tested is successful;
the generating module is configured to generate target test case information corresponding to a target protocol based on the target parameter information, and includes:
The generating unit is used for generating target test case information corresponding to a target protocol based on the first parameter information, a preset diagnostic protocol service template, a preset diagnostic protocol conversion tool and a preset first test script, wherein the diagnostic protocol service template, the diagnostic protocol conversion tool, the first test script and the first test engineering control panel are written based on software function information of the target instrument to be tested.
9. An electronic device, the electronic device comprising: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements a method of testing a service as claimed in any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon computer program instructions which, when executed by a processor, implement a method of testing a service according to any of claims 1 to 7.
CN202311446290.8A 2023-11-02 2023-11-02 Service testing method and device, electronic equipment and storage medium Active CN117170350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311446290.8A CN117170350B (en) 2023-11-02 2023-11-02 Service testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311446290.8A CN117170350B (en) 2023-11-02 2023-11-02 Service testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117170350A CN117170350A (en) 2023-12-05
CN117170350B true CN117170350B (en) 2024-03-22

Family

ID=88945345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311446290.8A Active CN117170350B (en) 2023-11-02 2023-11-02 Service testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117170350B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302113A (en) * 2015-10-28 2016-02-03 武汉锐科控制系统有限公司 Configurable and extensible automobile diagnosis system and diagnosis method
CN111208798A (en) * 2019-12-26 2020-05-29 深圳市优必选科技股份有限公司 Robot testing method and device, electronic equipment and storage medium
DE102019104055A1 (en) * 2019-02-18 2020-08-20 Tim Schneider Diagnostic system for automobiles
CN112860563A (en) * 2021-02-25 2021-05-28 东风柳州汽车有限公司 Automobile diagnostic instrument testing method, device, equipment and storage medium
CN114205340A (en) * 2021-12-23 2022-03-18 绿盟科技集团股份有限公司 Fuzzy test method and device based on intelligent power equipment
CN116684333A (en) * 2023-04-26 2023-09-01 深圳开鸿数字产业发展有限公司 Automatic test method, device, equipment and storage medium based on communication protocol
CN116841874A (en) * 2023-06-25 2023-10-03 中国第一汽车股份有限公司 Test method and device for unified diagnosis service function, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9152542B2 (en) * 2013-03-14 2015-10-06 Sap Se Automatic generation of test scripts

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302113A (en) * 2015-10-28 2016-02-03 武汉锐科控制系统有限公司 Configurable and extensible automobile diagnosis system and diagnosis method
DE102019104055A1 (en) * 2019-02-18 2020-08-20 Tim Schneider Diagnostic system for automobiles
CN111208798A (en) * 2019-12-26 2020-05-29 深圳市优必选科技股份有限公司 Robot testing method and device, electronic equipment and storage medium
CN112860563A (en) * 2021-02-25 2021-05-28 东风柳州汽车有限公司 Automobile diagnostic instrument testing method, device, equipment and storage medium
CN114205340A (en) * 2021-12-23 2022-03-18 绿盟科技集团股份有限公司 Fuzzy test method and device based on intelligent power equipment
CN116684333A (en) * 2023-04-26 2023-09-01 深圳开鸿数字产业发展有限公司 Automatic test method, device, equipment and storage medium based on communication protocol
CN116841874A (en) * 2023-06-25 2023-10-03 中国第一汽车股份有限公司 Test method and device for unified diagnosis service function, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN117170350A (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN112817872A (en) Development test system and method
CN109726061B (en) SoC chip verification method
CN109918302B (en) Vehicle-mounted automatic testing method and device, vehicle-mounted multimedia system and automobile
CN103439961A (en) Automobile electronic control unit diagnostic function test method and system
CN110445635B (en) Control message sending method and device and bus simulation test system
CN113759879B (en) Vehicle-mounted Ethernet DoIP diagnosis and writing test method and system based on L3 whole vehicle architecture
KR101209069B1 (en) Debuggging Apparatus For CAN Communication Diagnosis Device
WO2012069883A1 (en) Method of debugging software and corresponding computer program product
CN113821440A (en) VxWorks application software testing method, system and simulator
CN117170350B (en) Service testing method and device, electronic equipment and storage medium
CN116340073B (en) Test method, device and system
CN107797540B (en) Transmission fault testing method and device and terminal
Sălcianu et al. A new CAN diagnostic fault simulator based on UDS protocol
CN116306479A (en) UVM-based Ethernet PHY universal verification platform and verification method
CN116048051A (en) Timeout verification method, device, equipment and storage medium
CN116257437A (en) ADAS system defect verification method and device based on real vehicle data reinjection
CN115542875A (en) Vehicle detection method based on SOA service and related equipment
CN114510902A (en) Simulation result verification method, device, equipment and computer storage medium
CA3144852A1 (en) Automatic generation of integrated test procedures using system test procedures
CN106019021A (en) Universal test tool of electronic device test device and test method of universal test tool
Hwang et al. Black-box testing tool of railwaysignalling system software with a focus on user convenience
CN117112447B (en) Data transmission method and device, electronic equipment and readable storage medium
CN112306045B (en) Fuzzy test method and equipment for train automatic control system
Ursu et al. Simulink® modeling for vehicle simulator design
Armengaud et al. Efficient stimulus generation for testing embedded distributed systems the FlexRay example

Legal Events

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