Simulation return method, device and equipment of Mysql
A technology of return value and mode, applied in the field of software testing, can solve problems such as low testing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] The following introduces Embodiment 1 of a Mysql simulation return method provided by the application, see figure 1 , embodiment one includes:
[0037] S101. Obtain the sql statement used to test the Mysql database;
[0038] In this embodiment, the client needs to encapsulate the sql statement and send it to the Mysql database, and parse the returned content of the Mysql database. The purpose of this embodiment is to simulate the return result of the interface function according to the return value of the interface function between the client and Mysql, so as to ensure that the data obtained from the Mysql database is always consistent during each test. Specifically, after the sql statement is packaged and before the sql statement is sent to the Mysql database, the implementation process of this embodiment is executed.
[0039] S102. According to the preset configuration information, respectively judge whether the current mode is the recording mode or the playback mod...
Embodiment 2
[0047] see figure 2 , embodiment two specifically includes:
[0048] S201, encapsulating the sql statement used to test the Mysql database; S202, judging whether the current mode is a recording mode according to the preset configuration information when the sql operation occurs and before running to the executeInternal function; if so, enter S203, otherwise enter S204;
[0049] S203. Call the target interface function to read the data of the Mysql database, obtain and record the return value as the data reading result;
[0050] S204. According to the preset configuration information, judge whether the current mode is the playback mode; if so, enter S205, otherwise enter S206;
[0051] S205, when the sql operation occurs and before running to the executeInternal function, skip running the executeInternal function, generate an object of the same type as the return value of the executeInternal function; assign a value to the object, and obtain the data reading result;
[0052]...
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