CN107943706A - A kind of test system, method, apparatus and computer-readable storage medium - Google Patents
A kind of test system, method, apparatus and computer-readable storage medium Download PDFInfo
- Publication number
- CN107943706A CN107943706A CN201711307556.5A CN201711307556A CN107943706A CN 107943706 A CN107943706 A CN 107943706A CN 201711307556 A CN201711307556 A CN 201711307556A CN 107943706 A CN107943706 A CN 107943706A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- request
- client
- equipment
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of test system, method, apparatus and computer-readable storage medium, the wherein system includes server, client;Server is used for the test request for receiving test equipment transmission, sends test command corresponding with test request to client;Client is used to receive test command, and transmits corresponding test case to test equipment according to mode corresponding with test command.By the way of a kind of test system provided by the invention is coordinated using three ends, server is after the test request of test equipment transmission is received, test command corresponding with test request is sent to client, corresponding test case is transmitted for test equipment by client, it is test equipment input test use-case to realize automatic.Compared with artificial input test use-case in the prior art, applicability is improved.A kind of test method, device and computer-readable storage medium provided by the invention also solve corresponding technical problem.
Description
Technical field
The present invention relates to automatization testing technique field, more specifically to a kind of test system, method, apparatus and
Computer-readable storage medium.
Background technology
, it is necessary to test the performance of software in the production process of software etc., such as the production in voice software
, it is necessary to test the performance of voice software in journey, this just needs to carry out phonetic entry to voice software.
A kind of existing method by phonetic entry to voice software is:Manually according to the demand input test of tone testing
Use-case is to voice software.
However, a kind of existing method by phonetic entry to voice software needs to complete by manually, test job
Amount is big, and applicability is relatively low.
In conclusion how to improve the applicability of the method for phonetic entry to voice software is current people in the art
Member's urgent problem to be solved.
The content of the invention
The object of the present invention is to provide a kind of test system, it can solve how to improve phonetic entry to a certain extent
To the technical problem of the applicability of the method for voice software.Present invention also offers a kind of test method, device and computer to deposit
Storage media.
To achieve these goals, the present invention provides following technical solution:
A kind of test system, including:Server, client;
The server, for receiving the test request of test equipment transmission, sends survey corresponding with the test request
Examination is ordered to the client;
The client, for receiving the test command, and according to mode corresponding with the test command to described
Test equipment transmits corresponding test case.
Preferably, the server is used for the test request for receiving test equipment transmission, including:
The server is located inside the test equipment, and the server receives the test equipment and sent out by broadcasting
The test request sent.
Preferably, socket communication modes are used between the server and the client.
Preferably, the server is used for the test request for receiving test equipment transmission, including:
The server is used to receive the test request sent during test equipment implementation of test cases script.
A kind of test method, including:
Receive the test request that test equipment is sent;
Corresponding with test request test command is sent to client, for the client according to the test
Corresponding mode is ordered to transmit corresponding test case to the test equipment.
Preferably, the test request for receiving test equipment and sending, including:
Receive test request of the test equipment by broadcast transmission.
Preferably, it is described to send test command corresponding with the test request to client, including:
Test command corresponding with the test request is sent to client by socket communication modes.
Preferably, the test request for receiving test equipment and sending, including:
Receive the test request sent during test equipment implementation of test cases script.
A kind of test device, including:
Memory, for storing computer program;
Processor, the step of a kind of as above any test method is realized during for performing the computer program.
A kind of computer-readable storage medium, is stored with computer program, the computer journey on the computer-readable storage medium
The step of a kind of as above any test method is realized when sequence is executed by processor.
A kind of test system provided by the invention, including server, client;Server, for receiving test equipment hair
The test request sent, sends test command corresponding with test request to client;Client, for receiving test command, and
According to mode corresponding with test command corresponding test case is transmitted to test equipment.A kind of test system provided by the invention
By the way of being coordinated using three ends, server is sent corresponding to test request after the test request of test equipment transmission is received
Test command to client, transmit corresponding test case for test equipment by client, realize and set automatically for test
Standby input test use-case.Compared with artificial input test use-case in the prior art, applicability is improved.One kind provided by the invention
Test method, device and computer-readable storage medium also solve corresponding technical problem.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of structure diagram of test system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of test method provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of test method provided in an embodiment of the present invention in android tests;
Fig. 4 is a kind of structure diagram of test device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of structure diagram of test system provided in an embodiment of the present invention.
A kind of test system provided in an embodiment of the present invention, can include:Server 101, client 102;
Server 101, for receiving the test request of the transmission of test equipment 103, sends test corresponding with test request
Order to client;
Client 102, passes for receiving test command, and according to mode corresponding with test command to test equipment 103
Defeated corresponding test case.
In practical application, server first receives the test request of test equipment transmission;What test equipment mentioned here referred to
It is the equipment for test software performance, such as the tone testing equipment for tested speech software performance;The class of test equipment
Type can be determined according to being actually needed, such as android mobile terminals, ios mobile terminals etc.;Test request mentioned here can
Think information when test equipment itself starts, instructed caused by test equipment itself renewal etc..In practical application, Ke Yi
Test script in test equipment needed for storage test, setting test equipment to send corresponding test when running the test script please
Ask to server.
Server can be sent corresponding with test request in real time after the test request of test equipment transmission is received
Test command is to client;When the quantity of server and test equipment is man-to-man relation, can only be stored in server
A kind of test command, in this way, server after the test request of test equipment transmission is received, directly can preserve itself
Test command sends to client, or server and directly generates and send test command corresponding with test request to client
End;When the quantity of server and test equipment is one-to-many relation, different test equipments can be set to send different
Test request, correspondingly, the corresponding test command of each test request can be previously stored with server, in this way, server
After the test request of test equipment transmission is received, test command corresponding with the test request, Ran Houzai can be first searched
The test command is sent to client, or server and directly generates and sends test command corresponding with test request to visitor
Family end.Client can transmit phase according to mode corresponding with test command after test command is received to test equipment
The test case answered, corresponding mode mentioned here are referred to for the mode of test equipment input test use-case, such as with hair
The mode sent is picture test equipment input test picture etc.;It is man-to-man relation in the quantity of client and test equipment
When, corresponding with test equipment test case can be only stored in the client, for example in test equipment is single voice
During test equipment, a storaged voice test case in client, correspondingly, client in a manner of voice by tone testing use-case
It is transferred to tone testing equipment.Quantitative relation between server, client and test equipment can be determined according to being actually needed.
A kind of test system provided by the invention, including server, client;Server, for receiving test equipment hair
The test request sent, sends test command corresponding with test request to client;Client, for receiving test command, and
According to mode corresponding with test command corresponding test case is transmitted to test equipment.A kind of test system provided by the invention
In, server sends test command corresponding with test request to client after the test request of test equipment transmission is received
End, transmits corresponding test case, it is test equipment input test use-case to realize automatic by client for test equipment.With
Artificial input test use-case is compared in the prior art, improves applicability.
In a kind of test system provided in an embodiment of the present invention, server can be also used for completing to test in test equipment
Afterwards, the test result of statistical test equipment, and generate test report.
In order to allow the external world to check test result as needed, server is after test equipment completes test, Ke Yitong
The test result of test equipment is counted, test report can also be generated, in this way, the extraneous test report that can be generated according to server
To check, analyze test process.Server can monitoring and test equipment in real time, judge whether test equipment completes test;Also
It can be that test equipment sends corresponding information after itself test is completed to server, prompt server itself to complete whereby
Test.Certainly, in practical application, can also by test equipment statistical test as a result, and generate test report, the present invention is herein
It is not specifically limited.
In a kind of test system provided in an embodiment of the present invention, server can be also used for prompting client display test report
Accuse.
In order to allow the external world to check test report, server can also prompt client display to survey after test report is generated
Examination report;It is, of course, also possible to test report is sent to tester in the form of mail, or in form of a message to tester
The handheld terminals such as the mobile phone of member send test report;In practical application, indicator light, buzzer can also be set on the client
Deng to prompt extraneous test to complete.
In a kind of test system provided in an embodiment of the present invention, server can be located inside test equipment, and server
Receive test request of the test equipment by broadcast transmission.
In practical application, the test request that server receives can be that test equipment is sent in the form of broadcasting, test
Test request very easily can be sent to server by equipment by broadcast;In addition, can also be to a certain degree by broadcast
On realize decoupling between test equipment and server so that test system is easier integrated and extension;It should be pointed out that at this moment, clothes
Business device can be built in test equipment., can be directly wide by android when test equipment is android mobile terminals
Mechanism is broadcast to realize the information exchange between test equipment and server, correspondingly, when test equipment is ios mobile terminals, can
Directly to realize the information exchange between test equipment and server by ios broadcast mechanisms.In practical application, test equipment and
Socket can also be used to communicate between server, using Socket communications test equipment and server can be caused to be established in both sides
The transmission that data are directly carried out after connecting is acted, the active push of test request can be realized upon connection, without every time by surveying
Try device-to-server and send test request, testing efficiency can be improved to a certain extent;Correspondingly, server and client side
Between can also use socket communicate.
Present invention also offers a kind of test method, its with a kind of test system provided in an embodiment of the present invention with
Corresponding effect.Referring to Fig. 2, Fig. 2 is a kind of flow chart of test method provided in an embodiment of the present invention.
A kind of test method provided in an embodiment of the present invention, may comprise steps of:
Step S101:Receive the test request that test equipment is sent.
Step S102:Test command corresponding with test request is sent to client, so that client is ordered according to test
Corresponding mode is made to transmit corresponding test case to test equipment.
In a kind of test method provided in an embodiment of the present invention, step S102 sends test command corresponding with test request
To client, can also include:
The test result of statistical test equipment, generates test report.
In order to allow the external world to check test result as needed, server is after test equipment completes test, Ke Yitong
The test result of test equipment is counted, test report can also be generated, in this way, the extraneous test report that can be generated according to server
To check, analyze test process.Server can monitoring and test equipment in real time, judge whether test equipment completes test;Also
It can be that test equipment sends corresponding information after itself test is completed to server, prompt server itself to complete whereby
Test.Certainly, in practical application, can also by test equipment statistical test as a result, and generate test report, the present invention is herein
It is not specifically limited.
In a kind of test method provided in an embodiment of the present invention, after generating test report, it can also include:
Client is prompted to show test report.
In order to allow the external world to check test report, server can also prompt client display to survey after test report is generated
Examination report;It is, of course, also possible to test report is sent to tester in the form of mail, or in form of a message to tester
The handheld terminals such as the mobile phone of member send test report;In practical application, indicator light, buzzer can also be set on the client
Deng to prompt extraneous test to complete.
In a kind of test method provided in an embodiment of the present invention, the test request that test equipment is sent is received, specifically can be with
For:
Receive test request of the test equipment by broadcast transmission.
In practical application, the test request that server receives can be that test equipment is sent in the form of broadcasting, test
Test request very easily can be sent to server by equipment by broadcast;In addition, can also be to a certain degree by broadcast
On realize decoupling between test equipment and server so that test system is easier integrated and extension;It should be pointed out that at this moment, clothes
Business device can be built in test equipment.In practical application, socket can also be used to communicate between test equipment and server, adopted
With Socket communications test equipment and server can be caused directly to carry out the transmission of data after both sides set up connection, even
The active push of test request can be achieved after connecing, can be with without sending test request from test equipment to server every time
Testing efficiency is improved to a certain extent;Correspondingly, socket can also be used to communicate between server and client side.
Referring to Fig. 3, Fig. 3 is a kind of test method provided in an embodiment of the present invention in the test of android voice softwares
Flow chart.
Android (Android) voice software test in a kind of test method provided in an embodiment of the present invention, can include with
Lower step:
Step S201:Jenkins creates test assignment.
Jenkins mentioned here is an open source software project, is a kind of continuous integrating instrument based on Java exploitations,
For monitoring the work for continuing to repeat, it is desirable to provide an easy-to-use software platform of opening, making the continuous integrating of software, become can
Energy.The process that test equipment creates Jenkins is referred to correlated process of the prior art, and which is not described herein again.It is actual to answer
In, timing can be set to perform test assignment, such as 8 points of execution in morning on every Mondays, or 12 points of execution every night etc..
Step S202:The version that Jenkins Run Scripts are used in the version and ftp server of monitoring device compares, if
Latest edition, then automatic upgrading.
In the present embodiment, the automatic upgrading of software is that test equipment sends test request to the trigger condition of server.It is real
In the application of border, equipment current version information can be obtained with adb orders.
Step S203:By the test script push write to test equipment, and test script is performed, test equipment is sent
Corresponding test request is to server.
In practical application, the script finished writing can be packaged into jar, push to test equipment, and Run Script.
Step S204:After server receives test request, send and play voice command to client.
Step S205:Client, which receives, plays voice command back testing device plays audio use-case.
Step S206:The script log and logcat log informations generated in test equipment parsing test process, generation are surveyed
Examination report, sends test report to server.
Step S207:Server receives test report, and sends test report to tester in the form of mail.
Present invention also offers a kind of test device and computer-readable storage medium, it is respectively provided with provided in an embodiment of the present invention
The correspondence effect that a kind of test system has.Referring to Fig. 4, Fig. 4 is a kind of knot of test device provided in an embodiment of the present invention
Structure schematic diagram.
A kind of test device provided in an embodiment of the present invention, can include:
Memory 201, for storing computer program;
Processor 202, a kind of as above any embodiment described test method is realized during for performing computer program
The step of.
A kind of computer-readable storage medium provided in an embodiment of the present invention, is stored with computer journey on computer-readable storage medium
Sequence, the step of a kind of as above any embodiment described test method is realized when computer program is executed by processor.
The explanation of relevant portion please in a kind of test system provided in an embodiment of the present invention, device and computer-readable storage medium
Referring to the detailed description of corresponding part in a kind of test method provided in an embodiment of the present invention, details are not described herein.In addition, this hair
The part consistent with corresponding to technical solution realization principle in the prior art be not detailed in the above-mentioned technical proposal that bright embodiment provides
Describe in detail it is bright, in order to avoid excessively repeat.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or use the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
The embodiments shown herein is formed on, and is to fit to consistent with the principles and novel features disclosed herein most wide
Scope.
Claims (10)
- A kind of 1. test system, it is characterised in that including:Server, client;The server, for receiving the test request of test equipment transmission, transmission is corresponding with the test request to test life Make to the client;The client, for receiving the test command, and according to mode corresponding with the test command to the test Equipment transmits corresponding test case.
- 2. system according to claim 1, it is characterised in that the server is used for the test for receiving test equipment transmission Request, including:The server is located inside the test equipment, and the server receives the test equipment and passes through broadcast transmission Test request.
- 3. system according to claim 1, it is characterised in that led between the server and the client using socket Letter mode.
- 4. system according to any one of claims 1 to 3, it is characterised in that the server is used to receive test equipment The test request of transmission, including:The server is used to receive the test request sent during test equipment implementation of test cases script.
- A kind of 5. test method, it is characterised in that including:Receive the test request that test equipment is sent;Corresponding with test request test command is sent to client, for the client according to the test command Corresponding mode transmits corresponding test case to the test equipment.
- 6. according to the method described in claim 5, it is characterized in that, it is described receive test equipment send test request, including:Receive test request of the test equipment by broadcast transmission.
- 7. according to the method described in claim 5, it is characterized in that, described send test command corresponding with the test request To client, including:Test command corresponding with the test request is sent to client by socket communication modes.
- 8. method according to any one of claims 1 to 7, it is characterised in that the test for receiving test equipment and sending Request, including:Receive the test request sent during test equipment implementation of test cases script.
- A kind of 9. test device, it is characterised in that including:Memory, for storing computer program;Processor, realizing a kind of test method as described in any one of claim 5 to 8 during for performing the computer program Step.
- 10. a kind of computer-readable storage medium, it is characterised in that computer program, institute are stored with the computer-readable storage medium State and realized when computer program is executed by processor as described in any one of claim 5 to 8 the step of a kind of test method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711307556.5A CN107943706A (en) | 2017-12-11 | 2017-12-11 | A kind of test system, method, apparatus and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711307556.5A CN107943706A (en) | 2017-12-11 | 2017-12-11 | A kind of test system, method, apparatus and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107943706A true CN107943706A (en) | 2018-04-20 |
Family
ID=61946396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711307556.5A Pending CN107943706A (en) | 2017-12-11 | 2017-12-11 | A kind of test system, method, apparatus and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107943706A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258902A (en) * | 2020-01-17 | 2020-06-09 | 平安医疗健康管理股份有限公司 | Performance test method and performance test system based on SockJS server |
CN113392028A (en) * | 2021-07-19 | 2021-09-14 | 镁佳(北京)科技有限公司 | Distributed test system and control method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003001505A1 (en) * | 2001-06-22 | 2003-01-03 | Koninklijke Philips Electronics N.V. | Device having speech-control means and having test-means for testing a function of the speech-control means |
CN105471680A (en) * | 2015-12-09 | 2016-04-06 | 上海斐讯数据通信技术有限公司 | Network voice communication testing system and method |
CN106294102A (en) * | 2015-05-20 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The method of testing of application program, client, server and system |
-
2017
- 2017-12-11 CN CN201711307556.5A patent/CN107943706A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003001505A1 (en) * | 2001-06-22 | 2003-01-03 | Koninklijke Philips Electronics N.V. | Device having speech-control means and having test-means for testing a function of the speech-control means |
CN106294102A (en) * | 2015-05-20 | 2017-01-04 | 腾讯科技(深圳)有限公司 | The method of testing of application program, client, server and system |
CN105471680A (en) * | 2015-12-09 | 2016-04-06 | 上海斐讯数据通信技术有限公司 | Network voice communication testing system and method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258902A (en) * | 2020-01-17 | 2020-06-09 | 平安医疗健康管理股份有限公司 | Performance test method and performance test system based on SockJS server |
CN111258902B (en) * | 2020-01-17 | 2022-07-19 | 深圳平安医疗健康科技服务有限公司 | Performance test method and performance test system based on SockJS server |
CN113392028A (en) * | 2021-07-19 | 2021-09-14 | 镁佳(北京)科技有限公司 | Distributed test system and control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978263B (en) | A kind of mobile terminal applied program testing method and system | |
CN104765678B (en) | The method and device tested the application on mobile terminal device | |
CN106294179B (en) | Analog detection method and server in process of application development | |
CN107341098A (en) | Software performance testing method, platform, equipment and storage medium | |
CN101013968A (en) | Automated interface testing framework | |
CN112463634B (en) | Software testing method and device under micro-service architecture | |
CN106776323B (en) | Application testing method and device | |
CN110493028A (en) | A kind of clustered deploy(ment) method, system, device and computer readable storage medium | |
CN107145439B (en) | Test request processing method and device | |
CN113037616B (en) | Interactive method and device for cooperatively controlling multiple robots | |
CN109815105A (en) | Applied program testing method and device based on Btrace | |
CN110275832A (en) | Starting time-consuming test method, system, equipment and the medium of application program | |
CN106095676A (en) | Method of testing that data report, Apparatus and system | |
CN109542780A (en) | Test method, test equipment and the storage medium of natural language processing application | |
CN107943706A (en) | A kind of test system, method, apparatus and computer-readable storage medium | |
CN109710535A (en) | Service method of calibration and system for voice dialogue platform | |
CN111050333A (en) | Base station automatic test method and system | |
CN113434422B (en) | Virtual device debugging method and device and virtual device debugging system | |
CN111128139B (en) | Non-invasive voice test method and device | |
CN104008043B (en) | Cross-terminal method of testing, end to be tested and test lead | |
CN107179916B (en) | A kind of application development method, apparatus, equipment and development frame system | |
CN108009093A (en) | A kind of method for testing software, apparatus and system | |
CN103781062B (en) | Remote card write-in method, device and system | |
CN107295550A (en) | The detection method and device of abnormality processing function | |
CN111221687B (en) | Cloud storage testing system and method |
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: 20180420 |