CN108540674B - Automatic testing method and device, computer equipment and storage medium - Google Patents

Automatic testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN108540674B
CN108540674B CN201810240229.0A CN201810240229A CN108540674B CN 108540674 B CN108540674 B CN 108540674B CN 201810240229 A CN201810240229 A CN 201810240229A CN 108540674 B CN108540674 B CN 108540674B
Authority
CN
China
Prior art keywords
test
media gateway
virtual media
ivr system
gateway service
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.)
Active
Application number
CN201810240229.0A
Other languages
Chinese (zh)
Other versions
CN108540674A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810240229.0A priority Critical patent/CN108540674B/en
Priority to PCT/CN2018/101846 priority patent/WO2019179019A1/en
Publication of CN108540674A publication Critical patent/CN108540674A/en
Application granted granted Critical
Publication of CN108540674B publication Critical patent/CN108540674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/26Arrangements for supervision, monitoring or testing with means for applying test signals or for measuring
    • H04M3/28Automatic routine testing ; Fault testing; Installation testing; Test methods, test equipment or test arrangements therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/487Arrangements for providing information services, e.g. recorded voice services or time announcements
    • H04M3/493Interactive information services, e.g. directory enquiries ; Arrangements therefor, e.g. interactive voice response [IVR] systems or voice portals

Abstract

The embodiment of the invention discloses an automatic testing method, an automatic testing device, computer equipment and a storage medium, wherein the method comprises the following steps: calling a virtual media gateway service; initiating a test request to the IVR system through the virtual media gateway service; if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established; and carrying out automatic testing according to the testing channel. The embodiment of the invention can reduce the time consumption of the test process to a great extent and improve the test efficiency.

Description

Automatic testing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an automated testing method and apparatus, a computer device, and a storage medium.
Background
In the prior art, the testing of the flow of an IVR (Interactive Voice Response) system is not finished by a complete tool, and if the testing is carried out manually module by module, the testing process is very time-consuming, the efficiency is low and the workload is very large; in addition, when the test content is very complicated, if the test results are manually tested and collated, the error rate of the collated test results is also extremely high.
Disclosure of Invention
In view of this, embodiments of the present invention provide an automated testing method, an automated testing apparatus, a computer device, and a storage medium, which can greatly reduce the time consumption of a testing process and improve the testing efficiency.
In one aspect, an embodiment of the present invention provides an automated testing method, where the method includes:
calling a virtual media gateway service;
initiating a test request to the IVR system through the virtual media gateway service;
if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established;
and carrying out automatic testing according to the testing channel.
In another aspect, an embodiment of the present invention provides an automatic testing apparatus, where the apparatus includes:
the calling unit is used for calling the virtual media gateway service;
the first initiating unit is used for initiating a test request to the IVR system through the virtual media gateway service;
the establishing unit is used for establishing a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received;
and the automatic test unit is used for carrying out automatic test according to the test channel.
In yet another aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the automated testing method as described above is implemented.
In yet another aspect, the present invention provides a computer-readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors to implement the automated testing method described above.
The embodiment of the invention provides an automatic testing method, an automatic testing device, computer equipment and a storage medium, wherein the method comprises the following steps: calling a virtual media gateway service; initiating a test request to the IVR system through the virtual media gateway service; if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established; and carrying out automatic testing according to the testing channel. By implementing the embodiment of the invention, the time consumption of the test process can be reduced to a great extent, and the test efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of an automated testing method provided by an embodiment of the invention;
FIG. 2 is a schematic flow chart diagram of an automated testing method provided by an embodiment of the invention;
FIG. 3 is a schematic flow chart diagram of an automated testing method provided by an embodiment of the invention;
FIG. 4 is a schematic flow chart diagram of an automated testing method according to another embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating an automated testing method according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart diagram of an automated testing method according to another embodiment of the present invention;
FIG. 7 is a schematic block diagram of an automated test equipment provided by an embodiment of the present invention;
FIG. 8 is another schematic block diagram of an automated test equipment provided by an embodiment of the present invention;
FIG. 9 is another schematic block diagram of an automated test equipment provided in accordance with an embodiment of the present invention;
FIG. 10 is another schematic block diagram of an automated test equipment provided by an embodiment of the present invention;
FIG. 11 is another schematic block diagram of an automated testing apparatus according to an embodiment of the present invention
Fig. 12 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of an automated testing method according to an embodiment of the present invention. The method can be operated in terminals such as smart phones (such as Android phones, IOS phones and the like), tablet computers, notebook computers, smart devices and the like. The automatic testing method provided by the embodiment of the invention can reduce the time consumption of the testing process to a great extent and improve the testing efficiency. Fig. 1 is a schematic flow chart of an automated testing method according to an embodiment of the present invention. The method includes steps S101 to S104.
S101, calling a virtual media gateway service.
In the embodiment of the present invention, the automated test is directed to an IVR (Interactive Voice Response) system, and optionally, the test flow includes a flow test process and a media test process, the virtual media gateway service is used for bridging voice and corresponding signaling transmission, and the specific method is to set among a plurality of endpoints behind the same or different NAT (Network Address Translation) or firewall, the setting method includes manual setting and automatic setting, wherein, the manual setting is that 'TCP/IP protocol' is selected in a network attribute dialog box, and 'attribute' is clicked, the IP address of a new default gateway is filled in the 'default gateway' tab, the automatic setting is that the IP address, the subnet mask and the default gateway are automatically distributed to the equipment in the network by using a DHCP server, and the automatic setting can be automatically obtained by installing a proxy server.
Further, as shown in fig. 2, the step S101 includes steps S201 to S203.
S201, sending a calling instruction to the virtual media gateway.
In the embodiment of the invention, the calling instruction comprises a service identifier of the virtual media gateway service, and when a terminal needs to call a certain virtual media gateway service, the calling instruction is sent to the virtual media gateway, and the relevant service is found from the virtual media gateway.
S202, searching the target service meeting the calling instruction from the virtual media gateway according to the calling instruction.
In the embodiment of the present invention, a service list is stored on the virtual media gateway, and a mapping relationship between a service identifier and a required service is preset on the service list, where one service identifier corresponds to one service, and when a terminal sends the service identifier to the virtual media gateway, a service uniquely corresponding to the service identifier is found in the service list on the virtual media gateway according to the sent service identifier.
S203, the target service is used as the virtual media gateway service.
S102, a test request is sent to the IVR system through the virtual media gateway service.
In the embodiment of the invention, if the virtual media gateway service is called, a test request is initiated to the IVR system, the test request is an HTTP request, the HTTP request comprises a message head line, a resource request method, a resource identifier and a used protocol, specifically, an IP address is resolved by a domain name DNS of an input URL, a connection is established with the IVR system through the virtual media gateway service according to the IP address and a default 80 port, then a get-type HTTP request header is assembled according to the URL, and the get-type HTTP request header is sent to the IVR system through outputstream.
S103, if the confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established.
In the embodiment of the present invention, before the test is performed, a test channel between the virtual media gateway service and the IVR system is established through a terminal (such as a PC), where the test channel may be a data channel specific to the IVR system to be tested or a general channel for information transmission.
Further, the step S103 includes steps S301 to S304.
S301, determining a test task source address in the virtual media gateway service.
In the embodiment of the invention, each virtual media gateway service corresponds to a plurality of test tasks of the IVR system, the test tasks include data recording operation, voice broadcasting, case collecting, flow skipping and call forwarding, and each test task corresponds to a unique source address.
S302, reconstructing the test task source address.
In the embodiment of the invention, the source address of a test task can be reconstructed on the basis of the traditional Port forwarding table (PORTFORWARD technology for short) port forwarding and mapping technology; it should be noted that, the method for reconstructing the test task source address may be to replace the old address, and copy the address body of the new address into the address body of the old address to replace the address body of the old address; all places that reference the old address are modified to reference the new address.
S303, creating a mapping relation between the test task source address and at least one test channel of the IVR system.
In the embodiment of the invention, mapping of one to a plurality of test channels and source addresses of the test task is formed through the source address and the destination route of the test task, and mapping of one to a plurality of test channels and source addresses of the test task forms at least one test channel mapping relation.
S304, establishing a test channel between the virtual media gateway service and the IVR system according to the mapping relation of the test channel.
And S104, carrying out automatic testing according to the testing channel.
In the embodiment of the invention, the automatic test is carried out through the established test channel, the request of the IVR system is verified according to the request of the IVR system to the virtual media gateway service, and the content input by a tester is sent to the IVR flow service through the test channel in an HTTP request mode through the virtual media gateway service, so that the core components of a call center platform such as a PBX/CTI and the like in the IVR system can be tested.
It should be noted that whether the test case template generation function is activated or not may be further controlled according to the test purpose, in this example, it is assumed that the test case template generation function is activated, and if the selection is turned off, there is no influence on the interaction process, and only the background does not record the test case template any more. The tester invokes the virtual media gateway to initiate an IVR automatic test (e.g., for 95511-3 secure bank IVR service); the virtual media gateway simulates incoming line information (setting incoming call number ANI and recording data (such as calling center number, regional code and the like)); the virtual media gateway initiates an HTTP request to the IVR system; the IVR system responds to the request of the virtual media gateway and writes a request instruction (such as acquiring data recorded with the recording, broadcasting voice and collecting cases, switching, skipping a flow and the like) into the response of the virtual media gateway; the virtual media gateway analyzes the response returned by the IVR system after acquiring the response, and obtains a request instruction of the IVR system from the response; and the virtual media gateway performs corresponding operation according to the instruction of the response information. The operation types generally include data recording operation, voice broadcast, case collection, flow jump, call forwarding and the like (if the instruction is a collection user operation, the virtual media gateway can further obtain prompt voice for broadcast, effective keys (including effective keys, the number of keys allowed to be input), input timeout time, the maximum number of allowed failures and the like from the instruction; after the virtual media gateway successfully executes the instruction requested by the IVR system, the instruction information and the execution result information are processed correspondingly and then cached to form a test case template. Organizing the processing result and then sending the processing result to an IVR system service in an HTTP request mode according to the requirements of the IVR system; under the interactive test mode, the interactive test device can directly interact with a tester, and comprises a media function (voice broadcast) and a key operation of an interactive interface. The system records the key data in the execution process and generates a test report for the testers to look up. And writing the test case data cached in the process to a corresponding storage path of the test case template according to the test flow classification.
As can be seen from the above, the embodiment of the present invention calls the virtual media gateway service; initiating a test request to the IVR system through the virtual media gateway service; if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established; and carrying out automatic testing according to the testing channel, so that the time consumption of the testing process can be reduced to a great extent, and the testing efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of an automated testing method according to an embodiment of the present invention. The method can be operated in terminals such as smart phones (such as Android phones, IOS phones and the like), tablet computers, notebook computers, smart devices and the like. As shown in fig. 4, the method includes steps S401 to S406.
S401, calling the virtual media gateway service.
In the embodiment of the present invention, the automated test is directed to an IVR (Interactive Voice Response) system, and optionally, the test flow includes a flow test process and a media test process, the virtual media gateway service is used for bridging voice and corresponding signaling transmission, and the specific method is to set among a plurality of endpoints behind the same or different NAT (Network Address Translation) or firewall, the setting method includes manual setting and automatic setting, wherein, the manual setting is that 'TCP/IP protocol' is selected in a network attribute dialog box, and 'attribute' is clicked, the IP address of a new default gateway is filled in the 'default gateway' tab, the automatic setting is that the IP address, the subnet mask and the default gateway are automatically distributed to the equipment in the network by using a DHCP server, and the automatic setting can be automatically obtained by installing a proxy server.
S402, a test request is sent to the IVR system through the virtual media gateway service.
In the embodiment of the invention, if the virtual media gateway service is called, a test request is initiated to the IVR system, the test request is an HTTP request, the HTTP request comprises a message head line, a resource request method, a resource identifier and a used protocol, specifically, an IP address is resolved by a domain name DNS of an input URL, a connection is established with the IVR system through the virtual media gateway service according to the IP address and a default 80 port, then a get-type HTTP request header is assembled according to the URL, and the get-type HTTP request header is sent to the IVR system through outputstream.
S403, if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established.
In the embodiment of the present invention, before the test is performed, a test channel between the virtual media gateway service and the IVR system is established through a terminal (such as a PC), where the test channel may be a data channel specific to the IVR system to be tested or a general channel for information transmission.
And S404, carrying out automatic testing according to the testing channel.
In the embodiment of the invention, the automatic test is carried out through the established test channel, the request of the IVR system is verified according to the request of the IVR system to the virtual media gateway service, and the content input by a tester is sent to the IVR flow service through the test channel in an HTTP request mode through the virtual media gateway service, so that the core components of a call center platform such as a PBX/CTI and the like in the IVR system can be tested.
It should be noted that whether the test case template generation function is activated or not may be further controlled according to the test purpose, in this example, it is assumed that the test case template generation function is activated, and if the selection is turned off, there is no influence on the interaction process, and only the background does not record the test case template any more. The tester invokes the virtual media gateway to initiate an IVR automatic test (e.g., for 95511-3 secure bank IVR service); the virtual media gateway simulates incoming line information (setting incoming call number ANI and recording data (such as calling center number, regional code and the like)); the virtual media gateway initiates an HTTP request to the IVR system; the IVR system responds to the request of the virtual media gateway and writes a request instruction (such as acquiring data recorded with the recording, broadcasting voice and collecting cases, switching, skipping a flow and the like) into the response of the virtual media gateway; the virtual media gateway analyzes the response returned by the IVR system after acquiring the response, and obtains a request instruction of the IVR system from the response; and the virtual media gateway performs corresponding operation according to the instruction of the response information. The operation types generally include data recording operation, voice broadcast, case collection, flow jump, call forwarding and the like (if the instruction is a collection user operation, the virtual media gateway can further obtain prompt voice for broadcast, effective keys (including effective keys, the number of keys allowed to be input), input timeout time, the maximum number of allowed failures and the like from the instruction; after the virtual media gateway successfully executes the instruction requested by the IVR system, the instruction information and the execution result information are processed correspondingly and then cached to form a test case template. Organizing the processing result and then sending the processing result to an IVR system service in an HTTP request mode according to the requirements of the IVR system; under the interactive test mode, the interactive test device can directly interact with a tester, and comprises a media function (voice broadcast) and a key operation of an interactive interface. The system records the key data in the execution process and generates a test report for the testers to look up. And writing the test case data cached in the process to a corresponding storage path of the test case template according to the test flow classification.
S405, if receiving the query instruction, initiating a request for querying the currently executed test step.
In the embodiment of the present invention, the query instruction may be a query operation input by a user on a terminal, and the query instruction may also be an SQL query instruction, for example, the SQL query instruction: a Select query statement; in the automatic test process, the terminal may initiate an inquiry request to the IVR system, where the inquiry request is used to inquire about a test step of the test process, for example, the currently executed automatic test step is a test "voice broadcast" process, or the currently executed automatic test step is a test "call forwarding" process, etc.
S406, responding to the request, and displaying the currently executed test steps on a preset display interface.
In the embodiment of the present invention, the preset display interface may be a designated area of the current interface of the terminal, for example, may be the middle of the current interface of the terminal, as shown in fig. 5, in response to the query request of the user, a "test of the call forwarding process being executed" is displayed in the current interface G of the terminal 10, and by displaying the currently executed test steps, the user can conveniently view and understand the process of the automated test at any time.
Referring to fig. 6, fig. 6 is a schematic flow chart of an automated testing method according to an embodiment of the present invention. The method can be operated in terminals such as smart phones (such as Android phones, IOS phones and the like), tablet computers, notebook computers, smart devices and the like. As shown in fig. 6, the method includes steps S501 to S505.
S501, calling a virtual media gateway service.
In the embodiment of the present invention, the automated test is directed to an IVR (Interactive Voice Response) system, and optionally, the test flow includes a flow test process and a media test process, the virtual media gateway service is used for bridging voice and corresponding signaling transmission, and the specific method is to set among a plurality of endpoints behind the same or different NAT (Network Address Translation) or firewall, the setting method includes manual setting and automatic setting, wherein, the manual setting is that 'TCP/IP protocol' is selected in a network attribute dialog box, and 'attribute' is clicked, the IP address of a new default gateway is filled in the 'default gateway' tab, the automatic setting is that the IP address, the subnet mask and the default gateway are automatically distributed to the equipment in the network by using a DHCP server, and the automatic setting can be automatically obtained by installing a proxy server.
S502, a test request is sent to the IVR system through the virtual media gateway service.
In the embodiment of the invention, if the virtual media gateway service is called, a test request is initiated to the IVR system, the test request is an HTTP request, the HTTP request comprises a message head line, a resource request method, a resource identifier and a used protocol, specifically, an IP address is resolved by a domain name DNS of an input URL, a connection is established with the IVR system through the virtual media gateway service according to the IP address and a default 80 port, then a get-type HTTP request header is assembled according to the URL, and the get-type HTTP request header is sent to the IVR system through outputstream.
S503, if the confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established.
In the embodiment of the present invention, before the test is performed, a test channel between the virtual media gateway service and the IVR system is established through a terminal (such as a PC), where the test channel may be a data channel specific to the IVR system to be tested or a general channel for information transmission.
And S504, carrying out automatic testing according to the testing channel.
In the embodiment of the invention, the automatic test is carried out through the established test channel, the request of the IVR system is verified according to the request of the IVR system to the virtual media gateway service, and the content input by a tester is sent to the IVR flow service through the test channel in an HTTP request mode through the virtual media gateway service, so that the core components of a call center platform such as a PBX/CTI and the like in the IVR system can be tested.
It should be noted that whether the test case template generation function is activated or not may be further controlled according to the test purpose, in this example, it is assumed that the test case template generation function is activated, and if the selection is turned off, there is no influence on the interaction process, and only the background does not record the test case template any more. The tester invokes the virtual media gateway to initiate an IVR automatic test (e.g., for 95511-3 secure bank IVR service); the virtual media gateway simulates incoming line information (setting incoming call number ANI and recording data (such as calling center number, regional code and the like)); the virtual media gateway initiates an HTTP request to the IVR system; the IVR system responds to the request of the virtual media gateway and writes a request instruction (such as acquiring data recorded with the recording, broadcasting voice and collecting cases, switching, skipping a flow and the like) into the response of the virtual media gateway; the virtual media gateway analyzes the response returned by the IVR system after acquiring the response, and obtains a request instruction of the IVR system from the response; and the virtual media gateway performs corresponding operation according to the instruction of the response information. The operation types generally include data recording operation, voice broadcast, case collection, flow jump, call forwarding and the like (if the instruction is a collection user operation, the virtual media gateway can further obtain prompt voice for broadcast, effective keys (including effective keys, the number of keys allowed to be input), input timeout time, the maximum number of allowed failures and the like from the instruction; after the virtual media gateway successfully executes the instruction requested by the IVR system, the instruction information and the execution result information are processed correspondingly and then cached to form a test case template. Organizing the processing result and then sending the processing result to an IVR system service in an HTTP request mode according to the requirements of the IVR system; under the interactive test mode, the interactive test device can directly interact with a tester, and comprises a media function (voice broadcast) and a key operation of an interactive interface. The system records the key data in the execution process and generates a test report for the testers to look up. And writing the test case data cached in the process to a corresponding storage path of the test case template according to the test flow classification.
And S505, presenting description information about the automatic test process through a preset browser page.
In an embodiment of the invention, the terminal may receive the description information of the test steps returned by the IVR system and present the information in the browser page. For example, the terminal may present the description information in the browser page in a list, and a row in the list may include all the description information of one test step. Optionally, the terminal may also initiate a request for querying the currently executed test step to the IVR system; and responding to the query result returned by the IVR system, and changing the display effect of the description information corresponding to the currently executed test step.
Referring to fig. 7, in response to the above-mentioned automated testing method, an embodiment of the invention further provides an automated testing apparatus, where the apparatus 100 includes: the system comprises a calling unit 101, an initiating unit 102, a establishing unit 103 and an automatic testing unit 104.
The invoking unit 101 is configured to invoke a virtual media gateway service.
A first initiating unit 102, configured to initiate a test request to the IVR system through the virtual media gateway service.
The establishing unit 103 is configured to establish a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received.
And the automatic test unit 104 is used for carrying out automatic tests according to the test channels.
As can be seen from the above, the embodiment of the present invention calls the virtual media gateway service; initiating a test request to the IVR system through the virtual media gateway service; if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established; and carrying out automatic testing according to the testing channel, so that the time consumption of the testing process can be reduced to a great extent, and the testing efficiency is improved.
As shown in fig. 8, the invoking unit 101 includes:
a sending unit 1011, configured to send a call instruction to the virtual media gateway.
A searching unit 1012, configured to search, according to the call instruction, a target service that meets the call instruction from the virtual media gateway.
An executing unit 1013, configured to use the target service as the virtual media gateway service.
As shown in fig. 9, the establishing unit 103 includes:
a determining unit 1031, configured to determine a source address of a test task in the virtual media gateway service.
A reconstructing unit 1032, configured to reconstruct the test task source address.
A creating unit 1033, configured to create a mapping relationship between the test task source address and at least one test channel of the IVR system.
The establishing subunit 1034 is configured to establish a test channel between the virtual media gateway service and the IVR system according to the test channel mapping relationship.
Referring to fig. 10, in response to the above-mentioned automated testing method, an embodiment of the invention further provides an automated testing apparatus, where the apparatus 200 includes: the system comprises a calling unit 201, a first initiating unit 202, a building unit 203, an automation testing unit 204, a second initiating unit 205 and a display unit 206.
The invoking unit 201 is configured to invoke a virtual media gateway service.
A first initiating unit 202, configured to initiate a test request to the IVR system through the virtual media gateway service.
The establishing unit 203 is configured to establish a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received.
And the automatic test unit 204 is used for carrying out automatic tests according to the test channels.
The second initiating unit 205 is configured to initiate a request for querying a currently executed test step if a query instruction is received.
And the display unit 206 is configured to display the currently executed test step on a preset display interface in response to the request.
Referring to fig. 11, in response to the above-mentioned automated testing method, an embodiment of the invention further provides an automated testing apparatus, where the apparatus 300 includes: a calling unit 301, a first initiating unit 302, a establishing unit 303, an automation testing unit 304, and a presenting unit 305.
The invoking unit 301 is configured to invoke a virtual media gateway service.
A first initiating unit 302, configured to initiate a test request to the IVR system through the virtual media gateway service.
The establishing unit 303 is configured to establish a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received.
And the automatic test unit 304 is used for carrying out automatic tests according to the test channels.
A presentation unit 305 for presenting the description information about the automated testing process through a preset browser page.
In terms of hardware implementation, the above invoking unit 101, initiating unit 102, establishing unit 103, automation testing unit 104, etc. may be embedded in a hardware form or in a device independent of data processing, or may be stored in a memory of the data processing device in a software form, so that the processor invokes and executes operations corresponding to the above units. The processor can be a Central Processing Unit (CPU), a microprocessor, a singlechip and the like.
The automated testing apparatus described above may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 12.
FIG. 12 is a schematic diagram of a computer device according to the present invention. The device can be a terminal or a server, wherein the terminal can be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers. Referring to fig. 12, the computer apparatus 500 includes a processor 502, a nonvolatile storage medium 503, an internal memory 504, and a network interface 505, which are connected by a system bus 501. The non-volatile storage medium 503 of the computer device 500 may store, among other things, an operating system 5031 and a computer program 5032, which, when executed, may cause the processor 502 to perform an automated testing method. The processor 502 of the computer device 500 is used to provide computing and control capabilities that support the overall operation of the computer device 500. The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, which when executed by the processor causes the processor 502 to perform an automated testing method. The network interface 505 of the computer device 500 is used for network communication such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 implements the following operations when executing the computer program:
calling a virtual media gateway service;
initiating a test request to the IVR system through the virtual media gateway service;
if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established;
and carrying out automatic testing according to the testing channel.
In one embodiment, the invoking the virtual media gateway service includes:
sending a calling instruction to the virtual media gateway;
searching a target service meeting the calling instruction from the virtual media gateway according to the calling instruction;
and taking the target service as the virtual media gateway service.
In an embodiment, the establishing a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received includes:
determining a test task source address in the virtual media gateway service;
reconstructing the test task source address;
creating a mapping relation between the test task source address and at least one test channel of the IVR system;
and establishing a test channel between the virtual media gateway service and the IVR system according to the mapping relation of the test channel.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
if receiving the query instruction, initiating a request for querying the currently executed test step;
and responding to the request, and displaying the currently executed test steps on a preset display interface.
In one embodiment, the processor 502, when executing the computer program, further performs the following:
and presenting description information about the automatic test process through a preset browser page.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 12 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device only includes a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are the same as those of the embodiment shown in fig. 12, and are not described herein again.
The present invention provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
calling a virtual media gateway service;
initiating a test request to the IVR system through the virtual media gateway service;
if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established;
and carrying out automatic testing according to the testing channel.
In one embodiment, the invoking the virtual media gateway service includes:
sending a calling instruction to the virtual media gateway;
searching a target service meeting the calling instruction from the virtual media gateway according to the calling instruction;
and taking the target service as the virtual media gateway service.
In an embodiment, the establishing a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received includes:
determining a test task source address in the virtual media gateway service;
reconstructing the test task source address;
creating a mapping relation between the test task source address and at least one test channel of the IVR system;
and establishing a test channel between the virtual media gateway service and the IVR system according to the mapping relation of the test channel.
In one embodiment, the following steps are also implemented:
if receiving the query instruction, initiating a request for querying the currently executed test step;
and responding to the request, and displaying the currently executed test steps on a preset display interface.
In one embodiment, the following steps are also implemented:
and presenting description information about the automatic test process through a preset browser page.
The foregoing storage medium of the present invention includes: various media that can store program codes, such as a magnetic disk, an optical disk, and a Read-Only Memory (ROM).
The elements of all embodiments of the present invention may be implemented by a general purpose Integrated Circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
The steps in the automatic testing method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the automatic testing device of the embodiment of the invention can be merged, divided and deleted according to actual needs.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An automated testing method, the method comprising:
calling a virtual media gateway service;
initiating a test request to the IVR system through the virtual media gateway service;
the initiating a test request to the IVR system through the virtual media gateway service includes:
the virtual media gateway service is assembled into a corresponding get type HTTP request header according to the input URL and sends the HTTP request header to a target server of the IVR system;
if a confirmation instruction of the IVR system is received, a test channel of the virtual media gateway service and the IVR system is established;
and carrying out automatic testing according to the testing channel.
2. The method of claim 1, wherein the invoking the virtual media gateway service comprises:
sending a calling instruction to the virtual media gateway;
searching a target service meeting the calling instruction from the virtual media gateway according to the calling instruction;
and taking the target service as the virtual media gateway service.
3. The method as claimed in claim 1, wherein the establishing a test channel between the virtual media gateway service and the IVR system if the confirmation instruction of the IVR system is received comprises:
determining a test task source address in the virtual media gateway service;
reconstructing the test task source address;
creating a mapping relation between the test task source address and at least one test channel of the IVR system;
and establishing a test channel between the virtual media gateway service and the IVR system according to the mapping relation of the test channel.
4. The method of claim 1, wherein the method further comprises:
if receiving the query instruction, initiating a request for querying the currently executed test step;
and responding to the request, and displaying the currently executed test steps on a preset display interface.
5. The method of claim 1, wherein the method further comprises:
and presenting description information about the automatic test process through a preset browser page.
6. An automated testing apparatus, the apparatus comprising:
the calling unit is used for calling the virtual media gateway service;
the first initiating unit is used for initiating a test request to the IVR system through the virtual media gateway service;
the initiating a test request to the IVR system through the virtual media gateway service includes:
the virtual media gateway service is assembled into a corresponding get type HTTP request header according to the input URL and sends the HTTP request header to a target server of the IVR system;
the establishing unit is used for establishing a test channel between the virtual media gateway service and the IVR system if a confirmation instruction of the IVR system is received;
and the automatic test unit is used for carrying out automatic test according to the test channel.
7. The apparatus of claim 6, wherein the call unit comprises:
the sending unit is used for sending a calling instruction to the virtual media gateway;
the searching unit is used for searching the target service meeting the calling instruction from the virtual media gateway according to the calling instruction;
and the execution unit is used for taking the target service as the virtual media gateway service.
8. The apparatus of claim 6, wherein the establishing unit comprises:
a determining unit, configured to determine a test task source address in the virtual media gateway service;
the reconstruction unit is used for reconstructing the test task source address;
the creating unit is used for creating a mapping relation between the test task source address and at least one test channel of the IVR system;
and the establishing subunit is used for establishing a test channel between the virtual media gateway service and the IVR system according to the mapping relation of the test channel.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the automated testing method of any of claims 1-5 when executing the computer program.
10. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the automated testing method of any one of claims 1-5.
CN201810240229.0A 2018-03-22 2018-03-22 Automatic testing method and device, computer equipment and storage medium Active CN108540674B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810240229.0A CN108540674B (en) 2018-03-22 2018-03-22 Automatic testing method and device, computer equipment and storage medium
PCT/CN2018/101846 WO2019179019A1 (en) 2018-03-22 2018-08-23 Automated testing method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810240229.0A CN108540674B (en) 2018-03-22 2018-03-22 Automatic testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108540674A CN108540674A (en) 2018-09-14
CN108540674B true CN108540674B (en) 2020-12-29

Family

ID=63484127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810240229.0A Active CN108540674B (en) 2018-03-22 2018-03-22 Automatic testing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108540674B (en)
WO (1) WO2019179019A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495655B (en) * 2018-11-14 2021-11-16 平安科技(深圳)有限公司 Call center agent line testing method and device, electronic equipment and storage medium
CN109660681A (en) * 2018-12-05 2019-04-19 福建星网智慧软件有限公司 A kind of automated testing method and system of IP-PBX voice broadcast
CN109814916B (en) * 2019-01-04 2023-09-01 平安科技(深圳)有限公司 IVR flow configuration method, device, storage medium and server
CN110392165A (en) * 2019-06-28 2019-10-29 贵阳朗玛信息技术股份有限公司 A kind of method and device of the pressure test of IVR system
CN111078534B (en) * 2019-11-26 2023-06-09 深圳云天励飞技术有限公司 Test scheduling method and related equipment
CN111090587A (en) * 2019-12-11 2020-05-01 中国建设银行股份有限公司 Method, device and equipment for testing production point service and storage medium
CN111885268B (en) * 2020-06-12 2022-03-22 北京百度网讯科技有限公司 Testing method and device for conversation platform, electronic equipment and storage medium
CN114938342A (en) * 2022-01-27 2022-08-23 浙江浩瀚能源科技有限公司 Automatic testing and monitoring method capable of remotely triggering local UI

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626383A (en) * 2008-07-10 2010-01-13 北京邮电大学 Route test method of aeronautical telecommunication network and router virtual machine
CN105791602A (en) * 2014-12-26 2016-07-20 深圳市腾讯计算机系统有限公司 Sound quality test method and system
CN106878570A (en) * 2017-03-08 2017-06-20 广州芯德通信科技股份有限公司 A kind of speech business method of testing and system
CN107678956A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 A kind of server automated test and management system and method
CN107819639A (en) * 2016-09-14 2018-03-20 西门子公司 A kind of method of testing and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100380872C (en) * 2002-07-02 2008-04-09 西门子公司 Testing of transmission quality in packet-based networks
CN100356737C (en) * 2004-12-02 2007-12-19 华为技术有限公司 System and method for detecting large volume of medium service
US8019057B2 (en) * 2005-12-21 2011-09-13 Verizon Business Global Llc Systems and methods for generating and testing interactive voice response applications
US8009811B2 (en) * 2006-11-10 2011-08-30 Verizon Patent And Licensing Inc. Testing and quality assurance of interactive voice response (IVR) applications
CN101729681A (en) * 2008-10-23 2010-06-09 华为技术有限公司 Automatic testing method, testing terminal and communication system
CN101437086B (en) * 2008-12-19 2011-11-30 中兴通讯股份有限公司 System and method for implementing voice test
CN103152316A (en) * 2011-12-07 2013-06-12 中兴通讯股份有限公司 Achieving method, device and system for interactive voice response (IVR)
CN203279191U (en) * 2013-04-18 2013-11-06 浙江金之路信息科技有限公司 Multi-system network integrated business monitoring system
US9438729B2 (en) * 2014-08-15 2016-09-06 Accenture Global Services Limited Automated testing of interactive voice response systems
CN107493587B (en) * 2016-06-13 2021-04-20 中兴通讯股份有限公司 Media gateway testing method, device and system
CN107769984B (en) * 2017-12-04 2020-08-28 阳光凯讯(北京)科技有限公司 Low-cost active/standby hot switching system and method based on gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626383A (en) * 2008-07-10 2010-01-13 北京邮电大学 Route test method of aeronautical telecommunication network and router virtual machine
CN105791602A (en) * 2014-12-26 2016-07-20 深圳市腾讯计算机系统有限公司 Sound quality test method and system
CN107819639A (en) * 2016-09-14 2018-03-20 西门子公司 A kind of method of testing and device
CN106878570A (en) * 2017-03-08 2017-06-20 广州芯德通信科技股份有限公司 A kind of speech business method of testing and system
CN107678956A (en) * 2017-09-22 2018-02-09 郑州云海信息技术有限公司 A kind of server automated test and management system and method

Also Published As

Publication number Publication date
CN108540674A (en) 2018-09-14
WO2019179019A1 (en) 2019-09-26

Similar Documents

Publication Publication Date Title
CN108540674B (en) Automatic testing method and device, computer equipment and storage medium
US10949158B2 (en) Screenshot method and apparatus
CN110049098B (en) Distributed operation quick starting system and method for mobile phone application
CN112637346A (en) Proxy method, device, proxy server and storage medium
CN110875840B (en) Network element management method, device, system and storage medium
CN110990205A (en) Interface call testing method, device and computer readable storage medium
CN104778121A (en) Game program test method, device and system
CN109683892B (en) Page display method and device, computer equipment and storage medium
CN109391676A (en) Terminal equipment control method, terminal device and computer readable storage medium
CN104536890A (en) Testing system, method and device
CN109450736B (en) Network interface test method and device, medium and computing equipment
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
US11379446B1 (en) Session-based data storage for chat-based communication sessions
CN113014681A (en) Network card binding method and device of multi-network card server, electronic equipment and storage medium
CN101860549A (en) Access session data processing method under Web Service and device
CN106549989A (en) A kind of data transmission method and its system, user terminal, application server
CN111949515A (en) Test scene reproduction method and device and electronic equipment
CN110519810B (en) Service relay switching method, terminal equipment, storage medium and device
CN114244654B (en) URL forwarding method, device, equipment and computer storage medium
CN113268308A (en) Information processing method, device and storage medium
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
JP2005228183A (en) Program execution method and computer system for executing the program
CN112650689A (en) Test method, test device, electronic equipment and storage medium
US7962799B2 (en) System and method for synchronizing test runs on separate systems
CN109995931B (en) Method and device for realizing automatic calling

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