Method of managing information for creating test cases related to application and electronic apparatus thereof
Patent Information
- Application Number
- TW114108850
- Authority / Receiving Office
- TW · TW
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-12-31
- Filing Date
- 2025-03-11
- Publication Date
- 2026-07-16
- Estimated Expiration
- 2045-03-10
Abstract
Claims
1. A method for managing information used to generate test cases related to an application via an electronic device, comprising the following steps: receiving a request to generate a first test case; identifying at least one of the following based on information included in the request: test account information of the first test case, test step information of the first test case, simulation data related to the first test case, A / B test information related to the first test case, and a statement of predicted results when executing the first test case; obtaining from the library information corresponding to at least one of the following: test account information, test step information, simulation data, A / B test information, and statement information, wherein the library information is stored in the library in a componentized manner based on each of the following: test account information, test step information, simulation data, A / B test information, and statement information; and generating the first test case based on the obtained library information.
2. The method of request item 1, wherein the step of obtaining the above library information includes the following steps: determining at least one of the domain information of the first test case, the segment information included in the domain information, the interface toolset information included in the segment information, and the attribute information included in the interface toolset information based on the information included in the request; and determining which type of library information to obtain based on at least one of the above domain information, the above segment information, the above interface toolset information, and the attribute information of the first test case.
3. The method of claim 2, wherein the domain information includes information identifying at least one page displayed on the screen of the application; the segment information includes information identifying at least one display area constituting each of the at least one page; the interface toolset information includes information identifying at least one interface toolset constituting each of the at least one display area corresponding to the segment information; and the attribute information includes information constituting each of the at least one interface toolset and identifying at least one attribute displayed on the screen of the application.
4. The method of claim 2 further includes the following steps: obtaining information of at least one second test case as a previously generated and stored legacy test case; extracting at least one of the domain information, the section information, the interface toolset information, and the attribute information for each of the at least one second test case; and storing the extracted domain information, section information, interface toolset information, and attribute information; and the information included in the request includes at least one of the domain information, section information, interface toolset information, and attribute information extracted from the at least one second test case.
5. The method of request item 2, wherein the information included in the above-mentioned request generation request is related to the first test case that receives the above-mentioned request generation request, including at least one of the following: user account type, product type, predicted result during execution, and user interface type information of the above-mentioned application; the user interface type information includes at least one of the following: domain information, segment information, interface toolset information, and attribute information.
6. The method of request item 5, wherein the step of determining at least one of the above-mentioned test account information, the above-mentioned test step information, the above-mentioned simulation data, the above-mentioned A / B test information and the above-mentioned declaration information includes the following steps: inputting the information included in the above-mentioned request generation into a machine learning-processed artificial intelligence model; and determining the above-mentioned test account information, the above-mentioned test step information, the above-mentioned simulation data, the above-mentioned A / B test information and the above-mentioned declaration information based on the output data of the above-mentioned artificial intelligence model.
7. The method of claim 6, wherein the artificial intelligence model is trained in the following manner: when the information included in the above-mentioned request is image information, at least one of the following is extracted from the above-mentioned image information: the type of the user account, the type of the product, the above-mentioned result predicted during execution, and the type of the user interface of the above-mentioned application.
8. The method of request item 1 further includes the following steps: classifying at least one of the above-mentioned test account information, the above-mentioned test step information, the above-mentioned simulation data, the above-mentioned A / B test information and the above-mentioned declaration information into at least one component; and storing program library information corresponding to each of the above-mentioned at least one component according to each component.
9. The method of claim 8, wherein the step of obtaining the above-mentioned library information further includes the following steps: determining whether there is predetermined library information corresponding to the at least one component identified based on the information included in the above-mentioned request; obtaining at least one first library information corresponding to at least one first component in which the predetermined library information exists; in the case where there is at least one second component in which the predetermined library information does not exist, extracting information corresponding to the at least one second component from the information included in the above-mentioned request; and storing the information corresponding to the at least one second component as at least one second library information from the extracted information.
10. The method of claim 9, wherein the step of generating the first test case based on the library information obtained above includes the following steps: distributing the at least one first library information and the second library information to each component to generate the first test case.
11. The method of claim 10 further includes the following steps: receiving a request to generate a third test case; identifying at least one of the following based on the information included in the request to generate the third test case: test account information of the third test case, test step information of the third test case, simulation data related to the third test case, A / B test information related to the third test case, and a statement of the predicted result when executing the third test case; obtaining the second library information stored as corresponding to at least one of the following: test account information, test step information, simulation data, A / B test information, and statement information of the third test case; and generating the third test case based on the obtained second library information.
12. The method of request item 1 further includes the following steps: automating the first test case generated above.
13. The method of request item 1 further includes the following steps: generating a test result image corresponding to the execution result of the first test case generated above.
14. An electronic device for managing information used to generate test cases related to an application, comprising: transceiver; Memory; The electronic device is configured as follows: the processor controls at least one of the transceiver and memory to receive a request to generate a first test case; based on the information included in the request, it identifies at least one of the following: test account information of the first test case, test step information of the first test case, simulation data related to the first test case, A / B test information related to the first test case, and a statement of the predicted result when executing the first test case; it obtains library information corresponding to at least one of the following: test account information, test step information, simulation data, A / B test information, and statement information, from the library, wherein the library information is stored in the library in a componentized manner according to the following: test account information, test step information, simulation data, A / B test information, and statement information; and it generates the first test case based on the obtained library information.
15. A non-transitory computer-readable recording medium containing a computer program that implements a method for managing electronic devices to generate test cases related to an application, wherein the method includes the following steps: receiving a request to generate a first test case; identifying at least one of the following based on information included in the request: test account information of the first test case, test step information of the first test case, simulation data related to the first test case, A / B testing information related to the first test case, and a statement of predicted results when executing the first test case; obtaining library information corresponding to each of the test account information, test step information, simulation data, A / B testing information, and statement information from the library, wherein the library information is stored in the library in a componentized manner based on each of the test account information, test step information, simulation data, A / B testing information, and statement information; and generating the first test case based on the obtained library information.