CN109656817A - A kind of automation interface test device and equipment - Google Patents

A kind of automation interface test device and equipment Download PDF

Info

Publication number
CN109656817A
CN109656817A CN201811473993.9A CN201811473993A CN109656817A CN 109656817 A CN109656817 A CN 109656817A CN 201811473993 A CN201811473993 A CN 201811473993A CN 109656817 A CN109656817 A CN 109656817A
Authority
CN
China
Prior art keywords
test
interface
test method
interface testing
user
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.)
Pending
Application number
CN201811473993.9A
Other languages
Chinese (zh)
Inventor
王世龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Matrix Technology Co Ltd
Original Assignee
Beijing Matrix Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Matrix Technology Co Ltd filed Critical Beijing Matrix Technology Co Ltd
Priority to CN201811473993.9A priority Critical patent/CN109656817A/en
Publication of CN109656817A publication Critical patent/CN109656817A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to software technology fields, and in particular to a kind of automation interface test device and equipment.The device includes: directory address acquiring unit, for obtaining interface testing item address information;Code display unit is used for according to interface testing item code, and shows user;Test method display unit for obtaining test method, and shows user;Test method parameter display unit, for the selection operation according to user to the test method, the test method that needs to be implemented described in displaying enters to join type and required parameter;Test cell, for entering to join type and required parameter and test the interface testing project according to described when the test for receiving user instructs.The invention enters to join type and intends making data automatically, show the required parameter filled automatically, it is only necessary to by simply clicking, the test of interface can be completed, improve the testing efficiency of developer according to test method request method.

Description

A kind of automation interface test device and equipment
Technical field
The present invention relates to software technology fields, and in particular to a kind of automation interface test device based on interface and sets It is standby.
Background technique
With the high speed development of Software Industry, web application is widely used, developer's development process In, wherein interface testing is essential step.
Existing interface testing is generally realized by following steps: input interface test address, special according to the function of test Sign selection request method enters ginseng by the specific parameter assembly of input, and then starts the final acquisition test result of test, therefore, In one interface of every test, artificially needs to input its detailed test address first, select this to connect from a large amount of request method The request method of mouth test, all required parameters that then input interface is related to finally are tested and return to test result.
As it can be seen that existing interface test method when testing multiple interfaces, needs multiple input interface address, assembly enters ginseng Heavy workload, so as to cause from low efficiency is surveyed, which occupies a large amount of time and efforts of developer.
Summary of the invention
Based on this, the present invention is directed to above-mentioned problem, provides a kind of automation interface test device, the technical solution is such as Under:
The embodiment of the invention provides a kind of automation interface test devices, comprising:
Directory address acquiring unit, for obtaining interface testing item address information;
Code display unit for obtaining corresponding interface testing item code according to the interface testing address information, and is opened up Show to user;
Test method display unit for obtaining test method corresponding with the interface testing item code, and shows use Family;
Test method parameter display unit, the choosing of the test method for being shown according to user to the test method display unit It selects operation, determines the test method currently needed to be implemented, and show that the test method currently needed to be implemented enters to join type And required parameter;
Test cell, for entering to join type and required parameter and connect to described according to described when the test for receiving user instructs Mouth test item is tested.
The embodiment of the invention also provides a kind of equipment of automation interface test, comprising: memory and processor, it is described The interface testing item address is stored in memory, interface testing item code, test method, enters to join type, required parameter And test result;The processor executes the step of interface testing.
Technical solution provided by the invention include it is following the utility model has the advantages that
The present invention provides a kind of automation interface test devices to show corresponding connect by obtaining interface testing address information Mouth test item code obtains item code test method, and the test method according to selected by user, shows into ginseng type and ask Parameter is sought, automatic assembling enters ginseng, to carry out interface testing, which enters to join type automatic according to test method request method It is quasi- to make data, it shows the required parameter filled automatically, improves the testing efficiency of developer, it is only necessary to by simply clicking, The test that interface can be completed can reduce the work that each test interface will write interface IP address and assembly enters ginseng in Self-test process It measures.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
A kind of structural schematic diagram of the automation interface test device provided in 1 embodiment one of attached drawing.
A kind of structural schematic diagram of the test method display unit provided in 2 embodiment two of attached drawing.
A kind of structural schematic diagram of the automation interface test device provided in 3 embodiment three of attached drawing.
A kind of application interface of the automation interface test device provided in 4 example IV of attached drawing.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows a kind of structural schematic diagram of the automation interface test device provided in the embodiment of the present invention, is described in detail It is as follows:
Directory address acquiring unit 110, for obtaining interface testing item address information.
As a kind of embodiment of the invention, interface testing item address information is the address that memory interface tests code, For passing through the document location where interface testing code is accurately accessed in the address, to obtain and interface testing project pair The interface testing code answered.
As a kind of embodiment of the invention, the method for obtaining interface testing item address information is specifically included:
Selection operation is carried out according to better address of the user to multiple interface testing projects of displaying, obtains the interface of user's selection The better address of test item can obtain required interface from interface testing item address catalogue by way of clicking and survey The better address of examination project does not need one interface of every test and requires input test address, improves from survey efficiency.
As another embodiment of the invention, the method for obtaining interface testing item address information is specifically included: according to The expression information of the interface testing project of user's input is received, which can be digital number, function description or borrow Keyword in mouth test item address, and the identification information and interface testing address are one-to-one relationships, it can be by straight The simple identification information of input is connect, interface testing item address is can be obtained, does not need one interface of every test and require to input Test address, testing efficiency improve.
Code display unit 120, for obtaining corresponding interface testing project generation according to the interface testing address information Code, and show user.
Pass through interface testing address when the interface testing item address information of acquisition as a kind of embodiment of the invention Document location where direct access interface test code, obtains interface testing project corresponding with interface testing address information Code information, and the interface testing code information is shown in code display unit, for user's reading, the code display unit Interface testing code format is shown with graphic interface, facilitates user to understand test process, in interface testing code more easy to identify The shortcomings that, to realize the corrigendum modification of interface testing code.
As another embodiment of the invention, during interface testing is implemented, when interface testing test code has When update, code display unit can obtain updated interface testing item code, and show user, code display unit this One automatically updating function can test the update of code automatically, and be updated in time to code, can survey to avoid in interface It when examination code changes, is still tested using the interface testing code before modification, wastes testing time and resource.
Test method display unit 130 for obtaining test method corresponding with the interface testing item code, and is opened up Show to user.
As a kind of embodiment of the invention, test method display unit specifically includes classification identification module and test method Display module.The structural schematic diagram of test method display unit as shown in Figure 2, described in detail below:
Classification identification module 231, the interface testing code for being shown according to code display unit obtain the interface testing code The classification of corresponding examining system interface testing, the classification of the examining system interface testing mainly include web interface test, Application programming interfaces test or database interface test, category identification module are believed according to the specific code of interface testing code Breath, can clearly identify the interface class that the interface testing code is tested, the acquisition for test method provides accurate finger Show.
Test method display module 232, for obtaining the list of test method according to examining system interface testing classification, The classification of each examining system interface testing is there are various test, and test method display module is by examining system interface Method corresponding to category of test shows user, so that user selects required test method.The test method Input parameter test method, function test method, logic test method and abnormal conditions test method are specifically included, different connects Mouth category of test respectively corresponds different test methods, which can obtain according to classification identification module The corresponding test method list of the interface testing classification of required test, and user is clearly showed, user can be according to interface Category of test and specific requirement select suitable test method.
Test method parameter display unit 140, the test for being shown according to user to the test method display unit The selection operation of method determines the test method currently needed to be implemented, and shows the test method currently needed to be implemented Enter to join type and required parameter.
As a kind of embodiment of the invention, choosing of the test method parameter display unit according to user to required test method It selects operation, determines the test method that the interface testing currently tested needs to be implemented, and then show that the test method enters to join type And required parameter, wherein enter the to join type and required parameter of test method and this method have corresponding relationship, test when obtaining Method can be obtained according to the corresponding relationship of the two into ginseng type and required parameter, and show user, the test method parameter Display unit is clearly illustrated into ginseng type and required parameter, and user detailed can understand the entire of test method and enter to join Journey finds the existing defect in test process.
As another embodiment of the invention, test method parameter display unit is also used to according to user to the request The modification of parameter operates, and modifies to the required parameter, i.e., in the test method parameter display unit, user can basis Demand to interface test method changes the former corresponding required parameter of the test method, to meet the different need to interface testing It asks.
Test cell 150, for entering to join type and required parameter pair according to described when the test for receiving user instructs The interface testing project is tested.
As a kind of embodiment of the invention, the test cell is when receiving user's test instruction, according to said units Described in interface testing project and it is corresponding enter to join type and required parameter, interface test item is tested.
The test process can be realized automatic filling required parameter, improve interface testing efficiency.
Fig. 3 shows a kind of structural schematic diagram of the automation interface test device provided in the embodiment of the present invention.At this Further include on the basis of the automation interface test device that embodiment one in specific embodiment provides result display unit and Reset cell, details are as follows:
As a result display unit 360, for the test result of the interface testing project to be showed user.
As a kind of embodiment of the invention, as a result the test result of interface testing project is showed use by display unit Family obtains the interface testing of a response as a result, result display unit obtains the test knot that is, after the completion of interface testing step Fruit simultaneously shows user, judges whether interface testing passes through convenient for user.
As another embodiment of the invention, can not be obtained from interface testing item code in test method display unit When obtaining corresponding test method, the response message that can not obtain test method is shown in result display unit, is convenient for user Understand and whether there is test method corresponding with interface testing item code in interface test process.
Reset cell 370 connects for removing the required parameter and test result according to the reset operation of user to described Mouth test item carries out the test of distinct methods.
As a kind of embodiment of the invention, reset cell according to the reset operation of user remove the required parameter and Test result is back to test method display unit or test method parameter display unit, shows list when being back to test method Member selects the second test method according to user, which is the method different from a preceding test method, test side Method parameter display unit enters to join type and required parameter according to the second test method the second test method of displaying, surveys to the interface Examination carries out the test of the second test method.When being back to test method parameter display unit, required parameter is repaired according to user Change operation, modify to the required parameter, test cell receives the test instruction of user, enters to join type and repair according to described Required parameter after changing tests interface test item.The reset cell is for realizing a variety of surveys of interface testing project The test of method for testing and a variety of required parameters avoids multiple input interface test item address, improves testing efficiency.
As a kind of embodiment of the invention, additionally provide a kind of equipment of automation interface test, comprising: memory and Processor, memory are used for memory interface test item address, interface testing item code, and test method enters and joins type, request Parameter and test result, interface testing item address and the corresponding relationship for indicating information, test method and enter to join type and request The corresponding relationship of parameter, the corresponding relationship of test result and test method and required parameter;The processor is executed for executing Received user operation instruction during interface testing implements the process of each unit request.
A kind of application interface of the automation interface test device provided below with specific embodiment four carries out furtherly It is bright:
Such as attached drawing 4, directory address region can show the better address of multiple interface testing projects, obtain according to the user's choice The better address of required interface testing project, it is after the confirmation for receiving user instructs, interface testing item address is corresponding Interface testing item code show in code format list, surveyed according to the corresponding interface of the interface testing Code obtaining Classification is tried, and then obtains corresponding various test and is showed in method list region, according to user to test method Selection operation, determine the test method of interface testing, and shows that the test method enters to join type in the request region at the interface And required parameter, automatic to intend making into ginseng, the test by receiving user instructs, and carries out interface testing, test is seen after being completed As a result it is showed in the return area at the interface, when needing excuse test to need to carry out the test of distinct methods or different parameters, User can be reset by clicking, and carry out the test of different distinct methods or different parameters, be finally completed interface testing, obtain phase The test result answered.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are wanted by right It asks and points out.
Although should be understood that various embodiments of the present invention flow chart in each step according to arrow instruction successively It has been shown that, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, There is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.Moreover, each embodiment In at least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily multiple sub-steps Completion is executed in synchronization, but can be executed at different times, the execution in these sub-steps or stage sequence is not yet Necessarily successively carry out, but can be at least part of the sub-step or stage of other steps or other steps in turn Or it alternately executes.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM(EPROM), electrically erasable ROM(EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM(SLDRAM), memory bus (Rambus) direct RAM(RDRAM), it is straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.

Claims (8)

1. a kind of automation interface test device, which is characterized in that specifically include:
Directory address acquiring unit, for obtaining interface testing item address information;
Code display unit for obtaining corresponding interface testing item code according to the interface testing address information, and is opened up Show to user;
Test method display unit for obtaining test method corresponding with the interface testing item code, and shows use Family;
Test method parameter display unit, the choosing of the test method for being shown according to user to the test method display unit It selects operation, determines the test method currently needed to be implemented, and show that the test method currently needed to be implemented enters to join type And required parameter;
Test cell, for entering to join type and required parameter and connect to described according to described when the test for receiving user instructs Mouth test item is tested.
2. automation interface test device according to claim 1, which is characterized in that further include:
As a result display unit, for the test result of the interface testing project to be showed user;
Reset cell, for removing the required parameter and test result according to the reset operation of user, to the interface testing The test of project progress distinct methods.
3. automation interface test device according to claim 1, which is characterized in that the acquisition interface testing project Location information, specifically includes:
According to user to the selection operation of the better address of multiple interface testing projects of displaying, the interface for obtaining user's selection is surveyed Examination project better address;Or the identification information of the interface testing project of user's input is received, it is obtained according to the identification information Interface testing project better address.
4. automation interface test device according to claim 1, which is characterized in that the code display unit is also used In:
When the interface testing item code has update, updated interface testing item code is obtained, and show user.
5. automation interface test device according to claim 1, which is characterized in that the test method parameter display list Member is also used to;
The modification of the required parameter is operated according to user, is modified to the required parameter;
The test cell, for entering to join type and modified request according to described when the test for receiving user instructs Parameter tests the interface testing project.
6. automation interface test device according to claim 1, which is characterized in that the test method display unit packet It includes:
Classification identification module, for obtaining the corresponding examining system of the test item code according to the interface testing code The classification of interface testing;
Test method display module obtains test method list for the classification according to the examining system interface testing.
7. automation interface test device according to claim 6, which is characterized in that the examining system interface testing Classification includes:
Web interface test, application programming interfaces test or database interface test.
8. a kind of automation interface test equipment, which is characterized in that including memory and processor;
Stored in the memory interface testing item address, interface testing item code, test method, enter to join type, Required parameter and test result;
The processor requires the process of unit requests described in 1-8 any one claim for perform claim.
CN201811473993.9A 2018-12-04 2018-12-04 A kind of automation interface test device and equipment Pending CN109656817A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811473993.9A CN109656817A (en) 2018-12-04 2018-12-04 A kind of automation interface test device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811473993.9A CN109656817A (en) 2018-12-04 2018-12-04 A kind of automation interface test device and equipment

Publications (1)

Publication Number Publication Date
CN109656817A true CN109656817A (en) 2019-04-19

Family

ID=66112785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811473993.9A Pending CN109656817A (en) 2018-12-04 2018-12-04 A kind of automation interface test device and equipment

Country Status (1)

Country Link
CN (1) CN109656817A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078535A (en) * 2019-11-28 2020-04-28 广州及包子信息技术咨询服务有限公司 Method and system for rapidly providing automatic test execution capacity
CN112732548A (en) * 2019-10-14 2021-04-30 腾讯科技(深圳)有限公司 Interface testing method and device
CN113138912A (en) * 2020-01-17 2021-07-20 北京京东振世信息技术有限公司 Interface testing method and system, client and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130024847A1 (en) * 2011-07-21 2013-01-24 International Business Machines Corporation Software test automation systems and methods
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN106874176A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 Intelligent test method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130024847A1 (en) * 2011-07-21 2013-01-24 International Business Machines Corporation Software test automation systems and methods
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN106874176A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 Intelligent test method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
_WIKY_: "自动化接口测试之Postman", 《CSDN》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732548A (en) * 2019-10-14 2021-04-30 腾讯科技(深圳)有限公司 Interface testing method and device
CN112732548B (en) * 2019-10-14 2024-01-26 腾讯科技(深圳)有限公司 Interface testing method and device
CN111078535A (en) * 2019-11-28 2020-04-28 广州及包子信息技术咨询服务有限公司 Method and system for rapidly providing automatic test execution capacity
CN113138912A (en) * 2020-01-17 2021-07-20 北京京东振世信息技术有限公司 Interface testing method and system, client and server
CN113138912B (en) * 2020-01-17 2023-09-22 北京京东振世信息技术有限公司 Interface testing method and system, client and server

Similar Documents

Publication Publication Date Title
CN107193733A (en) Simulate the methods, devices and systems of Monkey tests
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN107832206A (en) Method of testing, device, computer-readable recording medium and computer equipment
CN109656817A (en) A kind of automation interface test device and equipment
CN106648556B (en) Method and device for front-end and back-end integrated development test
US7895575B2 (en) Apparatus and method for generating test driver
CN110109897A (en) Database script generation method, device, computer equipment and storage medium
CN105138461A (en) Interface testing method and device for application program
CN109446065A (en) User tag test method, device, computer equipment and storage medium
CN110471585A (en) Function of application icon methods of exhibiting, device and computer equipment
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN109144799A (en) Integrated testing method, apparatus, computer equipment and storage medium
CN104268083A (en) Software automatic testing method and device
WO2021196674A1 (en) System code testing method and apparatus, and computer device and storage medium
CN107968833A (en) A kind of cloud application performance monitoring method based on execution route
CN109144487A (en) Into part business development method, apparatus, computer equipment and storage medium
Zhang et al. Environmental modeling for automated cloud application testing
CN107038120A (en) A kind of method for testing software and equipment
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
CN109992506A (en) Scheduling tests method, apparatus, computer equipment and storage medium
CN106528429A (en) UI testing method and device
CN109299009A (en) Data test method, apparatus, computer equipment and storage medium
CN109815126A (en) Method for testing software, device, computer equipment and storage medium
CN114090436A (en) Test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190419

RJ01 Rejection of invention patent application after publication