CN105912471A - System and method for capturing testing records - Google Patents

System and method for capturing testing records Download PDF

Info

Publication number
CN105912471A
CN105912471A CN201610224648.6A CN201610224648A CN105912471A CN 105912471 A CN105912471 A CN 105912471A CN 201610224648 A CN201610224648 A CN 201610224648A CN 105912471 A CN105912471 A CN 105912471A
Authority
CN
China
Prior art keywords
test record
test
output level
label
conditioned
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
Application number
CN201610224648.6A
Other languages
Chinese (zh)
Inventor
俞仕君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610224648.6A priority Critical patent/CN105912471A/en
Publication of CN105912471A publication Critical patent/CN105912471A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a system and method for capturing testing records. The system for capturing the testing records is applied in a mobile terminal and comprises a receiving unit, a testing unit and a capturing unit, wherein the receiving unit is used to receive a testing instruction; the testing unit is connected to the receiving unit, calls a relevant to-be-tested application program for testing according to the testing instruction and generates and outputs the testing records of application processes related to the to-be-tested application program, and the testing records comprise labels which have a one-to-one correspondence relation with the application processes; and the capturing unit is connected to the testing unit, stores capturing keywords in advance, obtains the labels matched with the capturing keywords, acquires an output grade of the testing records according to the labels, and outputs the testing records of the application processes of which the output grade satisfies the preset conditions.

Description

A kind of test record grasping system and method
Technical field
The present invention relates to field tests, particularly relate to a kind of test record grasping system and method.
Background technology
Existing ADB (Android Debug Bridge, Android debugging bridge joint) test record (log) Grasp Modes mainly has two kinds: one is to be connected by Android (Android) equipment Inputting ADB order after computer and print log document, another kind is mobile terminal built-in application Calling interface prints log document.Take above any method tester all can not be straight Whether the log document knowing crawl seen contains the test record information of test crash.So May result in tester may be analyzed to research staff by useless log document, if running into this Kind of situation typically requires tester's reproduction problem again and captures log document, test effect Rate is low, and labor intensive and time.
Summary of the invention
The test record document of crawl cannot be known in test process whether for tester It is the problem of effective information, now provides one to be intended to can accurately capture Validity Test record and efficiency High test record grasping system and method.
Concrete technical scheme is as follows:
A kind of test record grasping system, is applied in mobile terminal, including:
One receives unit, in order to receive test instruction;
One test cell, connects described reception unit, in order to according to described test instruction calls phase The application program to be measured answered is tested, and generates the application associated with described application program to be measured and enters The test record of journey, and export, described test record includes and described application process one_to_one corresponding Label;
One placement unit, connects described test cell, and prestores crawl keyword, described Placement unit is in order to obtain and the described label of described crawl keyword match, according to described label Obtain the described output level of described test record, described output level is met pre-conditioned The described test record output of described application process.
Preferably, also include:
One Tip element, connects described placement unit, in order to receive described test record and raw Become prompting message;
One control unit, connects described placement unit and described test cell respectively, when described defeated Going out rank when meeting pre-conditioned, it is single to the most described test that described control unit sends control instruction Unit, makes described test cell stop the survey to the described application process corresponding with described test record Examination.
Preferably, the described pre-conditioned described application process for associating with described output level is sent out Raw execution mistake.
Preferably, when described output level does not meets pre-conditioned, described placement unit generates Repetition measurement instructs, and sends described instruction to described test cell;
Described test cell according to the instruction of described repetition measurement again to described in corresponding with described label Application process is tested.
Preferably, described placement unit includes:
One memory module, in order to store a plurality of described crawl keyword;
One extraction module, in order to extract the described label in described test record;
One matching module, connects described memory module and described extraction module respectively, in order to by institute State label to mate with a plurality of described crawl keyword in described memory module, acquisition Join result and export;
One processing module, connects described matching module, when described matching result be described label with During described crawl keyword match in described memory module, described processing module is according to described mark Sign the described output level obtaining the described test record corresponding with described label, and export;
One judge module, connects described processing module, in order to judge whether described output level accords with Close described pre-conditioned, when described output level meet described pre-conditioned time, output with described The described test record that output level is corresponding;
When described output level does not meets pre-conditioned, described processing module generates repetition measurement and refers to Order, and export.
A kind of test record grasping means, is applied in mobile terminal, it is provided that capture keyword, Comprise the steps:
S1. test instruction is received;
S2. test according to the corresponding application program to be measured of described test instruction calls, generate With the test record of the application process that described application program to be measured associates, described test record includes With described application process label one to one;
S3. obtain the described label with described crawl keyword match, obtain according to described label Described test record described output level, described output level is met pre-conditioned described in The described test record output of application process.
Preferably, further comprise the steps of: after having performed described step S3
S4. receive described test record, and generate prompting message;
S5. when described output level meets pre-conditioned, stop to described test record right The test of the described application process answered.
Preferably, the described pre-conditioned described application process for associating with described output level is sent out Raw execution mistake.
Preferably, in described step S3 when described output level does not meets pre-conditioned, Return described step S2.
Preferably, it is provided that a plurality of described crawl keywords, described step S3 includes:
S31. the described label in described test record is extracted;
S32. described label is mated with a plurality of described crawl keywords, obtain coupling Result;
S33. when described matching result is described label and described crawl keyword match, root The described output level of the described test record corresponding with described label is obtained according to described label, and Output;
S34. judge whether described output level meets described pre-conditioned, if so, perform step Rapid S35;Described step S2 is performed if it is not, return;
S35. the described test record corresponding with described output level is exported.
The beneficial effect of technique scheme:
1) test record grasping system obtains phase by placement unit according to the label of test record The output level of the test record answered, knows not by the application process tested according to output level Test record, thus output effectively test record, save the testing time of tester, The degree of accuracy is high, and testing efficiency is high;
2) above-mentioned test record grasping system is supported in the grasping means of test record, has test essence The advantage that degree is high, efficiency is high.
Accompanying drawing explanation
Fig. 1 is the module map of a kind of embodiment of test record grasping system of the present invention;
Fig. 2 is the method stream of a kind of embodiment of test record grasping means of the present invention Cheng Tu;
Fig. 3 is the method for the another kind of embodiment of test record grasping means of the present invention Flow chart.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described, it is clear that described embodiment is only the present invention one Divide embodiment rather than whole embodiments.Based on the embodiment in the present invention, this area is general The every other enforcement that logical technical staff is obtained on the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
It should be noted that in the case of not conflicting, the embodiment in the present invention and embodiment In feature can be mutually combined.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as this The restriction of invention.
As it is shown in figure 1, a kind of test record grasping system, it is applied in mobile terminal, including:
One receives unit 1, in order to receive test instruction;
One test cell 2, connects and receives unit 1, in order to corresponding according to test instruction calls Application program to be measured is tested, and generates the test of the application process associated with application program to be measured Record, and export, test record includes and application process label one to one;
One placement unit 5, connecting test unit 2, and prestore crawl keyword, capture Unit 5, in order to obtain and to capture the label of keyword match, obtains test record according to label Output level, meets the test record output of pre-conditioned application process by output level.
Output level is defined in the log mechanism carried in Android system, log mechanism master Output level to be included has:
V or VERBOSE (system details) rank, if representing inline system Interim output;
D or DEBUG (diagnose, investigate) rank, represents investigation leak, mistake;
I or INFO (information) rank, the business logic processing representing important completes;
W or WARN (notice) rank, represents that application process can continue to run with;
E or ERROR (mistake) rank, represents that the application process of test there occurs seriously Mistake, it is necessary to processing, otherwise application process will be unable to continue to run with at once.
Further, label can be test label (LOG_TAG) name or process word; Placement unit 5 can prestore multiple different crawl keyword, and each captures keyword pair Answer an application process.Application program to be measured can be dialing application program, address list application journey Sequence, browser application, shooting application program, picture application program, audio application Deng.
In the present embodiment, obtain corresponding by placement unit 5 according to the label of test record The output level of test record, knows the survey of the application process not passing through test according to output level Trial record, thus record is effectively tested in output, allow the tester of mobile terminal or other Android device tester clearly knows whether captured ADB test record includes By information, saving the testing time of tester, the degree of accuracy is high, and testing efficiency is high.
In a preferred embodiment, pre-conditioned is that the application process associated with output level occurs Execution, i.e. output level is that E or ERROR represents that the application process of test there occurs sternly The mistake of weight, it is necessary to processing, otherwise application process will be unable to continue to run with at once.
In a preferred embodiment, also include:
One Tip element 3, connects placement unit 5, and in order to receive test record, and generation carries Show message;
One control unit 4, connects placement unit 5 and test cell 2 respectively, works as output level When meeting pre-conditioned, control unit 4 sends control instruction to test cell 2, makes test list Unit 2 stops the test to the application process corresponding with test record.
In the present embodiment, when the output level of test record meets pre-conditioned, i.e. apply Process makes a mistake, and the test record of crawl is effective, exports this test record, single by prompting Unit 3 can use message threads (Message Thread) to carry out prompting message propelling movement, with prompting Tester captures successfully, and meanwhile, it is right to be stopped by control unit 4 controllable testing unit 2 The test of this application process.
In a preferred embodiment, when output level does not meets pre-conditioned, placement unit 5 Generation repetition measurement instructs, and sends instructions to test cell 2;
The application process corresponding with label is again surveyed by test cell 2 according to repetition measurement instruction Examination.
In the present embodiment, when the output level of test record does not meets pre-conditioned, Think that application process does not makes a mistake, the test protocol failure of crawl, can pass through placement unit 5 Generation repetition measurement instructs, and controls test cell 2 and this application process is re-started test.
In a preferred embodiment, placement unit 5 includes:
One memory module 51, in order to store a plurality of crawl keyword;
One extraction module 54, in order to extract the label in test record;
One matching module 52, connects memory module 51 and extraction module 54 respectively, in order to marking Sign and mate with a plurality of crawl keywords in memory module 51, obtain matching result also Output;
One processing module 53, matching connection module 52, when matching result is label and storage mould During crawl keyword match in block 51, processing module 53 obtains corresponding with label according to label The output level of test record, and export;
One judge module 55, connects processing module 53, in order to judge whether output level meets Pre-conditioned, when output level meets pre-conditioned, export the test corresponding with output level Record;
When output level does not meets pre-conditioned, processing module 53 generates repetition measurement instruction, and Output.
In the present embodiment, the label in test record is closed with the crawl in memory module 51 Key word mates, if coupling, then according to the output obtaining the test record corresponding with this label Rank, it is judged that whether output level is pre-conditioned, the most then illustrate that this test record is effective; If it is not, this test protocol failure is then described, this application process does not make a mistake, can be the most right It is tested.
Test record grasping system can carry out test and capture an application program to be measured, it is possible to Multiple application programs to be measured to be carried out one by one test crawl simultaneously.
Test record grasping system can be an independent application program, can preset crawl Keyword, by searching the LOG_TAG name in test record i.e. log text or process word Find and test record accordingly;Whether the test record captured by judging output level to confirm Effectively;The most successfully captured by Tip element 3 prompting test record, thus tester can be made Accurately capture test record, it is to avoid waste of manpower became with the time because crawl useless test record This, improve testing efficiency.
As in figure 2 it is shown, a kind of test record grasping means, it is applied in mobile terminal, it is provided that Capture keyword, comprise the steps:
S1. test instruction is received;
S2. test according to the test corresponding application program to be measured of instruction calls, generate and treat Surveying the test record of the application process of application program association, test record includes and application process one The label of one correspondence;
S3. obtain and capture the label of keyword match, obtain the defeated of test record according to label Go out rank, output level is met the test record output of pre-conditioned application process.
Further, label can be test label name or process word;Can be provided previously by multiple Different crawl keywords, each captures the corresponding application process of keyword.Application to be measured Program can be dialing application program, address list application program, browser application, shooting Application program, picture application program, audio application etc..
In the present embodiment, the output of corresponding test record is obtained according to the label of test record Rank, knows the test record of the application process not passing through test according to output level, thus defeated Go out and effectively test record, allow the tester of mobile terminal or other Android device test Personnel clearly know whether captured ADB test record comprises useful information, save survey The testing time of examination personnel, the degree of accuracy is high, and testing efficiency is high.
In a preferred embodiment, pre-conditioned is that the application process associated with output level occurs Execution mistake, i.e. output level be E or ERROR represent test application process occur Grave error, it is necessary to processing, otherwise application process will be unable to continue to run with at once.
In a preferred embodiment, further comprise the steps of: after execution of step S3
S4. receive test record, and generate prompting message;
S5., when output level meets pre-conditioned, stop the application corresponding with test record The test of process.
In the present embodiment, when the output level of test record meets pre-conditioned, i.e. apply Process makes a mistake, and the test record of crawl is effective, exports this test record, can use message Thread (Message Thread) carries out prompting message propelling movement, to point out tester to capture into Merit, meanwhile, stops the test to this application process.
In a preferred embodiment, in step s3 when output level does not meets pre-conditioned, Return step S2.
In the present embodiment, when the output level of test record does not meets pre-conditioned, Think that application process does not makes a mistake, the test protocol failure of crawl, can be to this application process weight Newly test.
As it is shown on figure 3, in a preferred embodiment, it is provided that a plurality of crawl keywords, step S3 includes:
S31. the label in test record is extracted;
S32. label is mated with a plurality of crawl keywords, obtain matching result;
S33. when matching result be label with when capturing keyword match, according to label obtain with The output level of the test record that label is corresponding, and export;
S34. judge whether output level meets pre-conditioned, if so, perform step S35;If No, return and perform step S2;
S35. the test record corresponding with output level is exported.
In the present embodiment, the label in test record is mated with capturing keyword, if Coupling, then according to the output level obtaining the test record corresponding with this label, it is judged that output stage The most whether it is pre-conditioned, the most then illustrates that this test record is effective;If it is not, then explanation should Test protocol failure, this application process does not make a mistake, and again can test it.
The foregoing is only preferred embodiment of the present invention, not thereby limit the enforcement of the present invention Mode and protection domain, to those skilled in the art, it should can appreciate that all utilizations Equivalent done by description of the invention and diagramatic content and obviously change gained The scheme arrived, all should be included in protection scope of the present invention.

Claims (10)

1. a test record grasping system, it is characterised in that be applied in mobile terminal, Including:
One receives unit, in order to receive test instruction;
One test cell, connects described reception unit, in order to according to described test instruction calls phase The application program to be measured answered is tested, and generates the application associated with described application program to be measured and enters The test record of journey, and export, described test record includes and described application process one_to_one corresponding Label;
One placement unit, connects described test cell, and prestores crawl keyword, described Placement unit is in order to obtain and the described label of described crawl keyword match, according to described label Obtain the described output level of described test record, described output level is met pre-conditioned The described test record output of described application process.
2. test record grasping system as claimed in claim 1, it is characterised in that also wrap Include:
One Tip element, connects described placement unit, in order to receive described test record and raw Become prompting message;
One control unit, connects described placement unit and described test cell respectively, when described defeated Going out rank when meeting pre-conditioned, it is single to the most described test that described control unit sends control instruction Unit, makes described test cell stop the survey to the described application process corresponding with described test record Examination.
3. test record grasping system as claimed in claim 1, it is characterised in that described The execution mistake that the pre-conditioned described application process for associating with described output level occurs.
4. test record grasping system as claimed in claim 1, it is characterised in that work as institute Stating output level when not meeting pre-conditioned, described placement unit generates repetition measurement instruction, and by institute State instruction to send to described test cell;
Described test cell according to the instruction of described repetition measurement again to described in corresponding with described label Application process is tested.
5. test record grasping system as claimed in claim 4, it is characterised in that described Placement unit includes:
One memory module, in order to store a plurality of described crawl keyword;
One extraction module, in order to extract the described label in described test record;
One matching module, connects described memory module and described extraction module respectively, in order to by institute State label to mate with a plurality of described crawl keyword in described memory module, acquisition Join result and export;
One processing module, connects described matching module, when described matching result be described label with During described crawl keyword match in described memory module, described processing module is according to described mark Sign the described output level obtaining the described test record corresponding with described label, and export;
One judge module, connects described processing module, in order to judge whether described output level accords with Close described pre-conditioned, when described output level meet described pre-conditioned time, output with described The described test record that output level is corresponding;
When described output level does not meets pre-conditioned, described processing module generates repetition measurement and refers to Order, and export.
6. a test record grasping means, it is characterised in that be applied in mobile terminal, There is provided and capture keyword, comprise the steps:
S1. test instruction is received;
S2. test according to the corresponding application program to be measured of described test instruction calls, generate With the test record of the application process that described application program to be measured associates, described test record includes With described application process label one to one;
S3. obtain the described label with described crawl keyword match, obtain according to described label Described test record described output level, described output level is met pre-conditioned described in The described test record output of application process.
7. test record grasping means as claimed in claim 6, it is characterised in that holding Go and further comprised the steps of: after described step S3
S4. receive described test record, and generate prompting message;
S5. when described output level meets pre-conditioned, stop to described test record right The test of the described application process answered.
8. test record grasping means as claimed in claim 6, it is characterised in that described The execution mistake that the pre-conditioned described application process for associating with described output level occurs.
9. test record grasping means as claimed in claim 6, it is characterised in that in institute State in step S3 when described output level does not meets pre-conditioned, return described step S2.
10. test record grasping means as claimed in claim 9, it is characterised in that provide A plurality of described crawl keywords, described step S3 includes:
S31. the described label in described test record is extracted;
S32. described label is mated with a plurality of described crawl keywords, obtain coupling Result;
S33. when described matching result is described label and described crawl keyword match, root The described output level of the described test record corresponding with described label is obtained according to described label, and Output;
S34. judge whether described output level meets described pre-conditioned, if so, perform step Rapid S35;Described step S2 is performed if it is not, return;
S35. the described test record corresponding with described output level is exported.
CN201610224648.6A 2016-04-12 2016-04-12 System and method for capturing testing records Pending CN105912471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610224648.6A CN105912471A (en) 2016-04-12 2016-04-12 System and method for capturing testing records

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610224648.6A CN105912471A (en) 2016-04-12 2016-04-12 System and method for capturing testing records

Publications (1)

Publication Number Publication Date
CN105912471A true CN105912471A (en) 2016-08-31

Family

ID=56745972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610224648.6A Pending CN105912471A (en) 2016-04-12 2016-04-12 System and method for capturing testing records

Country Status (1)

Country Link
CN (1) CN105912471A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955607A (en) * 2019-12-16 2020-04-03 广州品唯软件有限公司 Monitoring method, monitor and readable storage medium for simulation test tool

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080066069A1 (en) * 2006-02-28 2008-03-13 Microsoft Corporation Thread Interception and Analysis
CN101329867A (en) * 2007-06-21 2008-12-24 西门子(中国)有限公司 Method and device for playing speech on demand
CN103745017A (en) * 2014-02-10 2014-04-23 北界创想(北京)软件有限公司 Information capturing device and method
CN104166729A (en) * 2014-08-28 2014-11-26 四川长虹电器股份有限公司 Timing multi-task webpage data capturing system and method
CN104424094A (en) * 2013-08-26 2015-03-18 腾讯科技(深圳)有限公司 Method and device for obtaining abnormal information and intelligent terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080066069A1 (en) * 2006-02-28 2008-03-13 Microsoft Corporation Thread Interception and Analysis
CN101329867A (en) * 2007-06-21 2008-12-24 西门子(中国)有限公司 Method and device for playing speech on demand
CN104424094A (en) * 2013-08-26 2015-03-18 腾讯科技(深圳)有限公司 Method and device for obtaining abnormal information and intelligent terminal device
CN103745017A (en) * 2014-02-10 2014-04-23 北界创想(北京)软件有限公司 Information capturing device and method
CN104166729A (en) * 2014-08-28 2014-11-26 四川长虹电器股份有限公司 Timing multi-task webpage data capturing system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955607A (en) * 2019-12-16 2020-04-03 广州品唯软件有限公司 Monitoring method, monitor and readable storage medium for simulation test tool
CN110955607B (en) * 2019-12-16 2023-03-28 广州品唯软件有限公司 Monitoring method, monitor and readable storage medium for simulation test tool

Similar Documents

Publication Publication Date Title
CN103198010A (en) Software testing method, device and system
CN106155891A (en) Interface test method, interface description data library generating method and device
CN102331967A (en) Method for managing chip verification test cases
CN105760296B (en) Automatic test control method, device and terminal
CN109145579A (en) Intelligent network joins automobile information secure authentication testing method and system
CN105652183A (en) Vehicle-mounted system PCB mainboard automated testing method
CN105808417B (en) Automated testing method and proxy server
CN109634258A (en) It is a kind of for the bus message method of calibration of hardware-in―the-loop test, apparatus and system
CN110069413B (en) Test data communication, test method, device, equipment and storage medium
CN102707712B (en) Electronic equipment fault diagnosis method and system
CN108959065A (en) The verification method and system of software interface test parameter
CN115827610A (en) Method and device for detecting effective load
CN102385333B (en) Fault diagnosis method for petroleum instrument
CN105912471A (en) System and method for capturing testing records
CN104123212A (en) System test method of USB chip
CN109857672A (en) A kind of formation gathering method, device, equipment and storage medium
CN103902590B (en) Premises automation method of testing and its device
CN106200623B (en) The semi-physical simulation test device of reactor core measuring system logic module
CN106844211A (en) A kind of method for testing software, apparatus and system
CN102521124B (en) Method and system for outputting failure reasons
CN103268696A (en) Multifunctional data acquisition method applied to power distribution overhaul
CN108024090A (en) A kind of abnormal localization method and device for video monitoring platform
CN106257257A (en) A kind of detect the method for optical module planisphere, device and virtual vector analyser
CN112348454B (en) Intelligent management and control system and method for handover test of electrical equipment
CN204789978U (en) Smart electric meter trouble snatchs test equipment

Legal Events

Date Code Title Description
C06 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: 20160831

RJ01 Rejection of invention patent application after publication