CN104331365A - Automated test control method and system - Google Patents
Automated test control method and system Download PDFInfo
- Publication number
- CN104331365A CN104331365A CN201410567742.2A CN201410567742A CN104331365A CN 104331365 A CN104331365 A CN 104331365A CN 201410567742 A CN201410567742 A CN 201410567742A CN 104331365 A CN104331365 A CN 104331365A
- Authority
- CN
- China
- Prior art keywords
- script file
- test
- step type
- parameter information
- described script
- 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
Abstract
The invention provides an automated test control method and an automated test control system. The automated test control method comprises the following steps of selecting a test step type, and setting corresponding parameter information; generating a script file according to the selected test step type and the set corresponding parameter information; operating the script file, and controlling a test progress. According to the automated test control method and the automated test control system, which are provided by the invention, flexible control in the automated test process is realized, and relevant problems are timely handled.
Description
Technical field
The invention belongs to intelligent test field, particularly relate to a kind of automatic test control method and system.
Background technology
Prior art discloses a kind of mobile phone application automated testing method and system, the method comprises: S1, set up the control of computing machine to mobile phone; S2, application to be tested is installed on mobile phone terminal; S3, obtain the module information that application to be tested relates in testing, if there is application next to be tested, go to step S2; S4, write corresponding test script according to module information; S5, triggering script actuator send test script and perform to mobile phone terminal batch, complete the automatic test to the application all to be tested being installed on mobile phone terminal in step S2.The program, according to applying the module information related in testing, writes test script; User only need in computer terminal input test order, script actuator can be triggered and complete automatic test to all application to be tested, the Black-box Testing that a kind of mobile phone is applied is provided, realize automatic test by visual script mode, allow common test personnel rapidly and efficiently complete mobile phone application batch testing.
Such scheme Problems existing is, although achieve the test of robotization, lacks and controls flexibly, causing when going wrong, can not process in time, causing system resource waste in test process.
Summary of the invention
The invention provides a kind of automatic test control method and system, to solve the problem.
The invention provides a kind of automatic test control method.Said method comprises the following steps:
Select the step type of test and corresponding parameter information is set;
According to the step type of test of selection and the parameter information of the correspondence of setting, generation script file;
Run described script file, control test process.
The present invention also provides a kind of automated test control system, comprises setting device, script file generating apparatus, actuating unit; Wherein, described setting device is connected with described actuating unit by described script file generating apparatus;
Described setting device, for selecting the step type of test and arranging corresponding parameter information and send it to described script file generating apparatus;
Described script file generating apparatus, for the parameter information according to the step type of test selected and the correspondence of setting, described script file is also sent to described actuating unit by generation script file;
Described actuating unit, for running described script file, controls test process.
Compared to prior art, according to a kind of automatic test control method provided by the invention and system, achieve the flexible control in automatic test course, process relevant issues in time.
In addition, by following scheme, run described script file, if described script file execution error, then the journal file of record is analyzed, obtain the step type that error code is corresponding, after the parameter information corresponding to described step type resets, regenerate script file and perform; Test process can be carried out smoothly.
In addition, by following scheme: run described script file, the process controlling test process is: run described script file, if the described script file execution time exceedes preset value, after then deleting the parameter information of one or more step type and correspondence, regenerate script file and perform or run described script file, the process controlling test process is: run described script file, if the described script file execution time exceedes preset value, after then corresponding to already present one or more step type parameter information resets, regenerate script file and perform, execution time is reduced greatly, has saved system resource, greatly improved Consumer's Experience.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the main surface chart of the system of the embodiment of the present invention 1;
Figure 2 shows that the testing procedure of the embodiment of the present invention 2 adds surface chart;
Figure 3 shows that the script file of the embodiment of the present invention 3 performs surface chart;
Figure 4 shows that the automatic test control method process flow diagram of the embodiment of the present invention 4;
Figure 5 shows that the automated test control system structural drawing of the embodiment of the present invention 5.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 4 shows that the automatic test control method process flow diagram of the embodiment of the present invention 4, comprise the following steps:
Step 401: select the step type of test and corresponding parameter information is set;
Step 402: according to the parameter information of the correspondence of the step type and setting of selecting test, generation script file;
Step 403: run described script file, controls test process.
Run described script file, the process controlling test process is:
Described script file performs end, and test process terminates.
After test terminates, derive log mark.
Run described script file, the process controlling test process can also be:
Run described script file, if described script file execution error, then the journal file of record is analyzed, obtain the step type that error code is corresponding, after the parameter information corresponding to described step type resets, regenerate script file and perform.
Run described script file, the process controlling test process can also be:
Run described script file, if the described script file execution time exceedes preset value, then, after deleting the parameter information of one or more step type and correspondence, regenerate script file and perform.
Run described script file, the process controlling test process can also be:
Run described script file, if the described script file execution time exceedes preset value, then, after corresponding to already present one or more step type parameter information resets, regenerate script file and perform.
Described preset value sets according to actual conditions, does not limit protection scope of the present invention at this.
Be described in detail below:
The main interface of system is with reference to shown in Fig. 1, and the main interface of system comprises the toolbar such as " Add ", " Run ", and existing step file imports, derive hurdle etc.
User by " Add " button in the main interface of click system, the interface of ejecting can be selected the step type of testing and the parameter information arranging correspondence.
In the interface of ejecting (as shown in Figure 2), user can select various step type, as: click, button, towing, peace loading, unloading; And the parameter information of correspondence of often kind of step type is set, as: " click " step type and arrange corresponding parameter information: X-coordinate=42, Y-coordinate=33.
According to selecting the step type of test and arranging corresponding parameter information, after generation script file, derive and preserve.
As shown in Figure 3, click " Run " button, perform described script file, test.
Run in described script file, if the prompt " script file execution error " ejected, then the journal file of record script file implementation status is analyzed, obtain the step type that error code is corresponding, such as: " click ", after parameter X, the Y corresponding to " click " reset (such as: X-coordinate=100, Y-coordinate=150), regenerate script file and perform.
Run described script file, if the described script file execution time exceedes preset value, then, after deleting the parameter information of towing step type and correspondence, regenerate script file and perform.
Run described script file, if the described script file execution time exceedes preset value, then corresponding to already present " click " step type parameter information resets: X-coordinate=10, Y-coordinate=20, regenerate script file and perform.
Figure 5 shows that the automated test control system structural drawing of the embodiment of the present invention 5, comprise setting device, script file generating apparatus, actuating unit; Wherein, described setting device is connected with described actuating unit by described script file generating apparatus;
Described setting device, for selecting the step type of test and arranging corresponding parameter information and send it to described script file generating apparatus;
Described script file generating apparatus, for according to selecting the step type of test and arranging corresponding parameter information, described script file is also sent to described actuating unit by generation script file;
Described actuating unit, for running described script file, controls test process.
Compared to prior art, according to a kind of automatic test control method provided by the invention and system, achieve the flexible control in automatic test course, process relevant issues in time.
In addition, by following scheme, run described script file, if described script file execution error, then the journal file of record is analyzed, obtain the step type that error code is corresponding, after the parameter information corresponding to described step type resets, regenerate script file and perform; Test process can be carried out smoothly.
In addition, by following scheme: run described script file, the process controlling test process is: run described script file, if the described script file execution time exceedes preset value, after then deleting the parameter information of one or more step type and correspondence, regenerate script file and perform or run described script file, the process controlling test process is: run described script file, if the described script file execution time exceedes preset value, after then corresponding to already present one or more step type parameter information resets, regenerate script file and perform, execution time is reduced greatly, has saved system resource, greatly improved Consumer's Experience.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (8)
1. an automatic test control method, is characterized in that, comprises the following steps:
Select the step type of test and corresponding parameter information is set;
According to the step type of test of selection and the parameter information of the correspondence of setting, generation script file;
Run described script file, control test process.
2. method according to claim 1, it is characterized in that: run described script file, the process controlling test process is: run described script file, if described script file execution error, then the journal file of record is analyzed, obtain the step type that error code is corresponding, after the parameter information corresponding to described step type resets, regenerate script file and perform.
3. method according to claim 1, it is characterized in that: run described script file, the process controlling test process is: run described script file, if the described script file execution time exceedes preset value, after then deleting the parameter information of one or more step type and correspondence, regenerate script file and perform.
4. method according to claim 1, it is characterized in that: run described script file, the process controlling test process is: run described script file, if the described script file execution time exceedes preset value, after then corresponding to already present one or more step type parameter information resets, regenerate script file and perform.
5. method according to claim 1, is characterized in that, described step type comprises: click, button, towing, peace loading, unloading.
6. method according to claim 1, is characterized in that: according to selecting the step type of test and arranging corresponding parameter information, after generation script file, derive and preserve.
7. method according to claim 1, is characterized in that: after test terminates, and derives log mark.
8. an automated test control system, is characterized in that, comprises setting device, script file generating apparatus, actuating unit; Wherein, described setting device is connected with described actuating unit by described script file generating apparatus;
Described setting device, for selecting the step type of test and arranging corresponding parameter information and send it to described script file generating apparatus;
Described script file generating apparatus, for the parameter information according to the step type of test selected and the correspondence of setting, described script file is also sent to described actuating unit by generation script file;
Described actuating unit, for running described script file, controls test process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410567742.2A CN104331365A (en) | 2014-10-22 | 2014-10-22 | Automated test control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410567742.2A CN104331365A (en) | 2014-10-22 | 2014-10-22 | Automated test control method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104331365A true CN104331365A (en) | 2015-02-04 |
Family
ID=52406097
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410567742.2A Pending CN104331365A (en) | 2014-10-22 | 2014-10-22 | Automated test control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104331365A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105093016A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Automation testing method and device for mobile terminal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040088601A1 (en) * | 2002-10-31 | 2004-05-06 | General Electric Company | Method, system and program product for establishing a self-diagnosing and self-repairing automated system |
CN101025686A (en) * | 2007-03-22 | 2007-08-29 | 中兴通讯股份有限公司 | Automation test system and test script generating and operating method |
CN101060372A (en) * | 2007-06-26 | 2007-10-24 | 华为技术有限公司 | A method and system for rapid creating the automation test script |
CN104077211A (en) * | 2013-03-25 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Test method and test system for mobile terminal software |
-
2014
- 2014-10-22 CN CN201410567742.2A patent/CN104331365A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040088601A1 (en) * | 2002-10-31 | 2004-05-06 | General Electric Company | Method, system and program product for establishing a self-diagnosing and self-repairing automated system |
CN101025686A (en) * | 2007-03-22 | 2007-08-29 | 中兴通讯股份有限公司 | Automation test system and test script generating and operating method |
CN101060372A (en) * | 2007-06-26 | 2007-10-24 | 华为技术有限公司 | A method and system for rapid creating the automation test script |
CN104077211A (en) * | 2013-03-25 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Test method and test system for mobile terminal software |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105093016A (en) * | 2015-07-28 | 2015-11-25 | 努比亚技术有限公司 | Automation testing method and device for mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959068B (en) | Software interface testing method, device and storage medium | |
CN106326104B (en) | Terminal control testing method and device | |
CN103744784A (en) | Method and system for automatically testing mobile phone applications | |
CN105302722B (en) | CTS automatic testing method and device | |
CN105302784A (en) | Method and system for copying/ cutting and pasting data | |
CN104536776A (en) | Method and device for running plug-in application in plug-in running environment at host end | |
CN105975367B (en) | Test method and device for mobile equipment | |
CN103984626A (en) | Method and device for generating test-case script | |
CN103777947A (en) | Method and device for managing main interface of mobile terminal | |
CN105320595A (en) | Application test method and device | |
CN104020763A (en) | Automatic test method and system for input and output interfaces | |
CN105653438A (en) | Method and device for cross-process automated testing of Android device | |
CN104571893A (en) | Method and device for handling notices in notification bar | |
CN104461746A (en) | Memory space optimization method and system based on Android system | |
CN103049374B (en) | Automatic testing method and device | |
CN107102937B (en) | User interface testing method and device | |
CN102681861B (en) | Method and device for installing software | |
CN104331365A (en) | Automated test control method and system | |
CN109871172B (en) | Mouse clicking method and device in automatic test and readable storage medium | |
CN102902571B (en) | A kind of method and apparatus of Quick stop working procedure | |
CN108984238A (en) | Gesture processing method, device and the electronic equipment of application program | |
CN111221723B (en) | Test record generation method and device, storage medium and electronic equipment | |
CN105893243A (en) | Test frame used for test tool, and test tool | |
CN105740141A (en) | Automatic detection method and automatic detection device | |
CN104391642A (en) | Service information providing method and system and application execution method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150204 |
|
RJ01 | Rejection of invention patent application after publication |