Method and system for automatically testing webapi interfaces of the same domain name
A technology of automatic testing and domain name, applied in the field of computer network, can solve problems such as increasing resource consumption and testing difficulty, and achieve the effect of realizing test automation, improving usability and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] Please refer to figure 1 as well as figure 2 , Embodiment 1 of the present invention is:
[0055] A method to automatically test the webapi interface of the same domain name, including:
[0056] S1. Numbering the IP addresses of all servers with the same domain name;
[0057] S2, configure the domain name to the configuration file of the reverse proxy server, number the domain name; S21, modify and rewrite the domain name after the numbering is an unnumbered domain name; preferably, the reverse proxy server is an ngnix server;
[0058] S3, resolve the numbered server ip and the domain name to the test client; specifically: import the numbered server ip and the domain name into the hosts file of the test client operating system;
[0059] S4. Test the webapi interfaces corresponding to all domain names with different numbers;
[0060] S5. After the preset time period, continue to test the webapi interfaces corresponding to all domain names with different numbers; prefe...
Embodiment 2
[0063] Please refer to image 3 , the second embodiment of the present invention is:
[0064] A system for automatically testing webapi interfaces of the same domain name, including:
[0065] ip numbering module 1, used to number all server ips with the same domain name;
[0066] The domain name numbering module 2 is used to configure the domain name to the configuration file of the reverse proxy server, and the domain name is numbered; the rewriting module 7 is used to modify and rewrite the numbered domain name as an unnumbered domain name; preferably, the The reverse proxy server is an ngnix server;
[0067] Parsing module 3, for parsing the numbered server ip and domain name to the test client;
[0068] Test module 4, used to test the webapi interfaces corresponding to all domain names with different numbers;
[0069] The loop module 5 is used to continue to test the webapi interfaces corresponding to all domain names with different numbers after a preset period of tim...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


