CN107193730A - A kind of interface test method of automation - Google Patents

A kind of interface test method of automation Download PDF

Info

Publication number
CN107193730A
CN107193730A CN201710328787.8A CN201710328787A CN107193730A CN 107193730 A CN107193730 A CN 107193730A CN 201710328787 A CN201710328787 A CN 201710328787A CN 107193730 A CN107193730 A CN 107193730A
Authority
CN
China
Prior art keywords
interface
case
automated execution
interface testing
execution instrument
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
CN201710328787.8A
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.)
Chengdu Danlu Network Technology Co Ltd
Original Assignee
Chengdu Danlu Network 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 Chengdu Danlu Network Technology Co Ltd filed Critical Chengdu Danlu Network Technology Co Ltd
Priority to CN201710328787.8A priority Critical patent/CN107193730A/en
Publication of CN107193730A publication Critical patent/CN107193730A/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/3684Test management for test design, e.g. generating new test cases
    • 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

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)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of interface test method of automation, comprise the following steps:(1) automated execution instrument is developed;(2) automated execution instrument is disposed on the server;(3) running environment in automated execution instrument according to needed for interface selects corresponding environment to pre-set script;(4) automated execution instrument obtains all interface testing use-cases and is shown in the page automatically;(5) interface testing use-case and executive mode are selected in the displayed page of automated execution instrument;(6) implementing result of the parsing of automated execution instrument and memory interface test case;(7) test report is sent to related personnel by automated execution instrument by mail.The present invention provides a kind of interface test method of automation, improves the intelligent of interface testing, and cause the process of whole interface testing without again by being accomplished manually, substantially increasing the efficiency of interface testing, and further increase the accuracy of interface testing.

Description

A kind of interface test method of automation
Technical field
The present invention relates to a kind of interface test method, a kind of interface test method of automation is specifically referred to.
Background technology
Interface testing is a kind of test of test system components interface, mainly for detection of between external system and system And the interaction point between internal subsystems.The emphasis of test is the exchange of data to be checked, transmission and control were managed Mutual logic dependencies between journey, and system etc..
Interface testing is applied to provide the bottom frame system and center service system of service, main test for other systems The interface that these system external portions are provided, verifies its correctness and stability.Interface testing is equally applicable to a upper system In service layer interface, more toward upper strata, its test difficulty it is bigger.
Interface testing is implemented under the multi-platform framework of multisystem, there is extremely efficient cost-benefit ratio, interface testing Born is that the platform for doing complexity brings efficient defect inspection and quality surveillance ability.Platform is more complicated, and system is huger, connects The effect of mouth test is more obvious.
The purpose of interface testing is test interface, especially those external interfaces associated with system, the emphasis of test It is the exchange of data to be checked, transmission and control management process, in addition to number of processing.
However, interface testing of today is substantially and carrys out implementation of test cases by manpower, the process entirely tested is more It is numerous and diverse, it is necessary to expend the more time.And every test manually to collect each test case is also needed to after the completion of test As a result, and by test result it is organized into test report.This process not only takes time and effort, simultaneously as the complex of parameter, holds very much It is easily caused in final test report and mistake occurs, its accuracy relies primarily on the vocational skills level of tester, it is difficult to enter The good mistake of row is evaded.
The content of the invention
It is an object of the invention to overcome above mentioned problem there is provided a kind of interface test method of automation, interface is improved That tests is intelligent, and causes the process of whole interface testing without again by being accomplished manually, substantially increase interface testing Efficiency, and further increase the accuracy of interface testing.
The purpose of the present invention is achieved through the following technical solutions:
A kind of interface test method of automation, comprises the following steps:
(1) automated execution instrument is developed, and writes interface testing use-case for project interface and environment pre-sets pin Originally, and interface testing use-case and environment are pre-seted into script engineering to be uploaded in gitlab;
(2) automated execution instrument is disposed on the server, and automated execution instrument configuration interface testing is used The gitlab addresses of example engineering;
(3) running environment in automated execution instrument according to needed for interface selects and performs corresponding environment to pre-set Script;
(4) automated execution instrument obtains all interface testing use-cases and is shown in the page automatically;
(5) the interface testing use-case to be performed is selected in the displayed page of automated execution instrument, and selects specific Executive mode, automated execution instrument voluntarily runs the interface testing use-case selected according to selected executive mode;
(6) after the completion of interface testing use-case is performed, the parsing of automated execution instrument and the execution of memory interface test case As a result, and by corresponding item extraction in implementing result and test report is organized into, while being shown on the page;
(7) test report is sent to related personnel by automated execution instrument by mail.
Further, the specific construction method of automated execution instrument is in step (1):
(11) by java language write interface testing use-case performing module, interface testing use-case collection module and Mail sending module, and by above-mentioned each block combiner into automated execution instrument framework;
(12) interface testing use-case is write by python language, the interface testing use-case write is stored in gitlab In, and by the automated execution instrument of framework in the gitlab addresses input step (11) of storage interface test case;
(13) environment is write by python language and pre-sets script, and the environment pre-sets script and interface testing use-case In same python engineerings, environment is pre-seted into script and is stored in gitlab, and environment is pre-seted to the gitlab of script In address input step (11) in the automated execution instrument of framework.
Preferably, the executive mode described in step (5) includes being immediately performed and timing is performed, also include in executive mode Run cycle-index and the setting of interval time.
Preferably, the implementing result of the interface testing use-case described in step (6) will be in database with test report It is middle to be stored, while the execution time synchronized of interface testing use-case can be also stored in database by automated execution instrument.
The present invention compared with prior art, with advantages below and beneficial effect:
(1) present invention solves the problem of artificial progress interface testing efficiency is low well, has preferably saved manpower money Source, while the accuracy that the efficiency and test result that substantially increase interface testing are arranged;
(2) present invention sets the trigger condition of interface testing using service condition module so that the time of interface testing It is more flexible with mode, the flexibility of interface testing is further increased, while the intelligent of interface testing is improved well, The operating pressure of server is reduced, server resource is more reasonably assigned with;
(3) implementing result of interface testing use-case of the invention will be stored with test report in database, energy It is enough very easily to be had access to when needed.
(4) present invention can voluntarily integrated every small tool in automated execution instrument according to demand, in order to product Actual use so that automated execution instrument is adapted to more demands and environment.
Embodiment
With reference to embodiment, the present invention is described in further detail, but the implementation of the present invention is not limited to this.
Embodiment
A kind of interface test method of automation, comprises the following steps:
(1) automated execution instrument is developed, and writes interface testing use-case for project interface and environment pre-sets pin Originally, and interface testing use-case and environment are pre-seted into script engineering to be uploaded in gitlab;
The specific construction method of automated execution instrument is:
(11) by java language write interface testing use-case performing module, interface testing use-case collection module and Mail sending module, and by above-mentioned each block combiner into automated execution instrument framework;
(12) interface testing use-case is write by python language, the interface testing use-case write is stored in gitlab In, and by the automated execution instrument of framework in the gitlab addresses input step (11) of storage interface test case;Interface Test case needs to be write according to actual project, and each project is required for matched interface testing use-case, makes New interface testing use-case can also be increased as needed during;If needing to increase new interface survey in use Example on probation, only need to add after new interface testing use-case in interface testing use-case engineering and be uploaded to gitlab.
(13) environment is write by python language and pre-sets script, and the environment pre-sets script and interface testing use-case In same python engineerings, environment is pre-seted into script and is stored in gitlab, and environment is pre-seted to the gitlab of script In address input step (11) in the automated execution instrument of framework;Environment pre-sets script and can write according to different environment A variety of different environment scripts, such as the environment such as WebTest and AppTest.
Above-mentioned every module and script write the conventional technical means for belonging to those skilled in the art, this area Technical staff can write out the module or script of corresponding function according to actual demand, herein just without repeating.
(2) automated execution instrument is disposed on the server, and automated execution instrument configuration interface testing is used The gitlab addresses of example engineering;The running status of the automated execution instrument is kept after the automated execution instrument is disposed, Being remained unchanged when unused needs the running background situation for keeping the automated execution instrument.
(3) running environment in automated execution instrument according to needed for interface selects and performs corresponding environment to pre-set Script.So just this method can be caused to possess higher adaptability, be adapted to various environment such as:WEB environment, app environment, Windows environment etc..
(4) automated execution instrument obtains all interface testing use-cases and is shown in the page automatically;
After being pre-seted to running environment, the interface testing use-case matched with the running environment will show, can To select the interface testing use-case wherein shown, new interface testing use-case can also be added according to demand.So set The purpose put is, in order to avoid the interface testing use-case that operating personnel select mutually conflicts with running environment, to cause final interface testing Use-case can not be performed normally.
In order to be more reasonably utilized server resource, selection when can by progress in need interface testing use-case Selected, in order to improve the intelligent and using effect of product.
(5) the interface testing use-case to be performed is selected in the displayed page of automated execution instrument, and selects specific Executive mode, automated execution instrument voluntarily runs the interface testing use-case selected according to selected executive mode;
Above-mentioned executive mode includes being immediately performed and timing is performed, and is immediately performed after referring to be provided with and is connect at once The process of mouth test, and timing is performed, and is to start line interface test of going forward side by side in the specified time.It can also be set in executive mode Put cycle-index, thus set according to demand once, repeatedly or infinitely;Interval time between performing twice can also be set Etc. content, further to improve the feature of product.
If not being badly in need of test result, generally the process of automated execution instrument automatic running should be placed on morning Or day off is carried out, and can so be reduced the operating pressure of server, further be saved server resource, improve server Utilization rate.
(6) after the completion of interface testing use-case is performed, the parsing of automated execution instrument and the execution of memory interface test case As a result, and by corresponding item extraction in implementing result and test report is organized into, while being shown on the page;
The implementing result of interface testing use-case will be stored with test report in database, while automated execution The execution time synchronized of interface testing use-case can be also stored in database by instrument.
Specifically test result will be reported with the file of html forms, the interface testing in this automated execution instrument Use-case collection module will be parsed to the file of the html forms, and therefrom extract required data preparation into survey Examination report.
(7) test report is sent to related personnel by automated execution instrument by mail.
The transmission of test report is the conventional technical means of those skilled in the art, first can be set in systems before sending Corresponding posting address is put, herein just without repeating.
As described above, the present invention just can be realized well.

Claims (4)

1. a kind of interface test method of automation, it is characterised in that:Comprise the following steps:
(1) automated execution instrument is developed, and writes environment and pre-sets script and interface testing use-case;
(2) automated execution instrument is disposed on the server, and interface testing use-case work is configured to the automated execution instrument The gitlab addresses of journey;
(3) running environment in automated execution instrument according to needed for interface selects and performs corresponding environment to pre-set pin This;
(4) automated execution instrument obtains all interface testing use-cases and is shown in the page automatically;
(5) the interface testing use-case to be performed is selected in the displayed page of automated execution instrument, and selects specifically to hold Line mode, automated execution instrument voluntarily runs the interface testing use-case selected according to selected executive mode;
(6) after the completion of interface testing use-case is performed, the implementing result of the parsing of automated execution instrument and memory interface test case, And by corresponding item extraction in implementing result and test report is organized into, while being shown on the page;
(7) test report is sent to related personnel by automated execution instrument by mail.
2. a kind of interface test method of automation according to claim 1, it is characterised in that:Automated in step (1) The specific construction method of execution instrument is:
(11) interface testing use-case performing module, interface testing use-case collection module and mail are write by java language Sending module, and by above-mentioned each block combiner into automated execution instrument framework;
(12) interface testing use-case is write by python language, the interface testing use-case write is stored in gitlab, And by the automated execution instrument of framework in the gitlab addresses input step (11) of storage interface test case;
(13) environment is write by python language and pre-sets script, and the environment pre-sets script with interface testing use-case same In one python engineerings, environment is pre-seted into script and is stored in gitlab, and environment is pre-seted to the gitlab addresses of script In input step (11) in the automated execution instrument of framework.
3. a kind of interface test method of automation according to claim 2, it is characterised in that:Holding described in step (5) Line mode includes being immediately performed and timing is performed, and setting for operation cycle-index and interval time is also included in executive mode Put.
4. a kind of interface test method of automation according to claim 3, it is characterised in that:Described in step (6) The implementing result of interface testing use-case will be stored with test report in database, while automated execution instrument can also The execution time synchronized of interface testing use-case is stored in database.
CN201710328787.8A 2017-05-11 2017-05-11 A kind of interface test method of automation Pending CN107193730A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710328787.8A CN107193730A (en) 2017-05-11 2017-05-11 A kind of interface test method of automation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710328787.8A CN107193730A (en) 2017-05-11 2017-05-11 A kind of interface test method of automation

Publications (1)

Publication Number Publication Date
CN107193730A true CN107193730A (en) 2017-09-22

Family

ID=59873882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710328787.8A Pending CN107193730A (en) 2017-05-11 2017-05-11 A kind of interface test method of automation

Country Status (1)

Country Link
CN (1) CN107193730A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622017A (en) * 2017-10-13 2018-01-23 深圳市视维科技股份有限公司 A kind of analytic method of general automation software test
CN107870836A (en) * 2017-10-31 2018-04-03 郑州云海信息技术有限公司 A kind of automated testing method of Intel Omni Path performances
CN109101680A (en) * 2018-06-26 2018-12-28 天津飞腾信息技术有限公司 FPGA prototype automatic verification method and system based on GitLab-CI
CN109189684A (en) * 2018-08-28 2019-01-11 四川长虹电器股份有限公司 Automatic interface testing method based on Python
CN110209569A (en) * 2018-05-10 2019-09-06 腾讯科技(深圳)有限公司 Interface test method, interface test device and storage medium
CN110445690A (en) * 2019-08-16 2019-11-12 北京智芯微电子科技有限公司 The design method of electric power wireless public network communication unit interchangeability test software
CN110569198A (en) * 2019-09-18 2019-12-13 北京搜狐新媒体信息技术有限公司 Method and device for automatically testing service function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
US20120233598A1 (en) * 2007-05-04 2012-09-13 International Business Machines Corporation Completing functional testing
CN104516809A (en) * 2013-09-26 2015-04-15 方正宽带网络服务股份有限公司 Automated testing system and method
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120233598A1 (en) * 2007-05-04 2012-09-13 International Business Machines Corporation Completing functional testing
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN104516809A (en) * 2013-09-26 2015-04-15 方正宽带网络服务股份有限公司 Automated testing system and method
CN105446878A (en) * 2015-11-09 2016-03-30 上海爱数信息技术股份有限公司 Continuous program automated testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潜龙0318: "第六章 自动执行自动化测试用例", 《新浪博客》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622017A (en) * 2017-10-13 2018-01-23 深圳市视维科技股份有限公司 A kind of analytic method of general automation software test
CN107622017B (en) * 2017-10-13 2020-09-15 深圳市视维科技股份有限公司 Analysis method for universal automation software test
CN107870836A (en) * 2017-10-31 2018-04-03 郑州云海信息技术有限公司 A kind of automated testing method of Intel Omni Path performances
CN110209569A (en) * 2018-05-10 2019-09-06 腾讯科技(深圳)有限公司 Interface test method, interface test device and storage medium
CN110209569B (en) * 2018-05-10 2021-07-06 腾讯科技(深圳)有限公司 Interface test method, interface test device and storage medium
CN109101680A (en) * 2018-06-26 2018-12-28 天津飞腾信息技术有限公司 FPGA prototype automatic verification method and system based on GitLab-CI
CN109101680B (en) * 2018-06-26 2022-11-25 飞腾信息技术有限公司 FPGA prototype automatic verification method and system based on GitLab-CI
CN109189684A (en) * 2018-08-28 2019-01-11 四川长虹电器股份有限公司 Automatic interface testing method based on Python
CN109189684B (en) * 2018-08-28 2022-02-22 四川长虹电器股份有限公司 Python-based automatic interface testing method
CN110445690A (en) * 2019-08-16 2019-11-12 北京智芯微电子科技有限公司 The design method of electric power wireless public network communication unit interchangeability test software
CN110569198A (en) * 2019-09-18 2019-12-13 北京搜狐新媒体信息技术有限公司 Method and device for automatically testing service function

Similar Documents

Publication Publication Date Title
CN107193730A (en) A kind of interface test method of automation
CN106095677B (en) The RESTful Webservice automatic interface testing methods realized based on Robot Framework
CN101241467B (en) Automatized white box test system and method facing to WEB application
CN105718371B (en) A kind of regression testing method, apparatus and system
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
US20100058295A1 (en) Dynamic Test Coverage
CN106095673A (en) Automated testing method based on WEB interface and system
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN103631713A (en) ERP software automated testing system and method
CN111258881B (en) Intelligent test system for workflow test
CN108459850B (en) Method, device and system for generating test script
CN112433944A (en) Service testing method, device, computer equipment and storage medium
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN110532021B (en) Processing method of configuration file of distributed control system, client and service device
CN110554956B (en) BDMS automatic test method
CN117608903A (en) Method, device, equipment and storage medium for automatically generating test report
CN104678292B (en) A kind of complex programmable logic device (CPLD) test method and device
CN117421217A (en) Automatic software function test method, system, terminal and medium
CN111176995A (en) Test method and test system based on big data test case
CN115934559A (en) Testing method of intelligent form testing system
CN115794639A (en) Visual test and visual simulation test system and method based on process
CN113886262A (en) Software automation test method and device, computer equipment and storage medium
CN113434405A (en) Method and device for determining test file, storage medium and electronic device
CN111835590A (en) Automatic interface test architecture and test method for cloud host product
CN112286792A (en) Interface testing method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922