Test script execution method and device, computer equipment and storage medium
A technology of test scripts and execution methods, which is applied in computing, software testing/debugging, error detection/correction, etc., can solve the problems of test script failure, poor test script versatility, and data-driven testing relying on the programming skills of testers, so as to improve Versatility and scalability, the effect of reducing the difficulty of writing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] figure 1 It is a flow chart of a method for executing a test script provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of performing a use case test on a software product to be tested by executing a test script. The method can be executed by an execution device of a test script, which can be implemented by software and / or hardware, and generally can be integrated in computer equipment for providing automated test services (for example, various intelligent terminals or servers Wait). Such as figure 1 As shown, the method includes:
[0029] S110. Identify at least one target system component included in the target test script.
[0030] Wherein, the target test script refers to an executable file used for functional testing of a certain application software. In the target test script, references or declarations to one or more system components are included.
[0031] In this embodiment, one or more system components may be pre-...
Embodiment 2
[0054] figure 2 It is a flow chart of an execution method of a test script in Embodiment 2 of the present invention. This embodiment is refined based on the above-mentioned embodiment. The use case parameter processing logic corresponding to the system component executes the target test script, which is embodied as: sequentially obtaining a script statement included in the target test script as the current execution statement; detecting whether the target system component is included in the current execution statement: if , then obtain the use case parameters and use case parameter processing logic that match the detected target system components; generate jump execution code according to the obtained use case parameters and use case parameter processing logic, and execute the jump execution code; return execution to obtain in sequence A script statement included in the target test script is used as the operation of the current execution statement until all the script stateme...
Embodiment 3
[0078] image 3 It is a flow chart of an execution method of a test script in Embodiment 3 of the present invention. This embodiment is refined based on the above embodiments. In this embodiment, the generation rules of each parameter obtained by using the query are specifically defined. A specific implementation manner of generating use case parameters corresponding to each target system component, correspondingly, the method of this embodiment may include:
[0079] S310. Identify at least one target system component included in the target test script.
[0080] S320. Acquire one target system component in sequence as the current processing component.
[0081] S330. Generate target use case parameters corresponding to the current processing component according to the parameter generation rule corresponding to the current processing component.
[0082] S340. Write the target use case parameters into a target file, and establish a correspondence between the target use case param...
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