CN106484624A - The method of testing of interface automatic test - Google Patents
The method of testing of interface automatic test Download PDFInfo
- Publication number
- CN106484624A CN106484624A CN201610919725.XA CN201610919725A CN106484624A CN 106484624 A CN106484624 A CN 106484624A CN 201610919725 A CN201610919725 A CN 201610919725A CN 106484624 A CN106484624 A CN 106484624A
- Authority
- CN
- China
- Prior art keywords
- interface
- test
- data
- script
- web
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
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
A kind of method of testing of interface automatic test, deployment base environment first;Execute corresponding sql script establishment table and dispose the script file of correlation in corresponding web environment;User logs in web, basis is 1nmp, realizes representing of web page by ph, html and js technology, different according to user right, management tested interface accordingly, and additions and deletions change looks into tested interface;Check that base page is whether normal, and the additions and deletions of the data and related test case entering line interface in web page change and look into;Change corresponding test case in corresponding interface, select implementation of test cases, and corresponding execution state is checked by running log;Point table carries out storing corresponding data to mysql.Achieve tested interface and enter ginseng and the script going out ginseng, and the combination to these parameters and different parameters is verified;Realize the separation of test script and test data, by web application, test data is managed, reduces the maintenance of test script.
Description
Technical field
The invention belongs to internet data technical field of measurement and test, more particularly, to a kind of test side of interface automatic test
Method.
Background technology
With popularization in each the Internet project for the agile development and utilization, much original method of testing and thinkings
Need corresponding change and adjust, in this change, we replace manual testing with automatic test at more thinkings, its
Main is a little to reduce error rate, repeat etc..But for automatization, wherein comprise UI automatization, interface automatization and
Automated unit test, in whole automatic test, unit automatic test accounts for 70%, interface automatization accounting 20%, UI certainly
Dynamicization accounting 10%;Unit automatization has Unit perfect accordingly to test according to different language, comparatively compares
Complete.But the correlation technique of interface automatization and Technical comparing shortcoming, based on this, have done a kind of interface for project automatic
The method of testing changed is realized.
Under many circumstances, many people think that interface automatization it is necessary to realize interface, then just can have corresponding test,
This will allow test script realize delayed, also be exactly after interface completes, execution test be also to have a lot of problems, foot
The change of this maintenance and test case all can have influence on the code of automatic test interface, produce and test delayed and substantial amounts of generation
Code maintenance work.
Content of the invention
The present invention provide a kind of method of testing of interface automatic test, with solve in above-mentioned background technology propose ask
Topic.
Technical problem solved by the invention employs the following technical solutions to realize:The present invention provides a kind of interface automatization
The method of testing of test, method of testing is as follows:
The first step:Deployment base environment first;
Second step:Corresponding sql script establishment table is executed by interface script server and disposes the script file of correlation
To in corresponding web environment;
3rd step:User logs in web client, basis is lnmp, realizes web page by ph, html and js technology
Represent, management accordingly tested interface different according to user right, additions and deletions change the interface looking into tested server cluster;
4th step:Check whether base page is normal, and enter data and the related test use of line interface in web page
The additions and deletions of example change looks into;
5th step:Change corresponding test case in corresponding interface, select implementation of test cases, and pass through running log
Check corresponding execution state;
6th step:Data base carries out storing corresponding data to mysql, and simple tables of data has user management table, user
Interface relationship table, interface table, interface relationship table, interface item module table, by interface name name test case table and monthly
The log sheet of storage data.
Beneficial effects of the present invention are:
(1) achieve tested interface and enter ginseng and the script going out ginseng, and the combination to these parameters and different parameters is carried out
Checking;
(2) realize the separation of test script and test data, by web application, test data is managed, reduces
The maintenance of test script;
(3) by the adjustment of executive mode, the pressure that can do the simple aspect of performance of interface is surveyed, and docking port performance can do a letter
Single assessment.
Brief description
Fig. 1 is the flow chart of the present invention.
Specific embodiment
Below in conjunction with accompanying drawing, the present invention is described further:A kind of method of testing of interface automatic test, test side
Method is as follows:
The first step:Deployment base environment first;It is mainly used in interface testing do interface requests and return accordingly tested
Expected result checking case;Mainly realized by python language, the predominant package foundation class method total with some,
If request interface is sequence and encapsulation and the encryption of urlencode and base64, the mould in request process of required parameter
Intend doing the request of the corresponding interface;
Second step:Corresponding sql script establishment table is executed by interface script server and disposes the script file of correlation
To in corresponding web environment;
3rd step:User logs in web client, basis is lnmp, realizes web page by ph, html and js technology
Represent, management accordingly tested interface different according to user right, additions and deletions change the interface looking into tested server cluster;Its master
Purposes is wanted to be to manage tested interface, maintenance and execution interface testing use-case, and the representing of test log, daily record represents mainly
For counting each test case number, and by the result performed by each test case, represent normal and abnormal correlation log
Information, for more preferable investigation abnormal problem, concrete such as A interface, has 20 test cases, can select execution by web page
Part or all test case, test case can be in a tested interface execution, also can be in multiple dependence test interfaces
Execution, concrete implementing result can check related execution journal;
4th step:Check whether base page is normal, and enter data and the related test use of line interface in web page
The additions and deletions of example change looks into;
5th step:Change corresponding test case in corresponding interface, select implementation of test cases, and pass through running log
Check corresponding execution state;
6th step:Data base carries out storing corresponding data to mysql, and simple tables of data has user management table, user
Interface relationship table, interface table, interface relationship table, interface item module table, by interface name name test case table and monthly
The log sheet of storage data.
Specifically used flow process is:User logs in web client, management accordingly tested interface different according to user right,
Additions and deletions change looks into tested interface, changes corresponding test case in corresponding interface, selects implementation of test cases, and by running day
Will checks corresponding execution state.Carry out the separation of test data, test case and interface requests script to complete interface testing,
Test case and tested interface are stored by data base, unified management, and physical interface calls, and some shared sides
Method, unification, in foundation class, is realized the problem of script, subsequently can be carried out test case in the web-based management page and test connects
The additions and deletions of mouth change looks into.
Present invention achieves tested interface enters ginseng and the script going out ginseng, and the combination to these parameters and different parameters is entered
Row checking;Realize the separation of test script and test data, by web application, test data is managed, reduces test
The maintenance of script;By the adjustment of executive mode, the pressure that can do the simple aspect of performance of interface is surveyed, and docking port performance can do a letter
Single assessment.
Finally illustrate, choose above-described embodiment and it has been described in detail and description is to preferably say
The technical scheme of bright patent of the present invention, is not intended to the details shown in being confined to.Those skilled in the art is to the present invention's
Technical scheme is modified or is replaced on an equal basis, the objective without deviating from technical solution of the present invention and scope, all should cover at this
In the middle of the right of invention.
Claims (1)
1. a kind of method of testing of interface automatic test it is characterised in that:Method of testing is as follows:
The first step:Deployment base environment first;
Second step:Corresponding sql script establishment table is executed by interface script server and disposes the script file of correlation to phase
In the web environment answered;
3rd step:User logs in web client, basis is lnmp, realizes representing of web page by ph, html and js technology,
Different according to user right, management tested interface accordingly, additions and deletions change the interface looking into tested server cluster;
4th step:Check whether base page is normal, and enter the data of line interface and related test case in web page
Additions and deletions change looks into;
5th step:Change corresponding test case in corresponding interface, select implementation of test cases, and checked by running log
Corresponding execution state;
6th step:Data base carries out storing corresponding data to mysql, and simple tables of data has user management table, user interface
Relation table, interface table, interface relationship table, interface item module table, by interface name name test case table and monthly store
The log sheet of data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610919725.XA CN106484624A (en) | 2016-10-21 | 2016-10-21 | The method of testing of interface automatic test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610919725.XA CN106484624A (en) | 2016-10-21 | 2016-10-21 | The method of testing of interface automatic test |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106484624A true CN106484624A (en) | 2017-03-08 |
Family
ID=58270428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610919725.XA Pending CN106484624A (en) | 2016-10-21 | 2016-10-21 | The method of testing of interface automatic test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106484624A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577599A (en) * | 2017-08-21 | 2018-01-12 | 同程网络科技股份有限公司 | A kind of automatic interface testing method and platform based on custom script |
CN108733554A (en) * | 2017-04-21 | 2018-11-02 | 北京京东尚科信息技术有限公司 | Mock method and apparatus |
CN109302305A (en) * | 2018-08-08 | 2019-02-01 | 杭州安恒信息技术股份有限公司 | A kind of clustering performance test method based on industrial control system |
CN109344053A (en) * | 2018-09-03 | 2019-02-15 | 平安科技(深圳)有限公司 | Interface coverage test method, system, computer equipment and storage medium |
CN109558316A (en) * | 2018-11-21 | 2019-04-02 | 武汉风行在线技术有限公司 | A kind of HTTP interface mobilism parameter test method of Test Strategy automatic configuration |
CN112363931A (en) * | 2020-11-11 | 2021-02-12 | 武汉虹旭信息技术有限责任公司 | Web system testing method and device |
CN112416747A (en) * | 2020-01-21 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Test case execution method, device, equipment and medium |
CN113312256A (en) * | 2021-05-21 | 2021-08-27 | 上海振华重工(集团)股份有限公司 | Automatic dock system interface automatic test system and method |
CN115545677A (en) * | 2022-11-24 | 2022-12-30 | 云账户技术(天津)有限公司 | Online flow specification detection method and system based on automatic case execution condition |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212357A (en) * | 2006-12-31 | 2008-07-02 | 亿阳信通股份有限公司 | Interface testing method and device |
CN101867501A (en) * | 2010-05-25 | 2010-10-20 | 北京宜富泰网络测试实验室有限公司 | Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model |
CN102096631A (en) * | 2009-12-11 | 2011-06-15 | 华为技术有限公司 | Interface testing method and device |
CN106021111A (en) * | 2016-05-30 | 2016-10-12 | 上海携程商务有限公司 | Interface testing method and system |
-
2016
- 2016-10-21 CN CN201610919725.XA patent/CN106484624A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212357A (en) * | 2006-12-31 | 2008-07-02 | 亿阳信通股份有限公司 | Interface testing method and device |
CN102096631A (en) * | 2009-12-11 | 2011-06-15 | 华为技术有限公司 | Interface testing method and device |
CN101867501A (en) * | 2010-05-25 | 2010-10-20 | 北京宜富泰网络测试实验室有限公司 | Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model |
CN106021111A (en) * | 2016-05-30 | 2016-10-12 | 上海携程商务有限公司 | Interface testing method and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733554A (en) * | 2017-04-21 | 2018-11-02 | 北京京东尚科信息技术有限公司 | Mock method and apparatus |
CN107577599A (en) * | 2017-08-21 | 2018-01-12 | 同程网络科技股份有限公司 | A kind of automatic interface testing method and platform based on custom script |
CN109302305A (en) * | 2018-08-08 | 2019-02-01 | 杭州安恒信息技术股份有限公司 | A kind of clustering performance test method based on industrial control system |
CN109344053A (en) * | 2018-09-03 | 2019-02-15 | 平安科技(深圳)有限公司 | Interface coverage test method, system, computer equipment and storage medium |
CN109344053B (en) * | 2018-09-03 | 2023-05-30 | 平安科技(深圳)有限公司 | Interface coverage test method, system, computer device and storage medium |
CN109558316A (en) * | 2018-11-21 | 2019-04-02 | 武汉风行在线技术有限公司 | A kind of HTTP interface mobilism parameter test method of Test Strategy automatic configuration |
CN112416747A (en) * | 2020-01-21 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Test case execution method, device, equipment and medium |
CN112363931A (en) * | 2020-11-11 | 2021-02-12 | 武汉虹旭信息技术有限责任公司 | Web system testing method and device |
CN113312256A (en) * | 2021-05-21 | 2021-08-27 | 上海振华重工(集团)股份有限公司 | Automatic dock system interface automatic test system and method |
CN115545677A (en) * | 2022-11-24 | 2022-12-30 | 云账户技术(天津)有限公司 | Online flow specification detection method and system based on automatic case execution condition |
CN115545677B (en) * | 2022-11-24 | 2023-04-07 | 云账户技术(天津)有限公司 | Online process specification detection method and system based on automatic case execution condition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484624A (en) | The method of testing of interface automatic test | |
AU2017297271B2 (en) | System and method for automatic learning of functions | |
CN102831052B (en) | Test exemple automation generating apparatus and method | |
CN101661460B (en) | Method and device for generating management system report | |
US9575871B2 (en) | System and method for dynamically debugging data in a multi-tenant database environment | |
US20190278700A1 (en) | System and method for automated service layer testing and regression | |
US9483386B2 (en) | Information interaction test device and method based on automatic generation of associated test cases | |
WO2020088326A1 (en) | Interface operation and maintenance method and apparatus | |
US20120089562A1 (en) | Methods and Apparatus for Integrated Management of Structured Data From Various Sources and Having Various Formats | |
CN102236672A (en) | Method and device for importing data | |
RU2662405C2 (en) | Certification documents automatic generation | |
CN112035363A (en) | Automatic interface testing method and device | |
CN101859303A (en) | Metadata management method and management system | |
CN106534242A (en) | Processing method and device for requests in distributed system | |
CN105045606A (en) | Detection method for three-dimensional design quality based on PDM system | |
CN109446042B (en) | Log management method and system for intelligent electric equipment | |
CN114418714A (en) | 5G base station operation and maintenance management system and method | |
CN109857649A (en) | A kind of resource testing method and system | |
CN111190814A (en) | Software test case generation method and device, storage medium and terminal | |
CN114443466A (en) | Method for converting executable script by using case file, terminal equipment and storage medium | |
CN112200465B (en) | Electric power AI method and system based on multimedia information intelligent analysis | |
CN105933396B (en) | A kind of each canalization interface of collaboration realizes the method and system of long flow | |
CN107506292A (en) | The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage | |
CN109947797A (en) | A kind of data detecting device and method | |
CN104216986B (en) | The device and method of pre-operation raising efficiency data query is carried out with the data update cycle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170308 |
|
WD01 | Invention patent application deemed withdrawn after publication |