CN109582568A - A kind of data report automated testing method - Google Patents
A kind of data report automated testing method Download PDFInfo
- Publication number
- CN109582568A CN109582568A CN201811342730.4A CN201811342730A CN109582568A CN 109582568 A CN109582568 A CN 109582568A CN 201811342730 A CN201811342730 A CN 201811342730A CN 109582568 A CN109582568 A CN 109582568A
- Authority
- CN
- China
- Prior art keywords
- data
- fiddler
- report
- script
- uiautomator
- 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
-
- 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/3692—Test management for test results analysis
Abstract
The present invention relates to a kind of data to report automated testing method, including tests preceding preparation process and testing procedure, and preparation process is used to check whether expected results meet the demand that data report before the test, and the testing procedure is automatically to test data.The beneficial effects of the invention are as follows the data that automatic test uploads, and greatly reduce the time cost of tester, improve work efficiency.
Description
Technical field
The present invention relates to big data detection technique fields, and in particular to one kind based on Uiautomator, Fiddler and
The data of Python report automated testing method.
Background technique
Present big data analysis source both generally is to be reported in network data, and it is all in specific operation that each data, which report,
Http request of lower progress, each data report interface to have corresponding parameter and parameter value.It is reported in test data
When, it is necessary first to it is specifically operated, then the http request and manual copy of grasping manipulation triggering are to local, finally
The request data grabbed is compared, confirms whether parameter and parameter value meet the requirements.Currently, skill existing for the field
Art problem are as follows: because there are many interface that data report, and the number of parameters of each interface is also very much, so generally surveying manually
Examination data are time-consuming very huge when report, efficiency and its low.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of data to report automated testing method, it is intended to solve above-mentioned
Technology.
The technical scheme to solve the above technical problems is that
A kind of data based on Uiautomator, Fiddler and Python report automated testing method, including test
Preceding preparation process and testing procedure, preparation process is used to check whether expected results meet the need that data report before the test
It asks, the testing procedure is automatically to test data.
Further, preparation process includes the following steps before the test:
S1: the Uiautomator automatized script for executing specific operation is write;
S2: the script that Fiddler collects http request data is write;
S3: the Python script for the data that processing Fiddler is collected is write;
S4: Fiddler is opened, a Uiautomator automatized script is executed, by the data of collection Python script
Processing, obtains the expected results of parameter and parameter value that data report;
S5: whether manual inspection expected results meet the demand that data report.
Further, the testing procedure includes the following steps:
S1: user only needs to open Fiddler first, then starts the execution in Uiautomator module on webpage
The script of specific operation can start to collect the data that data report;
After operation in S2:Uiautomator module executes, Fiddler is closed, executes Python comparison in webpage
Script, test result that you can get it.
Further, the testing procedure includes the following steps:
S1: user only needs to open Fiddler first, then starts on local Android Studio
The script of execution specific operation in Uiautomator module can start to collect the data that data report;
After operation in S2:Uiautomator module executes, Fiddler is closed, home environment executes Python pairs
Than script, test result that you can get it.
Compared with prior art, the beneficial effects of the present invention are:
1, operation is reported without manually performing specific data;
2, http request data are collected automatically and are saved in local, save data without artificial screening &;
3, the data that perform script correlation data reports, it is easy to detect without manually being compared one by one to parameter and parameter value
Fast.
Detailed description of the invention
Fig. 1 is system block diagram of the invention.
Specific embodiment
Principles and features of the present invention are described below in conjunction with drawings and the specific embodiments, example is served only for solving
The present invention is released, is not intended to limit the scope of the present invention.
It is reported automatically as shown in Figure 1, the present invention provides a kind of data based on Uiautomator, Fiddler and Python
Change test method, it is characterised in that: including preparation process and testing procedure before testing, preparation process is used to check before the test
Whether expected results meet the demand that data report, and the testing procedure is automatically to test data.The present invention provides
Automated detection method report operation without manually performing specific data, automatic http request data of collecting simultaneously are saved in
Ground saves data without artificial screening &, the data that perform script correlation data reports, without manually to parameter and parameter value by
One comparison is easy to detect quick.
In the present invention, preparation process includes the following steps before the test:
S1: the Uiautomator automatized script for executing specific operation is write;
S2: the script that Fiddler collects http request data is write;
S3: the Python script for the data that processing Fiddler is collected is write;
S4: Fiddler is opened, a Uiautomator automatized script is executed, by the data of collection Python script
Processing, obtains the expected results of parameter and parameter value that data report;
S5: whether manual inspection expected results meet the demand that data report.
Embodiment 1
In the present embodiment, the testing procedure includes the following steps:
S1: user only needs to open Fiddler (having finished writing the script for collecting data) first, then starts on webpage
The script of execution specific operation in Uiautomator module can start to collect the data that data report;
After operation in S2:Uiautomator module executes, Fiddler is closed, executes Python comparison in webpage
Script (wherein expected results have been prepared for early period), test result that you can get it.
Embodiment 2
In the present embodiment, the testing procedure includes the following steps:
S1: user only needs to open Fiddler (having finished writing the script for collecting data) first, then in local
The script for starting the execution specific operation in Uiautomator module on Android Studio can start collection data and report
Data;
After operation in S2:Uiautomator module executes, Fiddler is closed, home environment executes Python pairs
Than script (wherein expected results early period have been prepared for good), test result that you can get it.
Automated detection method provided by the invention reports operation without manually performing specific data, collects http automatically
Request data is simultaneously saved in local, saves data without artificial screening &, the data that perform script correlation data reports are not necessarily to people
Work compares parameter and parameter value one by one, easy to detect quick.
The foregoing is merely preferred embodiments of the invention, are not intended to limit the invention, all in spirit of the invention
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (4)
1. a kind of data report automated testing method, it is characterised in that: described including preparation process and testing procedure before testing
Preparation process is used to check whether expected results meet the demand that data report before testing, and the testing procedure is to automatic logarithm
According to being tested.
2. a kind of data according to claim 1 report automated testing method, which is characterized in that prepare before the test
Step includes the following steps:
S1: the Uiautomator automatized script for executing specific operation is write;
S2: the script that Fiddler collects http request data is write;
S3: the Python script for the data that processing Fiddler is collected is write;
S4: Fiddler is opened, a Uiautomator automatized script is executed, at the data of collection Python script
Reason, obtains the expected results of parameter and parameter value that data report;
S5: whether manual inspection expected results meet the demand that data report.
3. a kind of data according to claim 2 report automated testing method, which is characterized in that the testing procedure packet
Include the following steps:
S1: user only needs to open Fiddler first, and the execution then started in Uiautomator module on webpage is specific
The script of operation can start to collect the data that data report;
After operation in S2:Uiautomator module executes, Fiddler is closed, Python is executed in webpage and compares foot
This, test result that you can get it.
4. a kind of data according to claim 2 report automated testing method, which is characterized in that the testing procedure packet
Include the following steps:
S1: user only needs to open Fiddler first, then starts Uiautomator on local Android Studio
The script of execution specific operation in module can start to collect the data that data report;
After operation in S2:Uiautomator module executes, Fiddler is closed, home environment executes Python and compares foot
This, test result that you can get it.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811342730.4A CN109582568A (en) | 2018-11-13 | 2018-11-13 | A kind of data report automated testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811342730.4A CN109582568A (en) | 2018-11-13 | 2018-11-13 | A kind of data report automated testing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109582568A true CN109582568A (en) | 2019-04-05 |
Family
ID=65922030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811342730.4A Pending CN109582568A (en) | 2018-11-13 | 2018-11-13 | A kind of data report automated testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582568A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681925A (en) * | 2017-01-04 | 2017-05-17 | 广州四三九九信息科技有限公司 | UIAutomator-based automatic testing method and device |
CN106897357A (en) * | 2017-01-04 | 2017-06-27 | 北京京拍档科技股份有限公司 | A kind of method for crawling the network information for band checking distributed intelligence |
CN107135390A (en) * | 2017-05-08 | 2017-09-05 | 湖南快乐阳光互动娱乐传媒有限公司 | The automated testing method and system of a kind of TV applications |
US20180074933A1 (en) * | 2016-09-13 | 2018-03-15 | Arm Limited | Management of log data in electronic systems |
CN108733555A (en) * | 2017-04-25 | 2018-11-02 | 中移信息技术有限公司 | A kind of application testing method and device |
-
2018
- 2018-11-13 CN CN201811342730.4A patent/CN109582568A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180074933A1 (en) * | 2016-09-13 | 2018-03-15 | Arm Limited | Management of log data in electronic systems |
CN106681925A (en) * | 2017-01-04 | 2017-05-17 | 广州四三九九信息科技有限公司 | UIAutomator-based automatic testing method and device |
CN106897357A (en) * | 2017-01-04 | 2017-06-27 | 北京京拍档科技股份有限公司 | A kind of method for crawling the network information for band checking distributed intelligence |
CN108733555A (en) * | 2017-04-25 | 2018-11-02 | 中移信息技术有限公司 | A kind of application testing method and device |
CN107135390A (en) * | 2017-05-08 | 2017-09-05 | 湖南快乐阳光互动娱乐传媒有限公司 | The automated testing method and system of a kind of TV applications |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104717337B (en) | A kind of method of batch testing mobile phone application and its equipment used | |
Ashoor et al. | Standardization and cross validation of alloreactive IFNγ ELISPOT assays within the clinical trials in organ transplantation consortium | |
CN102141962B (en) | Safety distributed test framework system and test method thereof | |
CN107229827A (en) | Data checking early warning method and device for autoimmune disease detection and analysis | |
CN104133771B (en) | A kind of test method and device | |
CN106874190A (en) | The method of testing and server of user interface | |
WO2014180107A1 (en) | Test-based static analysis false positive elimination method | |
CN104503910A (en) | Product test method by monitoring users' using behavior | |
CN104375937A (en) | Continuous integration method and system of automated testing results | |
CN110069409A (en) | A kind of Evaluation of Software Quality and system | |
CN110377347A (en) | A kind of automatic inspection method and system of Redfish setting BIOS option | |
CN110033160A (en) | A kind of performance appraisal system and method | |
CN111400505A (en) | Method and system for matching fault elimination scheme of power consumption information acquisition system | |
CN107122302A (en) | A kind of software test measure of effectiveness and appraisal procedure | |
CN103678529B (en) | Integration method of wafer test data of multiple times | |
CN104123397A (en) | Automatic test device and method for Web page | |
CN108595312A (en) | A kind of automatic performance method and device of modelling customer behavior | |
CN111309581A (en) | Application performance detection method and device in database upgrading scene | |
CN106355379A (en) | Product test method | |
CN109582568A (en) | A kind of data report automated testing method | |
CN107102942B (en) | Input domain error positioning-based minimum fault positioning method | |
CN116954624A (en) | Compiling method based on software development kit, software development system and server | |
CN117112403A (en) | Product automatic testing method, device, system and photovoltaic equipment | |
CN110008072A (en) | A kind of method and device of testing hard disk performance and programming count result | |
CN109614337A (en) | A kind of Performance Test System and testing tool based on Linux system |
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: 20190405 |