CN107402884A - Generate the method and device of interface testing code - Google Patents
Generate the method and device of interface testing code Download PDFInfo
- Publication number
- CN107402884A CN107402884A CN201710638524.7A CN201710638524A CN107402884A CN 107402884 A CN107402884 A CN 107402884A CN 201710638524 A CN201710638524 A CN 201710638524A CN 107402884 A CN107402884 A CN 107402884A
- Authority
- CN
- China
- Prior art keywords
- tested
- class
- file
- interface
- template
- 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/3684—Test management for test design, e.g. generating new test cases
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)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of method and device for generating interface testing code.This method includes:Obtain the interface message of interface to be tested;Obtain the interface testing Code Template being pre-configured with for the interface to be tested and configuration file;According to the interface testing Code Template, the configuration file and the interface message, the interface testing code of the generation interface to be tested.The present invention has quickly generated interface automatic test code, and can quickly realize that the automatic test access that newly-increased interface or existing interface are changed is verified with returning by unified interface testing Code Template and configuration file, and is easy to safeguard.
Description
Technical field
The present embodiments relate to interface testing technology, more particularly to a kind of method and dress for generating interface testing code
Put.
Background technology
The characteristics of based on internet industry project iteratively faster, PROJECT TIME progress is often more compact, and due to history
The operation flow and function of iteration accumulation are more, and tester is often also required in addition to the demand test assignment of current iteration
The regression test of numerous core business process functions of having realized frequently is carried out, such regression test is also required to take
The more time resource of tester so that the originally more compact project iteration tests time is more painstaking.Based on this, automatically
Change test progressively to develop and grow up, and it is progressively automatic to interface by UI (User Interface, user interface) automations
Change test development, it is desirable to the efficiency of regression test is lifted by automatic test means.
In project interface automatic test course is realized, it is necessary to tester largely tests code by writing,
And realized by a series of test frames increased income.In test coding process is actually write, connecing for same intermediate item is found
In place of mouth automation core code structure has more general character, and different testers writes the interface automation of same project
Code is tested, can also be varied with each individual, causes same project interface automation code organization structure also can be more in disorder, after being unfavorable for
It is continuous to safeguard, also it is not easy to the automatic test access of the newly-increased interface of quick realization or existing interface modification and returns verify, largely
Interface automatic test code complete to write and be also required to expend tester's more time.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of method and device for generating interface testing code, to quickly generate
Interface automatic test code, it is quick to realize that newly-increased interface or the automatic test access of existing interface modification are verified with returning,
And it is easy to safeguard.
In a first aspect, the embodiments of the invention provide a kind of method for generating interface testing code, methods described includes:
Obtain the interface message of interface to be tested;
Obtain the interface testing Code Template being pre-configured with for the interface to be tested and configuration file;
According to the interface testing Code Template, the configuration file and the interface message, generation is described to be measured to try
The interface testing code of mouth.
Second aspect, the embodiment of the present invention additionally provide a kind of device for generating interface testing code, and described device includes:
Interface message acquisition module, for obtaining the interface message of interface to be tested;
Template configuration acquisition module, for obtaining the interface testing Code Template being pre-configured with for the interface to be tested
And configuration file;
Code generation module is tested, for according to the interface testing Code Template, the configuration file and the interface
Information, generate the interface testing code of the interface to be tested.
The technical scheme of the embodiment of the present invention, by obtaining the interface message of interface to be tested, obtain and tried for be measured
The interface testing Code Template and configuration file that mouth is pre-configured with, believe according to interface testing Code Template, configuration file and interface
Breath, the interface testing code of interface to be tested is generated, quickly generated interface automatic test code, and connect by unified
Mouthful test Code Template and configuration file can quickly realize the automatic test access of newly-increased interface or the modification of existing interface with
Checking is returned, and is easy to safeguard.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the method for generation interface testing code that the embodiment of the present invention one provides;
Fig. 2 is an interface testing Code Template in the method for generation interface testing code provided in an embodiment of the present invention
Exemplary plot;
Fig. 3 is that the configuration file of the HTTP interface in the method for generation interface testing code provided in an embodiment of the present invention shows
Illustration;
Fig. 4 is a kind of flow chart of the method for generation interface testing code that the embodiment of the present invention two provides;
Fig. 5 is a kind of structural representation of the device for generation interface testing code that the embodiment of the present invention three provides.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than full content are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 be the embodiment of the present invention one provide a kind of generation interface testing code method flow chart, the present embodiment
It is applicable to automatically generate specified interface to be tested the situation of interface testing code, this method can be by generation interface testing
The device of code performs, and the device can be realized by software and/or hardware, can typically integrate in a computer, this method
Specifically comprise the following steps:
Step 101, the interface message of interface to be tested is obtained.
Wherein, interface to be tested is software interface, including HTTP (HyperText Transfer Protocol, hypertext
Host-host protocol) interface or Dubbo interfaces, it can also be the interface based on other agreements.Wherein, Dubbo is Arriba Bagong
Take charge of the outstanding service framework of the high-performance increased income so that application can pass through high performance RPC (Remote Procedure
Call Protocol, remote procedure call protocol) output serviced and input function are realized, can be seamless with Spring frameworks
It is integrated.
For an interface to be tested, it is necessary to first determine the interface message of interface to be tested, interface message can record
Obtain, can also be obtained from the code of the interface in the document of interface message.
Step 102, the interface testing Code Template being pre-configured with for the interface to be tested and configuration file are obtained.
Wherein, interface testing Code Template is to be directed to the general character that test code is extracted based on a kind of interface of specific protocol
Part, wherein transformable part is configured with presets, what such as be will vary is partially configured to $ { key } form,
Key carries out self-defined according to the interface message of interface to be tested.Configuration file is to be directed to a kind of configuration of the interface of specific protocol,
Stored by key assignments (key-value) in the form of, value therein is transformable, and the type of setting, specific value need
Obtained in interface message.Fig. 2 is an interface testing in the method for generation interface testing code provided in an embodiment of the present invention
The exemplary plot of Code Template, it is transformable in code as shown in Fig. 2 the configured completion of interface testing Code Template core content
It is partially configured to $ { key } form, such as $ { actionPackageName }, $ { actionName }, $ { suffix }, so as to
The change of very little need to be only done for detailed programs can be rapidly completed the personalization of interface automation Code Template of detailed programs
Configuration, generate the interface testing code of corresponding interface.Fig. 3 is the method for generation interface testing code provided in an embodiment of the present invention
In HTTP interface configuration file example figure.
Interface testing Code Template is that the interface for being directed to every kind of agreement is respectively configured, and is tested to tested interface
When, it is first determined the agreement that tested interface uses, so as to obtain the interface testing Code Template and configuration text based on the agreement
Part.The interface for distinguishing different agreement can be identified when memory interface tests Code Template and configuration file, so as to according to mark
Knowing can quick obtaining interface testing Code Template and configuration file corresponding to;The store path that can also be specified according to user obtains
Interface testing Code Template and configuration file corresponding to getting.
Step 103, according to the interface testing Code Template, the configuration file and the interface message, described in generation
The interface testing code of interface to be tested.
From configuration file acquisition key-value pair, the value in key-value pair is transformable, according to specific interface to be tested
It is determined that occurrence corresponding to the key in configuration file is obtained from the interface message, so that it is determined that the occurrence of key-value pair, will
Relevant position in occurrence write-in interface testing Code Template, i.e., position corresponding to the key in configuration file, so as to generate
The interface testing code of interface to be tested.
The technical scheme of the present embodiment, by obtaining the interface message of interface to be tested, obtain pre- for interface to be tested
The interface testing Code Template and configuration file first configured, it is raw according to interface testing Code Template, configuration file and interface message
Into the interface testing code of interface to be tested, interface automatic test code is quickly generated, and survey by unified interface
Examination Code Template and configuration file can quickly realize the automatic test access of newly-increased interface or existing interface modification and return
Checking, and be easy to safeguard.
Embodiment two
Fig. 4 be the embodiment of the present invention two provide a kind of generation interface testing code method flow chart, the present embodiment
It is optimized on the basis of above-described embodiment, will be " according to the interface testing Code Template, the configuration file and described
Interface message, generate the interface testing code of the interface to be tested " it is optimized for sequentially generating tested class file, tested class
Method file, test class file and test class method file.This method specifically comprises the following steps:
Step 401, the interface message of interface to be tested is obtained.
Step 402, the interface testing Code Template being pre-configured with for the interface to be tested and configuration file are obtained.
Step 403, tested class template is read from the interface testing Code Template, and is read from the configuration file
Take tested class configuration file.
Interface testing Code Template includes tested class template, tested class method template, test class template and test class
Method template, different templates can be distinguished according to target designation in interface testing Code Template.
Step 404, according to the tested class template and tested class configuration file, tested class file is generated.
After tested class template and tested class configuration file is read, judge whether to have generated tested class file,
Tested class file is generated if not generating, is not repeated to generate if having generated, directly acquisition has generated tested
Class file.Wherein, tested class file is the file of java forms.
Step 405, tested class method template is read from the interface testing Code Template, and from the configuration file
It is middle to read tested class method configuration file.
Step 406, according to the tested class method template, tested class method configuration file and the interface message,
The tested class method file of generation.
When the interface to be tested is HTTP interface, according to the interface message of interface to be tested, determine described to be tested
The request type of interface, and interface interchange mode corresponding to generation;Judge whether request URL carries path parameter, and according to sentencing
Disconnected result generation interface requests URL;Judge whether interface to be tested has required parameter, and method call corresponding to generation, i.e., it is raw
Into the method call with required parameter or without required parameter;To the path parameter, required parameter and request header parameter
The splicing for carrying out preset order is assembled into tested method call parameter.When the interface to be tested is Dubbo interfaces,
It need to only judge whether interface to be tested has a required parameter, and method call corresponding to generating, i.e. generation are with required parameter or not
Method call with required parameter.
After the tested method call parameter of generation, in substitution configuration file in corresponding key, specific key-value pair is formed, and
The key in tested method template is replaced, so as to generate tested method for testing file.Wherein, it is txt forms to be tested method for testing file
File.
Wherein, according to the tested class method template, tested class method configuration file and the interface message, generation
Tested class method file, it is optional including:
Occurrence corresponding to the key in the tested class method configuration file is obtained from the interface message;
The correspondence position that the occurrence is write in the tested class method template, generate the tested class method
File.
Due to the design parameter of interface defined in interface message, so as to get configuration file in interface message
The value of the design parameter of middle needs, i.e. occurrence, the correspondence position that the occurrence is write in tested class method template, i.e. key
Position, just bear tested class method file.With quick obtaining to corresponding parameter and tested class method file can be formed.
Step 407, the read test class template from the interface testing Code Template, and read from the configuration file
Test class configuration file.
Step 408, according to the test class template and test class configuration file, generation test class file.
After test class template and test class configuration file is read, judge whether to have generated test class file, if not
Then class file is tested in generation for generation, is not repeated to generate if having generated, is directly obtained the test class file generated.
Wherein, test class file is the file of java forms.
Step 409, the read test class method template from the interface testing Code Template, and from the configuration file
Read test class method configuration file.
Step 410, according to the test class method template and test class method configuration file, generation test class method text
Part.
The spliced path parameter of HTTP interface, request header parameter and required parameter, or Dubbo are directed to according to above-mentioned
The required parameter of interface, form test class method call parameter, and binding test class method template and test class method configuration text
Part, generate test class method file.Wherein, test class method file is the file of txt forms.
Step 411, according to the tested class file, tested class method file, test class file and test class method
File, generate the interface testing code of the interface to be tested.
Content in the content of tested class file and tested class file is combined to obtain corresponding tested class
File, and will test the content of class file and the content of test class method file be combined to obtain corresponding to test class text
Part, the content in the file of tested class and the content in the file of test class are the interface testings of the interface to be tested of generation
Code.
Wherein, according to the tested class file, tested class method file, test class file and test class method text
Part, generates the interface testing code of the interface to be tested, it is optional including:
Content in the tested class method file is replicated to the predeterminated position for pasting the tested class file, and
Content in the test class method file is replicated to the predeterminated position for pasting the test class file, generation is described to be tested
The interface testing code of interface.By the processing, the interface testing code of interface to be tested can be quickly generated.
The technical scheme of the present embodiment, it can quickly be developed by interface testing Code Template and configuration file and complete specific association
The interface testing code of the interface to be tested of view, the efficiency of effective Improving Project interface automatic test exploitation, reduces test money
Source making time, for newly-increased interface or existing interface modification, it can quickly realize that automatic test access is verified with returning, due to
With unified interface testing Code Template so that overall project structure and code spice high unity, be easy to follow-up maintenance work
Make, other testers can zero learning cost quickly intervene.
On the basis of above-mentioned technical proposal, before the read test class template from the interface testing Code Template,
It is also optional including:
Abstract father is read from the interface testing Code Template and tests class template, and reads and takes out from the configuration file
As father's test class configuration file;
Class template and abstract father's test class configuration file are tested according to the abstract father, abstract father is generated and tests class file;
According to the tested class file, tested class method file, test class file and test class method file, generation
The interface testing code of the interface to be tested, including:
Class file, test class file and survey are tested according to the tested class file, tested class method file, abstract father
Class method file is tried, generates the interface testing code of the interface to be tested.
For double types, it is necessary to including abstract father's test class, therefore, also include taking out in interface testing Code Template
As father's test class template, also need to include abstract father's test class configuration file in configuration file.Reading abstract father's test class mould
After plate and abstract father's test class configuration file, judge whether that having generated abstract father tests class file, generates if not generating and takes out
As father's test class file, it is not repeated to generate if having generated, directly obtains the abstract father generated and test class file.
Wherein, it is abstracted father and tests the file that class file is java forms.
Generate abstract father and test class file, also need to combine abstract father's test class file when generating interface testing code,
Common generation interface testing code.So that the interface testing code of generation is more accurate, and improve interface testing generation
The versatility of code mask.
Embodiment three
Fig. 5 be the embodiment of the present invention three provide a kind of generation interface testing code device structural representation, such as Fig. 5
Shown, the device of the generation interface testing code described in the present embodiment includes:Interface message acquisition module 510, template configuration obtain
Modulus block 520 and test code generation module 530.
Wherein, interface message acquisition module 510, for obtaining the interface message of interface to be tested;
Template configuration acquisition module 520, for obtaining the interface testing code being pre-configured with for the interface to be tested
Template and configuration file;
Code generation module 530 is tested, for according to the interface testing Code Template, the configuration file and described connecing
Message ceases, and generates the interface testing code of the interface to be tested.
Optionally, the test code generation module includes:
Tested class template configuration reading unit, for reading tested class mould from the interface testing Code Template
Plate, and tested class configuration file is read from the configuration file;
Tested class file generation unit, for according to the tested class template and tested class configuration file, generation
Tested class file;
Tested class method template configuration reading unit, for reading tested class from the interface testing Code Template
Method template, and tested class method configuration file is read from the configuration file;
Tested class method file generating unit, for being matched somebody with somebody according to the tested class method template, tested class method
File and the interface message are put, generates tested class method file;
Test class template configuration reading unit, for the read test class template from the interface testing Code Template, and
The read test class configuration file from the configuration file;
Test class file generating unit, for according to the test class template and test class configuration file, generating test class
File;
Test class method template configures reading unit, for the read test class method from the interface testing Code Template
Template, and the read test class method configuration file from the configuration file;
Test class method file generating unit, for configuring text according to the test class method template and test class method
Part, generate test class method file;
Code generating unit is tested, for according to the tested class file, tested class method file, test class file
With test class method file, the interface testing code of the generation interface to be tested.
Optionally, the test code generation module also includes:
Abstract father's test class template configuration reading unit, in the read test class from the interface testing Code Template
Before template, abstract father is read from the interface testing Code Template and tests class template, and is read from the configuration file
Abstract father's test class configuration file;
Abstract father's test class file generating unit, for being matched somebody with somebody according to abstract father's test class template and abstract father's test class
File is put, abstract father is generated and tests class file;
The test code generating unit is specifically used for:
Class file, test class file and survey are tested according to the tested class file, tested class method file, abstract father
Class method file is tried, generates the interface testing code of the interface to be tested.
Optionally, the tested class method file generating unit is specifically used for:
Occurrence corresponding to the key in the tested class method configuration file is obtained from the interface message;
The correspondence position that the occurrence is write in the tested class method template, generate the tested class method
File.
Optionally, the test code generating unit is specifically used for:
Content in the tested class method file is replicated to the predeterminated position for pasting the tested class file, and
Content in the test class method file is replicated to the predeterminated position for pasting the test class file, generation is described to be tested
The interface testing code of interface.
The device of above-mentioned generation interface testing code can perform the generation interface testing that any embodiment of the present invention is provided
The method of code, possess the corresponding functional module of execution method and beneficial effect.The not technology of detailed description in the present embodiment
Details, reference can be made to the method for the generation interface testing code that any embodiment of the present invention provides.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
- A kind of 1. method for generating interface testing code, it is characterised in that methods described includes:Obtain the interface message of interface to be tested;Obtain the interface testing Code Template being pre-configured with for the interface to be tested and configuration file;According to the interface testing Code Template, the configuration file and the interface message, the interface to be tested is generated Interface testing code.
- 2. according to the method for claim 1, it is characterised in that according to the interface testing Code Template, the configuration text Part and the interface message, the interface testing code of the interface to be tested is generated, including:Tested class template is read from the interface testing Code Template, and reads tested class from the configuration file and matches somebody with somebody Put file;According to the tested class template and tested class configuration file, tested class file is generated;Tested class method template is read from the interface testing Code Template, and reads and is tested from the configuration file Class method configuration file;According to the tested class method template, tested class method configuration file and the interface message, tested class is generated Method file;The read test class template from the interface testing Code Template, and the read test class configuration text from the configuration file Part;According to the test class template and test class configuration file, generation test class file;The read test class method template from the interface testing Code Template, and the read test class side from the configuration file Method configuration file;According to the test class method template and test class method configuration file, test class method file is generated;According to the tested class file, tested class method file, test class file and test class method file, described in generation The interface testing code of interface to be tested.
- 3. according to the method for claim 2, it is characterised in that in the read test class from the interface testing Code Template Before template, in addition to:Abstract father is read from the interface testing Code Template and tests class template, and abstract father is read from the configuration file Test class configuration file;Class template and abstract father's test class configuration file are tested according to the abstract father, abstract father is generated and tests class file;According to the tested class file, tested class method file, test class file and test class method file, described in generation The interface testing code of interface to be tested, including:Class file, test class file and test class are tested according to the tested class file, tested class method file, abstract father Method file, generate the interface testing code of the interface to be tested.
- 4. according to the method for claim 2, it is characterised in that according to the tested class method template, tested class side Method configuration file and the interface message, tested class method file is generated, including:Occurrence corresponding to the key in the tested class method configuration file is obtained from the interface message;The correspondence position that the occurrence is write in the tested class method template, the generation tested class method text Part.
- 5. according to the method for claim 2, it is characterised in that according to the tested class file, tested class method text Part, test class file and test class method file, the interface testing code of the interface to be tested is generated, including:Content in the tested class method file is replicated and pastes the predeterminated position of the tested class file, and by institute State the content in test class method file and replicate the predeterminated position for pasting the test class file, generate the interface to be tested Interface testing code.
- 6. a kind of device for generating interface testing code, it is characterised in that described device includes:Interface message acquisition module, for obtaining the interface message of interface to be tested;Template configuration acquisition module, for obtaining the interface testing Code Template being pre-configured with for the interface to be tested and matching somebody with somebody Put file;Code generation module is tested, for according to the interface testing Code Template, the configuration file and the interface message, Generate the interface testing code of the interface to be tested.
- 7. device according to claim 6, it is characterised in that the test code generation module includes:Tested class template configuration reading unit, for reading tested class template from the interface testing Code Template, and Tested class configuration file is read from the configuration file;Tested class file generation unit, for tested according to the tested class template and tested class configuration file, generation Try class file;Tested class method template configuration reading unit, for reading tested class method from the interface testing Code Template Template, and tested class method configuration file is read from the configuration file;Tested class method file generating unit, for according to the tested class method template, tested class method configuration text Part and the interface message, generate tested class method file;Test class template configuration reading unit, for the read test class template from the interface testing Code Template, and from institute State read test class configuration file in configuration file;Test class file generating unit, for according to the test class template and test class configuration file, generation test class file;Test class method template configures reading unit, for the read test class method mould from the interface testing Code Template Plate, and the read test class method configuration file from the configuration file;Test class method file generating unit, for according to the test class method template and test class method configuration file, life Into test class method file;Code generating unit is tested, for according to the tested class file, tested class method file, test class file and survey Class method file is tried, generates the interface testing code of the interface to be tested.
- 8. device according to claim 7, it is characterised in that the test code generation module also includes:Abstract father's test class template configuration reading unit, in the read test class template from the interface testing Code Template Before, abstract father is read from the interface testing Code Template and tests class template, and reads and is abstracted from the configuration file Father's test class configuration file;Abstract father's test class file generating unit, for testing class template and abstract father's test class configuration text according to the abstract father Part, generate abstract father and test class file;The test code generating unit is specifically used for:Class file, test class file and test class are tested according to the tested class file, tested class method file, abstract father Method file, generate the interface testing code of the interface to be tested.
- 9. device according to claim 7, it is characterised in that the tested class method file generating unit is specifically used In:Occurrence corresponding to the key in the tested class method configuration file is obtained from the interface message;The correspondence position that the occurrence is write in the tested class method template, the generation tested class method text Part.
- 10. device according to claim 7, it is characterised in that the test code generating unit is specifically used for:Content in the tested class method file is replicated and pastes the predeterminated position of the tested class file, and by institute State the content in test class method file and replicate the predeterminated position for pasting the test class file, generate the interface to be tested Interface testing code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710638524.7A CN107402884A (en) | 2017-07-31 | 2017-07-31 | Generate the method and device of interface testing code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710638524.7A CN107402884A (en) | 2017-07-31 | 2017-07-31 | Generate the method and device of interface testing code |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107402884A true CN107402884A (en) | 2017-11-28 |
Family
ID=60401721
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710638524.7A Pending CN107402884A (en) | 2017-07-31 | 2017-07-31 | Generate the method and device of interface testing code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107402884A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107957892A (en) * | 2017-12-05 | 2018-04-24 | 北京百度网讯科技有限公司 | Method and apparatus for generating file |
CN108399125A (en) * | 2018-02-08 | 2018-08-14 | 深圳壹账通智能科技有限公司 | Automated testing method, device, computer equipment and storage medium |
CN108415832A (en) * | 2018-02-07 | 2018-08-17 | 平安科技(深圳)有限公司 | Automatic interface testing method, device, equipment and storage medium |
CN108446225A (en) * | 2018-03-06 | 2018-08-24 | 平安科技(深圳)有限公司 | Creating device, method and the computer readable storage medium of analog interface |
CN109298861A (en) * | 2018-10-19 | 2019-02-01 | 中国银行股份有限公司 | A kind of method and device automatically generating file according to interface document |
CN109446068A (en) * | 2018-09-26 | 2019-03-08 | 平安健康保险股份有限公司 | Interface test method, device, computer equipment and storage medium |
CN109710532A (en) * | 2018-12-28 | 2019-05-03 | 北京金山安全软件有限公司 | Test case management method and device and electronic equipment |
CN109710537A (en) * | 2019-01-02 | 2019-05-03 | 郑州云海信息技术有限公司 | A kind of intelligent automation test method and system |
CN109871314A (en) * | 2019-01-02 | 2019-06-11 | 石化盈科信息技术有限责任公司 | The automatic generation method of test script |
CN110858172A (en) * | 2018-08-23 | 2020-03-03 | 北京京东尚科信息技术有限公司 | Automatic test code generation method and device |
CN111240967A (en) * | 2020-01-03 | 2020-06-05 | 北京字节跳动网络技术有限公司 | Code generation method and device |
CN111614604A (en) * | 2019-02-26 | 2020-09-01 | 阿里巴巴集团控股有限公司 | Code file generation method and device |
CN111752826A (en) * | 2020-06-03 | 2020-10-09 | 五八有限公司 | Interface testing method and device, electronic equipment and storage medium |
CN112445712A (en) * | 2020-12-10 | 2021-03-05 | 北京信而泰科技股份有限公司 | Test source code generation method and device |
CN112947911A (en) * | 2021-04-26 | 2021-06-11 | 平安普惠企业管理有限公司 | Interface script generation method, device, equipment and storage medium |
CN112965912A (en) * | 2021-03-24 | 2021-06-15 | 云账户技术(天津)有限公司 | Interface test case generation method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060190771A1 (en) * | 2005-02-23 | 2006-08-24 | Microsoft Corporation | System and method for model based generation of application programming interface test code |
WO2014146542A1 (en) * | 2013-03-18 | 2014-09-25 | 中兴通讯股份有限公司 | Generation method and device for interface function of table entry operation and computer storage medium |
CN104809056A (en) * | 2014-01-27 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Interface testing code generating method and device |
CN106339312A (en) * | 2015-07-17 | 2017-01-18 | 腾讯科技(深圳)有限公司 | API (application programming interface) testing method and system |
CN106708723A (en) * | 2015-11-13 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Testing and verifying methods and apparatuses |
CN106933745A (en) * | 2017-03-30 | 2017-07-07 | 携程计算机技术(上海)有限公司 | WEB automatic interface testing methods and system |
-
2017
- 2017-07-31 CN CN201710638524.7A patent/CN107402884A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060190771A1 (en) * | 2005-02-23 | 2006-08-24 | Microsoft Corporation | System and method for model based generation of application programming interface test code |
WO2014146542A1 (en) * | 2013-03-18 | 2014-09-25 | 中兴通讯股份有限公司 | Generation method and device for interface function of table entry operation and computer storage medium |
CN104809056A (en) * | 2014-01-27 | 2015-07-29 | 阿里巴巴集团控股有限公司 | Interface testing code generating method and device |
CN106339312A (en) * | 2015-07-17 | 2017-01-18 | 腾讯科技(深圳)有限公司 | API (application programming interface) testing method and system |
CN106708723A (en) * | 2015-11-13 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Testing and verifying methods and apparatuses |
CN106933745A (en) * | 2017-03-30 | 2017-07-07 | 携程计算机技术(上海)有限公司 | WEB automatic interface testing methods and system |
Non-Patent Citations (1)
Title |
---|
沈建华: "《CC3200 Wi-Fi微控制器原理与实践 ——基于MiCO物联网操作系统》", 30 November 2015, 北京航空航天大学出版社 * |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107957892A (en) * | 2017-12-05 | 2018-04-24 | 北京百度网讯科技有限公司 | Method and apparatus for generating file |
CN108415832A (en) * | 2018-02-07 | 2018-08-17 | 平安科技(深圳)有限公司 | Automatic interface testing method, device, equipment and storage medium |
CN108399125B (en) * | 2018-02-08 | 2021-06-22 | 深圳壹账通智能科技有限公司 | Automatic testing method and device, computer equipment and storage medium |
CN108399125A (en) * | 2018-02-08 | 2018-08-14 | 深圳壹账通智能科技有限公司 | Automated testing method, device, computer equipment and storage medium |
CN108446225A (en) * | 2018-03-06 | 2018-08-24 | 平安科技(深圳)有限公司 | Creating device, method and the computer readable storage medium of analog interface |
CN110858172A (en) * | 2018-08-23 | 2020-03-03 | 北京京东尚科信息技术有限公司 | Automatic test code generation method and device |
CN109446068A (en) * | 2018-09-26 | 2019-03-08 | 平安健康保险股份有限公司 | Interface test method, device, computer equipment and storage medium |
CN109446068B (en) * | 2018-09-26 | 2024-04-05 | 平安健康保险股份有限公司 | Interface test method, device, computer equipment and storage medium |
CN109298861A (en) * | 2018-10-19 | 2019-02-01 | 中国银行股份有限公司 | A kind of method and device automatically generating file according to interface document |
CN109710532A (en) * | 2018-12-28 | 2019-05-03 | 北京金山安全软件有限公司 | Test case management method and device and electronic equipment |
CN109710537A (en) * | 2019-01-02 | 2019-05-03 | 郑州云海信息技术有限公司 | A kind of intelligent automation test method and system |
CN109871314A (en) * | 2019-01-02 | 2019-06-11 | 石化盈科信息技术有限责任公司 | The automatic generation method of test script |
CN111614604A (en) * | 2019-02-26 | 2020-09-01 | 阿里巴巴集团控股有限公司 | Code file generation method and device |
CN111614604B (en) * | 2019-02-26 | 2022-06-14 | 阿里巴巴集团控股有限公司 | Code file generation method and device |
CN111240967A (en) * | 2020-01-03 | 2020-06-05 | 北京字节跳动网络技术有限公司 | Code generation method and device |
CN111240967B (en) * | 2020-01-03 | 2023-09-15 | 北京字节跳动网络技术有限公司 | Code generation method and device |
CN111752826A (en) * | 2020-06-03 | 2020-10-09 | 五八有限公司 | Interface testing method and device, electronic equipment and storage medium |
CN112445712A (en) * | 2020-12-10 | 2021-03-05 | 北京信而泰科技股份有限公司 | Test source code generation method and device |
CN112445712B (en) * | 2020-12-10 | 2024-02-27 | 北京信而泰科技股份有限公司 | Method and device for generating test source code |
CN112965912A (en) * | 2021-03-24 | 2021-06-15 | 云账户技术(天津)有限公司 | Interface test case generation method and device and electronic equipment |
CN112965912B (en) * | 2021-03-24 | 2024-02-09 | 云账户技术(天津)有限公司 | Interface test case generation method and device and electronic equipment |
CN112947911A (en) * | 2021-04-26 | 2021-06-11 | 平安普惠企业管理有限公司 | Interface script generation method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107402884A (en) | Generate the method and device of interface testing code | |
CN102754072B (en) | Regulation user interface element | |
CN107608889B (en) | Method and system for automatically generating test script | |
WO2019095782A1 (en) | Data sample label processing method and apparatus | |
CN108959059B (en) | Test method and test platform | |
CN112327808A (en) | Automobile fault diagnosis method and system and automobile fault diagnosis instrument | |
US9189377B1 (en) | Automation testing using descriptive maps | |
CN108710569A (en) | Test cases generation method, data creation method, device, equipment and medium | |
CN110221969A (en) | A kind of page function test method and relevant apparatus | |
CN110020381A (en) | Method of calibration, device, equipment and computer storage medium based on configuration file | |
EP3762882B1 (en) | System and method for establishing common request processing | |
CN101526916B (en) | Method and system for using page-based object flow verification in regression test | |
US20060136864A1 (en) | Apparatus and method for product-line architecture description and verification | |
Van der Aalst | Trends in business process analysis | |
US20110060622A1 (en) | Multi-provider forms processing system with retry upon failure | |
CN104657274B (en) | software interface test method and device | |
CN110727580A (en) | Response data generation method, full-flow interface data processing method and related equipment | |
CN109308254A (en) | A kind of test method, device and test equipment | |
US20200293592A1 (en) | Methods and systems for browser extension used to generate relative xpath, absolute xpath and/or css selectors | |
CN104471530B (en) | Executable software code generation | |
CN109828750A (en) | Auto-configuration data buries method, apparatus, electronic equipment and storage medium a little | |
CN109426611A (en) | A kind of method for testing software and device | |
CN107357721B (en) | Method and device for testing system | |
CN113407327A (en) | Modeling task and data analysis method, device, electronic equipment and system | |
US9658945B2 (en) | Constructing test-centric model of application |
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: 20171128 |
|
RJ01 | Rejection of invention patent application after publication |