CN110674023A - Interface testing method and device - Google Patents

Interface testing method and device Download PDF

Info

Publication number
CN110674023A
CN110674023A CN201810708580.8A CN201810708580A CN110674023A CN 110674023 A CN110674023 A CN 110674023A CN 201810708580 A CN201810708580 A CN 201810708580A CN 110674023 A CN110674023 A CN 110674023A
Authority
CN
China
Prior art keywords
test
interface
identification information
information
server
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
CN201810708580.8A
Other languages
Chinese (zh)
Other versions
CN110674023B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810708580.8A priority Critical patent/CN110674023B/en
Publication of CN110674023A publication Critical patent/CN110674023A/en
Application granted granted Critical
Publication of CN110674023B publication Critical patent/CN110674023B/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

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 provides an interface docking test method and device, and relates to the technical field of computers. The method includes configuring first test information for a test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system; receiving a test execution instruction aiming at the first test information; simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface; receiving the interaction operation of the first server on the second interface based on the callback address; and recording the interactive operation result based on the equipment identification information. The embodiment of the application can test the butt joint of the interface quickly, and saves cost.

Description

Interface testing method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an interface testing method and an interface testing apparatus.
Background
With the development of the internet, different platforms cooperate with each other, for example, if the third-party platform a is an advertisement content exhibition party, the marketing platform B is an advertisement content delivery party, and the marketing platform B is to deliver advertisement content in a page of the third-party platform a, the marketing platform B and the third-party platform a may need to interface between the two. And the marketing platform B may cooperate with a plurality of third party platforms a, the platform B needs to interface with the plurality of third party platforms a.
In the prior art, a user interfaces an API (application program Interface) between an online system of a platform B and each platform a, and manually tests the system. As shown in fig. 1, which illustrates an existing interface testing architecture, a user needs to install an APP corresponding to a third-party platform in a mobile terminal, and then after an interface is docked, a specific testing process is as follows:
s1, after receiving the click on the test page in the APP, sending click data to the marketing platform;
the user needs to find the test page in the APP and then click.
S2, the APP calls an SDK (Software Development Kit) of the third-party platform to send the click data to the third-party platform;
s3, the marketing platform sends the received click data to a third-party platform;
s4, the marketing platform sends the received click data to an internal statistical system;
s5, matching and analyzing the click data sent by the third-party platform mobile terminal and the click data sent by the marketing platform to determine conversion data;
the conversion data is click data which is clicked by a user to download, open an application and the like in click data sent by a mobile terminal analyzed by a third-party platform, and if the click data corresponding to the click data in the marketing platform is in a set time period, the click of the advertisement is considered to be converted, and the conversion data of the advertisement is obtained.
S6, the third-party platform sends the conversion data to the marketing platform;
and S7, the marketing platform sends the conversion data to an internal statistical system.
In the process, the third-party platform and the marketing platform need to test the butt joint of the interface, so that a tester of the marketing platform needs to use a real mobile phone to access a test page, and then a subsequent flow can be triggered, and the process is inconvenient. Moreover, for the record of the interactive operation, the record is dispersedly recorded in the log, and the user needs to check a large number of logs to know the result of the test when the user wants to check the test result, so that the labor cost and the time cost are high.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide an interface docking test method and an interface docking test apparatus that overcome the above problems.
According to an aspect of the present invention, there is provided an interface docking test method, including:
configuring first test information for a test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
receiving a test execution instruction aiming at the first test information;
simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
receiving the interaction operation of the first server on the second interface based on the callback address;
and recording the interactive operation result based on the equipment identification information.
Preferably, the step of configuring the first test information for the test system includes:
after receiving a configuration request sent by a test terminal, returning a configuration page to the test terminal so that a user can configure first test information in the configuration page;
and receiving first test information which is configured by the test terminal through the configuration page and aims at the test system.
Preferably, the first test information further includes: testing the name of the project;
after the step of configuring the first test information for the test system, the method further includes:
and storing the first test information by the name of the test item.
Preferably, after the step of storing the first test information by the test item name, the method further includes:
after receiving a test item display request sent by a test terminal, returning a test item display page to the test terminal so that a user can select a test item in the test item display page; the configured test items are displayed in the test item display page;
the step of receiving a test execution instruction for the first test information includes:
receiving a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
Preferably, after the step of recording the result of the interactive operation based on the device identification information, the method further includes:
receiving a first viewing request of the test terminal; the first viewing request includes the device identification information;
and according to the first viewing request, returning the interaction operation result corresponding to the equipment identification information as a successful record to the test terminal for displaying.
Preferably, the step of returning the interaction operation result corresponding to the device identification information as a successful record to the test terminal for display according to the viewing request includes:
searching for a record with a successful interactive operation result corresponding to the equipment identification information according to the viewing request;
converting the device identification information in the record into an md5 value;
and returning the converted record to the test terminal for displaying.
Preferably, the test system comprises a first message subscription subsystem and a second log subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
the step of recording the result of the interactive operation based on the device identification information includes:
and storing a first record by using a preset shell script with the equipment identification information as a main key when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem each time after the interactive operation occurs once based on the first message subscription subsystem.
Preferably, the method further comprises the following steps:
configuring second test information for the online system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a third interface called back by the first server and equipment identification information are obtained; the third interface is an interface of the online system;
receiving a test execution instruction aiming at the second test information;
simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
receiving an interaction operation of the first server on the third interface based on the callback address;
and recording the interactive operation result based on the equipment identification information.
Preferably, the method further comprises the following steps:
receiving a second viewing request of the test terminal; the second view request includes the device identification information;
and returning the record to the test terminal for displaying according to the second viewing request.
The embodiment of the application also discloses an interface butt joint testing arrangement, includes:
the first configuration module is used for configuring first test information aiming at the test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
a first test instruction receiving module, configured to receive a test execution instruction for the first test information;
the first interaction module is used for simulating a user terminal according to the equipment identification information, carrying out interaction operation on the first interface based on the access address and notifying the callback address to the first server through the first interface;
the second interaction module is used for receiving the interaction operation of the first server on the second interface based on the callback address;
and the first recording module is used for recording the interactive operation result based on the equipment identification information.
Preferably, the first configuration module includes:
the configuration page returning submodule is used for returning a configuration page to the test terminal after receiving a configuration request sent by the test terminal so that a user can configure first test information in the configuration page;
and the configuration information receiving submodule is used for receiving first test information which is configured by the test terminal through the configuration page and aims at the test system.
Preferably, the first test information further includes: testing the name of the project;
the device further comprises:
and the first test storage module is used for storing the first test information by the name of the test item.
Preferably, the method further comprises the following steps:
the item page returning module is used for returning a test item display page to the test terminal after receiving a test item display request sent by the test terminal so that a user can select a test item in the test item display page; the configured test items are displayed in the test item display page;
the first test instruction receiving module comprises:
the instruction receiving submodule is used for receiving a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
Preferably, the method further comprises the following steps:
the first viewing request receiving module is used for receiving a first viewing request of the test terminal; the first viewing request includes the device identification information;
and the first record returning module is used for returning the interaction operation result corresponding to the equipment identification information to the test terminal for displaying according to the first viewing request, wherein the interaction operation result is a successful record.
Preferably, the first record returning module includes:
the searching submodule is used for searching a record of which the interactive operation result corresponding to the equipment identification information is successful according to the checking request;
the conversion submodule is used for converting the equipment identification information in the record into an md5 value;
and the return submodule is used for returning the converted record to the test terminal for displaying.
Preferably, the test system comprises a first message subscription subsystem and a second log subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
the first recording module includes:
and the first recording module submodule stores a first record by using a preset shell script with the equipment identification information as a main key when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem each time after the interactive operation occurs once based on the first message subscription subsystem.
Preferably, the method further comprises the following steps:
a second configuration module for configuring second test information for the online system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a third interface called back by the first server and equipment identification information are obtained; the third interface is an interface of the online system;
a second test instruction receiving module, configured to receive a test execution instruction for the second test information;
the third interactive module is used for simulating a user terminal according to the equipment identification information, carrying out interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
a fourth interaction module, configured to receive an interaction operation of the first server on the third interface based on the callback address;
and the second recording module is used for recording the interactive operation result based on the equipment identification information.
Preferably, the method further comprises the following steps:
the first viewing request receiving module is used for receiving a second viewing request of the test terminal; the second view request includes the device identification information;
and the first record returning module is used for returning the record to the test terminal for displaying according to the second viewing request.
According to a further aspect of the present invention there is provided a computer program comprising computer readable code which, when run on a terminal device, causes the terminal device to perform any one of the interface docking test methods.
According to yet another aspect of the present invention, there is provided a computer-readable medium in which a computer program of the interface docking test method is stored.
According to the interface docking test method and device provided by the embodiment of the invention, the first test information aiming at the test system can be configured on the test platform, and the first test information comprises the following steps: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system. Then, when testing, the testing platform can simulate the user terminal, based on the interactive operation of the access address to the first interface, notify the callback address to the first server through the first interface, receive the interactive operation of the first server to the second interface based on the callback address, and record the interactive operation with the configured equipment identification information, so as to realize convenient and quick interface testing, without using a real mobile terminal for testing, and because the interactive operation result is directly recorded based on the equipment identification information, the interactive result can be conveniently inquired, and the labor cost and the time cost of interface butt joint testing are reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the alternative embodiments. The drawings are only for purposes of illustrating alternative embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a prior art interface docking test schematic;
FIG. 2 is a flow chart illustrating steps of a method for interface docking testing according to an embodiment of the present invention;
FIG. 3A is a flow chart illustrating steps of another interface docking test method according to an embodiment of the invention;
FIG. 3B illustrates a schematic diagram of a presentation interface for initiating a configuration request, according to one embodiment of the invention;
FIG. 3C shows a schematic diagram of a configuration interface, according to one embodiment of the invention;
FIG. 3D illustrates a schematic diagram of a test execution instruction launch interface, according to one embodiment of the invention;
FIG. 3E illustrates a schematic diagram of a presentation interface for simulating test data, in accordance with one embodiment of the present invention;
FIG. 4 shows a schematic structure of an interface docking test apparatus according to an embodiment of the present invention;
FIG. 5 shows a schematic structure of another interface docking test apparatus according to an embodiment of the present invention;
fig. 6 shows a hardware structure diagram of an interface docking test apparatus according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Referring to fig. 2, a flowchart illustrating steps of an interface docking test method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 110, configuring first test information aiming at a test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
in the embodiment of the application, a test system can be erected based on a Model View Controller (Model) framework, a log subscription subsystem and a log recording subsystem which are consistent with functions of an online system are arranged in the test system, and then a shell script is constructed to realize automatic and standardized recording of logs.
In this embodiment of the present application, a user may configure first test information for the test system, where the first test information includes an access address of a first interface corresponding to a first server, a callback address of a second interface that is called back by the first server, and device identification information; the second interface is an interface of the test system, and of course, other information may also be configured, which is not limited in this embodiment.
It should be noted that the first server may be a third-party server that needs to interface with the online system according to the embodiment of the present application. In addition, the access address of the first interface is provided for the third-party platform.
In the embodiment of the application, when the interface is subjected to butt joint test at each time, the equipment identification information can use different equipment identification information, so that different tests can be recorded by using different equipment identification information in subsequent records, and the inquiry is facilitated.
Step 120, receiving a test execution instruction aiming at the first test information;
after the first test information for the test system is configured, the user may trigger a test execution instruction in the test system, and then the test system receives the test execution instruction.
Step 130, simulating a user terminal according to the device identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
the test system may obtain the device identification information, the access address of the first interface, and the callback address of the second interface from the configuration information.
Then, the test system may simulate a user terminal, such as a simulated mobile phone, to obtain dotting data based on the device identification information, generate an access request for the access address based on the dotting data, and send the access request to the first interface, so as to implement an interactive operation between the test system and the first interface, and in addition, may send the callback address to the first server.
Step 140, receiving the interactive operation of the first server to the second interface based on the callback address;
the first server can obtain dotting data according to the access request after the access request is sent by the test system, and then can call back the callback address directly based on the dotting data, so that data are returned to the test system. Thus, the test system can receive the data returned by the first server.
And 150, recording the interactive operation result based on the equipment identification information.
When step 130 is executed, the test system may record the access operation to the server, and when step 140 is executed, the test system may record the result of the access operation to the first server, and, inside the test system, the operation related to the interaction may also be recorded, for example, the operation of the test system sending data to the internal statistical system may also be recorded. When recording, the device identification information is adopted for recording, so that for the test, the device identification information can be conveniently used for inquiring subsequently.
In the embodiment of the present application, first test information for a test system may be configured on a test platform, where the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system. Then, when testing, the testing platform can simulate the user terminal, based on the interactive operation of the access address to the first interface, notify the callback address to the first server through the first interface, receive the interactive operation of the first server to the second interface based on the callback address, and record the interactive operation with the configured equipment identification information, so as to realize convenient and quick interface testing, without using a real mobile terminal for testing, and because the interactive operation result is directly recorded based on the equipment identification information, the interactive result can be conveniently inquired, and the labor cost and the time cost of interface butt joint testing are reduced.
Example two
Referring to fig. 3A, a flowchart illustrating steps of an interface docking test method according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 210, after receiving a configuration request sent by a test terminal, returning a configuration page to the test terminal, so that a user configures first test information in the configuration page;
in the embodiment of the application, a user can access the test system by using the test terminal and send a configuration request to a server where the test system is located.
Referring to FIG. 3B, an example of a page where a test terminal initiates a configuration request is shown. After the user accesses the test system, the test system returns the page of fig. 3B to the test terminal, and then the user clicks the S11 "+ add test simulation click" button in the page, so that a configuration request may be sent to the test system. After receiving the configuration request, the test system may return a configuration page to the test terminal.
Referring to fig. 3C, the test server may return the configuration page shown in fig. 3C, and the test terminal may display the configuration page. The user may configure the first test information in the configuration page.
Step 212, receiving first test information, configured by the test terminal through the configuration page, for the test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server, equipment identification information and a test project name are obtained; the second interface is an interface of the test system;
of course, as shown in fig. 3C, the configuration page may provide the device identification information configuration item Imei, the access address configuration item url of the first interface corresponding to the first server, and the callback address Request of the second interface called back by the first server. The test item name configuration item Client can also be included.
Of course, more configuration items may be configured in the configuration page, for example, Imei MD5 is MD5(Message Digest Algorithm MD5, fifth version of Message Digest Algorithm) value of the device identification information. Idfa: is an identifier of an IOS (mobile operating system developed by apple inc.) device, this configuration item may not be configured. And OS: the operating system of the mobile phone, such as an Android system and an IOS system, can be selected by a user.
In addition, a docking environment configuration item can be set in the configuration test page, and a user can select a test environment or an online environment. After the user selects the test environment, the test system executes the subsequent test process.
The user may then configure the first test information in the configuration page of FIG. 3C. For example:
client: item A
Env: test environment
Imei:863054035312190
Imei md5:ab3d5dcbcc2d3a826ab837b80afca4eb
OS:Android
url:http://android.api.AAAkan.com/ads/?method=ads.clkAAA&UniqueID=_Uniqu eID_@clictime=_clicktime_&IP=_IP_IP&OS=_OS_&devicetype=_devicetype_&ime_md5=_ime_md5_&IDFA=_IDFA_@MAC_MD5=_MAC_MD5_&callback_url=_callback_url_&signature=_signature
Request:http://android.api.AAAkan.com/ads/?method=ads.clkAAA&UniqueID=_Uniqu eID_@clictime=_clicktime_&IP=_IP_IP&OS=_OS_&devicetype=_device type_&ime_md5=_ime_md5_&IDFA=_IDFA_@MAC_MD5=_MAC_MD5_&callback_url=_callback_url_&signature=_signature&s2s=1
Where Idfa is set to null.
It should be noted that steps 210 and 212 are preferred steps of step 110.
After the user fills in or selects the configuration item in the test page of the test terminal, the user can click to send the configuration item to the test system.
The test system can receive first test information sent by the test terminal through the test page.
Step 214, storing the first test information by the test item name.
After receiving the first test information, the test system can store the first test information by the project name.
When there are a plurality of first test information, the first test information may be stored according to respective project names.
Step 216, after receiving a test item display request sent by a test terminal, returning a test item display page to the test terminal, so that a user can select a test item in the test item display page; the configured test items are displayed in the test item display page;
in practical application, a user can configure a plurality of test items, and if the user wants to test, the user needs to select the test items, so that the user can send a test item showing request to the test system by using the test terminal. Then the test system returns a test item display page to the test terminal after receiving the test item display request sent by the test terminal. As shown in FIG. 3D, two test items, namely an A item and a B item, are shown in the page, although the information shown may also include device identification information ime, and the MD5 value Imei MD5 of the device identification information. The user may check one or more test items in the page of the test terminal.
Step 218, receiving a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
And as shown in fig. 3D, clicking the test start control, and the test terminal sending a test execution instruction to the server, and as shown in fig. 3D, when the user clicks the control corresponding to the Send simulate, sending the test execution instruction to the test system.
It should be noted that, in the test item display page, a test item deletion control may also be displayed, for example, in S in fig. 3D, after the user has selected the test item and clicked S13, the test terminal sends a test item deletion instruction based on the test item display page. And after receiving the test item deleting instruction, the test system deletes the corresponding recorded first test information. For example, the user clicks the item a and then clicks S13, and the test system receives a test item deletion instruction, and then deletes the first test information of the item a.
This step 218 is a preferred step corresponding to the step 120.
Step 220, simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
specifically, step 120 includes:
substep A1, obtaining dotting data, the equipment identification information, the access address and the callback address;
in the embodiment of the application, dotting data, such as information of the advertisement, for example, advertiser ID, click price, and the like, may be preset in the test platform.
And then, after receiving a test execution instruction, acquiring the dotting data and acquiring first test information, such as the access address, the callback address and the equipment identification information.
Substep A2, replacing the target information required by the first server with the corresponding macro in the accessed website; the target information comprises the dotting data, the equipment identification information and callback address target information;
substep a3, sending an access request to the first interface based on the accessed web address after replacing the macro.
Such as the above access address "http:// android. api. aaakan. com/ads/? method _ ads _ clkaaa & UniqueID _
", the test system may obtain click data, such as the advertiser ID replacing the macro corresponding to the advertiser ID, such as replacing the advertiser ID with" _ unique ID ", the click time with" _ clicktime ", the click IP with" _ IP _ ", and then may replace the device identification information with the device identification information macro, such as the above-mentioned link, may replace the MD5 of the device identification information, such as" ab3d5dcbcc2d3a826ab837b80afca4eb "with" _ ime _ MD5_ ", and then may replace the callback address Request with" _ callback _ url _ ". It should be noted that when there is other data, the macro may be replaced with other corresponding macro, such as device type data _ device type _ ", and operating system data _ OS _". Other macros are replaced similarly, and the embodiment of the application is not limited to the replacement. Therefore, the mobile terminal can be simulated to click the point, and an access request is sent to the first server.
And then the test system can access the replaced access address, so that an access request is sent to the first interface of the first server, and the data is sent to the first server through the access request.
After receiving the access request, the first server of the third party may obtain the data, such as the dotting data, the device identification information, the callback address target information, and the like, through the access request. Then the first server can call the callback address to transmit data back to the test system.
In practical application, after the first server acquires the dotting data, feedback data required by a direct test system can be returned to the test system through a callback address, wherein the feedback data comprises the dotting data and equipment identification information.
The first server may also replace the macro corresponding to the feedback data in the callback address with the feedback data, for example, replace the macro of the response dotting data with the dotting data, replace the macro of the corresponding device identification information with the device identification information, and the like according to the replacement principle of the access address, and then may send the callback request to the second interface of the test system through the callback address.
Step 222, receiving the interactive operation of the first server on the second interface based on the callback address;
after the test system receives the callback request of the first server through the second interface, data such as dotting data and equipment identification information can be acquired from the request.
Step 224, recording the result of the interactive operation based on the device identification information.
During the interaction process of the test system and the first server, standardized recording with the equipment identification information can be automatically carried out.
Preferably, the test system comprises a first message subscription subsystem and a second log subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
preferably, the step 224 includes:
sub-step B11, each time after the interactive operation occurs once based on the first message subscription subsystem, when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem, storing the first record with the device identification information as a main key by using a preset shell script
In the embodiment of the application, a test system may be constructed based on an architecture of an online system, where the online system is provided with a second message subscription subsystem and a second log subsystem, and the second log subsystem records all logs generated in a server. A first message subscription subsystem and a second log subsystem, the interaction being performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system and records all logs in the server.
It should be noted that, in order to quickly look up the test result of each test, a shell script may be additionally set, and when the shell script records a log, the device identification information involved in the interactive operation is recorded as a primary key.
In practical applications, for security, the md5 value of the device identification information may be recorded.
Step 226, receiving a first viewing request of the test terminal; the viewing request includes the device identification information;
in practical application, the test system may further receive a first viewing request including the device identification information of the test terminal, so as to view the interface test result.
Step 228, according to the first viewing request, returning the interaction operation result corresponding to the device identification information as a successful record to the test terminal for displaying.
After receiving the first viewing request, the test system may return the relevant record to the client for display according to the device identification information in the first viewing request.
In practical application, the test terminal may further send a first viewing request including an MD5 value of the device identification information, and the test system may obtain a log recorded according to the MD5 value according to the MD5 value of the viewing request, and return the log to the client for displaying.
Referring to FIG. 3E, a presentation page of simulated test data returned by the test system is shown, which may include filters that may select search terms such as uniqued, imei md5, idfa, host, and the like. The user may select imeim 5 for the search, then enter the md5 value of the device identification information for the test item in the corresponding search box S32, and may then send a first request to view to the test system.
Then the test system checks the record and returns the record to the display page of the test terminal for display. If no record is found, a null value is returned and the presentation page displays null.
In practical application, if the record can be found in the display page, the interface simulation is correct in docking, and the online project can be realized. If the record can not be found in the display page, the interface simulation butt joint is indicated to be in problem and needs to be adjusted.
Preferably, step 228 includes:
substep B21, searching for a record that the interactive operation result corresponding to the device identification information is successful according to the first viewing request;
substep B22, converting the device identification information in the record into md5 value;
and a sub-step B23, returning the converted record to the test terminal for displaying.
In practical applications, if the first viewing request is device identification information and the test system records the device identification information, the record may be searched according to the device identification information, then the device identification information is converted into an md5 value, and then the record with the md5 value converted is returned to the test terminal for displaying, so that the test terminal displays the md5 value, as shown in column 3 of fig. 3E, thereby improving security.
Preferably, the method further comprises the following steps:
step 230, configuring second test information for the online system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a third interface called back by the first server and equipment identification information are obtained; the third interface is an interface of the online system;
step 232, receiving a test execution instruction aiming at the second test information;
step 234, simulating a user terminal according to the device identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
step 236, receiving the interactive operation of the first server to the third interface based on the callback address;
step 238, recording the result of the interactive operation based on the device identification information.
In the embodiment of the application, after the simulation docking test is successful, the project can be on-line and can be deployed to an on-line system. The configuration information may select the test environment as an online environment in the interface of fig. 3C for online docking. For the online system, a shell script can be added, and the interaction between the online system and the first server is recorded based on the device identification. The principle is similar to the above process and will not be described in detail here.
Preferably, the method further comprises the following steps:
step 240, receiving a second viewing request of the test terminal; the viewing request includes the device identification information;
and 242, returning the record to the test terminal for displaying according to the second viewing request.
Then, the user can access the online result display page at the test terminal, then input the device identifier or the md5 value of the device identifier in the displayed result display page, and then click the search space, thereby initiating a second viewing request to the test system, the test system can search the record of the interactive operation of the online system, and return to the online result display page, and the test terminal can display the result in the online result display page. If there is specific data for an item, the inline data is correct, and if there is no specific data, the inline data is incorrect.
It should be noted that the online result presentation page may also have other search terms, such as idfa, which the user may enter for a query.
In the embodiment of the present application, first test information for a test system may be configured on a test platform, where the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system. Then, when testing, the testing platform can simulate the user terminal, based on the interactive operation of the access address to the first interface, notify the callback address to the first server through the first interface, receive the interactive operation of the first server to the second interface based on the callback address, and record the interactive operation with the configured equipment identification information, so as to realize convenient and quick interface testing, without using a real mobile terminal for testing, and because the interactive operation result is directly recorded based on the equipment identification information, the interactive result can be conveniently inquired, and the labor cost and the time cost of interface butt joint testing are reduced. And the embodiment of the application can also conveniently inquire the condition of the online data.
Referring to fig. 4, a block diagram of an interface docking test apparatus according to an embodiment of the present invention is shown, where the apparatus may specifically include the following modules:
a first configuration module 410 for configuring first test information for the test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
a first test instruction receiving module 420, configured to receive a test execution instruction for the first test information;
a first interaction module 430, configured to simulate a user terminal according to the device identification information, perform an interaction operation on the first interface based on the access address, and notify the callback address to the first server through the first interface;
a second interaction module 440, configured to receive an interaction operation of the first server on the second interface based on the callback address;
a first recording module 450, configured to record a result of the interaction operation based on the device identification information.
In the embodiment of the present application, first test information for a test system may be configured on a test platform, where the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system. Then, when testing, the testing platform can simulate the user terminal, based on the interactive operation of the access address to the first interface, notify the callback address to the first server through the first interface, receive the interactive operation of the first server to the second interface based on the callback address, and record the interactive operation with the configured equipment identification information, so as to realize convenient and quick interface testing, without using a real mobile terminal for testing, and because the interactive operation result is directly recorded based on the equipment identification information, the interactive result can be conveniently inquired, and the labor cost and the time cost of interface butt joint testing are reduced.
Referring to fig. 5, a block diagram of an interface docking test apparatus according to an embodiment of the present invention is shown, where the apparatus may specifically include the following modules:
a first configuration module 510 for configuring first test information for the test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server, equipment identification information and a test item name are obtained; the second interface is an interface of the test system; the method specifically comprises the following steps:
the configuration page returning submodule 5101 is configured to, after receiving a configuration request sent by a test terminal, return a configuration page to the test terminal, so that a user configures first test information in the configuration page;
the configuration information receiving submodule 5102 is configured to receive first test information, configured by the test terminal through the configuration page, for the test system.
A first test storage module 512, configured to store the first test information by the test item name
The item page returning module 514 is configured to, after receiving a test item display request sent by a test terminal, return a test item display page to the test terminal, so that a user selects a test item in the test item display page; the configured test items are displayed in the test item display page;
a first test instruction receiving module 516, configured to receive a test execution instruction for the first test information; the method specifically comprises the following steps:
the instruction receiving submodule 5161 is configured to receive a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
A first interaction module 518, configured to simulate a user terminal according to the device identification information, perform an interaction operation on the first interface based on the access address, and notify the callback address to the first server through the first interface;
a second interaction module 520, configured to receive an interaction operation of the first server on the second interface based on the callback address;
a first recording module 522, configured to record a result of the interaction operation based on the device identification information.
A first viewing request receiving module 524, configured to receive a first viewing request of the test terminal; the first viewing request includes the device identification information;
a first record returning module 526, configured to return, according to the first viewing request, a record that an interaction operation result corresponding to the device identification information is a success, to the test terminal for displaying.
Preferably, the first record returning module includes:
the searching submodule is used for searching a record of which the interactive operation result corresponding to the equipment identification information is successful according to the checking request;
the conversion submodule is used for converting the equipment identification information in the record into an md5 value;
and the return submodule is used for returning the converted record to the test terminal for displaying.
Preferably, the test system comprises a first message subscription subsystem and a second log subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
the first recording module includes:
and the first recording module submodule stores a first record by using a preset shell script with the equipment identification information as a main key when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem each time after the interactive operation occurs once based on the first message subscription subsystem.
Preferably, the method further comprises the following steps:
a second configuration module for configuring second test information for the online system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a third interface called back by the first server and equipment identification information are obtained; the third interface is an interface of the online system;
a second test instruction receiving module, configured to receive a test execution instruction for the second test information;
the third interactive module is used for simulating a user terminal according to the equipment identification information, carrying out interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
a fourth interaction module, configured to receive an interaction operation of the first server on the third interface based on the callback address;
and the second recording module is used for recording the interactive operation result based on the equipment identification information.
Preferably, the method further comprises the following steps:
the first viewing request receiving module is used for receiving a second viewing request of the test terminal; the second view request includes the device identification information;
and the first record returning module is used for returning the record to the test terminal for displaying according to the second viewing request.
In the embodiment of the present application, first test information for a test system may be configured on a test platform, where the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system. Then, when testing, the testing platform can simulate the user terminal, based on the interactive operation of the access address to the first interface, notify the callback address to the first server through the first interface, receive the interactive operation of the first server to the second interface based on the callback address, and record the interactive operation with the configured equipment identification information, so as to realize convenient and quick interface testing, without using a real mobile terminal for testing, and because the interactive operation result is directly recorded based on the equipment identification information, the interactive result can be conveniently inquired, and the labor cost and the time cost of interface butt joint testing are reduced. And the embodiment of the application can also conveniently inquire the condition of the online data.
Fig. 6 is a schematic hardware structure diagram of an interface docking test apparatus according to an embodiment of the present application. As shown in fig. 6, the interface docking test apparatus of the present embodiment includes a processor 71 and a memory 72.
The processor 71 executes the computer program code stored in the memory 72 to implement the information processing method of the interface docking test apparatus in fig. 1 to 3 in the above embodiment.
The memory 72 is configured to store various types of data to support the operation of interfacing the test device at the interface. Examples of such data include instructions for any application or method operating on the interface docking test device, such as messages, pictures, video, and the like. The memory 72 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
Optionally, the processor 71 is provided in the processing assembly 70. The interface docking test device may further include: a communication component 73, a power component 74, a multimedia component 75, an audio component 76, an input/output interface 77 and/or a sensor component 78. The components and the like specifically included in the interface docking test apparatus are set according to actual requirements, which is not limited in this embodiment.
The processing component 70 generally controls the overall operation of the interface docking test device. The processing component 70 may include one or more processors 71 to execute instructions to perform all or a portion of the steps of the methods of fig. 1-3 described above. Further, the processing component 70 may include one or more modules that facilitate interaction between the processing component 70 and other components. For example, the processing component 70 may include a multimedia module to facilitate interaction between the multimedia component 75 and the processing component 70.
The power supply component 74 provides power to the various components of the interface docking test device. The power components 74 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the interface docking test device.
The multimedia component 75 includes a display screen that provides an output interface between the interface docking test device and the user. In some embodiments, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 76 is configured to output and/or input audio signals. For example, the audio component 76 may include a Microphone (MIC) configured to receive an external audio signal when the interface docking test apparatus is in an operational mode, such as a speech recognition mode. The received audio signal may further be stored in the memory 72 or transmitted via the communication component 73. In some embodiments, audio assembly 76 also includes a speaker for outputting audio signals.
The input/output interface 77 provides an interface between the processing component 70 and peripheral interface modules, which may be click wheels, buttons, etc. These buttons may include, but are not limited to: a volume button, a start button, and a lock button.
The sensor assembly 78 includes one or more sensors for providing various aspects of status assessment for the interface docking test device. For example, the sensor assembly 78 may detect the open/closed status of the interface docking test device, the relative positioning of the assemblies, the presence or absence of user contact with the interface docking test device. The sensor assembly 78 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the interface docking test device. In some embodiments, the sensor assembly 78 may also include a camera or the like.
The communication component 73 is configured to facilitate wired or wireless communication between the interface docking test apparatus and other devices. The interface docking test device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one embodiment, the interface docking test device may include a SIM card slot therein for inserting a SIM card therein, so that the interface docking test device can log onto a GPRS network to establish communication with the server via the internet.
As can be seen from the above, the communication component 73, the audio component 76, the input/output interface 77 and the sensor component 78 in the embodiment of fig. 6 can be implemented as the input devices in the embodiments of fig. 4 to 6.
In an interface docking test apparatus of this embodiment, the processor configures first test information for a test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system; receiving a test execution instruction aiming at the first test information; simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface; receiving the interaction operation of the first server on the second interface based on the callback address; and recording the interactive operation result based on the equipment identification information.
Of course, the processor may also perform the methods of the other steps previously described.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the interface docking test method and apparatus according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet platform or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses an A1 interface docking test method, which comprises the following steps:
configuring first test information for a test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
receiving a test execution instruction aiming at the first test information;
simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
receiving the interaction operation of the first server on the second interface based on the callback address;
and recording the interactive operation result based on the equipment identification information.
A2, the method of claim a1, the step of configuring first test information for a test system comprising:
after receiving a configuration request sent by a test terminal, returning a configuration page to the test terminal so that a user can configure first test information in the configuration page;
and receiving first test information which is configured by the test terminal through the configuration page and aims at the test system.
A3, the method of claim A1, the first test information further comprising: testing the name of the project;
after the step of configuring the first test information for the test system, the method further includes:
and storing the first test information by the name of the test item.
A4, the method of claim A3, further comprising, after the step of storing the first test information in the test item name:
after receiving a test item display request sent by a test terminal, returning a test item display page to the test terminal so that a user can select a test item in the test item display page; the configured test items are displayed in the test item display page;
the step of receiving a test execution instruction for the first test information includes:
receiving a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
A5, the method of claim a1, further comprising, after the step of recording the result of the interaction based on the device identification information:
receiving a first viewing request of the test terminal; the first viewing request includes the device identification information;
and according to the first viewing request, returning the interaction operation result corresponding to the equipment identification information as a successful record to the test terminal for displaying.
The method of claim a5, as represented by a6, wherein the step of returning, to the test terminal, the record that the interaction operation result corresponding to the device identification information is successful according to the viewing request includes:
searching for a record with a successful interactive operation result corresponding to the equipment identification information according to the viewing request;
converting the device identification information in the record into an md5 value;
and returning the converted record to the test terminal for displaying.
A7, the method of claim A1, the test system comprising a first message subscription subsystem and a second logging subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
the step of recording the result of the interactive operation based on the device identification information includes:
and storing a first record by using a preset shell script with the equipment identification information as a main key when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem each time after the interactive operation occurs once based on the first message subscription subsystem.
A8, the method of claim a1, further comprising:
configuring second test information for the online system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a third interface called back by the first server and equipment identification information are obtained; the third interface is an interface of the online system;
receiving a test execution instruction aiming at the second test information;
simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
receiving an interaction operation of the first server on the third interface based on the callback address;
and recording the interactive operation result based on the equipment identification information.
A9, the method of claim A8, further comprising:
receiving a second viewing request of the test terminal; the second view request includes the device identification information;
and returning the record to the test terminal for displaying according to the second viewing request.
The invention also discloses B10, an interface docking test device, comprising:
the first configuration module is used for configuring first test information aiming at the test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
a first test instruction receiving module, configured to receive a test execution instruction for the first test information;
the first interaction module is used for simulating a user terminal according to the equipment identification information, carrying out interaction operation on the first interface based on the access address and notifying the callback address to the first server through the first interface;
the second interaction module is used for receiving the interaction operation of the first server on the second interface based on the callback address;
and the first recording module is used for recording the interactive operation result based on the equipment identification information.
B11, the apparatus of claim B10, the first configuration module comprising:
the configuration page returning submodule is used for returning a configuration page to the test terminal after receiving a configuration request sent by the test terminal so that a user can configure first test information in the configuration page;
and the configuration information receiving submodule is used for receiving first test information which is configured by the test terminal through the configuration page and aims at the test system.
B12, the apparatus of claim B10, the first test information further comprising: testing the name of the project;
the device further comprises:
and the first test storage module is used for storing the first test information by the name of the test item.
B13, the apparatus of claim B12, further comprising:
the item page returning module is used for returning a test item display page to the test terminal after receiving a test item display request sent by the test terminal so that a user can select a test item in the test item display page; the configured test items are displayed in the test item display page;
the first test instruction receiving module comprises:
the instruction receiving submodule is used for receiving a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
B14, the apparatus of claim B10, further comprising:
the first viewing request receiving module is used for receiving a first viewing request of the test terminal; the first viewing request includes the device identification information;
and the first record returning module is used for returning the interaction operation result corresponding to the equipment identification information to the test terminal for displaying according to the first viewing request, wherein the interaction operation result is a successful record.
B15, the method of claim B14, the first record return module comprising:
the searching submodule is used for searching a record of which the interactive operation result corresponding to the equipment identification information is successful according to the checking request;
the conversion submodule is used for converting the equipment identification information in the record into an md5 value;
and the return submodule is used for returning the converted record to the test terminal for displaying.
B16, the apparatus of claim B10, the test system comprising a first message subscription subsystem and a second log subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
the first recording module includes:
and the first recording module submodule stores a first record by using a preset shell script with the equipment identification information as a main key when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem each time after the interactive operation occurs once based on the first message subscription subsystem.
B17, the apparatus of claim B10, further comprising:
a second configuration module for configuring second test information for the online system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a third interface called back by the first server and equipment identification information are obtained; the third interface is an interface of the online system;
a second test instruction receiving module, configured to receive a test execution instruction for the second test information;
the third interactive module is used for simulating a user terminal according to the equipment identification information, carrying out interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
a fourth interaction module, configured to receive an interaction operation of the first server on the third interface based on the callback address;
and the second recording module is used for recording the interactive operation result based on the equipment identification information.
B18, the apparatus of claim B17, further comprising:
the first viewing request receiving module is used for receiving a second viewing request of the test terminal; the second view request includes the device identification information;
and the first record returning module is used for returning the record to the test terminal for displaying according to the second viewing request.
The invention also discloses C19, a computer program comprising computer readable code which, when run on a terminal device, causes the terminal device to perform an interface docking test method according to any one of a1-a 9.
The invention also discloses D20, a computer readable medium in which a computer program as described in a1-a9 is stored.

Claims (10)

1. An interface docking test method includes:
configuring first test information for a test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
receiving a test execution instruction aiming at the first test information;
simulating a user terminal according to the equipment identification information, performing interactive operation on the first interface based on the access address, and notifying the callback address to the first server through the first interface;
receiving the interaction operation of the first server on the second interface based on the callback address;
and recording the interactive operation result based on the equipment identification information.
2. The method of claim 1, wherein the step of configuring the first test information for the test system comprises:
after receiving a configuration request sent by a test terminal, returning a configuration page to the test terminal so that a user can configure first test information in the configuration page;
and receiving first test information which is configured by the test terminal through the configuration page and aims at the test system.
3. The method of claim 1, wherein the first test information further comprises: testing the name of the project;
after the step of configuring the first test information for the test system, the method further includes:
and storing the first test information by the name of the test item.
4. The method of claim 3, further comprising, after the step of storing the first test information with the test item name:
after receiving a test item display request sent by a test terminal, returning a test item display page to the test terminal so that a user can select a test item in the test item display page; the configured test items are displayed in the test item display page;
the step of receiving a test execution instruction for the first test information includes:
receiving a test execution instruction sent by the test terminal based on the test item display page; and the test execution instruction is sent after the test terminal receives the selection operation of the user on at least one test item.
5. The method of claim 1, wherein after the step of recording the result of the interaction based on the device identification information, further comprising:
receiving a first viewing request of the test terminal; the first viewing request includes the device identification information;
and according to the first viewing request, returning the interaction operation result corresponding to the equipment identification information as a successful record to the test terminal for displaying.
6. The method according to claim 5, wherein the step of returning the record that the interactive operation result corresponding to the device identification information is successful to the test terminal for display according to the viewing request includes:
searching for a record with a successful interactive operation result corresponding to the equipment identification information according to the viewing request;
converting the device identification information in the record into an md5 value;
and returning the converted record to the test terminal for displaying.
7. The method of claim 1, wherein the test system comprises a first message subscription subsystem and a second log subsystem; the interaction is performed based on the first message subscription subsystem; the first message subscription subsystem simulates a second message subscription subsystem of the online system, and the first log subsystem simulates a second log subsystem of the online system;
the step of recording the result of the interactive operation based on the device identification information includes:
and storing a first record by using a preset shell script with the equipment identification information as a main key when the first message subscription subsystem writes the first record corresponding to the interactive operation into the first log subsystem each time after the interactive operation occurs once based on the first message subscription subsystem.
8. An interface docking test apparatus comprising:
the first configuration module is used for configuring first test information aiming at the test system; the first test information includes: the method comprises the steps that an access address of a first interface corresponding to a first server, a callback address of a second interface called back by the first server and equipment identification information are obtained; the second interface is an interface of the test system;
a first test instruction receiving module, configured to receive a test execution instruction for the first test information;
the first interaction module is used for simulating a user terminal according to the equipment identification information, carrying out interaction operation on the first interface based on the access address and notifying the callback address to the first server through the first interface;
the second interaction module is used for receiving the interaction operation of the first server on the second interface based on the callback address;
and the first recording module is used for recording the interactive operation result based on the equipment identification information.
9. A computer program comprising computer readable code which, when run on a terminal device, causes the terminal device to perform an interface docking test method according to any one of claims 1-7.
10. A computer-readable medium, in which a computer program according to claims 1-7 is stored.
CN201810708580.8A 2018-07-02 2018-07-02 Interface testing method and device Active CN110674023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810708580.8A CN110674023B (en) 2018-07-02 2018-07-02 Interface testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810708580.8A CN110674023B (en) 2018-07-02 2018-07-02 Interface testing method and device

Publications (2)

Publication Number Publication Date
CN110674023A true CN110674023A (en) 2020-01-10
CN110674023B CN110674023B (en) 2022-11-04

Family

ID=69065300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810708580.8A Active CN110674023B (en) 2018-07-02 2018-07-02 Interface testing method and device

Country Status (1)

Country Link
CN (1) CN110674023B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111210280A (en) * 2020-01-14 2020-05-29 北京达佳互联信息技术有限公司 Content item conversion tracking method, device, terminal, server and medium
CN113822694A (en) * 2021-01-15 2021-12-21 北京沃东天骏信息技术有限公司 Data returning method, device and storage medium
CN114579193A (en) * 2022-03-08 2022-06-03 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707534A (en) * 2009-10-28 2010-05-12 北京天碁科技有限公司 Method and device for carrying out analysis on physical layer logs
CN105099811A (en) * 2015-06-03 2015-11-25 北京金山安全软件有限公司 Interface testing method and device
US20150339215A1 (en) * 2013-07-02 2015-11-26 Tencent Technology (Shenzhen) Company Limited Systems and Methods for Testing Terminal Applications
CN106970870A (en) * 2016-01-14 2017-07-21 腾讯科技(北京)有限公司 Webpage test platform, webpage method of testing and webpage test system
CN107247660A (en) * 2017-05-05 2017-10-13 北京奇虎科技有限公司 The method of testing and test device of a kind of interface
CN107766190A (en) * 2017-10-31 2018-03-06 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707534A (en) * 2009-10-28 2010-05-12 北京天碁科技有限公司 Method and device for carrying out analysis on physical layer logs
US20150339215A1 (en) * 2013-07-02 2015-11-26 Tencent Technology (Shenzhen) Company Limited Systems and Methods for Testing Terminal Applications
CN105099811A (en) * 2015-06-03 2015-11-25 北京金山安全软件有限公司 Interface testing method and device
CN106970870A (en) * 2016-01-14 2017-07-21 腾讯科技(北京)有限公司 Webpage test platform, webpage method of testing and webpage test system
CN107247660A (en) * 2017-05-05 2017-10-13 北京奇虎科技有限公司 The method of testing and test device of a kind of interface
CN107766190A (en) * 2017-10-31 2018-03-06 平安科技(深圳)有限公司 Interface test method, device, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111210280A (en) * 2020-01-14 2020-05-29 北京达佳互联信息技术有限公司 Content item conversion tracking method, device, terminal, server and medium
CN113822694A (en) * 2021-01-15 2021-12-21 北京沃东天骏信息技术有限公司 Data returning method, device and storage medium
CN114579193A (en) * 2022-03-08 2022-06-03 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN114579193B (en) * 2022-03-08 2024-01-12 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110674023B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN107402880B (en) Test method and electronic equipment
CN108334436B (en) Application software optimization method, device, equipment and computer readable storage medium
CN108345543B (en) Data processing method, device, equipment and storage medium
CN110221982B (en) Performance test method, device and equipment of business system and readable storage medium
CN107896244B (en) Version file distribution method, client and server
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN105099811A (en) Interface testing method and device
CN110674023B (en) Interface testing method and device
US11586772B2 (en) Method and device for displaying information
CN108111364B (en) Service system testing method and device
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
WO2018121266A1 (en) Method and device for obtaining application and terminal device
CN111352836A (en) Pressure testing method and related device
CN110533464A (en) A kind of advertisement detecting method, apparatus, system and calculate equipment
US20200128287A1 (en) Captured content sharing interface
WO2023284505A1 (en) Method and apparatus for code-scanning payment
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN109062799A (en) Regression testing method, the apparatus and system of advertising scenarios
CN106411881B (en) Method and device for buying ticket based on client
CN108958855B (en) Page jump method, device and system
CN112764838A (en) Target content display method and device and electronic equipment
CN113760308A (en) DSP system construction method and device, electronic equipment and storage medium
US10169216B2 (en) Simulating sensors
CN110955449A (en) Method and device for releasing gray scale of client
WO2023028692A1 (en) Screen equipped item identification using indicia

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