CN209488601U - A kind of automatic test platform based on API - Google Patents
A kind of automatic test platform based on API Download PDFInfo
- Publication number
- CN209488601U CN209488601U CN201920619265.8U CN201920619265U CN209488601U CN 209488601 U CN209488601 U CN 209488601U CN 201920619265 U CN201920619265 U CN 201920619265U CN 209488601 U CN209488601 U CN 209488601U
- Authority
- CN
- China
- Prior art keywords
- processing unit
- central processing
- output end
- input terminal
- electrically connected
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The utility model discloses a kind of automatic test platforms based on API, including central processing unit, emergency power supply, radiating module, interface module, input equipment, display screen, alarm modules and memory module, the input terminal of the central processing unit is unidirectionally electrically connected with the output end of urgent telegram is answered, and the output end of the central processing unit and the input terminal of radiating module are unidirectionally electrically connected.The utility model passes through the cooperation of central processing unit, emergency power supply, radiating module, interface module, input equipment, display screen, alarm modules and memory module, test frame can be detached from, home environment relies on, it can on-line operation and debugging, tester may participate in without coding, reduce the professional requirement for carrying out API automatic test, and test case is managed collectively, it cooperates jointly convenient for more people, maintenance cost is low, running environment is unified to be safeguarded, relatively stable, cost that time and manpower is saved is tested in operation.
Description
Technical field
The utility model relates to test platform technical field, specially a kind of automatic test platform based on API.
Background technique
API is also known as Application Programming Interface, is exactly the agreement of software systems difference component part linking, due to soft in recent years
The scale of part is increasingly huge, it is often necessary to complicated system is divided into small component part, the design of programming interface is very heavy
It wants, in the practice of programming, the design of programming interface first has to that the responsibility of software systems is made to obtain classifying rationally, good to connect
Mouth design can reduce interdepending for system components, improve the cohesion of component units, reduce the coupling between component units
Degree, to improve the maintainability and scalability of system, the API testing tool of mainstream, access threshold all compare on current market
Height shows that basic environment is built cumbersome, and test case writes complexity, and test case is difficult to safeguard and reusability is poor, cannot
Meet the test under all scenes.
Utility model content
The purpose of this utility model is to provide a kind of automatic test platforms based on API, have efficient advantage, solution
The API testing tool for the mainstream on current market of having determined, access threshold is relatively high, shows that basic environment builds cumbersome, test
Use-case writes complexity, and test case is difficult to safeguard and reusability is poor, is not able to satisfy the problem of testing under all scenes.
To achieve the above object, the utility model provides the following technical solutions: a kind of automatic test based on API is flat
Platform, including central processing unit, emergency power supply, radiating module, interface module, input equipment, display screen, alarm modules and storage mould
Block, the input terminal of the central processing unit are unidirectionally electrically connected with the output end of urgent telegram is answered, the output end of the central processing unit
It is unidirectionally electrically connected with the input terminal of radiating module, the central processing unit and the two-way electric connection of interface module, the center
The input terminal of processor and the output end of input equipment are unidirectionally electrically connected, the output end of the central processing unit and display screen
Input terminal is unidirectionally electrically connected, and the output end of the central processing unit and the input terminal of alarm modules are unidirectionally electrically connected, described
Central processing unit and the two-way electric connection of memory module.
Preferably, the radiating module includes microprocessor, temperature sensor, the first radiator fan, the second radiator fan
And water pump, the output end of the microprocessor and the input terminal of central processing unit are unidirectionally electrically connected, the temperature sensor
The input terminal of output end and microprocessor is unidirectionally electrically connected, the output end of the microprocessor respectively with the first radiator fan,
The input terminal of second radiator fan and water pump is unidirectionally electrically connected.
Preferably, input equipment includes keyboard and mouse, the output end of the keyboard and mouse pass through interface module with
The input terminal of central processing unit is unidirectionally electrically connected.
Preferably, the alarm modules include alarm device and warning light, and the alarm device and warning light are respectively buzzing report
Alert device and flashing warning lamp.
Preferably, the emergency power supply is high capacity lithium ion battery, and the capacity of the emergency power supply is no less than 10,000 millis
Peace.
Compared with prior art, the beneficial effects of the utility model are as follows:
1, the utility model passes through central processing unit, emergency power supply, radiating module, interface module, input equipment, display
Screen, alarm modules and memory module cooperation, can be detached from test frame, home environment rely on, can on-line operation and debugging, test
Personnel may participate in without coding, reduce the professional requirement for carrying out API automatic test, and test case unification is managed
Reason, cooperates jointly convenient for more people, and maintenance cost is low, and running environment is unified to be safeguarded, operation test is relatively stable, saved the time and
Human cost.
2, the utility model can carry out this platform partitioning by the first radiator fan of setting and the second radiator fan
Heat dissipation, preferably ensure that heat dissipation effect, by the way that water pump is arranged, can carry out liquid-cooling heat radiation to this platform, greatly ensure that
Heat dissipation performance can issue police in the rear staff to scene of on-line testing completion by setting alarm device and warning light
Report, preferably ensure that the orderly progress of test job, can be in the case where unexpected power-off also not by the way that emergency power supply is arranged
It can preferably ensure that stablizing for test job carries out there is a situation where test interruption.
Detailed description of the invention
Fig. 1 is Tthe utility model system schematic illustration;
Fig. 2 is the utility model radiating module system principle schematic diagram;
Fig. 3 is the utility model operational process schematic diagram.
Specific embodiment
The following will be combined with the drawings in the embodiments of the present invention, carries out the technical scheme in the embodiment of the utility model
Clearly and completely describe, it is clear that the described embodiments are only a part of the embodiments of the utility model, rather than whole
Embodiment.Based on the embodiments of the present invention, those of ordinary skill in the art are without making creative work
Every other embodiment obtained, fall within the protection scope of the utility model.
Please refer to Fig. 1-3, a kind of automatic test platform based on API, including central processing unit, emergency power supply, heat dissipation
Module, interface module, input equipment, display screen, alarm modules and memory module, the input terminal of central processing unit and answer urgent telegram
Output end is unidirectionally electrically connected, and emergency power supply is high capacity lithium ion battery, and the capacity of emergency power supply is no less than 10,000 milliamperes, is led to
Setting emergency power supply is crossed, will not can preferably ensure that survey there is a situation where test interruption in the case where unexpected power-off
What trial work was made stablizes progress, and the output end of central processing unit and the input terminal of radiating module are unidirectionally electrically connected, radiating module packet
Include microprocessor, temperature sensor, the first radiator fan, the second radiator fan and water pump, the output end of microprocessor and center
The input terminal of processor is unidirectionally electrically connected, and the output end of temperature sensor and the input terminal of microprocessor are unidirectionally electrically connected,
The output end of microprocessor is unidirectionally electrically connected with the input terminal of the first radiator fan, the second radiator fan and water pump respectively, is led to
The first radiator fan of setting and the second radiator fan are crossed, partitioning heat dissipation can be carried out to this platform, preferably ensure that heat dissipation
Effect can carry out liquid-cooling heat radiation to this platform, greatly ensure that heat dissipation performance by the way that water pump is arranged, central processing unit with
The two-way electric connection of interface module, the input terminal of central processing unit and the output end of input equipment are unidirectionally electrically connected, and input is set
Standby includes keyboard and mouse, and the output end of keyboard and mouse passes through the input terminal of interface module and central processing unit unidirectionally electrically
Connection, the output end of central processing unit and the input terminal of display screen are unidirectionally electrically connected, the output end of central processing unit and alarm
The input terminal of module is unidirectionally electrically connected, and alarm modules include alarm device and warning light, and alarm device and warning light are respectively buzzing
Alarm and flashing warning lamp can be in the rear work to scene of on-line testing completion by setting alarm device and warning light
Personnel sound an alarm, and preferably ensure that the orderly progress of test job, central processing unit and the two-way electric connection of memory module,
Pass through central processing unit, emergency power supply, radiating module, interface module, input equipment, display screen, alarm modules and memory module
Cooperation, can be detached from test frame, home environment rely on, can on-line operation and debugging, tester without coding i.e. may participate in,
The professional requirement for carrying out API automatic test is reduced, and test case is managed collectively, and is cooperated jointly convenient for more people, tieed up
Protect at low cost, the unified maintenance of running environment, relatively stable, the cost that time and manpower is saved of operation test.
In use, step 1: configuration surroundings information, API domain name, database linkage information including system under test (SUT),
The address Zookeeper, MQ key value can configure more sets, environmental information are stored in database environment table;
Step 2: configuration system and interface add system under test (SUT) and system lower interface, and interface is according to type difference, configuration pair
Required attribute, such as http interface is answered to need API URL, header field, requesting method, Dubbo interface needs Service name, method
Name, parameter type, version number etc..System and interface message are deposited in system and interface table;
Step 3: configuring public variable, the information often changed in test case needs to parameterize, can match by variable
It sets.The optional fixed value of types of variables, database manipulation, specific function, file type etc., fixed value, which refers to, writes dead variable data;Number
Refer to according to library operation and variable data is obtained by inquiry database;Specific function specifies a kind of method of justice to obtain variable data, should
Method runs on server-side and returns the result, such as obtains current time stamp;File type is used to upload file operation in interface,
By uploading files to testing service device, a variable is returned, in actual interface request, file will be read from testing service device
Content simultaneously changes into the transmission of file stream, and transmitting file is avoided to rely on tester's local data.Public variable scope is all items
Mesh;
Step 4: configuration project adds current affiliated development project, and current most of R&D teams are all based on agility
Development mode, project are corresponding iteration;
Step 5: configuration system and interface introduce system and interface, data source step 2 for new projects;
Step 6: configuration test case adds test case under interface, and a complete test case includes basic letter
Breath, use-case variable, pre action, solicited message, extract variable, result assert, seven steps of post action.Essential information includes
Use-case title, use case description, expected results;Use-case variable is configured with public variable, and scope is this test case;Preposition behaviour
Work refers to the operation needed to be implemented before interface requests, such as cleaning data, login, waiting N seconds;Solicited message is test case core
Intracardiac appearance, description interface enter to join message, generally json formatted data;Variable is extracted to be used to obtain test result data, including
Interface returned packet content, database information query etc., the result data that will acquire are defined as variable, are used for subsequent parameter;
As a result it is asserted as test case core content, supports the methods of configuration json verification, database verification, json verification is mainly used for
The comparison of interface returned packet, database verification are landed for data after verifying interface requests;Post action is matched with pre action
It sets, is operated for the data scrubbing etc. after executing.According to practical business scene, above-mentioned every content is configured;
Step 7: on-line operation test case, selection need the test case that runs, can simultaneous selection it is a plurality of, selection executes
Environment may specify that variate-value is for debugging in test case;
Step 8: on-line operation log push, front end page real-time synchronization running log when use-case is run, using Flask-
Socketio provides WebSocket connection from rear end forward end PUSH message, to front end engineering, realizes non-delay push log clothes
Business;
Step 9: checking test report, use-case operation is completed to automatically generate HTML test report, is stored in data library test report
It accuses in table.Beautify using third party library HTMLTestRunner, and to test report, shows the implementing result number after merging
According to;
Step 10: configuration test plan is used for off-line operation, the test case for needing to run in selection project, and configuration is held
The row time cycle, test plan is generated, perform script is automatically added in the crontab of testing service device.Cron tool triggers foot
This operation, script recall test case and concurrently run, and realize that timing executes in batches test case, execute completion in test case
A test report summarized is generated afterwards;
Step 11: test report automatic push are rowed by background maintenance system responsible person's mapping table in tester
After row, automatic trigger mail push task calls customized transmission email solution, and test result is sent to corresponding be responsible for
People.
In summary: should automatic test platform based on API, by central processing unit, emergency power supply, radiating module,
The cooperation of interface module, input equipment, display screen, alarm modules and memory module, the API for solving mainstream on current market are surveyed
Trial work tool, access threshold is relatively high, shows that basic environment is built cumbersome, test case writes complexity, and test case is difficult to
It safeguards and reusability is poor, be not able to satisfy the problem of testing under all scenes.
While there has been shown and described that the embodiments of the present invention, for the ordinary skill in the art,
It is understood that these embodiments can be carried out with a variety of variations in the case where not departing from the principles of the present invention and spirit, repaired
Change, replacement and variant, the scope of the utility model is defined by the appended claims and the equivalents thereof.
Claims (5)
1. a kind of automatic test platform based on API, including central processing unit, emergency power supply, radiating module, interface module,
Input equipment, display screen, alarm modules and memory module, it is characterised in that: the input terminal of the central processing unit and answer urgent telegram
Output end be unidirectionally electrically connected, the output end of the central processing unit and the input terminal of radiating module are unidirectionally electrically connected, institute
State central processing unit and the two-way electric connection of interface module, the input terminal of the central processing unit and the output end list of input equipment
Electrotropism connection, the output end of the central processing unit and the input terminal of display screen are unidirectionally electrically connected, the central processing unit
Output end and the input terminals of alarm modules be unidirectionally electrically connected, the central processing unit and the two-way electric connection of memory module.
2. a kind of automatic test platform based on API according to claim 1, it is characterised in that: the radiating module
Including microprocessor, temperature sensor, the first radiator fan, the second radiator fan and water pump, the output end of the microprocessor
It is unidirectionally electrically connected with the input terminal of central processing unit, the output end of the temperature sensor and the input terminal of microprocessor are unidirectional
Be electrically connected, the output end of the microprocessor respectively with the input terminal of the first radiator fan, the second radiator fan and water pump the
One radiator fan, the second radiator fan and water pump.
3. a kind of automatic test platform based on API according to claim 1, it is characterised in that: the input equipment
Including keyboard and mouse, the output end of the keyboard and mouse passes through interface module and the input terminal of central processing unit is unidirectionally electric
Property connection.
4. a kind of automatic test platform based on API according to claim 1, it is characterised in that: the alarm modules
Including alarm device and warning light, the alarm device and warning light are respectively buzzer siren and flashing warning lamp.
5. a kind of automatic test platform based on API according to claim 1, it is characterised in that: the emergency power supply
For high capacity lithium ion battery, the capacity of the emergency power supply is no less than 10,000 milliamperes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920619265.8U CN209488601U (en) | 2019-04-30 | 2019-04-30 | A kind of automatic test platform based on API |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920619265.8U CN209488601U (en) | 2019-04-30 | 2019-04-30 | A kind of automatic test platform based on API |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209488601U true CN209488601U (en) | 2019-10-11 |
Family
ID=68135766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201920619265.8U Expired - Fee Related CN209488601U (en) | 2019-04-30 | 2019-04-30 | A kind of automatic test platform based on API |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209488601U (en) |
-
2019
- 2019-04-30 CN CN201920619265.8U patent/CN209488601U/en not_active Expired - Fee Related
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107370786B (en) | General information management system based on micro-service architecture | |
CN105471982B (en) | The exchange method and system of things-internet gateway and cloud platform | |
CN109408357A (en) | A kind of automatic interface testing method and device | |
CN103530226B (en) | Electronic equipment peripheral hardware compatibility test method and device | |
CN108595316A (en) | Life cycle management method, manager, equipment and the medium of Distributed Application | |
CN108134692A (en) | A kind of fault handling method and system based on mark figure | |
CN107819611B (en) | Client test method based on IEC61850 multi-server simulation | |
CN107168844B (en) | Performance monitoring method and device | |
CN105608002A (en) | Method for simultaneously capturing information of all nodes of Rack complete machine cabinet | |
CN109901889A (en) | The full link monitoring method of supporting business system O&M based on J2EE platform | |
CN106920429B (en) | Information processing method and device | |
CN102904762B (en) | The method for supervising of resource node and device | |
WO2022127574A1 (en) | Method and apparatus for simulating past and future data, and terminal device | |
CN107577769A (en) | A kind of method for digging and system for measuring expert data | |
CN107122307B (en) | Internet of things execution system | |
CN110380890A (en) | A kind of CDN system service quality detection method and system | |
CN209488601U (en) | A kind of automatic test platform based on API | |
CN108171487A (en) | A kind of project of transmitting and converting electricity design review system | |
CN109558300B (en) | Whole cabinet alarm processing method and device, terminal and storage medium | |
CN107783856A (en) | A kind of method of testing and system of image processor parameter | |
Jin et al. | Modeling of instant messaging system based on RUP and UML | |
CN108304292A (en) | A kind of method and system of nodal test hard disk disk sequence | |
CN205050185U (en) | Film ticket ticketing system | |
CN111159203B (en) | Data association analysis method, platform, electronic equipment and storage medium | |
CN112003727A (en) | Multi-node server power supply testing method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191011 |
|
CF01 | Termination of patent right due to non-payment of annual fee |