Keyword-based automatic test method and computer readable storage medium
A technology of automated testing and storage media, applied in computing, software testing/debugging, error detection/correction, etc., can solve problems such as cutting corners, software quality has not been significantly improved, and there is no time to design test cases, so as to improve development efficiency and increase complexity. Usability and maintainability, reduce the effect of writing difficulty
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Please refer to figure 2 , Embodiment 1 of the present invention is: a keyword-based automated testing method, which can be applied to automated testing scenarios. The present embodiment is based on an automated testing platform, which is composed of Cucumber (a kind of automated testing tool), Mysql (relational database), JIRA (project and transaction tracking tool), and is widely used in defect tracking, user service, demand collection, etc. field of work) integrated secondary development.
[0041] Such as figure 2 As shown, the method includes the following steps:
[0042] S1: According to the keywords and assertion values corresponding to the preset business scenarios, generate test cases for the business scenarios.
[0043] S2: According to the test cases of each business scenario contained in the business process of the business module, combine to obtain the test script of the business module. By combining business scenarios and writing automated test scri...
Embodiment 2
[0061] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0062] Generate test cases for business scenarios according to keywords and assertion values corresponding to preset business scenarios;
[0063] According to the test cases of each business scenario contained in the business process of the business module, the test script of the business module is obtained by combining;
[0064] Obtain a test script corresponding to the business module, and sequentially acquire a test case in the test script;
[0065] Analyzing the test case according to a preset regular expression to obtain keyword parameters and assertion values;
[0066] According to the keyword parameter, perform a business operation corresponding to a test case, and obtain an operation response value;
[0067] Comparing the operation...
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