CN112486797A - Interface test method and device - Google Patents

Interface test method and device Download PDF

Info

Publication number
CN112486797A
CN112486797A CN201910858181.4A CN201910858181A CN112486797A CN 112486797 A CN112486797 A CN 112486797A CN 201910858181 A CN201910858181 A CN 201910858181A CN 112486797 A CN112486797 A CN 112486797A
Authority
CN
China
Prior art keywords
interface
test
service
user
control
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.)
Granted
Application number
CN201910858181.4A
Other languages
Chinese (zh)
Other versions
CN112486797B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910858181.4A priority Critical patent/CN112486797B/en
Publication of CN112486797A publication Critical patent/CN112486797A/en
Application granted granted Critical
Publication of CN112486797B publication Critical patent/CN112486797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3664Environments for testing or debugging software
    • 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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an interface test method and device, which can display an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to a service; displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control; displaying the test data content configured by the user through the interface test configuration page; when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content; and displaying the test result of the interface. According to the scheme, the data is configured through the visual page and then tested, so that the time required by operation is effectively shortened, and the testing efficiency is effectively improved.

Description

Interface test method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an interface testing method and apparatus.
Background
The interface test is used for checking the interfaces of all the components and testing the functions of the system interfaces by simulating the application scenes of upper-layer applications or system upper-layer calling interfaces.
At present, when an interface test is performed, the interface test is generally performed through test tool configuration data, for example, the interface test is generally performed through command line window configuration data, however, since the command line window is inconvenient to operate, a large amount of time is required to be consumed when the interface test is used, and the efficiency of the interface test is low.
Disclosure of Invention
The embodiment of the application provides an interface testing method and device, which can improve the efficiency of interface testing.
The embodiment of the application provides an interface testing method, which comprises the following steps:
displaying an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to a service;
displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control;
displaying the test data content configured by the user through the interface test configuration page;
when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content;
and displaying the test result of the interface.
Correspondingly, the embodiment of the present application further provides an interface testing apparatus, including:
the management unit is used for displaying an interface test management page, and the interface test management page comprises a visual service unit corresponding to a service;
the display unit is used for displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, and the interface test configuration page comprises a test control;
the configuration unit is used for displaying the test data content configured by the user through the interface test configuration page;
the testing unit is used for testing the interface based on the testing data content when the triggering operation of the user for the testing control is detected;
and the result unit is used for displaying the test result of the interface.
Optionally, in some embodiments, the visualization service unit includes a visualization service, and the display unit includes:
the service triggering subunit is configured to, when a triggering operation of a user for the visualization service is detected, display an interface management page of the visualization service, where the interface management page includes an interface list of the service, and the interface list includes an interface of the service and a configuration triggering control corresponding to the interface;
and the service display subunit is used for displaying an interface test configuration page corresponding to the interface of the service when detecting that the user operates the configuration trigger control.
Optionally, in some embodiments, the interface test management page includes a service addition control and a service list, and the service triggering subunit includes:
the service adding module is used for adding the visual service generated by the service protocol file uploaded by the user to the service list when the adding operation of the user for the service adding control is detected;
the service triggering subunit is specifically configured to display a service list on an interface test management page, where the service list includes newly added visual services; when the triggering operation of a user for the newly added visual service is detected, displaying an interface management page of the newly added visual service, wherein the interface management page comprises an interface list of the newly added service, and the interface list comprises an interface of the newly added service and a configuration triggering control corresponding to the interface;
the service display subunit is specifically configured to display an interface test configuration page corresponding to the interface to which the service is newly added when detecting that the user triggers the operation of the control for the configuration.
Optionally, in some embodiments, the interface test management page includes a service name input control and a service search control, and the service triggering subunit includes:
the service searching module is used for displaying the service name input by the user when the input operation of the user aiming at the service name input control is detected; displaying a target visual service corresponding to the service name on the interface test management page based on the triggering operation of the user for the service searching control;
the service triggering subunit is specifically configured to, when a triggering operation of a user for the target visualization service is detected, display an interface management page of the target visualization service, where the interface management page includes an interface list of the target service, and the interface list includes an interface of the target service and a configuration triggering control corresponding to the interface;
the service display subunit is specifically configured to display an interface test configuration page corresponding to the interface of the target service when detecting that the user triggers the operation of the control for the configuration.
Optionally, in some embodiments, the visualization service unit includes a visualization interface corresponding to an interface of a service, and the display unit includes an interface display subunit;
and the interface display subunit is used for displaying an interface test configuration page corresponding to the interface of the service when the triggering operation of the user for the visual interface is detected.
Optionally, in some embodiments, the interface test configuration page includes a test case list and a content configuration control, and the configuration unit includes:
the interface test configuration page is used for displaying a test case list, and the test case list comprises visual test cases;
the configuration unit is specifically configured to display test data content corresponding to the visual test case configured by the user through the content configuration control when the trigger operation of the user for the visual test case is detected.
Optionally, in some embodiments, the interface test configuration page includes a use case input control, a use case storage control, and a content configuration control; the configuration unit includes:
the adding subunit is used for displaying the test case input by the user based on the input operation of the user aiming at the case input control; adding a visual test case generated by the test case input by the user to a test case list based on the trigger operation of the user for the case saving control;
the case display subunit is specifically configured to display a test case list on an interface test configuration page, where the test case list includes newly added visual test cases;
the configuration unit is specifically configured to: and when the operation of the user for the newly added visual test case is detected, displaying the test data content corresponding to the newly added visual test case, which is configured by the user through the content configuration control.
Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored, and when executed by a processor, the instructions implement the steps in the interface testing method provided in any of the embodiments of the present application.
Correspondingly, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the steps in the interface testing method provided in any of the embodiments of the present application.
The method and the device for displaying the interface test management page can display the interface test management page, wherein the interface test management page comprises a visual service unit corresponding to the service; displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control; displaying the test data content configured by the user through the interface test configuration page; when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content; and displaying the test result of the interface. According to the scheme, the data is configured through the visual page and then tested, so that the time required by operation is effectively shortened, and the testing efficiency is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of an interface testing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an interface test management page provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface management page provided by an embodiment of the present application;
FIG. 4 is another schematic diagram of an interface test management page provided by an embodiment of the present application;
FIG. 5 is another schematic diagram of an interface test management page provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of an interface test configuration page provided by an embodiment of the present application;
FIG. 7 is another schematic diagram of an interface test configuration page provided by an embodiment of the present application;
FIG. 8 is another schematic diagram of an interface test configuration page provided by an embodiment of the present application;
FIG. 9 is another schematic diagram of an interface test configuration page provided by an embodiment of the present application;
FIG. 10 is a schematic flow chart illustrating an interface testing method according to an embodiment of the present application;
FIG. 11 is a system architecture diagram of an interface test tool provided by an embodiment of the present application;
FIG. 12 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present application;
FIG. 13 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present disclosure;
FIG. 14 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present disclosure;
FIG. 15 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present application;
FIG. 16 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present application;
FIG. 17 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present application;
FIG. 18 is a schematic structural diagram of an interface testing apparatus according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an interface testing method and device. The interface testing device may be specifically integrated in a computer device, and the computer device may include a mobile phone, a tablet computer, a notebook computer, and the like.
For example, taking as an example that the interface test method is specifically integrated in a computer device, the computer device displays an interface test management page, where the interface test management page includes a visual service unit corresponding to a service; then, based on the operation of a user for the visual service unit, displaying an interface test configuration page corresponding to an interface of the service, wherein the interface test configuration page comprises a test control; then, displaying the test data content configured by the user through the interface test configuration page; then, when the triggering operation of the user for the test control is detected, testing the interface based on the test data content; and then, displaying the test result of the interface.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In an embodiment, the present application will be described from the perspective of an interface testing apparatus, where the interface testing apparatus may be specifically integrated in a computer device, and the computer device may include a mobile phone, a tablet computer, a notebook computer, and the like.
As shown in fig. 1, an interface testing method is provided, where the interface testing method may be executed by a processor in a computer device, and the specific flow may be as follows:
101. and displaying an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to the service.
The service may be a background service module, and the background service module is configured to support the operation of a foreground service, for example, the service may be a background payment service module, and the background payment module is configured to support the operation of a foreground payment service, and may be specifically set according to actual requirements.
The interface test management page is a page for a user to manage a service to be tested, for example, in some embodiments, the user may search for the service to be tested through the interface test management page, and the like.
For example, in some embodiments, in order to perform unified management on interface test items, the interface test management page may be maintained by the interface test system, a user may log in a user account through the interface test system log-in page, and after logging in the user account, the interface test management page managed by the user may be triggered and displayed; the interface test system may include services managed by each user, and the user may obtain services uploaded by other users and corresponding service information through the interface test system.
The visualization service unit can be a control which is operated by a user to trigger and display a corresponding page of the visualization service unit, and the visualization service unit can be in various expression forms, for example, buttons, icons, hyperlinks and the like can be provided, for example, the visualization service unit can be in a hyperlink form, and can be specifically set according to actual requirements.
102. And displaying an interface test configuration page corresponding to the interface of the service based on the operation of the user on the visual service unit, wherein the interface test configuration page comprises a test control.
The Interface may be an Application Programming Interface (API) of the background service module, for example, the Interface may be an Interface of the background payment service module, and the like, and may be specifically set according to actual requirements.
The interface test configuration page is a page for configuring information required by the interface test for the user, for example, in some embodiments, the user may configure test parameters required to be used when performing the interface test through the interface test configuration page, and the like, and may be specifically set according to actual requirements.
For example, in some embodiments, the visualization service unit includes a visualization service, and the step "display an interface test configuration page corresponding to an interface of the service based on an operation of the user on the visualization service" may specifically include:
when the triggering operation of a user for the visual service is detected, displaying an interface management page of the visual service, wherein the interface management page comprises an interface list of the service, and the interface list comprises an interface of the service and a configuration triggering control corresponding to the interface;
and when the operation of the user for the configuration trigger control is detected, displaying an interface test configuration page corresponding to the interface of the service.
The visualization service is a control for a user to operate to trigger an interface management page corresponding to the display service, and the presentation form of the visualization service may be various, for example, a button, a hyperlink, and the like.
The interface management page is a page of an interface to be tested for the user management service, for example, in some embodiments, the user may select an interface to be tested through the interface management page, and the like.
The configuration triggering control is a control for a user to operate to trigger and display an interface test configuration page corresponding to the interface, and the presentation form of the configuration triggering control can be various, for example, the configuration triggering control can be in the form of a button, an icon and the like, and can be specifically set according to actual requirements.
For example, referring to FIG. 2, the interface test management page includes a visualization service unit, wherein the visualization service unit includes a hyperlink for a visualization service, service A1. The user can click on the hyperlink of the service a1 and the like to trigger the display of the interface management page of the visual service, as shown in fig. 3, the interface management page includes the interface list of the service, the interface list includes the interfaces of the service, i.e., "interface 1 of service a 1", "interface 2 of service a 1", … …; the configuration trigger control corresponding to interface 1 of the service a1 is an interface test button, and the user can click the interface test button to trigger and display an interface test configuration page corresponding to the interface of the service.
In some embodiments, in order to test more services, the interface test management page may include a service addition control and a service list, for example, a user adds a new service to the service list through the service addition control, and when an operation of the user on an interface of the new service is detected, an interface test configuration page corresponding to the interface of the new service is displayed, which may specifically include:
when the adding operation of the user for the service adding control is detected, adding the visual service generated by the service protocol file uploaded by the user to the service list;
specifically, the step "displaying an interface test configuration page corresponding to an interface of the service based on an operation of the user on the visualization service unit" may include:
displaying a service list on an interface test management page, wherein the service list comprises newly added visual services;
when the triggering operation of a user for the newly added visual service is detected, displaying an interface management page of the newly added visual service, wherein the interface management page comprises an interface list of the newly added service, and the interface list comprises an interface of the newly added service and a configuration triggering control corresponding to the interface;
and when the operation of the user for the configuration trigger control is detected, displaying an interface test configuration page corresponding to the interface of the newly added service.
The service adding control is used for enabling a user to upload a service protocol file to generate visual service, the generated visual service is added to the control of the service list, the display form of the control can be various, for example, the control can be in the form of buttons, icons and the like, and the control can be specifically set according to actual requirements.
When an adding operation of the user for the service adding control is detected, there may be a plurality of ways of adding the visualization service generated by the service protocol file uploaded by the user to the service list, for example, when the adding operation of the user for the service adding control is detected, a service protocol file uploading page is displayed, the visualization service is generated based on the service protocol file uploaded by the user, and the generated visualization service is added to the service list, where the step "when the adding operation of the user for the service adding control is detected, the visualization service generated by the service protocol file uploaded by the user is added to the service list" may specifically include:
when the adding operation of a user for the service adding control is detected, a service protocol file uploading page is displayed, wherein the service protocol file uploading page comprises a plurality of service protocol files to be added;
based on the file selection operation of the user aiming at the service protocol file uploading page, generating visual service according to the service protocol file selected by the user;
the visualization service is added to a service list that includes the newly added visualization service.
For example, as shown with reference to FIG. 2, the interface test management page may include a list of services, a service add control, i.e., an "add" button. When a user needs to add a new service, an add button in an interface test management page can be clicked and the like, a service protocol file uploading page is triggered and displayed, the service protocol file uploading page comprises a plurality of service protocol files to be added, such as a service protocol file b1 to be added, a service protocol file b2 to be added and a service protocol file … … to be added, and the user can select the service protocol file to be added from the service protocol file uploading page to upload, such as a service protocol file b1 to be added; then, a visual service "newly added service B1" is generated according to the service agreement file selected by the user and added to a service list, as shown with reference to fig. 4, and thereafter, a service list including the newly added visual service is displayed on the interface test management page; when the user needs to perform interface testing, the user may perform an operation on a newly added visual service in the service list, for example, the user clicks on "newly added service B1" and the like, and trigger to display an interface management page of "newly added service B1", where the interface management page includes an interface list of the newly added service, and the interface list includes interfaces of the newly added service, that is, the interface list may include "interface 1 of newly added service B1", "interface 2 of newly added service B1", … …; the configuration triggering control corresponding to the interface 1 of the newly added service B1 is an interface test button, and when the user clicks the interface test button, the interface test configuration page corresponding to the interface of the service may be triggered and displayed, and then subsequent interface test method steps are performed, which is not described in detail again.
In some embodiments, in order to test an existing service, the interface test management page includes a service name input control, and the service search control, for example, a target service is searched by a user through the service name input control and the service search control, and when an operation of the user on an interface of the target service is detected, displaying an interface test configuration page corresponding to the interface of the target service may include:
when the input operation of the user for the service name input control is detected, displaying the service name input by the user;
displaying a target visual service corresponding to the service name on the interface test management page based on the triggering operation of the user for searching the control for the service;
specifically, the step "displaying an interface test configuration page corresponding to an interface of the service based on an operation of the user on the visualization service unit" may include:
when the triggering operation of a user for the target visualization service is detected, displaying an interface management page of the target visualization service, wherein the interface management page comprises an interface list of the target service, and the interface list comprises an interface of the target service and a configuration triggering control corresponding to the interface;
and when the operation of the user for the configuration trigger control is detected, displaying an interface test configuration page corresponding to the interface of the target service.
The service name input control is a control for the user to input a service name to be searched, for example, the service name input control is a "name" input field, the user can input a service name "service C1" in the input field, and so on; the representation form can be various, such as an input box, a button and the like.
The service searching control is a control for searching the required service for the user, and the representation form of the service searching control can be various, for example, the service searching control can have a form of a button, an icon and the like, and can be specifically set according to actual requirements.
For example, referring to FIG. 2, the interface test management page includes a service name input control, i.e., "name" input field, and a service find control, i.e., "find" button. When a user needs to search for an existing service for interface testing, a service name, such as "service C1", can be input in a "name" input field of an interface testing management page; when a user clicks a "search" button and the like, a target visual service corresponding to the service name, namely, a "service C1" hyperlink, is triggered and displayed on an interface test management page, as shown in fig. 5, and then, when the user clicks a "service C1" and the like, an interface management page corresponding to "service C1" is triggered and displayed, wherein the interface management page includes an interface list of the target service, and the interface list includes interfaces of the target service, namely, the interface list includes "interface 1 of service C1", "interface 2 of service C1", and … …; the configuration trigger control corresponding to the interface 1 of the service C1 is an interface test button, and a user may click the interface test button to trigger and display an interface test configuration page corresponding to the interface of the target service, and then perform subsequent interface test method steps, which are not described in detail again.
In addition, based on the operation of the user on the visual service unit, there may be multiple ways to display the interface test configuration page corresponding to the interface of the service, for example, in some embodiments, the visual service unit includes a visual interface, and the interface test configuration page corresponding to the interface is displayed based on the operation of the user on the visual interface, and specifically, the step "displaying the interface test configuration page corresponding to the interface of the service based on the operation of the user on the visual service unit" may include:
and when the triggering operation of the user for the visual interface is detected, displaying an interface test configuration page corresponding to the interface of the service.
The presentation form of the visual interface may be various, for example, a button, a hyperlink, and the like, and for example, the visual interface may be a hyperlink.
For example, referring to FIG. 2, the interface test management page includes a visualization service unit, wherein the visualization service unit includes a visualization interface, namely, the "interface 1 of service A1" hyperlink. The user can click on the hyperlink of the interface 1 of the service a1, and the like, and trigger and display the interface test configuration page corresponding to the interface of the service.
103. And displaying the test data content configured by the user through the interface test configuration page.
The test data content may be in a variety of formats, for example, a JSON (JavaScript Object Notation) format, an XML (eXtensible Markup Language) format, and the like, and may be specifically set according to actual requirements, for example, in some embodiments, the test data content may be in a JSON format.
For example, in some embodiments, the interface test configuration page includes a content configuration control and a test case list, the test case list includes a visual test case, and based on an operation of the visual test case by a user, the test data content configured by the user through the content configuration control can be displayed. At this time, the step "displaying the test data content configured by the user through the interface test configuration page" may specifically include:
displaying a test case list on an interface test configuration page, wherein the test case list comprises visual test cases;
and when the triggering operation of the user for the visual test case is detected, displaying the test data content corresponding to the visual test case configured by the user through the content configuration control.
The test case is data for completing a test on a specific requirement or target, for example, the test case may be a payment test case, data for completing a test on a payment requirement, and the like, and may be specifically set according to an actual requirement.
The visual test case is a control for a user to operate to trigger and display test data content corresponding to the test case, and the representation form of the visual test case may be various, for example, a button, a hyperlink, or the like.
In some embodiments, the test case list may be preset, for example, after the user triggers and displays the interface test configuration page through the operation of the visual service unit, the interface test configuration page may display the preset test case list; for another example, in some embodiments, the test case list includes a visual test case, where the visual test case may be a visual test case used by the user in history, the user adds the visual test case to the test case list after use, and stores the visual test case in a background database, and so on. The specific setting can be carried out according to actual needs.
In some embodiments, the test data content may also be preset, for example, the test data content is preset, and when the trigger operation of the user for the visual test case is detected, the preset test data content corresponding to the visual test case is displayed; for another example, in some embodiments, the test data content may be historical test data content saved by the interface test management system, the user stores the test data content in a background database after the interface test, and so on; the setting can be specifically carried out according to actual requirements.
The content configuration control is a control for configuring the test data content by the user, for example, the test data content may be modified through the content configuration control, for example, the test data content may be added through the content configuration control, and the presentation form of the content configuration control may be various, for example, an input box, an editor, and the like.
For example, in some embodiments, the interface test configuration page may include a display area of test data content, the display area includes a content configuration control, the content configuration control in the display area displays the test data content corresponding to the visual test case, and the content configuration control may be used to modify, add, and the like the test data content.
For example, referring to fig. 6, the interface test configuration page includes a test case list, i.e., "test case table", which includes visual test cases, i.e., "test case 1" hyperlink, "test case 2" hyperlink, … …; when a user needs to configure test data contents corresponding to the visual test case, the user selects the required visual test case and operates the visual test case, for example, the user selects a hyperlink of the test case 1, clicks the hyperlink of the test case 1 and the like, triggers the content configuration control to display the test data contents corresponding to the test case 1, and can modify, delete and the like the test data contents according to the content configuration control.
In addition, there may be various ways of displaying the test data content configured by the user through the interface test configuration page, for example, in some embodiments, the interface test configuration page includes a use case input control, a use case storage control, and a content configuration control; the method includes that a user adds a new visual test case to the operation of a case input control and a case storage control, and the test data content corresponding to the new visual test case is triggered and displayed based on the operation of the user on the new visual test case, and then the step "displaying the test data content configured by the user through the interface test configuration page" may specifically include:
displaying the test case input by the user based on the input operation of the user aiming at the case input control;
adding a visual test case generated by the test case input by the user to the test case list based on the trigger operation of the user for the case saving control;
the step of displaying the test data content configured by the user through the interface test configuration page comprises the following steps:
displaying a test case list on an interface test configuration page, wherein the test case list comprises newly added visual test cases;
and when the operation of the user for the newly added visual test case is detected, displaying the test data content corresponding to the newly added visual test case, which is configured by the user through the content configuration control.
The case input control is a control for a user to input a test case name, and the representation form of the case input control can be various, for example, the case input control can be an input box, an input field, and the like, and can be specifically set according to actual needs.
The case saving control is a control for adding the test case to the test case list after being triggered by a user, and the representation form of the case saving control can be various, for example, the case saving control can be a button, an icon and the like.
For example, referring to fig. 6, the interface test configuration page includes a case input control, that is, a "test case" input field, and a case saving control, that is, a "saving" button, when a user needs to add a new test case, the name of the test case to be added may be input in the "test case" input field of the interface test configuration page, as shown in fig. 7, a "new adding test case 1" is input in the "test case" input field, and when the user clicks the "saving" button, a hyperlink of a visual test case, that is, the "new adding test case 1", corresponding to the test case to be added is generated by triggering, and the "new adding test case 1" is added to the test case list and displayed in the interface test configuration page. When a user clicks the newly added test case 1 and the like, the content configuration control is triggered to display the test data content corresponding to the newly added test case 1, and the user can configure through the content configuration control.
In some embodiments, in order to improve the efficiency of the interface test, after the user logs in the user account through the interface test system login page, the user may obtain the test data content uploaded by other users through the interface test system, and the other users may also obtain the test data content uploaded by the user through the interface test system.
104. And when the triggering operation of the user for the test control is detected, testing the interface based on the test data content.
The test control is a control for a user to operate to trigger the interface to be tested, and the representation form of the test control may be various, for example, there may be a button, an icon, and the like, and for example, after the user configures information required for the interface test on the interface test configuration page, the user may trigger the interface to be tested based on the test data content by operating the test control.
For example, in some embodiments, the interface test configuration page includes a server configuration control, displays configuration information of a target server based on an operation of the server configuration control by the user, and then tests the interface according to the configuration information based on the test data content, which specifically includes:
displaying configuration information of a target server based on configuration operation of a user for the server configuration control; generating a test request based on the test data content; and when the triggering operation of the user for the test control is detected, sending a test request to the server to test the interface based on the configuration information.
The configuration information of the server is interface information of a service module of the server specified by a user, and the presentation form of the configuration information may be various, for example, an IP address (internet protocol address) and a Port (Port), and the like, and may be specifically set according to actual requirements.
The server configuration control is a control for setting configuration information of the server by a user, and the presentation form of the server configuration control can be various, such as an input field, an input box, a selection field, and the like. For example, in some embodiments, the server configuration control may be an input field, and in other embodiments, the server configuration control may be a selection field, for example, when a user clicks on the server configuration control, a drop-down server configuration list is triggered to be displayed, the list includes various server configuration information, and the user may select the required server configuration information from the list.
For example, in some embodiments, in order to improve the testing efficiency, a serialization operation may be performed on the test data content to obtain a test data packet, and a test request may be generated, where the test request carries the test data packet, and the specific manner may be set according to an actual requirement.
For example, in some embodiments, in order to improve Transmission efficiency, the interface may be sent to an RPC (Remote Procedure Call) interface of a specified service module through a TCP (Transmission Control Protocol) according to interface information of the service module of the server specified by a user, and the like. The setting can be specifically carried out according to actual requirements.
For example, referring to FIG. 6, the interface test configuration page includes server configuration controls, namely, an "address" input field, a "port" input field, and a "custom address & port" selection field; the test control is a "test" button. When a user needs to perform interface test, inputting a specified IP address (Internet Protocol address) and a Port (Port) in an address input field and a Port input field correspondingly; in addition, the user may click on the "custom address & port" selection bar, and trigger and display a pull-down server configuration list, where the list includes various preset server configuration information, such as "custom address & port preset 1", "custom address & port preset 2", "custom address & port preset 3", and the like, and the user may select designated server configuration information from the list, such as "custom address & port preset 1"; after the user finishes configuring the configuration information of the target server, the configuration information of the target server is displayed on an interface test configuration interface, at the moment, a 'test' button is clicked, the test data content is triggered to be subjected to serialization operation to obtain a test data packet, the operation of a test request is generated, the test request is sent to a specified IP/PORT through TCP, and the interface test is carried out on an RPC interface of a specified service module.
In addition, in some embodiments, in order to perform a pressure test on the interface, the interface test configuration page may further include a pressure test configuration control and a pressure test control, and after the user sets pressure test information through the pressure test configuration control, the user sends a test request to the server according to the target server configuration information based on the pressure test information to perform the pressure test on the interface, for example, the method specifically includes:
displaying pressure test information configured by a user based on the configuration operation of the user for the pressure test configuration control; displaying configuration information of a target server based on configuration operation of a user for the server configuration control; generating a test request based on the test data content; and when the triggering operation of the user for the pressure testing control is detected, sending a testing request to the server to perform pressure testing on the interface according to the pressure testing information based on the configuration information.
The pressure test configuration control is used for a control for a user to set pressure test information required in a pressure test, for example, parameters such as the number of requests, the number of concurrences, and the like in the pressure test can be set through the pressure test configuration control, and the expression form of the pressure test configuration control can be various, for example, the pressure test configuration control can be an input field, an input box, and the like, and can be a form of a plurality of input fields, for example.
The pressure test control is a control for a user to trigger to perform a pressure test, and the expression form of the pressure test control can be various, for example, the pressure test control can be in the form of a button, an icon, and the like.
For example, as shown in fig. 8, the interface test configuration page may further include a pressure measurement configuration control, i.e., a "request number" input box, a "pressure size" input box, a "concurrent number" input box, a "timeout" input box, and a pressure measurement control, i.e., a "pressure measurement" button; when a user needs to perform a pressure test, inputting corresponding pressure test information in a request number input box, a pressure size input box, a concurrency number input box and a timeout input box, for example, inputting '1000' in the request number input box, and the like; when a user clicks a press test button and the like, a test request is generated based on the test data content, and is sent to a specified IP/PORT according to the input pressure test information, namely, the test request is sent to an RPC interface of a specified service module to carry out interface test.
105. And displaying the test result of the interface.
The manner of displaying the test result of the interface may be various, for example, in some embodiments, the method may include:
receiving test response data returned by the server according to the test request;
and generating a test result according to the test response data, and displaying the test result on the interface test configuration page.
The format of the test response data may be various, for example, a JSON format, an XML format, and the like, and may be specifically set according to actual requirements.
For example, in some embodiments, the test response data may be subjected to deserialization to obtain a test result, and the specific manner may be set according to actual requirements.
For example, in some embodiments, in order to enable the test results to be observed more intuitively, the test configuration page includes a test result area, the test results may be displayed in the test result area, and the like, which may be specifically set according to actual requirements.
In some embodiments, in order to observe the test result according to the service requirement, the test result area may further include a test result control and a service result control, where the test result control and the service result control may be represented in various forms, for example, in the form of a button, a key, and the like; for example, referring to the diagram, when a user needs to view a test result related to a service, the test result related to the service can be displayed by clicking a button of a "service parameter"; when a user needs to check all test results, the button of the test result is clicked, all test results can be displayed, and the specific implementation mode can be set according to actual requirements.
For example, as shown in fig. 9, after a user sets test data content, target server configuration information, and the like through an interface test configuration page, clicking and other operations on a "send" button of a test control, which triggers a test request to be generated based on the test data content, sends the test request to the target server according to the configuration information of the target server, receives test response data returned by the server according to the test request, generates a test result according to the test response data, displays the test result on a "test result" area on the interface test configuration page, and when the user needs to view all test results, clicks on the "test result" button, which may display all test results; when a user needs to check the test result related to the service, the button of the service parameter is clicked, and the test result related to the service can be displayed.
As can be seen from the above, the interface test management page may be displayed in the embodiment of the present application, where the interface test management page includes a visual service unit corresponding to a service; displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control; displaying the test data content configured by the user through the interface test configuration page; when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content; and displaying the test result of the interface. According to the scheme, the data is configured through the visual page and then tested, so that the time required by operation is effectively shortened, and the testing efficiency is effectively improved.
Based on the above description of the embodiments, the interface testing method according to the embodiments of the present application will be described in detail below by taking the example that the interface testing apparatus is integrated in the computer device.
As shown in fig. 10, an interface testing method is provided, which specifically includes the following steps:
201. the computer equipment displays an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to the service.
For example, the user may access the interface test management page through a browser, or access the interface test management page through a client.
The interface test management page may be maintained by an interface test system, and the interface test system may include a service uploaded by each user and an interface corresponding to the service. A user can log in a user account through a login page of the interface test system, and a corresponding interface test management page of the user is displayed after the user account is logged in. The user account can be obtained by registering the user with the interface test system. For example, referring to the illustration, a computer device may log on and display an interface test management page.
202. Based on the operation of the user for the visual service unit, the computer device displays an interface test configuration page corresponding to the interface of the service, wherein the interface test configuration page comprises a test control.
203. The computer device displays the test data content configured by the user via the interface test configuration page.
The test data content may be test data content used by other users acquired by the user through the interface test system, or may be a test data content template preset by the system, and the user modifies the test data content template according to the service requirement to obtain the required test data content.
In some embodiments, in order to improve the efficiency of the interface test, after the user logs in the user account through the interface test system login page, the user may obtain the test data content uploaded by other users through the interface test system, and the other users may also obtain the test data content uploaded by the user through the interface test system.
Because the interface test can be based on the interface test system, the interface test of all users can be managed and planned in a unified way, and the users can use the test data of other users to test by setting the authority, thereby improving the interface test efficiency.
204. When the triggering operation of the user for the testing control is detected, the computer equipment tests the interface based on the testing data content.
For example, the interface test configuration page includes a server configuration control, and may specifically include:
displaying configuration information of a target server based on configuration operation of a user for the server configuration control; generating a test request based on the test data content; and when the triggering operation of the user for the test control is detected, sending a test request to the server to test the interface based on the configuration information.
The interface test configuration page may further include a test expansion control, which is used to set the parameters of the embedded function in the test request and perform the interface test, and may be specifically set according to actual requirements.
205. And the computer equipment displays the test result of the interface.
In order to observe the test result according to the service requirement, the test result area may further include a test result control and a service result control, where the test result control and the service result control may be expressed in various forms, for example, in the form of a button, a key, and the like; for example, referring to fig. 9, when a user needs to check a test result related to a service, the test result related to the service can be displayed by clicking a button of a "service parameter"; when a user needs to check all test results, the button of the test result is clicked, all test results can be displayed, and the specific implementation mode can be set according to actual requirements.
As can be seen from the above, in the embodiment of the present application, the management page of the interface test may be based on the interface test system, and the user may obtain services tested by other users and corresponding test data contents through the interface test system.
The method of the present invention will be described below by taking an application of an interface test tool as an example, where a system architecture of the interface test tool is shown in fig. 11, and the interface test tool includes a Webview module, an application logic module, and a DB (database) module, where the web view module may be integrated on a front-end frame of a web page or on a server; the application logic module and the database module can be integrated on a background server of a webpage or can be respectively integrated on other types of servers.
The webpage view module comprises a Bootstrap (a front-end development frame) unit, a jsoneditor (json editor) unit, a jQuery (a JavaScript frame) unit, an AJAX (Asynchronous JavaScript And XML or HTML) unit And a template unit;
the application logic module comprises an IDL compiler unit, a Protocol serializer unit, an io stub unit, a pfmtest generator (pfm test generator) unit and a pfmtest (pfm tester) unit;
the database module comprises a User unit, an IDL (interface file) unit, an IDL test data unit and an API (application programming interface) unit.
For example, the computer device displays the interface test tool based on the web page view module, for example, when a user operates the interface test tool, the computer device is triggered to display a corresponding interface test configuration page, the interface test configuration page supports jsoneditor to edit interface test data content, and a json format is used when the front end and the back end perform data communication; when The user finishes editing, The corresponding control operation performs interface test, and triggers The interface test tool to compile based on an application logic module, for example, compiling The interface test data content by using an AutoGen (The Automated Program Generator) to generate a Python (a computer programming language) framework and a network transceiver; then, the interface test tool performs interface test based on the application logic module, for example, the interface test is performed by sending data to the RPC interface of the specified service module through the network transceiver; the interface test tool then saves the data to a database based on the database module, such as by using a django frame (a web page frame).
The interface pressure test tool may also perform an interface pressure test, for example, the interface pressure test may be implemented through multiple threads, and the specific implementation manner may refer to the above embodiments, which is not described herein again.
In order to better implement the method, correspondingly, the embodiment of the application also provides an interface testing device, which can be particularly integrated in computer equipment,
for example, as shown in fig. 12, the interface test apparatus may include a management unit 301, a display unit 302, a configuration unit 303, a test unit 304, and a result unit 305, as follows:
correspondingly, the embodiment of the present application further provides an interface testing apparatus, including:
the management unit 301 is configured to display an interface test management page, where the interface test management page includes a visual service unit corresponding to a service;
a display unit 302, configured to display an interface test configuration page corresponding to an interface of the service based on an operation of a user on the visualization service unit, where the interface test configuration page includes a test control;
the configuration unit 303 is configured to display test data content configured by the user through the interface test configuration page;
the testing unit 304 is configured to test the interface based on the content of the test data when a triggering operation of a user on the test control is detected;
a result unit 305, configured to display a test result of the interface.
Optionally, in some embodiments, as shown in fig. 13, the visualization service unit includes a visualization service, and the display unit 302 includes:
the service triggering subunit 3021 is configured to, when a triggering operation of a user for the visualization service is detected, display an interface management page of the visualization service, where the interface management page includes an interface list of the service, and the interface list includes an interface of the service and a configuration triggering control corresponding to the interface;
a service display subunit 3022, configured to display an interface test configuration page corresponding to the interface of the service when detecting that the user has operated the configuration trigger control.
Optionally, in some embodiments, as shown in fig. 14, the interface test management page includes a service addition control and a service list, and the service triggering subunit 3021 includes:
a service adding module 30211, configured to add, when an adding operation of the user for the service adding control is detected, a visualization service generated by a service agreement file uploaded by the user to the service list;
the service triggering subunit 3021 is specifically configured to display a service list on an interface test management page, where the service list includes newly added visual services; when the triggering operation of a user for the newly added visual service is detected, displaying an interface management page of the newly added visual service, wherein the interface management page comprises an interface list of the newly added service, and the interface list comprises an interface of the newly added service and a configuration triggering control corresponding to the interface;
the service display subunit 3022 is specifically configured to, when detecting that the user has operated the configuration trigger control, display an interface test configuration page corresponding to the interface to which the service is newly added.
Optionally, in some embodiments, as shown in fig. 15, the interface test management page includes a service name input control and a service search control, and the service triggering subunit 3021 includes:
a service searching module 30212, configured to display a service name input by a user when an input operation of the user for the service name input control is detected; displaying a target visual service corresponding to the service name on the interface test management page based on the triggering operation of the user for the service searching control;
the service triggering subunit 3021 is specifically configured to, when a triggering operation of a user for the target visualization service is detected, display an interface management page of the target visualization service, where the interface management page includes an interface list of the target service, and the interface list includes an interface of the target service and a configuration triggering control corresponding to the interface;
the service display subunit 3022 is specifically configured to display an interface test configuration page corresponding to the interface of the target service when detecting that the user operates the configuration trigger control.
Optionally, in some embodiments, as shown in fig. 16, the visualization service unit includes a visualization interface corresponding to an interface of a service, and the display unit 302 includes an interface display subunit 3023;
the interface display subunit 3023 is configured to, when the trigger operation of the user on the visual interface is detected, display an interface test configuration page corresponding to the interface of the service.
Optionally, in some embodiments, as shown in fig. 17, the interface test configuration page includes a test case list and a content configuration control, and the configuration unit 303 includes:
the case display subunit 3031 is configured to display a test case list on the interface test configuration page, where the test case list includes a visual test case;
the configuration unit 303 is specifically configured to display, when detecting that the user triggers the visual test case, test data content corresponding to the visual test case configured by the user through the content configuration control.
Optionally, in some embodiments, as shown in fig. 18, the interface test configuration page includes that the interface test configuration page includes a use case input control, a use case saving control, and a content configuration control; the configuration unit 303 includes:
an adding subunit 3032, configured to display a test case input by a user based on an input operation of the user for the case input control; adding a visual test case generated by the test case input by the user to a test case list based on the trigger operation of the user for the case saving control;
the case display subunit 3031 is specifically configured to display a test case list on an interface test configuration page, where the test case list includes a newly added visual test case;
the configuration unit 303 is specifically configured to: and when the operation of the user for the newly added visual test case is detected, displaying the test data content corresponding to the newly added visual test case, which is configured by the user through the content configuration control.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the interface testing apparatus according to the embodiment of the present application displays an interface test management page through the management unit 301, where the interface test management page includes a visual service unit corresponding to a service; displaying, by the display unit 302, an interface test configuration page corresponding to an interface of the service based on an operation of a user on the visualization service unit, where the interface test configuration page includes a test control; displaying, by the configuration unit 303, test data content configured by the user through the interface test configuration page; testing, by the testing unit 304, the interface based on the test data content when a triggering operation of the user for the test control is detected; the test results of the interface are displayed by the results unit 305. According to the scheme, the data is configured through the visual page and then tested, so that the time required by operation is effectively shortened, and the testing efficiency is effectively improved.
In addition, an embodiment of the present application further provides a computer device, as shown in fig. 19, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, and specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configurations illustrated in the figures are not meant to be limiting of computer devices and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads an executable file corresponding to a process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
displaying an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to a service; displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control; displaying the test data content configured by the user through the interface test configuration page; when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content; and displaying the test result of the interface.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein. Therefore, the computer equipment of the embodiment can be tested again through the visual page configuration data, the time required by operation is effectively reduced, and the testing efficiency is effectively improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application further provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the interface testing methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
displaying an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to a service; displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control; displaying the test data content configured by the user through the interface test configuration page; when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content; and displaying the test result of the interface.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any interface test method provided in the embodiments of the present application, beneficial effects that can be achieved by any interface test method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing describes in detail an interface testing method, apparatus, device, and storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An interface testing method, comprising:
displaying an interface test management page, wherein the interface test management page comprises a visual service unit corresponding to a service;
displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, wherein the interface test configuration page comprises a test control;
displaying the test data content configured by the user through the interface test configuration page;
when the triggering operation of the user for the testing control is detected, testing the interface based on the testing data content;
and displaying the test result of the interface.
2. The interface testing method of claim 1, wherein the visualization service unit comprises a visualization service;
the displaying an interface test configuration page corresponding to the interface of the service based on the operation of the user on the visual service unit includes:
when the triggering operation of a user for the visualization service is detected, displaying an interface management page of the visualization service, wherein the interface management page comprises an interface list of the service, and the interface list comprises an interface of the service and a configuration triggering control corresponding to the interface;
and when the operation of the user for the configuration trigger control is detected, displaying an interface test configuration page corresponding to the interface of the service.
3. The interface test method according to claim 2, wherein the interface test management page includes a service addition control, a service list;
when the adding operation of the user for the service adding control is detected, adding the visual service generated by the service protocol file uploaded by the user to the service list;
the displaying an interface test configuration page corresponding to the interface of the service based on the operation of the user on the visual service unit includes:
displaying a service list on an interface test management page, wherein the service list comprises newly added visual services;
when the triggering operation of a user for the newly added visual service is detected, displaying an interface management page of the newly added visual service, wherein the interface management page comprises an interface list of the newly added service, and the interface list comprises an interface of the newly added service and a configuration triggering control corresponding to the interface;
and when the operation of the user for the configuration trigger control is detected, displaying an interface test configuration page corresponding to the interface of the newly added service.
4. The interface test method of claim 2, wherein the interface test management page includes a service name input control, a service lookup control;
when the input operation of the user for the service name input control is detected, displaying the service name input by the user;
displaying a target visual service corresponding to the service name on the interface test management page based on the triggering operation of the user for the service searching control;
the displaying an interface test configuration page corresponding to the interface of the service based on the operation of the user on the visual service unit includes:
when the triggering operation of a user for the target visualization service is detected, displaying an interface management page of the target visualization service, wherein the interface management page comprises an interface list of the target visualization service, and the interface list comprises an interface of the target visualization service and a configuration triggering control corresponding to the interface;
and when the operation of the user for the configuration trigger control is detected, displaying an interface test configuration page corresponding to the interface of the target visual service.
5. The interface testing method according to claim 1, wherein the visual service unit includes a visual interface corresponding to an interface of a service;
the displaying an interface test configuration page corresponding to the interface of the service based on the operation of the user on the visual service unit includes:
and when the triggering operation of the user for the visual interface is detected, displaying an interface test configuration page corresponding to the service interface.
6. The interface testing method of claim 1, wherein the interface testing configuration page includes a list of test cases, a content configuration control;
the displaying the test data content configured by the user through the interface test configuration page includes:
displaying a test case list on an interface test configuration page, wherein the test case list comprises visual test cases;
and when the triggering operation of the user for the visual test case is detected, displaying the test data content corresponding to the visual test case configured by the user through the content configuration control.
7. The interface testing method of claim 6, wherein the interface testing configuration page comprises a use case input control, a use case saving control, a content configuration control;
displaying the test cases input by the user based on the input operation of the user aiming at the case input control;
adding a visual test case generated by the test case input by the user to a test case list based on the trigger operation of the user for the case saving control;
the displaying the test data content configured by the user through the interface test configuration page includes:
displaying a test case list on an interface test configuration page, wherein the test case list comprises newly added visual test cases;
and when the operation of the user for the newly added visual test case is detected, displaying the test data content corresponding to the newly added visual test case, which is configured by the user through the content configuration control.
8. The interface testing method of claim 1, wherein the interface test configuration page includes a server configuration control;
when the trigger operation of the user for the test control is detected, the testing the interface based on the test data content includes:
displaying configuration information of a target server based on configuration operation of a user for the server configuration control;
generating a test request based on the test data content;
and when the triggering operation of the user for the test control is detected, sending a test request to the server to test the interface based on the configuration information.
9. The interface testing method of claim 8, wherein displaying the test results of the interface comprises:
receiving test response data returned by the server according to the test request;
and generating a test result according to the test response data, and displaying the test result on the interface test configuration page.
10. An interface testing apparatus, comprising:
the management unit is used for displaying an interface test management page, and the interface test management page comprises a visual service unit corresponding to a service;
the display unit is used for displaying an interface test configuration page corresponding to an interface of the service based on the operation of a user on the visual service unit, and the interface test configuration page comprises a test control;
the configuration unit is used for displaying the test data content configured by the user through the interface test configuration page;
the testing unit is used for testing the interface based on the testing data content when the triggering operation of the user for the testing control is detected;
and the result unit is used for displaying the test result of the interface.
CN201910858181.4A 2019-09-11 2019-09-11 Interface testing method and device Active CN112486797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910858181.4A CN112486797B (en) 2019-09-11 2019-09-11 Interface testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910858181.4A CN112486797B (en) 2019-09-11 2019-09-11 Interface testing method and device

Publications (2)

Publication Number Publication Date
CN112486797A true CN112486797A (en) 2021-03-12
CN112486797B CN112486797B (en) 2023-10-13

Family

ID=74920129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910858181.4A Active CN112486797B (en) 2019-09-11 2019-09-11 Interface testing method and device

Country Status (1)

Country Link
CN (1) CN112486797B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204545A (en) * 2021-05-17 2021-08-03 武汉中科通达高新技术股份有限公司 Traffic management data testing method and device
CN113645090A (en) * 2021-06-30 2021-11-12 四川新网银行股份有限公司 Novel RPC interface simulation test method
CN114268570A (en) * 2021-12-14 2022-04-01 扬州万方电子技术有限责任公司 Server cluster inspection flow visualization method based on intelligent terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874176A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 Intelligent test method and device
CN108563571A (en) * 2018-04-11 2018-09-21 车巴达(苏州)网络科技有限公司 Software interface test approach and system, computer readable storage medium, terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874176A (en) * 2015-12-14 2017-06-20 阿里巴巴集团控股有限公司 Intelligent test method and device
CN108563571A (en) * 2018-04-11 2018-09-21 车巴达(苏州)网络科技有限公司 Software interface test approach and system, computer readable storage medium, terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204545A (en) * 2021-05-17 2021-08-03 武汉中科通达高新技术股份有限公司 Traffic management data testing method and device
CN113645090A (en) * 2021-06-30 2021-11-12 四川新网银行股份有限公司 Novel RPC interface simulation test method
CN114268570A (en) * 2021-12-14 2022-04-01 扬州万方电子技术有限责任公司 Server cluster inspection flow visualization method based on intelligent terminal

Also Published As

Publication number Publication date
CN112486797B (en) 2023-10-13

Similar Documents

Publication Publication Date Title
CN112486797B (en) Interface testing method and device
CN108153670A (en) A kind of interface test method, device and electronic equipment
CN103262020B (en) Virtual input/output device for printer
US20090287643A1 (en) Context based script generation
CN104598513A (en) Data flow control method and system based on webpage frame
CN112800370B (en) Processing method and device of business document, computer equipment and storage medium
CN103984626B (en) A kind of method and device for generating test case script
CN108345543A (en) A kind of data processing method, device, equipment and storage medium
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN109408042A (en) Robot visualization script configuration method, device and computer storage medium
US20200356469A1 (en) Test automation systems and methods using logical identifiers
CN110532159A (en) Data decryptor method, apparatus, equipment and computer readable storage medium
CN113722020A (en) Interface calling method, device and computer readable storage medium
CN115658529A (en) Automatic testing method for user page and related equipment
CN109542470A (en) Configuration, installation method and configuration device
US9800473B2 (en) Network based virtual collaborative problem solving space
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN110321278B (en) System testing method and device, computer equipment and storage medium
CN112667795B (en) Dialogue tree construction method and device, dialogue tree operation method, device and system
CN113971191A (en) Data import method and device and computer readable storage medium
WO2014036073A2 (en) Method and apparatus for browsing large data network topology trees
CN115860877A (en) Product marketing method, device, equipment and medium
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
CN111274520B (en) Webpage resource auditing method, device, equipment and medium
CN112667512A (en) Data drive test method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant