Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method and system for automatically testing webapi interfaces with same domain name

An automatic testing and domain name technology, applied in the field of computer networks, can solve problems such as testing difficulties and increase resource consumption, and achieve the effects of testing automation, improving usability, and improving efficiency.

Active Publication Date: 2015-11-18
FUJIAN TQ DIGITAL
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, a site often deploys multiple servers. Through load balancing or DNS intelligent resolution, the service is resolved to different servers in different areas on different lines. However, when there is a problem with server resolution, each server needs to be individually Testing, which makes testing difficult, and often requires configuring a separate domain name for each server to perform automatic testing, increasing resource consumption

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for automatically testing webapi interfaces with same domain name
  • Method and system for automatically testing webapi interfaces with same domain name
  • Method and system for automatically testing webapi interfaces with same domain name

Examples

Experimental program
Comparison scheme
Effect test

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, and number the domain name; S21, modify and rewrite the numbered domain name as an unnumbered domain name; preferably, the reverse proxy 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; preferably, the preset time per...

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for automatically testing webapi interfaces with a same domain name. The method comprises the steps of numbering server ips with the same domain name; configuring the domain name into a configuration file of a reverse proxy server and numbering the domain name; analyzing the numbered server ips and the domain names to a testing client; testing webapi interfaces which correspond with all domain names with different numbers; and continuing to test the webapi interfaces which correspond with all domain names with different numbers after a preset time period. The invention further provides a system for automatically testing the webapi interfaces with the same domain name, wherein the system can perform automatic testing on the webapi interfaces with the same domain name.

Description

technical field [0001] The invention relates to the field of computer networks, in particular to a method and system for automatically testing webapi interfaces of the same domain name. Background technique [0002] At present, a site often deploys multiple servers. Through load balancing or DNS intelligent resolution, the service is resolved to different servers in different areas on different lines. However, when there is a problem with server resolution, each server needs to be individually Testing, which makes testing difficult, and it is often necessary to configure a separate domain name for each server to perform automatic testing, which increases resource consumption. Contents of the invention [0003] The technical problem to be solved by the invention is: how to automatically test the webapi interfaces of the same domain name. [0004] In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is: ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26H04L29/12
CPCH04L43/0805H04L43/50H04L61/3015
Inventor 陈丛亮刘德建毛新生
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products