CN-121996535-A - System, method and computer program product for testing software of a vehicle
Abstract
The present disclosure relates to the provision of systems. Systems, methods, and computer program products for testing vehicle software are provided. According to an exemplary embodiment, a system may include a storage memory storing computer-executable instructions, and at least one processor communicatively coupled to the storage memory, the at least one processor may be configured to execute the instructions to receive one or more natural language codes from a first user, determine whether the received one or more natural language codes contain one or more new natural language codes that do not correspond to any of the one or more programming language codes stored in the storage memory, send the one or more new natural language codes to a second user in response to determining that the received one or more natural language codes contain one or more new natural language codes, and receive the one or more new programming language codes from the second user.
Inventors
- Baker Chen
- EDWIN WEBB
- Sheldon Anthony. Reed
- Nisher Candru
- Praniv Suhas Batkand
- Qiu Shanchun
- Nicola Almelni
- WANG XIAOYU
- Chikushima Kuriko
- WU HAO
- Benjamin Bachler
- Alexei Bozimenko
- Vijay Saravana Jaishankar
Assignees
- 丰田自动车株式会社
Dates
- Publication Date
- 20260508
- Application Date
- 20251103
- Priority Date
- 20241107
Claims (20)
- 1. A system for testing software of a vehicle, wherein, The system is provided with: a memory storage storing computer executable instructions, and At least one processor communicatively coupled to the storage memory, The at least one processor is configured to execute the instructions to: receiving one or more natural language codes from a first user; Determining whether the received one or more natural language codes contain one or more new natural language codes that do not correspond to any of the one or more programming language codes stored in the storage memory; In response to determining that the received one or more natural language codes contain the one or more new natural language codes, transmitting the one or more new natural language codes to a second user, and Receiving one or more new programming language codes from the second user, The received one or more new programming language codes correspond to the one or more new natural language codes.
- 2. The system of claim 1, wherein, The at least one processor is further configured to execute the instructions to store the one or more new programming language codes and the corresponding one or more new natural language codes as established test steps in the storage memory.
- 3. The system according to claim 1 or 2, wherein, The at least one processor is configured to determine whether the received one or more natural language codes contain the one or more new natural language codes by executing the instructions to: executing the received one or more natural language codes, wherein the received one or more natural language codes are executed by executing corresponding one or more programming language codes; determining that the received one or more natural language codes cannot be executed, and One or more codes are identified from the received one or more natural language codes that cannot be executed.
- 4. The system according to claim 1 to 3, wherein, The at least one processor is further configured to execute the instructions to: In response to receiving the one or more new programming language codes, determining whether the received one or more natural language codes are executed normally.
- 5. The system according to any one of claim 1 to 4, wherein, The at least one processor is further configured to execute the instructions to: Generating a graphical user interface having at least a first portion and a second portion, wherein the first portion has a portion for inputting a code and the second portion has a search area and a test step area; Receiving a retrieval input from the first user in the retrieval area; Displaying more than one test step associated with the search input in the test step area; Receiving a selection input from the first user for selecting one of the more than one test steps displayed in the test step area, and Natural language codes associated with the selected one of the more than one test steps are input to the first portion.
- 6. The system of claim 5, wherein, The one or more natural language codes are received in the first portion.
- 7. The system according to claim 5 or 6, wherein, The storage memory is provided with a plurality of predetermined test steps, Each of the plurality of predetermined test steps is associated with a natural language code and a corresponding one or more programming language codes, The one or more test steps associated with the search input are obtained from the plurality of established test steps.
- 8. The system according to any one of claim 5 to 7, wherein, The first part is further provided with a pop-up window, The at least one processor is further configured to execute the instructions to: receiving a partial natural language code input in the first portion from the first user; Displaying more than one test step associated with the partial natural language code input on the pop-up window; receiving a selection input from the first user for selecting one of the more than one test steps displayed in the pop-up window, and In the first portion, the natural language code input of the portion is replaced with a natural language code associated with the selected one of the more than one test steps.
- 9. The system according to any one of claim 1 to 8, wherein, The one or more natural language codes are Gherkin programming language formats and the one or more programming language codes are Python programming language formats.
- 10. A method performed by a system for testing software of a vehicle, comprising: receiving one or more natural language codes from a first user; Determining whether the received one or more natural language codes contain one or more new natural language codes that do not correspond to any of the one or more programming language codes stored in the storage memory of the system; In response to determining that the received one or more natural language codes contain the one or more new natural language codes, transmitting the one or more new natural language codes to a second user, and Receiving one or more new programming language codes from the second user, The received one or more new programming language codes correspond to the one or more new natural language codes.
- 11. The method of claim 10, further comprising: And storing the one or more new programming language codes and the corresponding one or more new natural language codes as predetermined test steps in the storage memory.
- 12. The method according to claim 10 or 11, wherein, The determination of whether the received one or more natural language codes includes the one or more new natural language codes includes: executing the received one or more natural language codes, wherein the received one or more natural language codes are executed by executing corresponding one or more programming language codes; determining that the received one or more natural language codes cannot be executed, and One or more codes are identified from the received one or more natural language codes that cannot be executed.
- 13. The method of any one of claims 10-12, further comprising: In response to receiving the one or more new programming language codes, determining whether the received one or more natural language codes are executed normally.
- 14. The method of any one of claims 10-13, further comprising: Generating a graphical user interface having at least a first portion and a second portion, wherein the first portion has a portion for inputting a code and the second portion has a search area and a test step area; Receiving a retrieval input from the first user in the retrieval area; Displaying more than one test step associated with the search input in the test step area; Receiving a selection input from the first user for selecting one of the more than one test steps displayed in the test step area, and Natural language codes associated with the selected one of the more than one test steps are input to the first portion.
- 15. The method of claim 14, wherein, The one or more natural language codes are received in the first portion.
- 16. The method according to claim 14 or 15, wherein, The storage memory is provided with a plurality of predetermined test steps, Each of the plurality of predetermined test steps is associated with a natural language code and a corresponding one or more programming language codes, The one or more test steps associated with the search input are obtained from the plurality of established test steps.
- 17. The method according to any one of claims 14 to 16, wherein, The first part is further provided with a pop-up window, The method further comprises the steps of: receiving a partial natural language code input in the first portion from the first user; Displaying more than one test step associated with the partial natural language code input on the pop-up window; receiving a selection input from the first user for selecting one of the more than one test steps displayed in the pop-up window, and In the first portion, the natural language code input of the portion is replaced with a natural language code associated with the selected one of the more than one test steps.
- 18. The method according to any one of claims 10 to 17, wherein, The one or more natural language codes are Gherkin programming language formats and the one or more programming language codes are Python programming language formats.
- 19. A computer program product comprising a computer program for causing at least one processor to execute a method, wherein, The method comprises the following steps: receiving one or more natural language codes from a first user; Determining whether the received one or more natural language codes contain one or more new natural language codes that do not correspond to any of the one or more programming language codes stored in a storage memory of a system performing the method; In response to determining that the received one or more natural language codes contain the one or more new natural language codes, transmitting the one or more new natural language codes to a second user, and Receiving one or more new programming language codes from the second user, The received one or more new programming language codes correspond to the one or more new natural language codes.
- 20. The computer program product of claim 19, wherein, The determination of whether the received one or more natural language codes includes the one or more new natural language codes includes: executing the received one or more natural language codes, wherein the received one or more natural language codes are executed by executing corresponding one or more programming language codes; determining that the received one or more natural language codes cannot be executed, and One or more codes are identified from the received one or more natural language codes that cannot be executed.
Description
System, method and computer program product for testing software of a vehicle Technical Field Systems, methods, and computer program products consistent with exemplary embodiments of the present disclosure relate to vehicle software testing, and more particularly, to writing test steps in vehicle software testing. Background In software development, it is necessary to test software to ensure that the software functions in an intended manner, meets specified requirements, and reliably functions in various scenarios. Software testing is an important part of the software development lifecycle (SDLC: software Development LIFE CYCLE) that is performed to identify defects, errors, or faults (bugs) in the software before the software is deployed in the actual system. Testing of software associated with a vehicle may be performed by designing test cases that include multiple test steps that operate within a test environment. The results of the work of the test cases within the test environment may then be generated and viewed by the user to evaluate the software. In the related art, test cases are designed by inputting and typing test steps in a programming language such as Python. However, such a process requires that the user have extensive knowledge about the associated programming language, and users without such knowledge may have difficulty designing test cases, whereby the risk of time and errors may increase. Thus, there is a need for a system that allows users to quickly and efficiently design test cases without requiring knowledge about the programming language. Disclosure of Invention Exemplary embodiments of the present disclosure test vehicle software. Thus, exemplary embodiments of the present disclosure enable users without extensive knowledge about the underlying level of programming to easily design and study test cases, while also providing flexibility for such users to request creation of new test steps. Moreover, exemplary embodiments of the present disclosure enable rapid and efficient addition of test steps to test cases without requiring a user to manually type such test steps. According to an exemplary embodiment, a system is provided. The system may involve testing software of a vehicle, and the system may include a storage memory storing computer executable instructions, and at least one processor communicatively coupled to the storage memory, the at least one processor may be configured to execute the instructions to receive one or more natural language codes from a first user, determine whether the received one or more natural language codes include one or more new natural language codes that do not correspond to any of the one or more programming language codes stored in the storage memory, send the one or more new natural language codes to a second user in response to determining that the received one or more natural language codes include one or more new natural language codes, and receive the one or more new programming language codes from the second user, the received one or more new programming language codes may correspond to the one or more new natural language codes. According to an exemplary embodiment, the at least one processor may be further configured to execute the instructions to store the one or more new programming language codes and the corresponding one or more new natural language codes as established test steps in the storage memory. According to an exemplary embodiment, the at least one processor may be configured to determine whether the received one or more natural language codes include one or more new natural language codes by executing instructions, wherein the received one or more natural language codes are executed by executing corresponding one or more programming language codes, determine that the received one or more natural language codes cannot be executed, and identify one or more codes from the received one or more natural language codes that cannot be executed. According to an exemplary embodiment, the at least one processor may be further configured to execute the instructions to determine whether the received one or more natural language codes are executed normally in response to receiving the one or more new programming language codes. According to an exemplary embodiment, the at least one processor may be further configured to execute instructions to generate a graphical user interface having at least a first portion and a second portion, wherein the first portion may include a portion of the input code and the second portion may include a search area and a test step area, receive a search input from a first user in the search area, display one or more test steps associated with the search input in the test step area, receive a selection input from the first user selecting one of the one or more test steps displayed in the test step area, and input a natural language code to the first portion that is associated with the selected one of the one or