CN107894947A - A kind of automated detection method based on script formula software - Google Patents
A kind of automated detection method based on script formula software Download PDFInfo
- Publication number
- CN107894947A CN107894947A CN201610873917.1A CN201610873917A CN107894947A CN 107894947 A CN107894947 A CN 107894947A CN 201610873917 A CN201610873917 A CN 201610873917A CN 107894947 A CN107894947 A CN 107894947A
- Authority
- CN
- China
- Prior art keywords
- script
- software
- method based
- detection method
- automated detection
- 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/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention belongs to software automation detection technique field, more particularly to a kind of automated detection method based on script formula software.A kind of automated detection method based on script formula software, including:Script is obtained by the super authority of operating handset;Target and the action of perform script are set;And perform the script;The setting includes setting detected software, is detected the ID number of control element in software, the action that each ID number performs and order.The technical problems to be solved by the invention are to provide a kind of automated detection method based on script formula software for reducing artificial detection software work amount.
Description
Technical field
The invention belongs to software automation detection technique field, more particularly to a kind of automation inspection based on script formula software
Survey method.
Technical background
With developing rapidly for science and technology, APP on the market also emerges in an endless stream, and APP quality is also very different.Instantly program
The diversity of language, and the characteristic of Android programming, i.e., each element uniquely correspond to an ID number.For this characteristic, have
The leeway played of script.
Script, it is to use a kind of specific descriptive language, the executable file write according to certain form, also referred to as
Grand or autoexec.Script is the extension of autoexec, is the program that a kind of plain text preserves, computer in general
A series of control computers that shell script is to determine carry out the combination of arithmetic operation action, can realize certain patrol wherein
Collect branch etc..Script is exactly briefly the written order of a rule, and these written orders can see(Note can such as be used
This opening of thing is checked, edited), shell script upon execution, is an interpreter by system, the one rule translated into machine
The recognizable instruction of device, and performed by program order.Because the script processes of translation together more upon execution, it is than two
Binary program execution efficiency wants more slightly lower.Script can generally be called and performed temporarily by application program.
The content of the invention
The technical problems to be solved by the invention be to provide it is a kind of reduce artificial detection software work amount based on script formula
The automated detection method of software.Therefore, the present invention uses following technical scheme:
A kind of automated detection method based on script formula software, including:
Script is obtained by the super authority of operating handset;
Target and the action of perform script are set;And
Perform the script;
The setting includes setting detected software, is detected the ID number of control element in software, the action that each ID number performs
And order.
Script after obtaining super authority could to mobile phone in software element operate.
On the basis of using above-mentioned technical proposal, the present invention can also use technical scheme further below:
After the target of perform script is set and acted successfully, in addition to:
Whether the detected software of script automatic detection is opened;
Detected software is then opened when being not switched on.
Further, after the detected software is opened, in addition to:
Detect whether the ID number being currently performed has been loaded in current active;
The ID catalogues in whole R files are then traveled through when not being loaded, where finding the ID number corresponding element that this is not loaded
Activity;Or
Action command then configured in perform script when being loaded.
Further, after the activity where the ID number corresponding element that searching is not loaded, the member corresponding to the ID number is loaded
Element, and the action command set in perform script.
Further, after the action command performs, script monitoring is detected whether software has collapse phenomenon;
Crash log is then recorded when producing collapse;Or
Next command is then continued executing with when not producing collapse.
Further, after the completion of the action command set in the script performs, judge whether to hold all orders
Row finishes,
When being finished, then examining report is exported;Or
When being not carried out finishing, then configuration processor is carried out again since the ID number that detection is performed.
It is an advantage of the invention that:Based on the characteristic of Android programming, each element is corresponding with only one ID number, therefore logical
Cross exploitation one script, in script quickly search ID number and operate perform the ID number corresponding to element, can be achieved automation
APP code quality is detected, whether detection APP has collapse phenomenon, and solving existing software needs the manpower of artificial detection to expend
Problem, drastically increase software detection efficiency.
Brief description of the drawings:
Fig. 1 is a kind of execution flow chart of the automated detection method script based on script formula software of the present invention.
Fig. 2 is the flow chart that a kind of automated detection method based on script formula software of the present invention is set.
Embodiment
With reference to accompanying drawing, a kind of automated detection method based on script formula software provided by the invention is made furtherly
It is bright.
As shown in Fig. 1, one kind is based on script formula software automation detection method, including script obtains super authority, script
Detection scheme script carries into execution a plan.Mainly comprise the following steps:
The script using preceding need obtain super authority could perform in next step act.
The script can the automatic detection ID number to be performed whether be loaded, whether can perform.
Action command before the script can perform automatically set by engineer, and detect performed after action whether
There is collapse.
The script can automatic detection whether performed all operational motions.
The script can export final examining report after all ID numbers have been detected.
Specifically, when engineer sets up the software for needing to detect, it is necessary to which the ID's that the ID and needs of operation are operated is suitable
Can allows script to perform internal command automatically after sequence.
In one embodiment of the invention, engineer has developed an APP afterwards, it is necessary to detect the performance of the APP, examines
Survey sees whether to occur that sudden strain of a muscle is moved back, the problem of collapse etc..Therefore, engineer can set the specific software that the script performs,
And the ID number in software, the order that each ID number performs etc., after setting up, script obtains super authority, interior before performing
Good action command set by portion, after having performed script, export examining report.
As shown in Fig. 2 script acquisition after the super authority of operating handset, is set the target of perform script including following
Step:
Set detected software, be detected the ID number of control element in software, each ID number performs acts, each ID number performs
Sequentially.
Although the present invention is shown and described by reference to preferred embodiment, this professional ordinary skill
Personnel can make various change in form and details it is to be appreciated that in the range of claims.
Claims (6)
- A kind of 1. automated detection method based on script formula software, it is characterised in that including:Script is obtained by the super authority of operating handset;Target and the action of perform script are set;AndPerform the script;The setting includes setting detected software, is detected the ID number of control element in software, the action that each ID number performs And order.
- 2. a kind of automated detection method based on script formula software according to claim 1, it is characterised in that setting is held Travel far and wide this target and after acting successfully, in addition to:Whether the detected software of script automatic detection is opened;Detected software is then opened when being not switched on.
- A kind of 3. automated detection method based on script formula software according to claim 2, it is characterised in that the quilt After the software of detection is opened, in addition to:Detect whether the ID number being currently performed has been loaded in current active;The ID catalogues in whole R files are then traveled through when not being loaded, where finding the ID number corresponding element that this is not loaded Activity;OrAction command then configured in perform script when being loaded.
- 4. a kind of automated detection method based on script formula software according to claim 3, it is characterised in that find not After activity where the ID number corresponding element being loaded, the element corresponding to the ID number is loaded, and set in perform script Action command.
- 5. a kind of automated detection method based on script formula software according to claim 3 or 4, it is characterised in that described After action command performs, script monitoring is detected whether software has collapse phenomenon;Crash log is then recorded when producing collapse;OrNext command is then continued executing with when not producing collapse.
- 6. a kind of automated detection method based on script formula software according to claim 3 or 4, it is characterised in that described After the completion of the action command set in script performs, judge whether that all orders are finished,When being finished, then examining report is exported;OrWhen being not carried out finishing, then configuration processor is carried out again since the ID number that detection is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610873917.1A CN107894947A (en) | 2016-10-01 | 2016-10-01 | A kind of automated detection method based on script formula software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610873917.1A CN107894947A (en) | 2016-10-01 | 2016-10-01 | A kind of automated detection method based on script formula software |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107894947A true CN107894947A (en) | 2018-04-10 |
Family
ID=61802430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610873917.1A Pending CN107894947A (en) | 2016-10-01 | 2016-10-01 | A kind of automated detection method based on script formula software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107894947A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1849077A2 (en) * | 2004-12-31 | 2007-10-31 | Incard SA - STMicroelectronics | Test case automatic generation method for testing proactive gsm applications on sim card |
CN102053911A (en) * | 2010-12-30 | 2011-05-11 | 东莞宇龙通信科技有限公司 | Automated testing method and system based on Android and mobile terminal |
CN103744784A (en) * | 2014-01-06 | 2014-04-23 | 中国移动(深圳)有限公司 | Method and system for automatically testing mobile phone applications |
US9064057B2 (en) * | 2011-09-30 | 2015-06-23 | International Business Machines Corporation | Processing automation scripts of software |
CN105786687A (en) * | 2014-12-22 | 2016-07-20 | 博雅网络游戏开发(深圳)有限公司 | Mobile application test method and device |
-
2016
- 2016-10-01 CN CN201610873917.1A patent/CN107894947A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1849077A2 (en) * | 2004-12-31 | 2007-10-31 | Incard SA - STMicroelectronics | Test case automatic generation method for testing proactive gsm applications on sim card |
CN102053911A (en) * | 2010-12-30 | 2011-05-11 | 东莞宇龙通信科技有限公司 | Automated testing method and system based on Android and mobile terminal |
US9064057B2 (en) * | 2011-09-30 | 2015-06-23 | International Business Machines Corporation | Processing automation scripts of software |
CN103744784A (en) * | 2014-01-06 | 2014-04-23 | 中国移动(深圳)有限公司 | Method and system for automatically testing mobile phone applications |
CN105786687A (en) * | 2014-12-22 | 2016-07-20 | 博雅网络游戏开发(深圳)有限公司 | Mobile application test method and device |
Non-Patent Citations (2)
Title |
---|
张瑜等: "《计算机病毒进化论》", 30 June 2015, 国防工业出版社 * |
王兴梅等: "《Android程序设计与应用开发教程》", 31 May 2015, 哈尔滨工业大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104063325B (en) | A kind of test exemple automation generating means for embedded software and method thereof | |
Krüger et al. | Towards a better understanding of software features and their characteristics: A case study of marlin | |
US9720799B1 (en) | Validating applications using object level hierarchy analysis | |
Li et al. | ATOM: Automatic maintenance of GUI test scripts for evolving mobile applications | |
US8898647B2 (en) | Method and apparatus for test coverage analysis | |
US8793674B2 (en) | Computer-guided holistic optimization of MapReduce applications | |
CN105808438B (en) | A kind of Reuse of Test Cases method based on function call path | |
CN103729288A (en) | Application program debugging method under embedded multi-core environment | |
CN107463500A (en) | Adjustment method, medium, system and the computing device of test script | |
CN106021101B (en) | The method and device that mobile terminal is tested | |
CN102880474A (en) | Test method for parallel source code generation, compilation and driven execution | |
CN106649094A (en) | Test method based on EventViewer development process | |
Hey | INDIRECT: Intent-driven requirements-to-code traceability | |
US8683494B1 (en) | Constructing event sequences in event-driven programs | |
CN109032929A (en) | Program log record obtaining method and device and electronic equipment | |
CN106919374B (en) | Script generation method and device | |
CN104199770A (en) | Automated mobile phone music APK testing method | |
CN102567556A (en) | Verifying method and verifying device for debugging-oriented processor | |
CN103176903B (en) | The test method and equipment of MapReduce distributed system program | |
CN107894947A (en) | A kind of automated detection method based on script formula software | |
CN104049949A (en) | Peephole optimization method based on BSWAP instruction | |
Lanc et al. | Adapting bioinformatics applications for heterogeneous systems: a case study | |
CN114416533A (en) | Artificial intelligence-based use case generation method and system for vehicle-mounted electronic product | |
CN104142886B (en) | ARM assembly codes debug processing method and processing device | |
Merchant et al. | Tool for performance tuning and regression analyses of HPC systems and applications |
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 |
Application publication date: 20180410 |
|
RJ01 | Rejection of invention patent application after publication |