CN111026634A - Interface automation test system, method, device and storage medium - Google Patents

Interface automation test system, method, device and storage medium Download PDF

Info

Publication number
CN111026634A
CN111026634A CN201910924445.1A CN201910924445A CN111026634A CN 111026634 A CN111026634 A CN 111026634A CN 201910924445 A CN201910924445 A CN 201910924445A CN 111026634 A CN111026634 A CN 111026634A
Authority
CN
China
Prior art keywords
test
interface
request
module
testing
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
CN201910924445.1A
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.)
Zhuhai Suibian Technology Co ltd
Original Assignee
Zhuhai Suibian 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 Zhuhai Suibian Technology Co ltd filed Critical Zhuhai Suibian Technology Co ltd
Priority to CN201910924445.1A priority Critical patent/CN111026634A/en
Publication of CN111026634A publication Critical patent/CN111026634A/en
Pending legal-status Critical Current

Links

Images

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 embodiment of the invention discloses an interface automatic test system, a method, a device and a storage medium, wherein the system comprises: the self-service testing module is connected with at least one back-end service interface to be tested; the self-service test module is used for inputting test data into a page to be displayed at the front end; and receiving test data input by a tester through the test data input page and sending the test data to at least one pre-specified target back-end service interface so as to carry out self-service test on the at least one target back-end service interface. According to the technical scheme of the embodiment of the invention, the corresponding back-end service interface is flexibly called through the self-service testing module, and the visual testing data is sent to the target back-end service interface, so that the automatic testing of the interface is realized, meanwhile, the request page sent to the back-end service interface is convenient for testers to continue the back-end service interface testing, the continuous integration of the testing cases is avoided, the testing process is simplified, and the testing efficiency is improved.

Description

Interface automation test system, method, device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an interface automation test system, method and device and a storage medium.
Background
With the rapid development of network technology, more and more software starts to come into the sight of people, and software projects realize data communication through interfaces (Application interfaces), and services of the interfaces are increased along with the increase of traffic or the update of service types.
The interface needs to be tested in many projects, for example, before a new interface is developed and submitted, a smoke test needs to be performed to ensure that the system can normally perform the test; and after the new function test is completed or the Bug verification test is completed, a regression test is required, and it is ensured that no new problem is introduced after Bug modification is completed. And various tests of the interface are typically conducted through an automated test framework that establishes the interface.
The existing interface automatic test framework can only carry out various functional tests on the packaged test cases, and the packaged test cases are difficult to modify, so that the existing interface automatic test framework is difficult to flexibly select tested items, meanwhile, the existing test method is very complicated, the test cases need to be continuously integrated, and the test efficiency is low.
Disclosure of Invention
The embodiment of the invention provides an interface automatic test system, method, device and storage medium, which are used for sending a request page to a back-end service interface and facilitating the back-end service interface test.
In a first aspect, an embodiment of the present invention provides an interface automation test system, where the system includes:
the self-service testing module is connected with at least one back-end service interface to be tested;
the self-service test module is used for inputting test data into a page to be displayed at the front end; and receiving test data input by a tester through the test data input page and sending the test data to at least one pre-specified target back-end service interface so as to carry out self-service test on the at least one target back-end service interface.
In a second aspect, an embodiment of the present invention provides an interface automation test method, which is applied to an interface automation test system according to any embodiment of the present invention, and the method includes:
generating a page request according to a Web development framework of Spring MVC, and sending the page request to a controller;
after receiving the page request, the controller sends request processing information to a service layer;
the service layer sends request information to a target back-end service interface according to the received request processing information and receives response information returned by the target back-end service interface;
the service layer sends a request processing result to the controller according to the received response information;
and the controller renders a view according to the received request processing result and displays the view on the browser.
In a third aspect, an embodiment of the present invention provides an interface automation test apparatus, including:
the page request generating module is integrated in the browser and used for generating a page request according to a Web development framework of Spring MVC and sending the page request to the controller;
the processing information sending module is integrated in the controller and used for sending request processing information to the service layer after receiving the page request;
and the response information acquisition module is integrated in the service layer and used for sending request information to the target back-end service interface according to the received request processing information and receiving response information returned by the target back-end service interface.
And the processing result sending module is integrated in the service layer and used for sending the request processing result to the controller according to the received response information.
And the rendering view acquisition module is integrated in the controller and used for processing a result according to the received request.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the interface automation testing method according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the corresponding back-end service interface is flexibly called through the self-service testing module, and the visual testing data is sent to the target back-end service interface, so that the automatic testing of the interface is realized, meanwhile, the request page sent to the back-end service interface is convenient for testers to continue the back-end service interface testing, the continuous integration of the testing cases is avoided, the testing process is simplified, and the testing efficiency is improved.
Drawings
Fig. 1A is a block diagram of an interface automation test system according to an embodiment of the present invention;
fig. 1B is a block diagram of an interface automation test system according to an embodiment of the present invention;
fig. 1C is a block diagram of an interface automation test system according to an embodiment of the present invention;
fig. 1D is a block diagram of an interface automation test system according to an embodiment of the present invention;
fig. 2A is a flowchart of an interface automation test method according to a second embodiment of the present invention;
fig. 2B is a flowchart of an interface automation test method according to a second embodiment of the present invention;
fig. 3A is a flowchart of an interface automation test method according to a third embodiment of the present invention;
fig. 3B is a flowchart of an interface automation test method according to a third embodiment of the present invention;
fig. 3C is a flowchart of an interface automation test method provided in a first specific application scenario of the present invention;
fig. 4 is a block diagram of an interface automation test apparatus according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of an interface automation test apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1A is a block diagram of an interface automation test system according to an embodiment of the present invention, where the system includes: the self-service test module 100, the self-service test module 100 is connected with at least one back-end service interface 200 to be tested;
the self-service test module 100 is used for inputting test data into a page for front-end display; and receiving test data input by a tester through the test data input page, and sending the test data to at least one pre-specified target back-end service interface 200 so as to perform self-service test on the at least one target back-end service interface 200.
In the embodiment of the invention, the test data is forward case test data; specifically, the self-service test module 100 is configured to perform front-end display on a forward case test data initialization page, and meanwhile, the front-end page request data may also receive input operations of other testers and send the request data to a corresponding back-end target service, so that the sending request operation for providing the page is simplified, facilitated and clarified.
The back-end service interface 200 is a service interface provided by the tested system, the tested system obtains a test data input page request through the interface, and a tester sends the test data to the back-end service interface 200 corresponding to the tested system to realize the test request operation of the target server system, so that the self-service test, namely the test data can be input as required; the system under test, i.e. the target server system, may also be selected as desired.
Optionally, in the embodiment of the present invention, the interface automation test system is implemented based on Java language; the self-service test module 100 is built and generated by using a Spring MVC development framework.
The Spring framework is a container framework of lightweight Control Inversion (IoC) and Aspect Oriented Programming (AOP), and is suitable for most Java application development. Spring MVC (MVC is a general name of a Model, a View and a Controller) is one of the design models, and a Controller is used for separating a data Model from a View, namely decoupling the View from data, so that the data Model processed at the back end is irrelevant to the data format displayed by a front end View, and the data Model can display data in different modes corresponding to a plurality of views, and further, when the data Model or the View changes, the mutual influence can be reduced to the lowest.
As shown in fig. 1B, optionally, on the basis of the above technical solution, the self-service test module specifically includes: the system comprises a browser 101, a controller 102 and a Service layer 103 which are sequentially connected, wherein the Service layer 103, namely Service logic (Service class), is connected with at least one back-end Service interface 200 to be tested; the browser 101 is configured to send a test request of the backend service interface 200 through a page, and display a rendered page returned by the controller 102; the controller 102 is configured to receive a test request sent by the browser 102, and distribute a request process to the service layer 103; receiving a request processing result returned by the business layer 103, and rendering a view to display a page in the browser 101; the service layer 103 is configured to receive request processing distributed by the controller 102, send request information to the backend service interface 200, receive response information returned by the backend service interface 200, and send a request processing result to the controller 102.
As shown in fig. 1C, optionally, in the embodiment of the present invention, the interface automation test system further includes: project management module 300 and version management module 400; the project management module 300 is used for managing development specifications, use tools and Jar data packages; the version management module 400 is used for version management of project codes; the project management module 300 is a project management tool Maven, and the version management module 400 is a version management tool Git.
Maven is a project management tool based on Java, can construct and manage projects through simple description information, and is used for unifying development specifications and use tools of an interface automation test system and unifying Jar data packets used in the development of the management interface automation test system; the Maven comprises a Project Object Model (Project Object Model), a set of standards, a Project Lifecycle (Project Lifecycle), and a dependency management System (dependency management System); the dependency needed by Maven comprises Testng, Retrofit, Fastjson, Okhttp and the like; fastjson is a data packet for developing Java language, and can realize the conversion between a Json object and a JavaBean (a reusable component suitable for Java language) object, namely serializing the JavaBean into a Json character string and deserializing the Json character string into the JavaBean; okhttp is a lightweight network access framework for handling network requests, supporting both synchronous and asynchronous requests. In the embodiment of the invention, the interface automatic Test system can realize multi-environment switching (for example, switching under Dev, Test, Product and other environments) based on Maven; specifically, a Build node of a Pom.xml file is configured at first; xml documents mainly describe the Maven coordinates, dependencies, rules that developers need to follow, defect management, organization, copyright, and other factors related to projects of the projects; configuring Properties environment in a Pom.xml file to realize multi-environment matching parameter switching; specifically, an env. The interface requests database information such as Host, Mongodb, Mysql and the like in different environments; then creating test. Wherein the above files are configuration files in the Test, Dev and Product environments, respectively.
Git is an open-source distributed version control tool, is used for version management of software projects, forms a change log every time a project code is changed, and effectively and quickly realizes the version management of the project code.
As shown in fig. 1D, optionally, in the embodiment of the present invention, the system further includes: a continuous integration test module 500, wherein the continuous integration test module 500 is connected to the at least one backend service interface 200 to be tested; the continuous integration test module 500 is configured to send the packaged test case to a pre-specified target backend service interface 200, so as to perform an integrated test on the target backend service interface 200. Specifically, the continuous integration test module 500 includes: a test operation unit 501, configured to execute a test case and generate a test report; a test driver unit 502 for generating a network request; the test integration unit 503 is configured to edit and package a test case, and send a test report and a notification message to ensure that each service scenario meets an expected requirement target; the test operation unit 501 is a test framework TestNG, the test driving unit 502 is a network request framework Retrofit2, and the test integration unit 503 is a continuous test tool Jenkins.
The TestNG is an open-source automatic test framework, uses Java and object-oriented functions, has independent test code during compiling and runtime configuration information compared with other test frameworks, and supports multi-thread testing. Specifically, the TestNG needs to create a storage path for storing a test set when in use, and creates corresponding content folders according to test contents, wherein each content folder is used as an independent unit, and a test set of the unit can be arranged under each unit; meanwhile, in order to conveniently enable all the interfaces to uniformly run the test, a test case set including all the test cases needs to be established. The TestNG Test case set needs to meet the requirement of the Maven engineering structure, and the Test case class established under the corresponding directory has a name meeting the specification of Maven during unit Test, that is, the class name ends with Test, for example: java; and finally, establishing a corresponding module packet according to the unit classification.
Retrofit is a network request framework, wherein Retrofit2 is a 2.0 version of the Retrofit network request framework, and is used for translating a Java interface into an Http (hypertext transfer protocol) request in a dynamic proxy manner and sending the request through OkHttp; retrofit2 may define the Interface by the keyword "Interface" to separate the Http Interface definition from the request implementation.
Jenkins is a continuous integration tool developed based on Java, is used for continuously and automatically constructing test software projects, and is particularly suitable for monitoring continuous and repeated work.
According to the technical scheme of the embodiment of the invention, the corresponding back-end service interface is flexibly called through the self-service testing module, and the visual testing data is sent to the target back-end service interface, so that the automatic testing of the interface is realized, meanwhile, the request page sent to the back-end service interface is convenient for testers to continue the back-end service interface testing, the continuous integration of the testing cases is avoided, the testing process is simplified, and the testing efficiency is improved.
Example two
Fig. 2A and 2B are flowcharts of an interface automation test method according to a second embodiment of the present invention, where this embodiment is applicable to a case where a Spring MVC development framework is used to send a request page to a backend service interface, and this method may be executed by an interface automation test apparatus according to a fourth embodiment of the present invention, where the apparatus may be implemented in software and/or hardware, and may generally be integrated in an interface automation test system according to any embodiment of the present invention, and may typically be integrated in a terminal device for interface automation test in a program code manner, where the method according to the second embodiment of the present invention specifically includes the following steps:
s210, generating a page request according to a Web development framework of Spring MVC, and sending the page request to a controller.
According to the Web development framework of the Spring MVC, a JSP (Java Server Pages) request is generated, and the Spring MVC can send the request to a corresponding controller according to a request path.
And S220, after receiving the page request, the controller sends request processing information to a service layer.
After receiving the JSP request, the controller calls a Service class, namely a Service layer, so as to process the request.
S230, the service layer sends request information to a target back-end service interface according to the received request processing information and receives response information returned by the target back-end service interface.
After receiving the request information, the back-end service interface tests in the corresponding system to be tested, and returns the test result to the service layer through the back-end service interface in a manner of response information.
S240, the service layer sends a request processing result to the controller according to the received response information.
And S250, rendering a view and displaying the view on the browser by the controller according to the received request processing result.
The controller converts the control result into a Model (Model) and View object and renders the object to be displayed on the browser.
According to the technical scheme of the embodiment of the invention, the JSP page is generated through the Spring MVC development framework, and the visual test data is sent to the target back-end service interface, so that the automatic test of the interface is realized, meanwhile, the request page is sent to the back-end service interface, the tester can conveniently continue to carry out the test of the back-end service interface, the continuous integration test case is avoided, the test process is simplified, and the test efficiency is improved.
EXAMPLE III
Fig. 3A and 3B are flowcharts of an interface automated testing method according to a third embodiment of the present invention, where this embodiment is applicable to a case where TestNG and Jenkins are used to send a test request to a backend service interface, and this method may be executed by an interface automated testing apparatus according to a fifth embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and may generally be integrated in an interface automated testing system according to any embodiment of the present invention, and may typically be integrated in a terminal device for interface automated testing by using a program code, where the method according to the third embodiment of the present invention specifically includes the following steps:
and S310, continuously integrating configuration files TestNG.
Xml files after integration can select test scripts which need to be executed.
And S320, acquiring a test case required by the interface automation test from the TestNG.
S330, the TestNG sends the obtained test case to a service layer of a Spring MVC development framework.
S340, the service layer of the Spring MVC development framework obtains a request data source from an Excel file according to the received test case, and sends a test request to a back-end service interface according to the test case and the request data source.
S350, the service layer of the Spring MVC development framework receives response information which is sent by a back-end service interface and matched with the test request.
After receiving the test request sent by the service layer of Spring MVC, the back-end service interface tests in the corresponding tested system according to the information in the test case, and returns the test result to the service layer of Spring MVC.
According to the technical scheme of the embodiment of the invention, the continuous integration of the test case is realized through the continuous test tool Jenkins, and the automatic test framework TestNG utilizes the communication between the business layer of Spring MVC and the rear-end service interface, so that the continuous integration test of the interface is realized, the test frequency of the interface is improved, and the obtained test effect is closer to the actual condition of the interface.
Specific application scenario one
Fig. 3C is a flowchart of an interface automated testing method provided on the basis of the above technical solution in a specific application scenario of the present invention, in which an e-commerce platform in a Customer-to-Manufacturer (C2M) mode is used to test a refund request of a customized order by using the interface automated testing method; the method specifically comprises the following steps:
and S410, after the front-end page obtains the customized order refund request, sending the customized order refund request to the controller.
And S420, the controller transmits the customized order refund request to a business layer.
S430, the business layer calls a corresponding back-end service interface according to the request parameters in the customized order refund request, and sends the customized order refund request to the back-end service interface.
And S440, the back-end server interface returns the matched data information to the service layer.
And S450, the service layer receives the returned data information and then transmits the returned data information to the controller.
And S460, the controller transmits the data information returned by the service layer to a front-end page for displaying.
The technical scheme provided by the specific application scene of the invention realizes the test of the refund request of the customized order, improves the efficiency of the customized business test, and simultaneously facilitates the testers to continue the test of the back-end service interface by the request page sent to the back-end service interface, thereby avoiding the continuous integration of test cases, simplifying the test process and improving the test efficiency.
Example four
Fig. 4 is an interface automation test apparatus provided in the fourth embodiment of the present invention, which specifically includes: a page request generating module 410, a processing information transmitting module 420, a response information acquiring module 430, a processing result transmitting module 440, and a rendering view acquiring module 450.
The page request generating module 410 is integrated in a browser and used for generating a page request according to a Web development framework of Spring MVC and sending the page request to a controller;
a processing information sending module 420, integrated in the controller, for sending request processing information to the service layer after receiving the page request;
the response information obtaining module 430 is integrated in the service layer, and configured to send request information to the target backend service interface according to the received request processing information, and receive response information returned by the target backend service interface.
And a processing result sending module 440, integrated in the service layer, configured to send the request processing result to the controller according to the received response information.
And a rendering view acquisition module 450, integrated in the controller, for processing the result according to the received request.
According to the technical scheme of the embodiment of the invention, the JSP page is generated through the Spring MVC development framework, and the visual test data is sent to the target back-end service interface, so that the automatic test of the interface is realized, meanwhile, the request page is sent to the back-end service interface, the tester can conveniently continue to carry out the test of the back-end service interface, the continuous integration test case is avoided, the test process is simplified, and the test efficiency is improved.
The device can execute the interface automatic test method provided by the second embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail in this embodiment, reference may be made to the method provided in the second embodiment of the present invention.
EXAMPLE five
Fig. 5 is an interface automation test apparatus provided in the fifth embodiment of the present invention, which specifically includes: a continuous integration module 510, a test case acquisition module 520, a test case sending module 530, a test request sending module 540, and a response information acquisition module 550.
And the continuous integration module 510 is integrated in Jenkins and is used for continuously integrating the configuration file TestNG.
And the test case acquisition module 520 is integrated in the TestNG and is used for acquiring the test cases required by the interface automation test from the TestNG.
And the test case sending module 530 is integrated in the TestNG and is used for sending the obtained test case to a service layer of a Spring MVC development framework.
And the test request sending module 540 is integrated in a service layer of a Spring MVC development framework, and is configured to obtain a request data source from an Excel file according to the received test case, and send a test request to a backend service interface according to the test case and the request data source.
The response information obtaining module 550 is integrated in the service layer of the Spring MVC development framework, and is configured to receive response information that is sent by the back-end service interface and matches the test request.
According to the technical scheme of the embodiment of the invention, the continuous integration of the test case is realized through the continuous test tool Jenkins, and the automatic test framework TestNG utilizes the communication between the business layer of Spring MVC and the rear-end service interface, so that the continuous integration test of the interface is realized, the test frequency of the interface is improved, and the obtained test effect is closer to the actual condition of the interface.
The device can execute the interface automatic test method provided by the third embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided in the third embodiment of the present invention.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for automated testing of an interface, and the method includes:
generating a page request according to a Web development framework of Spring MVC, and sending the page request to a controller;
after receiving the page request, the controller sends request processing information to a service layer;
the service layer sends request information to a target back-end service interface according to the received request processing information and receives response information returned by the target back-end service interface;
the service layer sends a request processing result to the controller according to the received response information;
and the controller renders a view according to the received request processing result and displays the view on the browser.
Alternatively, the method comprises:
xml of a configuration file of TestNG is continuously integrated by Jenkins;
the testNG obtains a test case required by the interface automation test from a testNG.xml file;
the TestNG sends the obtained test case to a service layer of a Spring MVC development framework;
the service layer of the Spring MVC development framework acquires a request data source from an Excel file according to the received test case, and sends a test request to a back-end service interface according to the test case and the request data source;
and the service layer of the Spring MVC development framework receives response information which is sent by a back-end service interface and matched with the test request.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the interface automation test method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the interface automation test apparatus, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An interface automated test system, comprising: the self-service testing module is connected with at least one back-end service interface to be tested;
the self-service test module is used for inputting test data into a page to be displayed at the front end; and receiving test data input by a tester through the test data input page and sending the test data to at least one pre-specified target back-end service interface so as to carry out self-service test on the at least one target back-end service interface.
2. The interface automation test system of claim 1 wherein the interface automation test system is implemented based on the Java language.
3. The interface automation test system of claim 2 wherein the self-service test module is generated using a Spring MVC development framework build.
4. The interface automated testing system of claim 3, wherein the self-service testing module specifically comprises: the system comprises a browser, a controller and a service layer which are sequentially connected, wherein the service layer is connected with at least one back-end service interface to be tested;
the browser is used for sending a test request of a back-end service interface through a page and displaying a rendered page returned by the controller;
the controller is used for receiving a test request sent by the browser, distributing request processing to the service layer, receiving a request processing result returned by the service layer, and rendering a view to display a page in the browser;
and the service layer is used for receiving the request processing distributed by the controller, sending request information to the back-end service interface, receiving response information returned by the back-end service interface, and sending a request processing result to the controller.
5. The interface automation test system of claim 4, the interface automation test system further comprising: a project management module and a version management module;
the project management module is used for managing development specifications, using tools and Jar data packages;
the version management module is used for managing the version of the project code;
the project management module is a project management tool Maven, and the version management module is a version management tool Git.
6. The interface automation test system of any of claims 1-5 further comprising: the continuous integration testing module is connected with the at least one back-end service interface to be tested;
and the continuous integration test module is used for sending the packaged test case to a pre-specified target back-end service interface so as to carry out integrated test on the target back-end service interface.
7. The interface automation test system of claim 6 wherein the continuous integration test module comprises:
the test operation unit is used for executing the test case and generating a test report;
the test driving unit is used for generating a network request;
the test integration unit is used for editing and packaging the test cases and sending test reports and notification messages;
the testing and running unit is a testing framework TestNG, the testing driving unit is a network request framework Retrofit2, and the testing integrated unit is a continuous testing tool Jenkins.
8. An interface automatic test method applied to the interface automatic test system according to any one of claims 1 to 7, comprising:
generating a page request according to a Web development framework of Spring MVC, and sending the page request to a controller;
after receiving the page request, the controller sends request processing information to a service layer;
the service layer sends request information to a target back-end service interface according to the received request processing information and receives response information returned by the target back-end service interface;
the service layer sends a request processing result to the controller according to the received response information;
and the controller renders a view according to the received request processing result and displays the view on the browser.
9. The utility model provides an automatic testing arrangement of interface, builds in Spring MVC development framework, its characterized in that includes:
the page request generating module is integrated in the browser and used for generating a page request according to a Web development framework of Spring MVC and sending the page request to the controller;
the processing information sending module is integrated in the controller and used for sending request processing information to the service layer after receiving the page request;
and the response information acquisition module is integrated in the service layer and used for sending request information to the target back-end service interface according to the received request processing information and receiving response information returned by the target back-end service interface.
And the processing result sending module is integrated in the service layer and used for sending the request processing result to the controller according to the received response information.
And the rendering view acquisition module is integrated in the controller and used for processing a result according to the received request.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for automated testing of an interface of claim 8.
CN201910924445.1A 2019-09-27 2019-09-27 Interface automation test system, method, device and storage medium Pending CN111026634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910924445.1A CN111026634A (en) 2019-09-27 2019-09-27 Interface automation test system, method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910924445.1A CN111026634A (en) 2019-09-27 2019-09-27 Interface automation test system, method, device and storage medium

Publications (1)

Publication Number Publication Date
CN111026634A true CN111026634A (en) 2020-04-17

Family

ID=70199569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910924445.1A Pending CN111026634A (en) 2019-09-27 2019-09-27 Interface automation test system, method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111026634A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552464A (en) * 2020-04-27 2020-08-18 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111752826A (en) * 2020-06-03 2020-10-09 五八有限公司 Interface testing method and device, electronic equipment and storage medium
CN111984534A (en) * 2020-08-07 2020-11-24 苏州浪潮智能科技有限公司 Arm64 architecture-based front-end UI automatic testing method and device
CN112181852A (en) * 2020-10-28 2021-01-05 深圳市万睿智能科技有限公司 Interface automatic testing method and device, computer equipment and storage medium
CN113722691A (en) * 2021-09-14 2021-11-30 京东科技控股股份有限公司 Method and device for realizing self-service access of merchant data
CN115687161A (en) * 2022-12-30 2023-02-03 云筑信息科技(成都)有限公司 Method for automatically generating interface test case based on scanning maven warehouse
CN115827480A (en) * 2022-12-20 2023-03-21 中船重工奥蓝托无锡软件技术有限公司 Automatic testing method, device and system for ship performance prediction APP
CN111552464B (en) * 2020-04-27 2024-05-31 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834595A (en) * 2015-02-15 2015-08-12 网易(杭州)网络有限公司 Visual automatic test method and system
CN105068926A (en) * 2015-08-04 2015-11-18 腾讯科技(深圳)有限公司 Program test method and device thereof
JP2017194892A (en) * 2016-04-22 2017-10-26 日本電信電話株式会社 Test case production program and test case production method
CN109582569A (en) * 2018-11-14 2019-04-05 深圳市佰仟金融服务有限公司 Lending platforms test method, device, terminal device and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834595A (en) * 2015-02-15 2015-08-12 网易(杭州)网络有限公司 Visual automatic test method and system
CN105068926A (en) * 2015-08-04 2015-11-18 腾讯科技(深圳)有限公司 Program test method and device thereof
JP2017194892A (en) * 2016-04-22 2017-10-26 日本電信電話株式会社 Test case production program and test case production method
CN109582569A (en) * 2018-11-14 2019-04-05 深圳市佰仟金融服务有限公司 Lending platforms test method, device, terminal device and readable storage medium storing program for executing

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552464A (en) * 2020-04-27 2020-08-18 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111552464B (en) * 2020-04-27 2024-05-31 上海鸿翼软件技术股份有限公司 SDK generation method, device, equipment and medium
CN111752826A (en) * 2020-06-03 2020-10-09 五八有限公司 Interface testing method and device, electronic equipment and storage medium
CN111984534A (en) * 2020-08-07 2020-11-24 苏州浪潮智能科技有限公司 Arm64 architecture-based front-end UI automatic testing method and device
CN111984534B (en) * 2020-08-07 2022-06-14 苏州浪潮智能科技有限公司 Arm64 architecture-based front-end UI automatic testing method and device
CN112181852A (en) * 2020-10-28 2021-01-05 深圳市万睿智能科技有限公司 Interface automatic testing method and device, computer equipment and storage medium
CN113722691A (en) * 2021-09-14 2021-11-30 京东科技控股股份有限公司 Method and device for realizing self-service access of merchant data
CN115827480A (en) * 2022-12-20 2023-03-21 中船重工奥蓝托无锡软件技术有限公司 Automatic testing method, device and system for ship performance prediction APP
CN115687161A (en) * 2022-12-30 2023-02-03 云筑信息科技(成都)有限公司 Method for automatically generating interface test case based on scanning maven warehouse

Similar Documents

Publication Publication Date Title
CN111026634A (en) Interface automation test system, method, device and storage medium
CN111737032B (en) Subprogram running method and device based on microkernel system and electronic equipment
CN109933522B (en) Test method, test system and storage medium for automatic case
CN106997298B (en) Application resource acquisition method and device
CN105872083A (en) Method and system supporting server access by different types of clients as well as server
US20090089039A1 (en) System and method of emulating functionality of a web service
US10185644B2 (en) Service implementation based debugger for service oriented architecture projects
CN113778848A (en) Test code generation method, device, computer system and medium
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
Rattanapoka et al. An MQTT-based IoT cloud platform with flow design by Node-RED
CN113268245A (en) Code analysis method, device and storage medium
CN108694120B (en) Method and device for testing service component
CN111767229A (en) Performance test method, device and equipment
CN111736923A (en) Data processing method and device, electronic equipment and readable storage medium
CN106484488B (en) Integrated cloud Compilation Method and system
US20100125827A1 (en) Developing software code using parameterized annotations
CN113495723B (en) Method, device and storage medium for calling functional component
CN110874278A (en) Embedding method of external system, workflow system, device and storage medium
CN116069303A (en) Code generation method, device, equipment and storage medium
CN113342353B (en) Mock data generation method and device
CN111126931B (en) Node generation method and device based on data processing and computer equipment
CN113505036B (en) Application monitoring method, client and server
CN113656110B (en) Page loading method and device for front-end updating free cache
CN111258648B (en) Interactive control method, device, computer system and medium for host system
US20230021412A1 (en) Techniques for implementing container-based software services

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
CB02 Change of applicant information

Address after: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province

Applicant after: Zhuhai necessary Industrial Technology Co.,Ltd.

Address before: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI SUIBIAN TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20200417

RJ01 Rejection of invention patent application after publication