CN108845931A - A kind of automated test frame based on natural language - Google Patents
A kind of automated test frame based on natural language Download PDFInfo
- Publication number
- CN108845931A CN108845931A CN201810507885.2A CN201810507885A CN108845931A CN 108845931 A CN108845931 A CN 108845931A CN 201810507885 A CN201810507885 A CN 201810507885A CN 108845931 A CN108845931 A CN 108845931A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- natural language
- case
- present
- 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.)
- Withdrawn
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/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test 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)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of automated test frame based on natural language, include the steps that natural language use-case, natural language are realized, execute order operation use-case, the present invention can be such that test case description and test case execution combines;Test case is write as using the grammer of plain text, easily understands and writes, even non-technical personnel can be write;And the project tested at present smolders and returns use-case conversion ratio up to 50%, has saved a large amount of smoke test times;The present invention is matched by the way of regular expression, so that the reusability of coding is got higher, the test report after integrating can show test result from different dimensions;In addition, the present invention, which is easy to developer, understands tester's test point, according to test case, developer can directly return survey, not need the design for understanding test frame.
Description
Technical field
The present invention relates to natural language technical field, specially a kind of automated test frame based on natural language.
Background technique
Present agile development, each version iteration is fast, and smoke test repetitive operation is more, and low efficiency is error-prone.To
Waste a large amount of manpower and time cost.Therefore liberation manpower and time cost are extremely urgent, and automatic test can be fast
A large amount of test cases are rapidly completed in speed automatically, avoid repetitive operation, save huge manual testing's cost, force developer
Higher quality code is write out, so that continuous integrating is relatively reliable.Requirement of traditional automation framework for technology is excessively high, so that
Automatic test development is ended up with nothing definite.And the automatic test based on natural language behavior driving, it can establish one for us
A readability, executable characteristic test use-case.Test case is write with natural language and executes survey in short, it can allow you to possess
The ability or even non-technical personnel of example on probation can write.
The test frame of mainstream can not all accomplish that test case description and test case execution are combined together at present;For
The tester's technical requirements for writing test case are excessively high, such as java, the language basis such as python;Traditional automation framework pair
The reuse rate of code is not high, and such as same type of operation needs duplicate coding.
Summary of the invention
The purpose of the present invention is to provide a kind of automated test frames based on natural language, to solve above-mentioned background skill
The problem of being proposed in art.
To achieve the above object, the present invention provides the following technical solutions:A kind of automatic test frame based on natural language
Frame includes the steps that natural language use-case, natural language are realized, execute order operation use-case.
Preferably, application method includes the following steps:
A, client process:One http-server of client terminal start-up creates session session on http-server,
Client sends json instruction by socket and completes to interact to http-server;
B, server-side is handled:Http server-side receives the instruction that client is sent, and can hold a socket newly to monitor
Command instruction, and the instruction of client is handled, it is sent instructions on bootstrap in a manner of json after processing;
C, equipment end is handled:Bootstrap takes the instruction that server-side is sent, our testing mobile phone can be driven to carry out
Corresponding operation can be saved implementing result in a manner of json after the completion and return to server-side, and server-side again returns to result
To client, to complete entire session;
D, test result is handled:Json can be generated in the frame, and html, the report of junit format can also be with lasting collection
At tool jenkins perfect combination, json report can be converted by the plug-in unit of jenkins, allow test result with figure
The mode of change is shown, can also check test result from different dimensions such as feature, scenario etc..
Compared with prior art, the beneficial effects of the invention are as follows:The present invention can make test case description and test case
Execution combines;Test case is write as using the grammer of plain text, easily understands and writes, and even non-technical personnel is all
It can write;And the project tested at present smolders and returns use-case conversion ratio up to 50%, has saved a large amount of smoke test times;
The present invention is matched by the way of regular expression, so that the reusability of coding is got higher, the test report after integrating can
To show test result from different dimensions;In addition, the present invention, which is easy to developer, understands tester's test point, according to test
Use-case, developer can directly return survey, not need the design for understanding test frame.
Detailed description of the invention
Fig. 1 is overall flow figure of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, the present invention provides a kind of technical solution:The present invention provides the following technical solutions:One kind being based on nature
The automated test frame of language includes the steps that natural language use-case, natural language are realized, execute order operation use-case.It should
Frame uses Client/Server mode, as long as client can send http request to server, then the end client is used
Any language is all possible to realize.
Application method of the invention includes the following steps:
A, client process:One http-server of client terminal start-up creates session session on http-server,
Client sends json instruction by socket and completes to interact to http-server;
B, server-side is handled:Http server-side receives the instruction that client is sent, and can hold a socket newly to monitor
Command instruction, and the instruction of client is handled, it is sent instructions on bootstrap in a manner of json after processing;
C, equipment end is handled:Bootstrap takes the instruction that server-side is sent, our testing mobile phone can be driven to carry out
Corresponding operation can be saved implementing result in a manner of json after the completion and return to server-side, and server-side again returns to result
To client, to complete entire session;
D, test result is handled:Json can be generated in the frame, and html, the report of junit format can also be with lasting collection
At tool jenkins perfect combination, json report can be converted by the plug-in unit of jenkins, allow test result with figure
The mode of change is shown, can also check test result from different dimensions such as feature, scenario etc..
In conclusion the present invention can be such that test case description and test case execution combines;Test case is adopted
It is write as with the grammer of plain text, easily understands and write, even non-technical personnel can be write;And the item tested at present
Mesh, which is smoldered, returns use-case conversion ratio up to 50%, has saved a large amount of smoke test times;The present invention uses the side of regular expression
Formula is matched so that the reusability of coding is got higher, it is integrated after test report can show test knot from different dimensions
Fruit;In addition, the present invention, which is easy to developer, understands tester's test point, according to test case, developer can directly be returned
It surveys, does not need the design for understanding test frame.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding
And modification, the scope of the present invention is defined by the appended.
Claims (2)
1. a kind of automated test frame based on natural language, it is characterised in that:Including natural language use-case, natural language
Step is realized, executes order operation use-case.
2. realizing a kind of application method of the automated test frame based on natural language described in claim 1, feature exists
In:Its application method includes the following steps:
A, client process:One http-server of client terminal start-up creates session session, client on http-server
End sends json instruction by socket and completes to interact to http-server;
B, server-side is handled:Http server-side receives the instruction that client is sent, and can newly hold a socket and carry out snoop command
Instruction, and the instruction of client is handled, it is sent instructions on bootstrap in a manner of json after processing;
C, equipment end is handled:Bootstrap takes the instruction that server-side is sent, our testing mobile phone can be driven to carry out accordingly
Operation, implementing result can be saved after the completion in a manner of json and return to server-side, server-side returns result to visitor again
Family end, to complete entire session;
D, test result is handled:Json can be generated in the frame, and html, the report of junit format can also be with continuous integrating work
Have jenkins perfect combination, json report can be converted by the plug-in unit of jenkins, allow test result with patterned
Mode is shown, can also check test result from different dimensions such as feature, scenario etc..
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810507885.2A CN108845931A (en) | 2018-05-24 | 2018-05-24 | A kind of automated test frame based on natural language |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810507885.2A CN108845931A (en) | 2018-05-24 | 2018-05-24 | A kind of automated test frame based on natural language |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108845931A true CN108845931A (en) | 2018-11-20 |
Family
ID=64213321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810507885.2A Withdrawn CN108845931A (en) | 2018-05-24 | 2018-05-24 | A kind of automated test frame based on natural language |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845931A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112231234A (en) * | 2020-12-10 | 2021-01-15 | 北京云测信息技术有限公司 | Cross-platform user interface automatic testing method, device, equipment and storage medium |
CN116719684A (en) * | 2023-08-11 | 2023-09-08 | 中诚华隆计算机技术有限公司 | 3D packaged chip test system |
-
2018
- 2018-05-24 CN CN201810507885.2A patent/CN108845931A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112231234A (en) * | 2020-12-10 | 2021-01-15 | 北京云测信息技术有限公司 | Cross-platform user interface automatic testing method, device, equipment and storage medium |
CN112231234B (en) * | 2020-12-10 | 2021-03-19 | 北京云测信息技术有限公司 | Cross-platform user interface automatic testing method, device, equipment and storage medium |
CN116719684A (en) * | 2023-08-11 | 2023-09-08 | 中诚华隆计算机技术有限公司 | 3D packaged chip test system |
CN116719684B (en) * | 2023-08-11 | 2023-10-20 | 中诚华隆计算机技术有限公司 | 3D packaged chip test system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095677B (en) | The RESTful Webservice automatic interface testing methods realized based on Robot Framework | |
CN105335293A (en) | Automatic testing system and method based on parallel ports | |
CN103077111B (en) | A kind of localization method of continuous integrating failure use-case and system | |
US20190087075A1 (en) | Simulation of cloud platform integration testing in a visual interface | |
CN108038241A (en) | Integrated WEB visual workflows method, apparatus, readable storage medium storing program for executing and system | |
CN106354629A (en) | Construction method of iOS system mobile application automatic test system based on multiple stages of servers | |
CN108845931A (en) | A kind of automated test frame based on natural language | |
CN107122293A (en) | software performance testing method, device, server and system | |
CN104156224A (en) | Continuous integration method and system for software construction | |
CN102855175B (en) | Automated testing method and device | |
CN105302549A (en) | Multiple-language-supporting test process generating, debugging and executing system | |
CN109344074B (en) | Cross-platform automatic testing method and system | |
CN107622006A (en) | System and method for testing mobile device | |
CN111913889A (en) | Test system building method and test system | |
CN104899134A (en) | Automatic domain name registration server testing system and method | |
CN109753281B (en) | Micro-grid energy management strategy visualization development tool based on graphical programming | |
CN106292584A (en) | A kind of flexible manufacturing system based on modular control unit | |
CN109062816A (en) | A kind of method, device and equipment of software test | |
CN107509215A (en) | A kind of wireless authentication automated testing method and system | |
CN102810065B (en) | For the method and system of loader module | |
CN109120473B (en) | Interface request frame implementation method, interface test method and corresponding device | |
CN109634681B (en) | Method and device for uploading data to manufacturing execution system | |
CN116028367A (en) | Automatic test system and method | |
CN109634856A (en) | IOS intelligent terminal remote real machine debugging system and method based on cloud service | |
CN112835789A (en) | Realization technology for automatic test of automatic test framework |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181120 |