Test method, system and device for associated source code and test case, and storage medium
A test case and test method technology, applied in the computer field, can solve problems such as non-real-time, time-consuming, and long execution code, so as to improve test efficiency and user experience, and avoid excessive execution time.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0057] In view of the defects existing in the existing technology, the inventor actively researches and innovates based on years of rich practical experience and professional knowledge in this industry, and cooperates with the application of academic theory, in order to create a practical technology that can overcome the above defects , making it more practical. After continuous research, design and repeated trials and improvements, the present invention with real practical value is finally created.
[0058] see figure 1 , figure 1 It is a schematic flowchart of a test method for associating source code and test cases disclosed in the embodiment of the present invention. The method is applicable to the scenario of executing test cases for software testing. The method is executed by a test system that associates source code and test cases. The system It can be implemented by software and / or hardware, and integrated inside the computer. like figure 1 As shown, the test metho...
test Embodiment ID
[0069] If so, the method name / class name of the source code covered by the recorded test case is associated with the test case ID and stored in the library;
[0070] If not, continue to execute the step of detecting whether an instruction to end recording input through the floating bar is received.
[0071] It should be noted that after implementing the solution provided in this embodiment, the processing time for recording a class name / method name for a single test case is reduced from 2 minutes to less than 1 second, and the IOS device only needs to consume one time without restarting the App. Complete the hook operation of all method names / class names in minutes, and at the same time solve the problem of memory overflow due to too many class names / method names of hooks using source code.
[0072] The embodiment of the present invention provides a test method for associating source code and test cases, which can learn the method name / class name of the source code covered by ...
Embodiment 2
[0074] like figure 2 As shown, the test method for associating source code and test cases provided by Embodiment 2 of the present invention is based on the technical solution provided by Embodiment 1, to step S101 "when it is detected that the APP is started, start a global scan and add a Hook " Further optimization. Explanations of terms that are the same as or corresponding to the above embodiments are not repeated here. which is:
[0075] When it detects that the APP is started, it detects whether the test switch is turned on;
[0076] If so, start a global scan and add Hooks.
[0077] Based on the above optimization, such as figure 2 As shown, a test method for associating source code and test cases provided in this embodiment may include the following steps:
[0078] S201. When it is detected that the APP is started, check whether the test switch is turned on; if yes, execute step S202; if not, continue to execute S201.
[0079] It should be noted that, in this em...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



