CN101271422A - Automatic monitoring system and automatic monitoring method based on professional fast test - Google Patents
Automatic monitoring system and automatic monitoring method based on professional fast test Download PDFInfo
- Publication number
- CN101271422A CN101271422A CNA2008100932759A CN200810093275A CN101271422A CN 101271422 A CN101271422 A CN 101271422A CN A2008100932759 A CNA2008100932759 A CN A2008100932759A CN 200810093275 A CN200810093275 A CN 200810093275A CN 101271422 A CN101271422 A CN 101271422A
- Authority
- CN
- China
- Prior art keywords
- qtp
- unit
- monitored results
- automatic
- functional 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.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention discloses a QTP-based automatic monitoring system and a QTP-based automatic monitoring method. The system includes a control unit, a QTP service unit and at least two function testing units; wherein, the control unit is used for polling and scheduling all the function testing units according to the operation testing state information provided by the QTP service unit; the QTP service unit is used for providing the operation testing state information to the control unit and sequentially operate the function testing units which are scheduled by the control unit; the function testing units are used for accepting the polling and scheduling of the control unit and implement the function testing after the operation of the QTP service unit. The embodiment of the present invention can achieve the continuous monitoring, automatically generate daily or weekly monitoring result statements with god readability, and also automatically send the monitoring result statements on time.
Description
Technical field
The present invention relates to the testing tool technical field, more specifically, relate to a kind of automatic monitored control system and automatic monitoring method based on professional fast test (QTP, QuickTest Professional).
Background technology
The business automation testing tool that professional fast test (QTP, QuickTest Professional) is a recording and playback, drive with key word.QTP adopts visual caf's script (VbScript) as script.Can be directly in QTP with the control of the way direct control page of control in the similar processing webpage, also can in QTP, call the external dynamic chained library (DLL) in form (Windows) application programming interface (API).General using QTP carries out the manual test of repetition, mainly is the redaction that is used for regression test and the same software of test.Need before test to think about how application programs is tested.Such as: test the output data of those concrete functions, operation steps, input data and expectation etc.
QTP is the functional test instrument that a kind of tester of help finishes the software function test.The same with other testing tool, QTP can not replace tester's manual operations fully, but on certain function point, uses QTP can help the tester to do a lot of work.In the test plan stage, what at first will do is exactly the characteristics of analyzing tested application, and which function point decision should be tested, can consider to refine to the concrete page or concrete control.For a common application program, it is very effective that QTP is applied in the little regression test of some interface variation.When tester's view site or when operating on application program, the automatic recording mechanism of QTP can be got off tester's each operation steps and operated object record, generates the test script statement automatically.
With other automatic testing instrument record script different be, QTP also is kept at operated object and corresponding action in the key word view based on form according to level and order except the mode generation script statement with the VBScript script.Such as, when the tester clicks a link, when selecting a CheckBox then or submitting a list to, such operating process all can be recorded in the key word view.
QTP can support the functional test of multiple corporate environment, comprises Windows, Web, NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, Mainframeterminal emulators and Web services or the like.
Yet, only the automatic test that utilizes QTP to carry out the recording and playback scene and realize single in the prior art, can not realize uninterrupted monitoring, and for a lot of application scenario, uninterrupted monitoring is absolutely necessary but.
Summary of the invention
The embodiment of the invention proposes a kind of automatic monitored control system based on QTP, to realize uninterrupted monitoring.
The embodiment of the invention also proposes a kind of automatic monitoring method based on QTP, to realize uninterrupted monitoring.
The technical scheme of the embodiment of the invention is as follows:
A kind of automatic monitored control system based on professional fast test QTP, this system comprise control module, QTP service unit and at least two functional test unit, wherein:
The operation test mode information that provides according to the QTP service unit, each functional test unit of polling dispatching are provided control module;
The QTP service unit is used for providing described operation test mode information to control module, and moves the functional test unit of being dispatched out by described control module successively;
The functional test unit is used to accept the polling dispatching of described control module, and carries out functional test after by described QTP service unit operation.
A kind of automatic monitoring method based on QTP, this method comprises:
The QTP service unit provides operation test mode information to control module;
The operation test mode information that control module provides according to the QTP service unit, each functional test unit of polling dispatching;
The QTP service unit moves the functional test unit of being dispatched out by described control module successively, and functional test is carried out in the functional test unit that is moved.
From technique scheme as can be seen, in embodiments of the present invention, the operation test mode information that control module provides according to the QTP service unit, each functional test unit of polling dispatching; The QTP service unit on the one hand provides described operation test mode information to control module, and functional test is carried out by the functional test unit of operation in the functional test unit that goes out of traffic control successively on the other hand.This shows that the embodiment of the invention is not only to carry out the automatic test of single, but can realize uninterrupted monitoring, can capture each period service quality in 24 hours, therefore can adapt to various test situation and significantly improve testing efficiency.
In addition, use after the embodiment of the invention, can every day or generate the monitored results form weekly automatically, and form is readable fine, and simultaneously can also self-timing transmission monitored results form.
Description of drawings
Fig. 1 is the demonstrative structure synoptic diagram based on the automatic monitored control system of QTP according to the embodiment of the invention;
Fig. 2 is the exemplary flow chart based on the automatic monitoring method of QTP according to the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
In embodiments of the present invention, a kind of real uninterrupted monitor service framework that can control QTP software realization 7 days weekly, 24 hours every days is proposed.Certainly, can also be that chronomere uses the embodiment of the invention further, to realize uninterrupted monitoring with the moon, year etc.
Fig. 1 is the demonstrative structure synoptic diagram based on the automatic monitored control system of QTP according to the embodiment of the invention.
As shown in Figure 1, this system comprises control module 101, QTP service unit 102 and at least two functional test unit 103.Wherein:
The operation test mode information that provides according to QTP service unit 102, each functional test unit 103 of polling dispatching are provided control module 101.
Particularly, can realize control module 101 by various application programs.When realizing control module 101 by application program, control module 101 comes down to drive the control program of functional test unit 103.QTP service unit 102 can be written to operation test mode information in the functional module identification document that control module 101 can read, and control module 101 is known and be started concrete script at which functional test unit 103 at next step by read functions module id file.
Operation test mode information can comprise functional module identification document ModuleName, thereby control module 101 can be according to functional module identification document ModuleName, each functional test unit 103 of polling dispatching.The ModuleName file logging be the sequence number of the functional test unit 103 of start detection next time.The number of supposing functional test unit 103 is 10, if the sequence number of ModuleName record is 9, then the sequence number of the next functional test unit of checking 103 is 9, and control module 101 will start corresponding function script according to this sequence number.
Can also carry the state of QTP service unit 102 current operations in the operation test mode information, such as carrying the QTP process operation identification-state file StatusFile that shows whether QTP service unit 102 has moved.The state of StatusFile file logging has two kinds, is respectively false and true.If current StatusFile file status is true, show that current QTP service unit 102 has moved.If current StatusFile file status is false, show that current QTP service unit 102 does not also start.After control module 101 starts the function script, be true with the StatusFile state recording simultaneously, showing has had the QTP process initiation at present.
The number of functional test unit 103 can for a plurality of (such as, at least 2).Functional test unit 103 can be a static resource of finishing test at various concrete application, such as test code etc.After these test codes are moved, just can carry out functional test to various application.These concrete application can comprise that Email is read letter, Email writes letter or the like, and the embodiment of the invention is to these concrete application and indefinite.
This system further can comprise interim monitoring report generation unit 104.Interim monitoring report generation unit 104 is used at the interim monitoring report of described functional test generation at the specific function test cell.And the filename of interim monitoring report can be the rise time of this interim monitoring report.Such as, when functional test is carried out in certain the functional test unit 103 (if sequence number is 9) in 102 pairs of described a plurality of functional tests of QTP service unit unit 103, then can formation sequence number be 9 interim monitoring report.
The filename of interim monitoring report preferably is as the criterion with the write time, can be " 20080311192255.txt " such as the filename that generates, this document can be kept in the file of acquiescence, such as storing path be c: QQMail 9 20080311192255.txt.
Preferably, this system can further include monitored results report generation unit 105.Monitored results report generation unit 105 is used for according to the monitored results form of predefined plan target time generation at all functions test cell.Wherein the monitored results form can comprise monitored results form every day according to time index, and/or by the form of monitored results weekly that described every day, the monitored results form was formed.Those skilled in the art can also recognize that the monitored results form can also generate according to the moon, season equal time unit, and the embodiment of the invention there is no any qualification to this.
This system can further include automatic transmitter unit 106.Automatically transmitter unit 106, be used for according to the predefined plan target time with described every day the monitored results form and/or weekly, monitored results forms such as the moon, season send to predefined e-mail accounts.Predefined e-mail accounts can be the e-mail accounts to these interested people of monitored results form, such as keeper etc.
An embodiment of the embodiment of the invention is described below, and concrete application scenarios is carried out uninterrupted the detection for being responsible for to 7 webmail main frames.
At first, open control module, control module can be the main control process that is realized by software.This main control process poll QTP process operation identification-state file StatusFile.The state of StatusFile file logging generally has two kinds, is respectively false and true.If the current file state is true, show that then current QTP service framework moves.If the current file state is false, show that current QTP service framework does not also start, carried out for second step this moment.
Second step: the main control process is query function module id file ModuleName from the QTP service unit.The ModuleName file logging be the sequence number that next time starts functional module.The main control process will start the function script of corresponding sequence number according to this sequence number.Be true with the StatusFile state recording simultaneously, showing has the QTP process initiation, carries out for the 3rd step then.
The 3rd step: the QTP service unit starts, and carries out the functional test of determined sequence number corresponding function test cell.At this moment, set gradually current module No. N; The QTP running status is set; Configuration QTP operational factor; Start the QTP process; Write the module No. of operation next time; Kill falls processes such as IE, QTPRO, EXCEL successively, and holds fixed next Webmail main frame; The value of N is set to module No. next time.Simultaneously, can also generate the interim monitoring report that the current sequence number operation generates.Then, at each functional test unit, poll is carried out above three steps successively.
The 4th step: next day, 9:00AM write two parts of files successively by the monitored results report generation unit of Windows plan target control, portion is report every day (dailyreport), report filename every day according to time index, for example spanned file " c: dailyreport monitor message 20080310.html ".Another part is to report (weekreport) weekly.Be reported as glue file weekly, the 20080310.html execution result is according to fixed format write in the report weekly.This process can comprise: read configuration file; Read complete 24h time period yesterday (is yyyymmddhhmmss such as form) according to system time; Result list is scanned, needing to obtain the listed files and the complete trails of processing; The analysis result file is obtained information such as item-title, operation main frame, number of success, the frequency of failure respectively then, deposits this document more in addition to other catalogue, and generates dailyreport and weekreport.
The 5th step: next day, 9:30AM will be generated in the 4th step by the automatic transmitter unit of window plan target control " c: dailyreport monitor message 20080310.html " file sends to the related personnel.
Wherein, can utilize the ESMTP mode to post a letter, and support the smtp server configures.Wherein, addressee (To), the people that makes a copy for (CC), mail matter topics (subject) can be edited, and support a plurality of addresses of items of mail write the two or more syllables of a word together.Message body can be the html mode, and supporting attachment and support compressed file.
Such as, be that summary (200803060:00~24:00) show was carried out in exemplary QTP test in 24 hours below.
The webmail main frame | Start-up time | This operation successful case number | This operation failure case number | This moves mortality |
m7.mail.qq.com | 2008-3-6 1:45:47 | 22 | 0 | 0.00% |
m8.mail.qq.com | 2008-3-6 4:23:24 | 22 | 0 | 0.00% |
m9.mail.qq.com | 2008-3-6 7:16:51 | 22 | 0 | 0.00% |
m10.mail.qq.com | 2008-36 10:04:56 | 22 | 0 | 0.00% |
m11.mail.qq.com | 2008-3-6 13:26:00 | 22 | 0 | 0.00% |
m12.mail.qq.com | 2008-3-6 16:35:36 | 22 | 0 | 0.00% |
m13.mail.qq.com | 2008-3-6 19:41:01 | 22 | 0 | 0.00% |
m14.mail.qq.com | 2008-3-6 22:47:37 | 22 | 0 | 0.00% |
Table 1
The dailyreport example table of table 2 for providing to the contact person.
Table 2
Based on above-mentioned analysis, the embodiment of the invention has also proposed a kind of automatic monitoring method based on QTP.
Fig. 2 is the exemplary flow chart based on the automatic monitoring method of QTP according to the embodiment of the invention.
As shown in Figure 2, this method comprises:
Step 201:QTP service unit provides operation test mode information to control module;
Step 202: the operation test mode information that control module provides according to the QTP service unit, each functional test unit of polling dispatching;
Step 203:QTP service unit moves the functional test unit of being dispatched out by control module successively, and functional test is carried out in the functional test unit that is moved.
Wherein, in step 203, in described functional test, can generate interim monitoring report at the specific function test cell.And, the filename of interim monitoring report preferably is as the criterion with the write time, can be " 20080311192255.txt " such as the filename that generates, this document can be kept in the file of acquiescence, is c: QQMail 9 20080311192255.txt such as storing path.
In addition, can also be according to the monitored results form of predefined plan target time generation at all functions test cell.The monitored results form comprises monitored results form every day according to time index, and/or by the form of monitored results weekly that described every day, the monitored results form was formed.At this moment, can also according to the predefined plan target time with described every day the monitored results form and/or weekly the monitored results form send to predefined e-mail accounts.
In sum, in embodiments of the present invention, the operation test mode information that control module provides according to the QTP service unit, each functional test unit of polling dispatching; The QTP service unit on the one hand provides described operation test mode information to control module, and concrete functional test is carried out by the functional test unit of operation again in the functional test unit that goes out of traffic control successively on the other hand.This shows, use after the embodiment of the invention, be not the automatic test of only carrying out single, but can realize uninterrupted monitoring, therefore can adapt to various test situation and significantly improve testing efficiency.
In addition, use after the embodiment of the invention, can every day or generate the monitored results form weekly automatically, and form is readable fine, and can also self-timing transmission monitored results form.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1, a kind of automatic monitored control system based on professional fast test QTP is characterized in that, this system comprises control module, QTP service unit and at least two functional test unit, wherein:
The operation test mode information that provides according to the QTP service unit, each functional test unit of polling dispatching are provided control module;
The QTP service unit is used for providing described operation test mode information to control module, and moves the functional test unit of being dispatched out by described control module successively;
The functional test unit is used to accept the polling dispatching of described control module, and carries out functional test after by described QTP service unit operation.
2, the automatic monitored control system based on QTP according to claim 1 is characterized in that, this system further comprises interim monitoring report generation unit,
Described interim monitoring report generation unit is used at the interim monitoring report of described functional test generation at the specific function test cell.
3, the automatic monitored control system based on QTP according to claim 2 is characterized in that, the rise time of the file of described interim monitoring report this interim monitoring report by name.
4, according to claim 1 or 2 or 3 described automatic monitored control systems, it is characterized in that this system further comprises monitored results report generation unit based on QTP,
Described monitored results report generation unit is used for according to the monitored results form of predefined plan target time generation at all functions test cell.
5, the automatic monitored control system based on QTP according to claim 4 is characterized in that, described monitored results form comprises monitored results form every day according to time index, and/or by the form of monitored results weekly that described every day, the monitored results form was formed.
6, the automatic monitored control system based on QTP according to claim 5 is characterized in that, this system further comprises automatic transmitter unit,
Described automatic transmitter unit, be used for according to the predefined plan target time with described every day the monitored results form and/or weekly the monitored results form send to predefined e-mail accounts.
7, a kind of automatic monitoring method based on QTP is characterized in that, this method comprises:
The QTP service unit provides operation test mode information to control module;
The operation test mode information that control module provides according to the QTP service unit, each functional test unit of polling dispatching;
The QTP service unit moves the functional test unit of being dispatched out by described control module successively, and functional test is carried out in the functional test unit that is moved.
8, the automatic monitoring method based on QTP according to claim 7 is characterized in that, this method further comprises:
In described functional test, generate interim monitoring report at the specific function test cell.
9, the automatic monitoring method based on QTP according to claim 7 is characterized in that, this method further comprises:
According to the monitored results form of predefined plan target time generation at all functions test cell.
10, the automatic monitoring method based on QTP according to claim 9 is characterized in that, described monitored results form comprises monitored results form every day according to time index, and/or by the form of monitored results weekly that described every day, the monitored results form was formed;
This method further comprises:
According to the predefined plan target time with described every day the monitored results form and/or weekly the monitored results form send to predefined e-mail accounts.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100932759A CN101271422B (en) | 2008-05-19 | 2008-05-19 | Automatic monitoring system and automatic monitoring method based on professional fast test |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100932759A CN101271422B (en) | 2008-05-19 | 2008-05-19 | Automatic monitoring system and automatic monitoring method based on professional fast test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101271422A true CN101271422A (en) | 2008-09-24 |
CN101271422B CN101271422B (en) | 2011-04-20 |
Family
ID=40005409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100932759A Active CN101271422B (en) | 2008-05-19 | 2008-05-19 | Automatic monitoring system and automatic monitoring method based on professional fast test |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101271422B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018027741A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Method for pushing patent information when automatically sending mail, and mail system |
WO2018027740A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Method for automatically sending mail according to time intervals, and mail system |
CN108494668A (en) * | 2018-04-03 | 2018-09-04 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus executing email processing jobs |
CN109766402A (en) * | 2019-01-16 | 2019-05-17 | 广东南方数码科技股份有限公司 | Spatial data processing method, device and computer equipment |
-
2008
- 2008-05-19 CN CN2008100932759A patent/CN101271422B/en active Active
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018027741A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Method for pushing patent information when automatically sending mail, and mail system |
WO2018027740A1 (en) * | 2016-08-11 | 2018-02-15 | 王志远 | Method for automatically sending mail according to time intervals, and mail system |
CN108494668A (en) * | 2018-04-03 | 2018-09-04 | 北京京东尚科信息技术有限公司 | A kind of method and apparatus executing email processing jobs |
CN109766402A (en) * | 2019-01-16 | 2019-05-17 | 广东南方数码科技股份有限公司 | Spatial data processing method, device and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101271422B (en) | 2011-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101303664B (en) | Professional quick test device and method | |
CN101620565B (en) | Method for automatically testing functions of terminal system | |
US8312322B2 (en) | System for automated generation of computer test procedures | |
CN101620564B (en) | Method for automatically testing recording playback mode of terminal system | |
German et al. | Automating the measurement of open source projects | |
US6222535B1 (en) | System and method for facilitating issue tracking | |
CN101241467B (en) | Automatized white box test system and method facing to WEB application | |
US6944647B2 (en) | Methods and apparatus for bookmarking and annotating data in a log file | |
CN101271422B (en) | Automatic monitoring system and automatic monitoring method based on professional fast test | |
US6393490B1 (en) | Method and system for a programmatic feedback process for end-user support | |
CN101441744A (en) | E-mail management method and system | |
Kalinowski et al. | Towards a defect prevention based process improvement approach | |
CN110162365B (en) | Method and system for automatically operating SAP service software | |
US20070255579A1 (en) | Method and system for recording interactions of distributed users | |
CN109309612B (en) | Mail content generation method and device, storage medium and electronic equipment | |
CN111064638A (en) | Method, device, equipment and storage medium for testing e-mail protocol service | |
CN101620563A (en) | Method and system for automatically testing input playback mode of terminal system | |
CN103377122A (en) | Quick test professional (QTP) device and method | |
CN102567928A (en) | Management system for online examination platform | |
US20060070034A1 (en) | System and method for creating and restoring a test environment | |
Lanubile et al. | Tool support for distributed inspection | |
CN115757129A (en) | Web automatic testing framework constructed in government affair service field and application method thereof | |
CN102567066A (en) | Business system development method, business system development platform and business system development system | |
CN110543424B (en) | Test method and device for electronic tax platform | |
CN114218105A (en) | UI automatic regression testing system based on configuration application mode |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20151230 Address after: The South Road in Guangdong province Shenzhen city Fiyta building 518057 floor 5-10 Nanshan District high tech Zone Patentee after: Shenzhen Tencent Computer System Co., Ltd. Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403 Patentee before: Tencent Technology (Shenzhen) Co., Ltd. |