[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN110489343A - A kind of conversational services test method, system, device and storage medium - Google Patents

A kind of conversational services test method, system, device and storage medium Download PDF

Info

Publication number
CN110489343A
CN110489343A CN201910701505.3A CN201910701505A CN110489343A CN 110489343 A CN110489343 A CN 110489343A CN 201910701505 A CN201910701505 A CN 201910701505A CN 110489343 A CN110489343 A CN 110489343A
Authority
CN
China
Prior art keywords
test
conversational services
data
returned data
practical
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
CN201910701505.3A
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.)
Guangzhou Microcomputer Interconnection Information Technology Co Ltd
Original Assignee
Guangzhou Microcomputer Interconnection Information 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 Guangzhou Microcomputer Interconnection Information Technology Co Ltd filed Critical Guangzhou Microcomputer Interconnection Information Technology Co Ltd
Priority to CN201910701505.3A priority Critical patent/CN110489343A/en
Publication of CN110489343A publication Critical patent/CN110489343A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of conversational services test method, system, device and storage medium, method includes: each field information in read test case data, obtains test interface message and initialization data field;According to initialization data field, initialization process is carried out to test case data;Conversational services module is called, and sends test interface message in conversational services module, and then receives the practical returned data that conversational services module returns;Checking treatment is compared with practical returned data for expected returned data, and test report is generated according to comparison result.The present invention carries out check test by sending test case data in conversational services module, does not need to be changed according to interface and changes code again, completes interface adaptation by test case data, to greatly improve the efficiency of the full interface function test of conversational services.It the composite can be widely applied in conversation test.

Description

A kind of conversational services test method, system, device and storage medium
Technical field
The present invention relates to the field of test technology more particularly to a kind of conversational services test method, system, device and storage to be situated between Matter.
Background technique
Present manual regression test inefficiency, takes a substantial amount of time and human resources, promotion testing efficiency are required Existing test mode is changed, it is necessary to introduce automatic test, however there is no make by oneself for socket for market at present The automated test tool of adopted message format.
Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of conversational services test methods, system, device And storage medium.
The technical solution used in the present invention is:
A kind of conversational services test method, comprising the following steps:
Each field information in read test case data, obtains test interface message and initialization data field;
According to initialization data field, initialization process is carried out to test case data;
Conversational services module is called, and sends test interface message in conversational services module, and then receives session clothes The practical returned data that module of being engaged in returns;
Checking treatment is compared with practical returned data for expected returned data, and test report is generated according to comparison result It accuses.
It is further comprising the steps of as a kind of further improvement of conversational services test method:
It is decomposed from test interface message and obtains user login information, and user login information is saved into database.
As a kind of further improvement of conversational services test method, the user login information includes user The virtual unit coding of information, session id and user's binding.
It is described to send test interface message to as a kind of further improvement of conversational services test method In conversational services module, the step for further include:
Send user login information in conversational services module so that conversational services module to user login information into Row verification.
As a kind of further improvement of conversational services test method, described will expected returned data and reality Checking treatment is compared in returned data, the step for specifically:
Expected returned data is compared with practical returned data, judges that expected returned data is with practical returned data It is no completely the same, pass through if so, comparison result is identified as test;Conversely, comparison result is then identified as test crash.
Another technical solution of the present invention is:
A kind of conversational services test macro, comprising:
Reading unit obtains test interface message and initialization number for each field information in read test case data According to field;
Initialization unit, for carrying out initialization process to test case data according to initialization data field;
Call unit is sent in conversational services module for calling conversational services module, and by test interface message, into And receive the practical returned data of conversational services module return;
Checking treatment is compared with practical returned data for that will be expected returned data in verification unit, and according to comparison As a result test report is generated.
Further improvement as a kind of conversational services test macro, further includes:
Decomposition unit obtains user login information for decomposing from test interface message, and user login information is protected It deposits into database.
As a kind of further improvement of conversational services test macro, the user login information includes user The virtual unit coding of information, session id and user's binding.
Another technical solution of the present invention is:
A kind of conversational services test device, comprising:
At least one processor;
At least one processor, for storing at least one program;
When at least one described program is executed by least one described processor, so that at least one described processor is realized The conversational services test method.
Another technical solution of the present invention is:
A kind of computer readable storage medium, which is characterized in that including computer program, when the computer program is being counted When being run on calculation machine, so that the conversational services test method is performed.
The beneficial effects of the present invention are:
A kind of conversational services test method of the present invention, system, device and storage medium are by sending test case data Check test is carried out in conversational services module, is not needed to be changed according to interface and is changed code again, is completed by test case data Interface adaptation, to greatly improve the efficiency of the full interface function test of conversational services.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of conversational services test method of the present invention;
Fig. 2 is a kind of block diagram of conversational services test macro of the present invention.
Specific embodiment
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing:
With reference to Fig. 1, the embodiment of the invention provides a kind of conversational services test methods, comprising the following steps:
Each field information in S1, read test case data, obtains test interface message and initialization data field;
S2, according to initialization data field, initialization process is carried out to test case data;
S3, conversational services module is called, and sends test interface message in conversational services module, and then receive session The practical returned data that service module returns;
S4, checking treatment is compared with practical returned data for expected returned data, and is generated and is surveyed according to comparison result Examination report.
Test case data is Excel document in the present embodiment, and the test case data includes ID, interface name, use-case Description, initialization data field and test interface message.Wherein, ID is encoded for test case;Interface name is for identifying test The interface name of use-case, for being distinguished with other interfaces;Use case description is described for test function point;Initialization data word Section is for providing the sq1 sentence of this use-case test data initialization;Test interface message is used for the test packet of this use-case, to connect Mouth distinguishes.It is tested in the present embodiment mainly for Socket interface.The test report of generation uses Excel document.
The present embodiment carries out check test by sending test case data in conversational services module, does not need basis and connects Mouth changes changes code again, interface adaptation is completed by test case data, to greatly improve the full interface function of conversational services The efficiency of test.
It is further used as preferred embodiment, further comprising the steps of:
S5, decomposition obtains user login information from test interface message, and user login information is saved to database In.
Wherein, the information such as virtual unit coding in test interface message comprising user information, session id and user's binding, The user login information needed is executed using these information architecture test cases and is saved in redis database for session to be measured Service carries out logon information verification.
It is further used as preferred embodiment, it is described to send test interface message in conversational services module, this One step further include:
Send user login information in conversational services module so that conversational services module to user login information into Row verification.
It is further used as preferred embodiment, it is described that school is compared with practical returned data in expected returned data Processing is tested, the step for specifically:
Expected returned data is compared with practical returned data, judges that expected returned data is with practical returned data It is no completely the same, pass through if so, comparison result is identified as test;Conversely, comparison result is then identified as test crash.
With reference to Fig. 2, a kind of conversational services test macro is present embodiments provided, comprising:
Reading unit obtains test interface message and initialization number for each field information in read test case data According to field;
Initialization unit, for carrying out initialization process to test case data according to initialization data field;
Call unit is sent in conversational services module for calling conversational services module, and by test interface message, into And receive the practical returned data of conversational services module return;
Checking treatment is compared with practical returned data for that will be expected returned data in verification unit, and according to comparison As a result test report is generated.
Suitable for this system embodiment, this system embodiment is implemented content in above method embodiment Function is identical as above method embodiment, and the beneficial effect reached and above method embodiment beneficial effect achieved It is identical.
It is further used as preferred embodiment, further includes:
Decomposition unit obtains user login information for decomposing from test interface message, and user login information is protected It deposits into database.
It is further used as preferred embodiment, the user login information includes user information, session id and user The virtual unit of binding encodes.
The present embodiment additionally provides a kind of conversational services test device, comprising:
At least one processor;
At least one processor, for storing at least one program;
When at least one described program is executed by least one described processor, so that at least one described processor is realized The conversational services test method.
Suitable for present apparatus embodiment, present apparatus embodiment is implemented content in above method embodiment Function is identical as above method embodiment, and the beneficial effect reached and above method embodiment beneficial effect achieved It is identical.
The present embodiment additionally provides a kind of computer readable storage medium, which is characterized in that including computer program, works as institute When stating computer program and running on computers, so that the conversational services test method is performed.
Suitable for this storage medium embodiment, this storage medium embodiment is had content in above method embodiment The function that body is realized is identical as above method embodiment, and the beneficial effect reached with above method embodiment is achieved has Beneficial effect is also identical.
In conclusion a kind of conversational services test method of the present invention, system, device and storage medium are by by test case Check test is carried out in data transmission session service module, is not needed to be changed according to interface and is changed code again, passes through test case Data complete interface adaptation, to greatly improve the efficiency of the full interface function test of conversational services.
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method Journey technology-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program, In configured in this way storage medium computer is operated in a manner of specific and is predefined --- according in a particular embodiment The method and attached drawing of description.Each program can with the programming language of level process or object-oriented come realize with department of computer science System communication.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, which can be volume The language translated or explained.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
In addition, the operation of process described herein can be performed in any suitable order, unless herein in addition instruction or Otherwise significantly with contradicted by context.Process described herein (or modification and/or combination thereof) can be held being configured with It executes, and is can be used as jointly on the one or more processors under the control of one or more computer systems of row instruction The code (for example, executable instruction, one or more computer program or one or more application) of execution, by hardware or its group It closes to realize.The computer program includes the multiple instruction that can be performed by one or more processors.
Further, the method can be realized in being operably coupled to suitable any kind of computing platform, wrap Include but be not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated Computer platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to deposit The machine readable code on non-transitory storage medium or equipment is stored up to realize no matter be moveable or be integrated to calculating Platform, such as hard disk, optical reading and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when Storage medium or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.This Outside, machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include combining microprocessor Or other data processors realize steps described above instruction or program when, invention as described herein including these and other not The non-transitory computer-readable storage media of same type.When methods and techniques according to the present invention programming, the present invention It further include computer itself.
Computer program can be applied to input data to execute function as described herein, to convert input data with life At storing to the output data of nonvolatile memory.Output information can also be applied to one or more output equipments as shown Device.In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including the object generated on display Reason and the particular visual of physical objects are described.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.

Claims (10)

1. a kind of conversational services test method, which comprises the following steps:
Each field information in read test case data, obtains test interface message and initialization data field;
According to initialization data field, initialization process is carried out to test case data;
Conversational services module is called, and sends test interface message in conversational services module, and then receives conversational services mould The practical returned data that block returns;
Checking treatment is compared with practical returned data for expected returned data, and test report is generated according to comparison result.
2. a kind of conversational services test method according to claim 1, it is characterised in that: further comprising the steps of:
It is decomposed from test interface message and obtains user login information, and user login information is saved into database.
3. a kind of conversational services test method according to claim 2, it is characterised in that: the user login information packet Include the virtual unit coding of user information, session id and user's binding.
4. a kind of conversational services test method according to claim 2, it is characterised in that: described by test interface message It is sent in conversational services module, the step for further include:
It sends user login information in conversational services module, so that conversational services module carries out school to user login information It tests.
5. a kind of conversational services test method according to claim 1, it is characterised in that: described will expected returned data Checking treatment is compared with practical returned data, the step for specifically:
Expected returned data is compared with practical returned data, judges whether expected returned data and practical returned data are complete It is complete consistent, pass through if so, comparison result is identified as test;Conversely, comparison result is then identified as test crash.
6. a kind of conversational services test macro characterized by comprising
Reading unit obtains test interface message and initialization data word for each field information in read test case data Section;
Initialization unit, for carrying out initialization process to test case data according to initialization data field;
Call unit is sent in conversational services module, Jin Erjie for calling conversational services module, and by test interface message Receive the practical returned data that conversational services module returns;
Checking treatment is compared with practical returned data for that will be expected returned data in verification unit, and according to comparison result Generate test report.
7. a kind of conversational services test macro according to claim 6, it is characterised in that: further include:
Decomposition unit obtains user login information for decomposing from test interface message, and by user login information save to In database.
8. a kind of conversational services test macro according to claim 6, it is characterised in that: the user login information packet Include the virtual unit coding of user information, session id and user's binding.
9. a kind of conversational services test device, it is characterised in that: include:
At least one processor;
At least one processor, for storing at least one program;
When at least one described program is executed by least one described processor, so that at least one described processor is realized as weighed Benefit requires the described in any item conversational services test methods of 1-5.
10. a kind of computer readable storage medium, which is characterized in that including computer program, when the computer program is being counted When being run on calculation machine, so that conversational services test method as claimed in any one of claims 1 to 5 is performed.
CN201910701505.3A 2019-07-31 2019-07-31 A kind of conversational services test method, system, device and storage medium Pending CN110489343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910701505.3A CN110489343A (en) 2019-07-31 2019-07-31 A kind of conversational services test method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910701505.3A CN110489343A (en) 2019-07-31 2019-07-31 A kind of conversational services test method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN110489343A true CN110489343A (en) 2019-11-22

Family

ID=68549160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910701505.3A Pending CN110489343A (en) 2019-07-31 2019-07-31 A kind of conversational services test method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN110489343A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163134A (en) * 2019-12-11 2020-05-15 浙江极智通信科技股份有限公司 Equipment testing method and system
CN111198823A (en) * 2020-01-10 2020-05-26 北京声智科技有限公司 Multi-round session testing method, device, equipment and medium
CN111666301A (en) * 2020-05-08 2020-09-15 广州微算互联信息技术有限公司 Service interface testing method, computer device and storage medium
CN111752847A (en) * 2020-06-30 2020-10-09 贝壳技术有限公司 Interface comparison method, micro server, computer readable storage medium and electronic device
CN113568824A (en) * 2021-01-20 2021-10-29 腾讯科技(深圳)有限公司 Notification service test method and device, electronic equipment and storage medium
CN114896165A (en) * 2022-05-31 2022-08-12 北京达佳互联信息技术有限公司 Testing method and device of conversation robot system, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN105512029A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method, server and system for testing intelligent terminal
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case
CN106708718A (en) * 2015-07-22 2017-05-24 北京京东尚科信息技术有限公司 Service framework interface testing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
CN102185734A (en) * 2011-04-18 2011-09-14 华为软件技术有限公司 Automatic interface testing method and server
CN105373469A (en) * 2014-08-25 2016-03-02 广东金赋信息科技有限公司 Interface based software automation test method
CN106708718A (en) * 2015-07-22 2017-05-24 北京京东尚科信息技术有限公司 Service framework interface testing method and device
CN105512029A (en) * 2015-11-27 2016-04-20 北京奇虎科技有限公司 Method, server and system for testing intelligent terminal
CN105528294A (en) * 2015-12-29 2016-04-27 广东金赋信息科技有限公司 Method and system for automatically generating interface testing case

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111163134A (en) * 2019-12-11 2020-05-15 浙江极智通信科技股份有限公司 Equipment testing method and system
CN111198823A (en) * 2020-01-10 2020-05-26 北京声智科技有限公司 Multi-round session testing method, device, equipment and medium
CN111666301A (en) * 2020-05-08 2020-09-15 广州微算互联信息技术有限公司 Service interface testing method, computer device and storage medium
CN111666301B (en) * 2020-05-08 2023-08-15 广州微算互联信息技术有限公司 Service interface testing method, computer device and storage medium
CN111752847A (en) * 2020-06-30 2020-10-09 贝壳技术有限公司 Interface comparison method, micro server, computer readable storage medium and electronic device
CN113568824A (en) * 2021-01-20 2021-10-29 腾讯科技(深圳)有限公司 Notification service test method and device, electronic equipment and storage medium
CN114896165A (en) * 2022-05-31 2022-08-12 北京达佳互联信息技术有限公司 Testing method and device of conversation robot system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110489343A (en) A kind of conversational services test method, system, device and storage medium
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN110633198A (en) Block chain-based software test data storage method and system
CN107436844A (en) A kind of generation method and device of interface use-case intersection
CN113762421B (en) Classification model training method, flow analysis method, device and equipment
CN113268336A (en) Service acquisition method, device, equipment and readable medium
CN110647523A (en) Data quality analysis method and device, storage medium and electronic equipment
CN110059155A (en) The calculating of text similarity, intelligent customer service system implementation method and device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN110493074A (en) A kind of test method and system of server and client
CN112631884A (en) Pressure measurement method and device based on data synchronization, computer equipment and storage medium
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN111949549A (en) Test request screening method, system, electronic device and storage medium
CN115600644A (en) Multitasking method and device, electronic equipment and storage medium
CN110489342A (en) A kind of Android application testing method, system, device and storage medium
CN110728118B (en) Cross-data-platform data processing method, device, equipment and storage medium
CN113296785A (en) Document generation method, system, device and readable storage medium
CN112016285B (en) Logistics information processing method and processing system
CN112488624A (en) Logistics routing information calculation method, device, equipment and storage medium
CN110825538A (en) MQ-based method for dynamically interacting data by self-defining data types
CN117130933A (en) Baffle service method, system, equipment and storage medium
CN110084467A (en) Mobile standard inspection method, apparatus, computer equipment and storage medium
CN111984744B (en) Information processing method based on remote communication and artificial intelligence and cloud service platform
CN115576837A (en) Batch number making method and device, computer equipment and storage medium
CN114625340A (en) Commercial software research and development method, device, equipment and medium based on demand analysis

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

Application publication date: 20191122

RJ01 Rejection of invention patent application after publication