CN108733566A - A kind of virtualization system automatization test system and method based on python - Google Patents
A kind of virtualization system automatization test system and method based on python Download PDFInfo
- Publication number
- CN108733566A CN108733566A CN201810501268.1A CN201810501268A CN108733566A CN 108733566 A CN108733566 A CN 108733566A CN 201810501268 A CN201810501268 A CN 201810501268A CN 108733566 A CN108733566 A CN 108733566A
- Authority
- CN
- China
- Prior art keywords
- module
- user
- configuration
- python
- automatization test
- 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/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- 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)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of virtualization system automatization test system and method based on python, belongs to software testing technology field.The virtualization system automatization test system based on python of the present invention includes configuration read module, reptile module, execution module, background authentication module and logger module, and the configuration read module is used to read the configuration information of user;The user's operation that reptile module is read according to configuration module crawls the system page with starting URL input by user;Execution module calls back office interface to execute user configuration;Background authentication module verification foreground issues the correctness on backstage after execution operation;Logger module is for recording operation used and operating result.The virtualization system automatization test system based on python of the invention can realize the complete period automatic test of virtualization system, while reduce automatization test system design and development complexity itself as far as possible, have good application value.
Description
Technical field
The present invention relates to software testing technology fields, specifically provide a kind of virtualization system automation survey based on python
Test system and method.
Background technology
With the rapid development of computer technology, virtualization system is by it in system availability height, manpower/management cost
Strong etc. the advantage shown of low, flexibility/scalability, has become the neomorph of current enterprise's IT construction, software section
Development enables us to realize more and more abundant and powerful function by software systems, and virtualization system is stronger and stronger,
But the thing followed is ramping for software systems complexity, the complication of software systems directly brings system testing work
The inefficient and incomplete problem of covering made, traditional single automatization test system can not achieve UI to the complete period on backstage
Test.
Under virtualized environment, business has the characteristics that complicated but metastable.Relate in one aspect to Hyper V
(HyperVisior)Physical server virtualization system and VM(Virtual Machine)The various operations of virtual machine come relatively
Say it is more complicated, another aspect system it is each operation relatively stablize, big change will not occur.In addition, test system is not related to
The operation of VM interior business, while the above this situation is just design completely new automatization test system proposition active demand again
Bring possibility.And Python has the advantages that simple, efficient and cross-platform as a kind of interpreted language, relies on simultaneously
In its powerful library lib, it is highly suitable as the speech selection of system automation testing tool.
Invention content
The technical assignment of the present invention is in view of the above problems, to provide a kind of complete period that can realize virtualization system
Automatic test, while the void based on python of automatization test system design and development complexity itself is reduced as far as possible
Quasi-ization system automation tests system.
The further technical assignment of the present invention is to provide a kind of virtualization system automated testing method based on python.
To achieve the above object, the present invention provides following technical solutions:
A kind of virtualization system automatization test system based on python, including configuration read module, reptile module, execution mould
Block, background authentication module and logger module, the configuration read module are used to read the configuration information of user;Reptile module
The user's operation read according to configuration module crawls the system page with starting URL input by user, is adjusted after being matched to user's operation
It is executed with execution module and operates and obtain operating result;Execution module calls back office interface to execute user configuration;Background authentication mould
Block verification foreground issues the correctness on backstage after execution operation;Logger module is used to record operation used and operating result,
For the bug in user's discovery system and amendment.
The user's operation that reptile module is read according to configuration module crawls the system page with starting URL input by user, if
Being matched to the operation that user is configured then calls execution module to execute corresponding operation, if in operation including other URL, recurrence
To page invocation execution module is crawled, analog subscriber clicks the operation at interface, user interface is tested while test function.
In actual operational process, configuration read module is responsible for reading the test case of user, and test case is pushed
Into automatization test system.The user test use-case that reptile module is read according to initial URL with configuration read module, automatically
The analysis page simultaneously matches user's operation to be performed, and execution module implementation of test cases is called after successful match, obtains and returns
As a result and operation and operating result to logger module are recorded.Background authentication module is simulated after execution module runs succeeded and is stepped on
Record backstage carries out verification backstage implementing result, and logger module, daily record is recorded in consistency operation and consistency operation result
Logging modle records all operations and operating result, and obtain test case implementing result for user carries with positioning solution system problem
It for window, is intuitively presented to the user, user is facilitated to carry out the positioning and processing of bug.By the way that this system obviates a large amount of weights
Multiple labour, improves system testing efficiency.
Preferably, the configuration information of the user is positioned over by configuration file form in system, wrapped in configuration file
It includes and executes operation, operating parameter, action type.Each operation and operating parameter account for a line and parameter will in the form of A=B to
Go out, passes through comma between different parameters(,)Segmentation.
Preferably, the URL of the execution module is obtained by the corresponding URL of user's operation that reptile module crawls
It takes, parameter reads user configuration operating parameter by configuration module and obtains, and action type reads matching for user by configuration module
Set acquisition.
Preferably, the execution module obtains operating result and logger module is recorded.
Preferably, the background authentication module includes existence verification and Connectivity Verification.
Preferably, the existence authentication is the corresponding logic entity in backstage after executing establishment, delete operation
Whether add or delete.
Heretofore described logic entity such as interchanger, port etc..
Preferably, the Connectivity Verification is verification matches the connectivity postponed between VM by corresponding.
Preferably, the background authentication module record verification operation and verification result to logger module and and foreground
Operation corresponds to.
A kind of virtualization system automated testing method based on python, according to the virtualization system URL of user configuration,
Concrete operations and the parameter configuration that user configuration is read by configuring read module, call the reptile module of automated system automatic
Page operation is analyzed, execution module execution after user's operation is matched to and operates and obtain operating result, background authentication mould accordingly
Root tuber logs in physical server backstage according to operation simulation is executed, and verifies the correctness of consistency operation result, and logger module is same
Shi Jilu foregroundings, foregrounding result and background authentication for user as a result, consult.
Preferably, operating result is presented to the user by logger module, the positioning and processing of bug are carried out.
Compared with prior art, the virtualization system automatization test system of the invention based on python has following prominent
The advantageous effect gone out:The virtualization system automatization test system based on python realize from UI to the backstage complete period,
Comprehensive automatic test, and a large amount of duplication of labour is avoided, testing efficiency and test case covering surface are substantially increased,
Mass of system is improved, there is good application value.
Description of the drawings
Fig. 1 is the flow chart of the virtualization system automated testing method of the present invention based on python.
Specific implementation mode
Below in conjunction with drawings and examples, to the virtualization system automatization test system based on python of the present invention
And method is described in further detail.
Embodiment
The virtualization system automatization test system based on python of the present invention, including configuration read module, reptile mould
Block, execution module, background authentication module and logger module.
Configuration read module is used to read the configuration information of user, and configuration information is positioned over system by configuration file form
In, configuration file includes executing operation, operating parameter, action type.
The user's operation that reptile module is read according to configuration module crawls the system page with starting URL input by user, if
Being matched to the operation that user is configured then calls execution module to execute corresponding operation, if in operation including other URL, recurrence
Crawl page invocation execution module, analog subscriber clicks the operation at interface, and user interface is tested while test function.
Execution module calls back office interface to execute user configuration.The use that the URL of execution module is crawled by reptile module
Family operates corresponding URL to obtain, and parameter reads user configuration operating parameter by configuration module and obtains, and action type is by matching
Set the configuration acquisition that module reads user.Execution module obtains operating result and logger module is recorded.
Background authentication module verification foreground issues the correctness on backstage after execution operation.Background authentication module includes existence
Verification and Connectivity Verification.Existence authentication is after executing establishment, delete operation, and whether the corresponding logic entity in backstage
Add or delete.Connectivity Verification is verification by accordingly with the connectivity postponed between VM.Background authentication module record is tested
Card operation is to logger module and corresponding with foregrounding with verification result.
Logger module is for recording operation used and operating result, for the bug in user's discovery system and amendment.
As shown in Figure 1, the virtualization system automated testing method based on python of the present invention, configuration read module is read
The test case for taking family, test case is pushed in automatization test system, remembers result when not reading test case
Record logger module.The user test use-case that reptile module is read according to initial URL with configuration read module, automatic point
The analysis page simultaneously matches user's operation to be performed, is not matched to user operation records to logger module.After successful match
Execution module implementation of test cases, acquisition is called to return the result and record operation and operating result to logger module.From the background
Authentication module simulates login backstage after execution module runs succeeded and carries out verification backstage implementing result, and by consistency operation with after
Logger module is recorded in platform operating result, and logger module records all operations and operating result, obtains and surveys for user
Example implementing result on probation solves system problem with positioning and provides window, is intuitively presented to the user, and user is facilitated to carry out determining for bug
Position and processing.
Embodiment described above, the only present invention more preferably specific implementation mode, those skilled in the art is at this
The usual variations and alternatives carried out within the scope of inventive technique scheme should be all included within the scope of the present invention.
Claims (10)
1. a kind of virtualization system automatization test system based on python, it is characterised in that:Including configuration read module, climb
Erpoglyph block, execution module, background authentication module and logger module, the configuration read module are used to read the configuration of user
Information;The user's operation that reptile module is read according to configuration module crawls the system page with starting URL input by user, is matched to
It calls execution module to execute after user's operation to operate and obtain operating result;Execution module calls back office interface execution user to match
It sets;Background authentication module verification foreground issues the correctness on backstage after execution operation;Logger module is for recording behaviour used
Work and operating result, for the bug in user's discovery system and amendment.
2. the virtualization system automatization test system according to claim 1 based on python, it is characterised in that:It is described
The configuration information of user is positioned over by configuration file form in system, and configuration file includes executing operation, operating parameter, behaviour
Make type.
3. the virtualization system automatization test system according to claim 1 or 2 based on python, it is characterised in that:
The URL of the execution module is obtained by the corresponding URL of user's operation that reptile module crawls, and parameter passes through configuration module
It reads user configuration operating parameter to obtain, the configuration that action type reads user by configuration module obtains.
4. the virtualization system automatization test system according to claim 3 based on python, it is characterised in that:It is described
Execution module obtains operating result and logger module is recorded.
5. the virtualization system automatization test system according to claim 4 based on python, it is characterised in that:It is described
Background authentication module includes existence verification and Connectivity Verification.
6. the virtualization system automatization test system according to claim 5 based on python, it is characterised in that:It is described
Existence authentication is after executing establishment, delete operation, the corresponding logic entity in backstage whether add or delete.
7. the virtualization system automatization test system according to claim 6 based on python, it is characterised in that:It is described
Connectivity Verification is verification by accordingly with the connectivity postponed between VM.
8. the virtualization system automatization test system according to claim 7 based on python, it is characterised in that:It is described
It is to logger module and corresponding with foregrounding with verification result that background authentication module records verification operation.
9. a kind of virtualization system automated testing method based on python, it is characterised in that:According to the virtual of user configuration
Change system URL reads concrete operations and the parameter configuration of user configuration by configuring read module, calls climbing for automated system
Erpoglyph block automatically analyzes page operation, is matched to execution module execution after user's operation and operates and obtain operating result accordingly,
Background authentication module logs in physical server backstage according to operation simulation is executed, and verifies the correctness of consistency operation result, daily record
Logging modle records foregrounding, foregrounding result and background authentication as a result, being consulted for user simultaneously.
10. the virtualization system automated testing method according to claim 9 based on python, it is characterised in that:Day
Operating result is presented to the user by will logging modle, carries out the positioning and processing of bug.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810501268.1A CN108733566A (en) | 2018-05-23 | 2018-05-23 | A kind of virtualization system automatization test system and method based on python |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810501268.1A CN108733566A (en) | 2018-05-23 | 2018-05-23 | A kind of virtualization system automatization test system and method based on python |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108733566A true CN108733566A (en) | 2018-11-02 |
Family
ID=63935283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810501268.1A Pending CN108733566A (en) | 2018-05-23 | 2018-05-23 | A kind of virtualization system automatization test system and method based on python |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108733566A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109684210A (en) * | 2018-12-18 | 2019-04-26 | 宁夏隆基宁光仪表股份有限公司 | A kind of website automation test method, device, equipment and readable storage medium storing program for executing |
CN111885051A (en) * | 2020-07-22 | 2020-11-03 | 微医云(杭州)控股有限公司 | Data verification method and device and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101089856A (en) * | 2007-07-20 | 2007-12-19 | 李沫南 | Method for abstracting network data and web reptile system |
CN101808093A (en) * | 2010-03-15 | 2010-08-18 | 北京安天电子设备有限公司 | System and method for automatically detecting WEB security |
CN101882107A (en) * | 2010-06-28 | 2010-11-10 | 山东中创软件商用中间件股份有限公司 | Method and device for automatically testing WEB (World Wide Web) application |
CN103279416A (en) * | 2013-05-30 | 2013-09-04 | 浪潮(北京)电子信息产业有限公司 | Storage software automated testing system and method |
CN106776343A (en) * | 2017-01-13 | 2017-05-31 | 中国科学院软件研究所 | A kind of web application automated test tool and method |
CN107577599A (en) * | 2017-08-21 | 2018-01-12 | 同程网络科技股份有限公司 | A kind of automatic interface testing method and platform based on custom script |
-
2018
- 2018-05-23 CN CN201810501268.1A patent/CN108733566A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101089856A (en) * | 2007-07-20 | 2007-12-19 | 李沫南 | Method for abstracting network data and web reptile system |
CN101808093A (en) * | 2010-03-15 | 2010-08-18 | 北京安天电子设备有限公司 | System and method for automatically detecting WEB security |
CN101882107A (en) * | 2010-06-28 | 2010-11-10 | 山东中创软件商用中间件股份有限公司 | Method and device for automatically testing WEB (World Wide Web) application |
CN103279416A (en) * | 2013-05-30 | 2013-09-04 | 浪潮(北京)电子信息产业有限公司 | Storage software automated testing system and method |
CN106776343A (en) * | 2017-01-13 | 2017-05-31 | 中国科学院软件研究所 | A kind of web application automated test tool and method |
CN107577599A (en) * | 2017-08-21 | 2018-01-12 | 同程网络科技股份有限公司 | A kind of automatic interface testing method and platform based on custom script |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109684210A (en) * | 2018-12-18 | 2019-04-26 | 宁夏隆基宁光仪表股份有限公司 | A kind of website automation test method, device, equipment and readable storage medium storing program for executing |
CN111885051A (en) * | 2020-07-22 | 2020-11-03 | 微医云(杭州)控股有限公司 | Data verification method and device and electronic equipment |
CN111885051B (en) * | 2020-07-22 | 2022-10-25 | 微医云(杭州)控股有限公司 | Data verification method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103136471B (en) | A kind of malice Android application program detection method and system | |
CN109508298B (en) | Graphical script test method and system | |
CN104598380A (en) | Method and system for automatic testing based on control | |
CN104778124A (en) | Automatic testing method for software application | |
CN108600311B (en) | Method and device for simulating interface data by client | |
CN110362490B (en) | Automatic testing method and system for integrating iOS and Android mobile applications | |
CN110457218A (en) | Game engine test method, device, storage medium and electronic equipment | |
CN108415826A (en) | Test method, terminal device and the computer readable storage medium of application | |
CN109933515B (en) | Regression test case set optimization method and automatic optimization device | |
CN112394942A (en) | Distributed software development compiling method and software development platform based on cloud computing | |
CN105677306A (en) | Automation script compiling method and device | |
CN104111852A (en) | Web application automated testing system and testing method based on data drive | |
CN106406999A (en) | A computing system and a method for controlling thereof | |
CN107911251A (en) | A kind of method for configuring network equipment, device and medium | |
CN111026660A (en) | Penetration testing method based on expert system knowledge base | |
CN108733566A (en) | A kind of virtualization system automatization test system and method based on python | |
CN102982217B (en) | The treating method and apparatus of silk-screen | |
CN113220597B (en) | Test method, test device, electronic equipment and storage medium | |
CN112559525B (en) | Data checking system, method, device and server | |
CN106528413A (en) | Method and device for testing application program | |
CN111752806A (en) | Method for acquiring IO (input/output) indexes of virtual disk in cloud environment | |
CN101976196B (en) | Quality of service oriented code automatic code generating method | |
CN105045698A (en) | Method for analyzing chip verification progress by using MATPLOTLIB of PYTHON | |
CN105930262B (en) | Application program user interface automated testing method and electronic equipment | |
CN112799967B (en) | GIT-based test script write-back test case method, system, device and medium |
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: 20181102 |