CN108959087A - test method and device - Google Patents

test method and device Download PDF

Info

Publication number
CN108959087A
CN108959087A CN201810717711.9A CN201810717711A CN108959087A CN 108959087 A CN108959087 A CN 108959087A CN 201810717711 A CN201810717711 A CN 201810717711A CN 108959087 A CN108959087 A CN 108959087A
Authority
CN
China
Prior art keywords
test
resource
application
terminal
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.)
Pending
Application number
CN201810717711.9A
Other languages
Chinese (zh)
Inventor
唐欢
邓学宁
张洋洋
袁鹏
巩庆良
武良呈
王家乐
田龙龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810717711.9A priority Critical patent/CN108959087A/en
Publication of CN108959087A publication Critical patent/CN108959087A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The embodiment of the present application discloses test method and device.One specific embodiment of this method includes: the test request tested the target application of access voice service for receiving terminal and sending, and test request includes the application identities and test information of target application;Test information is analyzed, analysis result is sent to the server for being deployed with target application;It receives and is deployed with the response message that the server of target application returns, test result is generated based on response message;Based on the pre-selected test pattern of terminal, test result is sent to the corresponding presentation terminal of selected test pattern so that terminal, which is presented, is presented test result.The embodiment can test the target application of access voice service by simulating true application environment, be conducive to accuracy of the application to information processing for improving access voice service.

Description

Test method and device
Technical field
The invention relates to field of computer technology, and in particular to test method and device.
Background technique
With the development of information technology, artificial intelligence technology is widely used in every field.Intelligent sound clothes Business is an important branch of artificial intelligence, it is identified by the voice signal of the sending to user, then based on identification As a result response message is generated, and voice signal output is converted for response message by speech synthesis technique, can be mentioned for user For more convenient, more intelligent service for life.
In current voice service technology, intelligent sound equipment can access the service of voice service provider offer, with Realize the voice service function with personalized function or mode.After accessing voice service, equipment development person can pass through language Sound service platform configures the related setting data of each function items according to the demand of its function personalizedly.
Summary of the invention
The embodiment of the present application proposes test method and device.
In a first aspect, the embodiment of the present application provides a kind of test method, comprising: receive terminal send to access voice The test request that the target application of service is tested, test request include the application identities and test information of target application; Test information is analyzed, analysis result is sent to the server for being deployed with target application;Reception is deployed with target application Server return response message, based on response message generate test result;It, will based on the pre-selected test pattern of terminal Test result is sent to the corresponding presentation terminal of selected test pattern so that terminal, which is presented, is presented test result.
In some embodiments, in the test tested the target application of access voice service for receiving terminal transmission Before request, method further include: receive the resource upload request that terminal is sent, resource upload request includes application identities and institute The data type of the resource of upload;The resource uploaded is associated with the application identities in resource upload request, and will be upper The resource of biography is stored based on data type classifications.
In some embodiments, test information is analyzed, analysis result is sent to the clothes for being deployed with target application Business device, comprising: determine the data type that test information is included and the information for characterizing intention;Included by test information Data type and be sent to for characterizing the information being intended to and be deployed with the server of target application;And response message is used for It indicates in the resource of classification storage with the presence or absence of corresponding with the application identities of target application for characterizing the resource being intended to.
In some embodiments, test result is generated based on response message, comprising: deposit in response to response message instruction classification There is the resource for being used to characterize intention corresponding with application identities in the resource of storage, obtains for characterizing the resource being intended to, by institute The resource of acquisition is filled into pre-set content representation templates, and test result is generated.
In some embodiments, test result further includes test code, and test code is shown in the preset areas that terminal is presented Domain, and test result is generated based on response message, comprising: in response to being not present in the resource of response message instruction classification storage It is corresponding with the application identities of target application to be used to characterize the resource being intended to, the position of error codes is marked in predeterminable area.
Second aspect, the embodiment of the present application provide a kind of test device, comprising: receiving unit is configured to receive end The test request tested the target application of access voice service that end is sent, test request includes the application of target application Mark and test information;Transmission unit is configured pairwise testing information and is analyzed, and analysis result is sent to and is deployed with mesh Mark the server of application;Generation unit is configured to receive the response message for being deployed with the server return of target application, is based on Response message generates test result;Display unit is configured to send out test result based on the pre-selected test pattern of terminal It send to the corresponding presentation terminal of selected test pattern so that terminal, which is presented, is presented test result.
In some embodiments, test device further include: resource upload request receiving unit is configured to receive terminal hair The resource upload request sent, resource upload request include the data type of application identities and the resource uploaded;Associative cell, The resource for being configured to be uploaded is associated with the application identities in resource upload request, and the resource of upload is based on number It is stored according to classification of type.
In some embodiments, transmission unit is further configured to: determine the test information data type that is included with And for characterizing the information being intended to;Data type and the information for being used to characterize intention are sent to and are deployed with the clothes of target application Business device;And response message is used to indicate in the resource for the classification storage that test information is included and whether there is and target application Application identities are corresponding for characterizing the resource being intended to.
In some embodiments, generation unit is further configured to: in response to the money of response message instruction classification storage There is the resource for being used to characterize intention corresponding with application identities in source, obtains for characterizing the resource being intended to, it will be acquired Resource is filled into pre-set content representation templates, and test result is generated.
In some embodiments, test result further includes test code, and test code is shown in the preset areas that terminal is presented Domain and generation unit are further configured to: in response to being not present and target in the resource of response message instruction classification storage The application identities of application are corresponding for characterizing the resource being intended to, and the position of error codes is marked in predeterminable area.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or Multiple processors realize the method such as any embodiment in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method such as any embodiment in first aspect when the program is executed by processor.
Test method provided by the embodiments of the present application and device, in the mesh to access voice service for receiving terminal transmission When the test request that mark application is tested, the test information that test request is included can be analyzed, it then will analysis As a result it is sent to the server for being deployed with target application, then receives and is deployed with the response letter that the server of target application returns Breath generates test result based on response message, test result is finally sent to institute based on terminal pre-selected test pattern Test result is presented in the test model of selection corresponding presentation terminal, so as to by simulating true application environment docking The target application for entering voice service is tested, and accuracy of the application to information processing for improving access voice service is conducive to.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is to can be applied to exemplary system architecture figure therein according to the embodiment of the present application;
Fig. 2 is the flow chart according to one embodiment of the test method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the test method of the application;
Fig. 4 is the flow chart according to another embodiment of the test method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the test device of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the test method of the embodiment of the present application or the exemplary system architecture 100 of test device.
As shown in Figure 1, system architecture 100 may include terminal device 101,107, network 102,104,106 and server 103,105.Network 102 between terminal device 101 and server 103 provide communication link medium, network 104 to Communication link medium is provided between server 103 and server 105, network 106 to terminal device 107 and server 103, Communication link medium is provided between 105.Network 102,104,106 may include various connection types, such as wired, wireless communication Link or fiber optic cables etc..
Terminal device 101 can be interacted by network 102 with server 103, be used for 107 access server of terminal device 103, and the terminal device 107 of access server 103 is tested.Herein, terminal device 101 can be equipped with and be used for It supports the application of 107 access server 103 of terminal device.Terminal device 101, which can be, to be had the function of Document Editing and shows Show the hardware of function, including but not limited to mobile phone, computer etc..
Terminal device 107 can be interacted with server 103 and server 104 respectively by network 106.Herein, eventually The voice messaging received is sent to server 103 by network 106 by end equipment 107, so that server 103 carries out semantic point Analysis.Meanwhile terminal device 107 can also receive various data from server 105.Herein, above-mentioned terminal device 102 can be with It is hardware, is also possible to software.When terminal device 102 is hardware, it can be with display screen and dialog mode supported to hand over Mutual and video playing various electronic equipments, including but not limited to smart phone, tablet computer, intelligent air condition, intelligent refrigerator, intelligence Energy TV etc..When terminal device 102 is software, may be mounted in above-mentioned cited electronic equipment.It may be implemented At multiple softwares or software module (such as providing Distributed Services), single software or software module also may be implemented into. It is not specifically limited herein.
Server 103 can be to provide the servers of various services (such as voice service), for example, server 103 can be with The request that the terminal device 107 in access server 103 is tested that receiving terminal apparatus 101 is sent, then to request Analysis result is provided to server 105, the response results that server 105 returns is provided to terminal device 101 by analysis;Also Can be after terminal device 107 access voice service, the voice messaging sent to terminal device 107 is analyzed, and will analysis As a result it is provided to server 105, the response results that server 105 returns are provided to terminal device 107.
Server 105 can be to provide the servers of various services (such as voice service), for example, server 105 can be with The analysis after server 103 analyzes the solicited message of terminal device 101,102 is received as a result, and based on analysis result pair Its terminal device 107 supported is handled, and response results are returned to server 103.
It should be noted that test method provided by the embodiment of the present application is generally executed by server 103.Correspondingly, Test device is generally positioned in server 103.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software To be implemented as multiple softwares or software module (such as providing Distributed Services), single software or software also may be implemented into Module.It is not specifically limited herein.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, it illustrates the processes 200 according to one embodiment of the test method of the application.The test Method, comprising the following steps:
Step 201, the test request tested the target application of access voice service that terminal is sent is received.
In the present embodiment, the executing subject (such as server 103 shown in FIG. 1) of test method can be to various voices Service provides support.Herein, which for example may include the end that user can communicate to connect with above-mentioned executing subject End equipment carries out interactive voice, obtains the service of the intention of user.Herein, above-mentioned executing subject can be to being provided with display screen Terminal device provide voice service support.
In the present embodiment, above-mentioned executing subject can be to have accessed the various of voice service that above-mentioned executing subject provides Terminal device provides voice service, or the various applications being set in terminal device provide voice service.Herein, on Stating terminal device for example may include various smart machines, such as refrigerator, sound equipment, air-conditioning, television set, smartwatch, intelligence are learned Habit machine etc.;Above application examples such as may include inquiry (such as the inquiry of weather lookup, ticket) class application, the application of shopping class, search The application of rope class, the application of web page browsing class etc., which is generally disposed in the terminal device such as mobile phone, computer.Herein, Above-mentioned terminal or application are usually also connect with for its server for providing data support.
In this embodiment, for having accessed the application of voice service, above-mentioned executing subject can be provided to access voice The application of service provides testing service, which can be used family and simulate true application scenarios to check the operation of application Situation, to be improved, be adjusted according to ambient conditions to voice, picture of the application for having accessed voice service etc.;When When having accessed the terminal failure of voice service, by above-mentioned testing service, user can also check the original that is out of order in time Cause.
In the present embodiment, above-mentioned executing subject can receive terminal transmission by way of wired connection or wireless connection Test request.Herein, terminal both can send test request by voice messaging, can also be sent and be surveyed by text information Examination request.The test request may include the application identities and test information of target application.The application identities are for uniquely Target application is identified, which for example can be text or icon etc..The test information may include for testing language Sound service whether information can whether perfect in information, the function of target application of target application normal use.Citing For, when target application is video class in application, the test information can be whether test can be just by voice service function Often play the information of video;When target application is ticket purchase class in application, the test information can be that test passes through voice clothes Whether business function can successfully buy the information etc. of ticket.The test information can be text information, can be voice messaging. In general, including that user is intended in the test information.For example, test play video in application, " play video " is user It is intended to;Test purchase train ticket in application, " purchase, train ticket " is that user is intended to.
Step 202, test information is analyzed, analysis result is sent to the server for being deployed with target application.
In the present embodiment, the application identities for having accessed the application of voice service be can store in above-mentioned executing subject, After above-mentioned executing subject receives test request, whether can inquire from the application identities set of storage, which has terminal to send, is surveyed The application identities provided when examination request.The offer when in the application identities set for inquiring storage including terminal transmission test request Application identities when, can to test information be further analyzed processing.
Specifically, above-mentioned executing subject can use speech recognition technology will when above-mentioned test request is voice messaging Voice request is converted to corresponding text, is then handled using text-processing technology test information;When above-mentioned test is asked When asking as text information, above-mentioned executing subject can directly be handled test information using text-processing technology.Specifically, Keyword extracting method, keyword extracting method neural network based using keyword extraction for example based on word frequency etc. extract Keyword in the voice request of text.Then the keyword is compared with the keyword in pre-set word library, So that it is determined that the keyword whether being intended to comprising characterization user in test information.It include the keyword for characterizing user and being intended to when determining When, the keyword for characterizing user's intention is sent to the server for being deployed with target application as analysis result;When determination is not wrapped When the keyword that the user containing characterization is intended to, entire text information corresponding with test information can be sent to as analysis result It is deployed with the server of target application, while can also include that can not identify what user was intended to for characterizing in the analysis result Information.Herein, above-mentioned executing subject can be the server of the processing voice service in service cluster, can also wrap in cluster The server for being deployed with one or more application is included, this is deployed with the server of application for example can application to terminal is set to Data are provided to support.The server identification that can store the disposed server of each application in above-mentioned executing subject, by this Analysis result can be sent to the server for being deployed with target application by mark, above-mentioned executing subject.Herein, above-mentioned to be deployed with The server of target application may be the server of non-access server cluster, which can be logical with above-mentioned executing subject Letter connection.
Step 203, it receives and is deployed with the response message that the server of target application returns, test is generated based on response message As a result.
In the present embodiment, analysis result is sent to and is deployed with target application by above-mentioned executing subject in step 202 After server, above-mentioned executing subject, which can receive, is deployed with the response message that the server of target application returns.Herein, the sound Answering information is to be deployed with the server of target application to obtaining after the analysis result treatment received.As an example, when above-mentioned When analyzing result including " dog ", " type " two keywords, it is deployed with the kind that dog can be included by the server of target application Class, the encyclopaedia information of every kind of dog, information is sent to above-mentioned executing subject to the information such as picture of dog in response.Then, above-mentioned to hold Type that the dog received can be included by row main body, the encyclopaedia information of every kind of dog, the information such as picture of dog are tied as test Fruit.
Step 204, it is based on the pre-selected test pattern of terminal, test result is sent to selected test pattern pair Test result is presented so as to which terminal is presented in the presentation terminal answered.
In the present embodiment, above-mentioned executing subject can provide a variety of test patterns, which for example may include Analogue computer tests the test of the test of environment, analogue mobile phone test environment, can also be included in development board or real machine is set It is tested on standby.When the test of environment is tested in the test or analogue mobile phone that test pattern is analogue computer test environment, Test result can be sent directly to send the terminal of test request test result is presented by above-mentioned executing subject.When test mould Formula is when being tested on development board or real machine equipment, and the development board or real machine equipment can be surveyed with above-mentioned transmission The terminal electrical connection of examination request, then test result can be sent to development board by above-mentioned executing subject or real machine equipment is come Test result is presented.Above-mentioned executing subject can be according to the pre-selected test pattern of terminal for sending test request, by step Obtained test result is sent to the corresponding presentation terminal of selected test pattern the test result is presented in 203.? Here, above-mentioned presentation terminal can usually be shown, can also carry out voice broadcast, and terminal can be with when test result is presented Test result is shown on terminal is presented, while semantic casting can also be carried out to test result.
With continued reference to the schematic diagram that Fig. 3, Fig. 3 are according to an application scenarios of the test method of the present embodiment.Fig. 3's In application scenarios, user has sent " road inquiry " and " the inquiry city A to the city B " to the computer 301 inputted with voice Voice messaging 302, while being pre-selected on computers by computer 301 to the test pattern tested of application.Computer 301 The voice messaging 302 is sent to server 303.After server 303 receives the voice messaging, can to the voice messaging into Row analysis determines that institute's target application to be tested is " road inquiry ", and that be inquired is intended to " city A ", " city B ", " road Line ".Then, analysis result is sent to the server 305 for being deployed with " road inquiry " by service 303.Server 305 receives point After analysing result, the road traffic map that " city A " arrives the city " B " is inquired, then ties the road traffic map in response Fruit is sent to server 304.To which " city A " is arrived the road traffic map in the city " B " as test result by server 304 It is sent to computer 301, " road traffic map " is presented on computer 301, while the voice-output device of computer 301 is to this " road traffic map " carries out voice broadcast 306.
Test method provided by the embodiments of the present application, in the target application to access voice service for receiving terminal transmission When the test request tested, the test information that test request is included can be analyzed, it then will analysis result hair It send to the server for being deployed with target application, then receives and be deployed with the response message that the server of target application returns, be based on Response message generates test result, and test result is finally sent to selected survey based on terminal pre-selected test pattern Test result is presented in die trial type corresponding presentation terminal, so as to by simulating true application environment to access voice clothes The target application of business is tested, and accuracy of the application to information processing for improving access voice service is conducive to.
With further reference to Fig. 4, it illustrates the processes 400 according to another embodiment of the test method of the application.It should Test method, comprising the following steps:
Step 401, the resource upload request that terminal is sent is received.
In the present embodiment, the executing subject (such as server 103 shown in FIG. 1) of test method can provide voice clothes Business, while the service of resource storage can be provided to the application of access voice service.Herein, which for example may include figure Piece, voice, text, video etc..When application needs to access above-mentioned executing subject to obtain voice service, it can also receive and ask The resource upload request that the terminal for asking access to apply is sent.Herein, which may include uploading with request The application identities of the corresponding application of resource and the data type of the resource uploaded.Herein, which for example can be with The data of data, picture format including phonetic matrix, text data, video data etc..
Step 402, the resource of upload is associated with the application identities in resource upload request, and resource base will be uploaded It is stored in data type classifications.
It in the present embodiment, can be by the resource and resource of upload after above-mentioned executing subject receives resource upload request Application identities in upload request are associated.Herein, it for example can be the resource and application identities pair that will be uploaded that this is associated It should store.Meanwhile above-mentioned executing subject can also be stored the resource of upload based on data type classifications.As an example, when upper In the resource of biography include video data and text data when, can using video data as one kind, using text data as one Class is respectively stored in video classification and text categories.
Step 403, the test request tested the target application of access voice service that terminal is sent is received.
In the present embodiment, the executing subject of test method can provide support to various voice services.Herein, the language Sound service for example may include the terminal device progress interactive voice that user can communicate to connect with above-mentioned executing subject, obtains and uses The service of the intention at family.Herein, above-mentioned executing subject can provide voice service branch to the terminal device for being provided with display screen It holds.
In the present embodiment, above-mentioned executing subject can receive terminal transmission by way of wired connection or wireless connection Test request.Herein, terminal both can send test request by voice messaging, can also be sent and be surveyed by text information Examination request.The test request may include the application identities and test information of target application.The application identities are for uniquely Target application is identified, which for example can be text or icon etc..The test information may include for testing language Sound service whether information can whether perfect in information, the function of target application of target application normal use.
Herein, the specific processing of step 403 and its bring beneficial effect can refer to the step in Fig. 2 corresponding embodiment The associated description of 201 implementation, details are not described herein.
Step 404, the test information data type that is included and pre-set for characterize intention is determined Information.
In the present embodiment, above-mentioned executing subject, can be from the application identities of storage after receiving above-mentioned test request The application identities for whether having terminal to provide when sending test request are inquired in set.When in the application identities set for inquiring storage When the application identities provided when sending test request including terminal, processing can be further analyzed to test information.
Specifically, above-mentioned executing subject can use speech recognition technology will when above-mentioned test request is voice messaging Voice request is converted to corresponding text, is then handled using text-processing technology test information;When above-mentioned test is asked When asking as text information, above-mentioned executing subject can directly be handled test information using text-processing technology.Specifically, Keyword extracting method, keyword extracting method neural network based using keyword extraction for example based on word frequency etc. extract Keyword in the voice request of text.Then the keyword is compared with the keyword in pre-set word library, So that it is determined that whether comprising characterizing the keyword that user is intended to and the data type for being included in test information.As an example, When above-mentioned test information is " obtaining doggie picture ", above-mentioned executing subject can use above-mentioned analytic method and parse user Intent information is " doggie ", and data type is " picture " type.
Step 405, data type that information is included will be tested and be used to characterize the information of intention and be sent to and be deployed with The server of the target application.
In this embodiment, data type and use that the test information parsed can be included by above-mentioned executing subject The server for being deployed with target application is sent in the information that characterization is intended to.Herein, the server for being deployed with target application Can for target application provide data support server.
Step 406, it receives and is deployed with the response message that the server of target application returns, test is generated based on response message As a result.
In the present embodiment, in step 405 above-mentioned executing subject by data type and the information for being used to characterize intention After being sent to the server for being deployed with target application, above-mentioned executing subject can receive the server return for being deployed with target application Response message.Herein, which, which is used to indicate in the resource of the classification storage in step 402, whether there is and target The application identities of application are corresponding for characterizing the resource being intended to.To which above-mentioned executing subject can be according to the response received Information generates test result.
As an example, when the test data that the server that be deployed with target application receives include " picture " data type, When the intention of " Alaska dog ", can be uploaded to from it in above-mentioned executing subject in storage resource find with " inquiry " this is answered " Alaska dog " is searched under corresponding " picture " classification of application identities.Then be deployed with the server of target application according to Lookup result, to generate the information that whether there is " picture of Alaska dog " in above-mentioned executing subject.
In some optional implementations of the present embodiment, in response to being deposited in the resource of response message instruction classification storage Corresponding with application identities for characterizing the resource being intended to, obtain for characterizing the resource being intended to, acquired resource is filled out It is charged in pre-set content representation templates, generates test result.
Specifically, for that can carry out terminal device that content shows (" have screen end " equipment), in above-mentioned executing subject The content representation templates for carrying out content presentation can be previously provided with so that terminal device carries out content presentation.It is above-mentioned to preset Content representation templates may include only present text data presentation mode template, the presentation side including image data is only presented Formula template, the presentation mode template including video data is only presented, the presentation including image data and text data are presented simultaneously Mode template etc..The content representation templates are that terminal is pre-selected.When above-mentioned executing subject is indicated in response to response message In the resource of classification storage exist it is corresponding with application identities for characterize intention resource when, it is available be stored with it is above-mentioned to Then the resource storage address (such as storage address of picture) of presentation content obtains above-mentioned default filling from resource storage address Resource in.Then using the content representation templates as test result.
In some optional implementations of the present embodiment, test result further includes test code, and test code is shown In the predeterminable area that terminal is presented.Above-mentioned executing subject in response to response message instruction classification storage resource in there is no with The application identities of target application it is corresponding for characterize intention resource when, error codes can be marked in above-mentioned predeterminable area Position.
Step 407, it is based on the pre-selected test pattern of terminal, test result is sent to selected test pattern pair Test result is presented so as to which terminal is presented in the presentation terminal answered.
In the present embodiment, above-mentioned executing subject can be according to the pre-selected test mould of terminal for sending test request Test result obtained in step 203 is sent to the corresponding presentation terminal of selected test pattern the survey is presented by formula Test result.Herein, above-mentioned presentation terminal can usually be shown, can also carry out voice broadcast, and test is being presented in terminal Test result can be shown when as a result on terminal is presented, while semantic casting can also be carried out to test result.Herein, When there is the resource for being used to characterize intention corresponding with application identities in the resource for including instruction classification storage in response message, It can use content representation templates and show test result on the screen;When in the resource for including instruction classification storage in response message When there is no corresponding with application identities for characterizing the resource being intended to, test code can be shown by presenting on the screen of terminal, The position of error codes is marked in test code simultaneously.
Figure 4, it is seen that the present embodiment, which highlights, is deployed with application unlike embodiment shown in Fig. 2 Resource can be stored in executing subject by server, the response that executing subject can be returned according to the server for being deployed with application Information is found from the resource of storage and is intended to related resource, and the space for being deployed with the server of application and saving are saved By resource from the server transport of application is deployed with to the time of above-mentioned executing subject, to improve the work of each server Efficiency.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of due to test One embodiment of device, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to In various electronic equipments.
As shown in figure 5, the test device 500 of the present embodiment includes: receiving unit 501, it is configured to receive terminal transmission The test request tested of target application to access voice service, test request include the application identities of target application with And test information;Transmission unit 502 is configured pairwise testing information and is analyzed, and analysis result is sent to and is deployed with target The server of application;Generation unit 503 is configured to receive the response message for being deployed with the server return of target application, base Test result is generated in response message;Display unit 504 is configured to test based on the pre-selected test pattern of terminal As a result the corresponding presentation terminal of selected test pattern is sent to so that terminal, which is presented, is presented test result.
In the present embodiment, the receiving unit 501 in the device 500 of content, transmission unit 502, generation are single for rendering The specific processing of member 503 and display unit 504 and its bring beneficial effect can be referring to the steps in Fig. 2 corresponding embodiment 201, the associated description of the implementation of step 202, step 203 and step 204, details are not described herein.
In some optional implementations of the present embodiment, test device 500 further include: resource upload request receives single First (not shown) is configured to receive the resource upload request of terminal transmission, and resource upload request includes application identities and institute The data type of the resource of upload;In associative cell (not shown), the resource for being configured to be uploaded and resource upload request Application identities it is associated, and the resource of upload is based on data type classifications storage.
In some optional implementations of this implementation, transmission unit 502 is further configured to: determining test information The data type for being included and the information for characterizing intention;Data type and the information for being used to characterize intention are sent to It is deployed with the server of target application;And response message is used to indicate in the resource of the test information classification storage that is included and is It is no to there is the resource for being used to characterize intention corresponding with the application identities of target application.
In some optional implementations of this implementation, generation unit 503 is further configured to: being believed in response to response There is the resource for being used to characterize intention corresponding with application identities in the resource of breath instruction classification storage, obtains for characterizing intention Resource, acquired resource is filled into pre-set content representation templates, generate test result.
In some optional implementations of this implementation, test result further includes test code, and test code is shown in The predeterminable area and generation unit 503 that terminal is presented are further configured to: in response to response message instruction classification storage There is no corresponding with the application identities of target application in resource for characterizing the resource being intended to, and error is marked in predeterminable area The position of code.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the electronic equipment for being suitable for being used to realize the embodiment of the present application Structural schematic diagram.Electronic equipment shown in Fig. 6 is only an example, function to the embodiment of the present application and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or Computer readable storage medium either the two any combination.Computer readable storage medium for example can be but unlimited In the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or device, or any above combination.Computer can The more specific example for reading storage medium can include but is not limited to: electrical connection, portable meter with one or more conducting wires Calculation machine disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
The calculating of the operation for executing the application can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet Include receiving unit, transmission unit, generation unit and display unit.Wherein, the title of these units is not under certain conditions The restriction to the unit itself is constituted, for example, receiving unit is also described as " receiving the taking access voice of terminal transmission The unit for the test request that the target application of business is tested ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are held by the electronic equipment When row, so that the electronic equipment: the test request tested the target application of access voice service that terminal is sent is received, Test request includes the application identities and test information of target application;Test information is analyzed, analysis result is sent To the server for being deployed with target application;It receives and is deployed with the response message that the server of target application returns, based on response letter Breath generates test result;Based on the pre-selected test pattern of terminal, test result is sent to selected test pattern pair Test result is presented so as to which terminal is presented in the presentation terminal answered.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (12)

1. a kind of test method, comprising:
The test request tested the target application of access voice service that terminal is sent is received, the test request includes The application identities and test information of the target application;
The test information is analyzed, analysis result is sent to the server for being deployed with the target application;
It is deployed with the response message that the server of the target application returns described in reception, test is generated based on the response message As a result;
Based on the pre-selected test pattern of the terminal, test result is sent to the corresponding presentation of selected test pattern Terminal is so that the test result is presented in the presentation terminal.
2. according to the method described in claim 1, wherein, receive the target application to access voice service that terminal is sent into Before the test request of row test, the method also includes:
The resource upload request that terminal is sent is received, the resource upload request includes application identities and the resource uploaded Data type;
The resource uploaded is associated with the application identities in the resource upload request, and the resource of upload is based on number It is stored according to classification of type.
3. it is described that the test information is analyzed according to the method described in claim 2, wherein, analysis result is sent To the server for being deployed with the target application, comprising:
Determine the data type that the test information is included and the information for characterizing intention;
The test information data type that is included and the information for being used to characterize intention are sent to and are deployed with the target The server of application;And
The response message is used to indicate in the resource of classification storage with the presence or absence of corresponding with the application identities of the target application For characterize intention resource.
4. described to generate test result based on the response message according to the method described in claim 3, wherein, comprising:
It is corresponding with the application identities for characterizing meaning in response to existing in the resource of response message instruction classification storage The resource of figure obtains the resource for characterizing intention, acquired resource is filled into pre-set content representation templates, Generate test result.
5. the test code is aobvious according to the method described in claim 4, wherein, the test result further includes test code Show in the predeterminable area that terminal is presented, and
It is described that test result is generated based on the response message, comprising:
In response to there is no corresponding with the application identities of the target application in the resource of response message instruction classification storage For characterize be intended to resource, in the predeterminable area label error codes position.
6. a kind of test device, comprising:
Receiving unit, the test tested the target application of access voice service for being configured to receive terminal transmission are asked It asks, the test request includes the application identities and test information of the target application;
Transmission unit is configured to analyze the test information, and analysis result is sent to and is deployed with the target and answers Server;
Generation unit is configured to receive the response message that the server for being deployed with the target application returns, is based on institute It states response message and generates test result;
Display unit is configured to be sent to test result selected based on the pre-selected test pattern of the terminal The corresponding presentation terminal of test pattern is so that the test result is presented in the presentation terminal.
7. device according to claim 6, wherein the test device further include:
Resource upload request receiving unit is configured to receive the resource upload request of terminal transmission, the resource upload request Data type including application identities and the resource uploaded;
Associative cell, the resource for being configured to be uploaded is associated with the application identities in the resource upload request, and The resource of upload is stored based on data type classifications.
8. device according to claim 7, wherein the transmission unit is further configured to, comprising:
Determine the data type that the test information is included and the information for characterizing intention;
The test information data type that is included and the information for being used to characterize intention are sent to and are deployed with the target The server of application;And
The response message is used to indicate in the resource of classification storage with the presence or absence of corresponding with the application identities of the target application For characterize intention resource.
9. device according to claim 8, wherein the generation unit is further configured to:
It is corresponding with the application identities for characterizing meaning in response to existing in the resource of response message instruction classification storage The resource of figure obtains the resource for characterizing intention, acquired resource is filled into pre-set content representation templates, Generate test result.
10. device according to claim 9, wherein the test result further includes test code, and the test code is aobvious Show in the predeterminable area that terminal is presented, and
The generation unit is further configured to:
In response to there is no corresponding with the application identities of the target application in the resource of response message instruction classification storage For characterize be intended to resource, in the predeterminable area label error codes position.
11. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor Realize such as method as claimed in any one of claims 1 to 5.
CN201810717711.9A 2018-06-29 2018-06-29 test method and device Pending CN108959087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810717711.9A CN108959087A (en) 2018-06-29 2018-06-29 test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810717711.9A CN108959087A (en) 2018-06-29 2018-06-29 test method and device

Publications (1)

Publication Number Publication Date
CN108959087A true CN108959087A (en) 2018-12-07

Family

ID=64485227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810717711.9A Pending CN108959087A (en) 2018-06-29 2018-06-29 test method and device

Country Status (1)

Country Link
CN (1) CN108959087A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290965A (en) * 2020-03-06 2020-06-16 腾讯科技(深圳)有限公司 Test method, test device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170331850A1 (en) * 2016-05-12 2017-11-16 Synopsys, Inc. Systems and methods for analyzing software using queries
CN108133707A (en) * 2017-11-30 2018-06-08 百度在线网络技术(北京)有限公司 A kind of content share method and system
CN108183962A (en) * 2018-01-04 2018-06-19 上海瀚之友信息技术服务有限公司 A kind of simulated testing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170331850A1 (en) * 2016-05-12 2017-11-16 Synopsys, Inc. Systems and methods for analyzing software using queries
CN108133707A (en) * 2017-11-30 2018-06-08 百度在线网络技术(北京)有限公司 A kind of content share method and system
CN108183962A (en) * 2018-01-04 2018-06-19 上海瀚之友信息技术服务有限公司 A kind of simulated testing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络整理: "智能音箱工作原理是什么_智能音箱的五大功能", 《ELECFANS.COM/BAIKE/WAIJIEPEIJIAN/YINXIANG/20180524682899.HTML》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290965A (en) * 2020-03-06 2020-06-16 腾讯科技(深圳)有限公司 Test method, test device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108022586B (en) Method and apparatus for controlling the page
CN107463700B (en) Method, device and equipment for acquiring information
CN108769745A (en) Video broadcasting method and device
CN108989882A (en) Method and apparatus for exporting the snatch of music in video
CN108388563A (en) Information output method and device
CN107423085A (en) Method and apparatus for application deployment
CN109036397A (en) The method and apparatus of content for rendering
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
CN108182472A (en) For generating the method and apparatus of information
CN109032870A (en) Method and apparatus for test equipment
CN108280200A (en) Method and apparatus for pushed information
CN108959087A (en) test method and device
CN109325213A (en) Method and apparatus for labeled data
CN109241344A (en) Method and apparatus for handling information
CN108897853A (en) The method and apparatus for generating pushed information
CN110164429A (en) Voice interactive method and device
CN108960316A (en) Method and apparatus for generating model
CN108446659A (en) Method and apparatus for detecting facial image
CN108509442A (en) Searching method and device, server and computer readable storage medium
CN109389182A (en) Method and apparatus for generating information
CN109815105A (en) Applied program testing method and device based on Btrace
CN108664610A (en) Method and apparatus for handling data
CN109582825A (en) Method and apparatus for generating information
CN109144864A (en) Method and device for test window
CN109634827A (en) Method and apparatus for generating information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207