Method and device for generating test case, terminal and computer-readable medium
A test case generation and test case technology, applied in the testing field, can solve the problems of low efficiency, huge workload of testers, and time and energy consumption, so as to avoid waste of human resources, shorten writing time, improve writing efficiency and accuracy rate effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] figure 2 It is a flowchart of a test case generation method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of test case generation. The method can be implemented by a terminal, specifically by software and / or hardware in the terminal. see figure 2 , the test case generation method includes the following steps:
[0033] S210. Construct a test system according to the functions of the software to be tested, and determine at least one migration path of the test system.
[0034] Among them, the test system can be understood as sorting out the functions of the software to be tested, and simplifying and modifying the sorted out functions, so as to obtain a simpler and more general testing model of the software to be tested. Wherein, according to the constructed test system, at least one migration path can be obtained through manual or automatic indexing.
[0035] Optionally, construct a test system according to the functions o...
Embodiment 2
[0102] Figure 4 It is a schematic structural diagram of a test case generation device provided in Embodiment 2 of the present invention, and this embodiment is applicable to test case generation.
[0103] see Figure 4 , the test case generation device in this embodiment includes:
[0104] The test system construction module 410 is configured to construct a test system according to the functions of the software to be tested, and determine at least one migration path of the test system.
[0105] The path matrix forming module 420 is configured to form a path matrix according to the test times and test order of each migration path, wherein the path matrix includes sequentially arranged atomic test case numbers.
[0106] The test case generation module 430 is used to call atomic test cases according to the path matrix and combine them into test cases.
[0107] Optionally, the test system building blocks 410 include:
[0108] A functional system construction unit, used to con...
Embodiment 3
[0124] This embodiment provides a terminal that can be used for generating test cases. Figure 5 It is a schematic structural diagram of a terminal provided in Embodiment 3 of the present invention. see Figure 5 , the terminal includes:
[0125] one or more processors 510;
[0126] memory 520, for storing one or more programs;
[0127] When the one or more programs are executed by the one or more processors 510, the one or more processors 510 implement the test case generation method as proposed in the first embodiment.
[0128] Figure 5 Take a processor 510 as an example; the processor 510 and the memory 520 can be connected by a bus or in other ways, Figure 5 Take connection via bus as an example.
[0129] The memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions / modules corresponding to the test case generation method in the embodiment of the present inventio...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com