HTTP interface automatic test method and device, equipment and storage medium
An automated testing and interface technology, applied in the computer field, can solve the problem of high cost and achieve the effect of saving time cost and labor cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0043] The first embodiment of the HTTP interface automated testing method provided by the application is introduced below, see figure 1 , embodiment one includes:
[0044] S11, start the browser through the automated testing tool;
[0045] S12. In the browser, capture the request data and response data of the target interface through a proxy;
[0046] S13, converting the request data and response data of the target interface into json data; dynamically generating a virtual test class according to the json data, and dynamically assembling interface parameters to obtain a test case of the target interface;
[0047] S14. Execute the test case to implement the test on the target interface.
[0048] In practical applications, Selenium can be selected specifically as the automated testing tool of this embodiment. Selenium is directly run in the browser and is used for web application testing. In this embodiment, Selenium is mainly responsible for starting the browser.
[0049] ...
Embodiment 2
[0056] see figure 2 , embodiment two specifically includes:
[0057] S201. Download the slenium dependency package and the browsermob-proxy dependency package.
[0058] S202. Start the browsermob-proxy service.
[0059] Attached python code:
[0060] BMPserver=Server(r'D:\Apython\browsermob-proxy-2.1.4\bin\browsermob-proxy.bat') / / Set browsermob-proxy directory
[0061] BMPserver.start() / / start browsermob-proxy service
[0062] S203. Add the browsermob-proxy service to the webdriver startup configuration.
[0063] First, download the slenium dependency package and browsermob-proxy dependency package, start the browsermob-proxy service; add the browsermob-proxy service to the startup configuration of slenium's webdriver. It is important to mention here, because when browsermob-proxy is started and then accessed with a browser, there will be a need to load a certificate, so the configuration includes an ignore certificate error. In addition, before configuring Selenium's W...
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