CN109271296A - A kind of jelly screen test method - Google Patents

A kind of jelly screen test method Download PDF

Info

Publication number
CN109271296A
CN109271296A CN201811200009.1A CN201811200009A CN109271296A CN 109271296 A CN109271296 A CN 109271296A CN 201811200009 A CN201811200009 A CN 201811200009A CN 109271296 A CN109271296 A CN 109271296A
Authority
CN
China
Prior art keywords
screen
jelly
test lead
freeze
label
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
Application number
CN201811200009.1A
Other languages
Chinese (zh)
Other versions
CN109271296B (en
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.)
Xiamen University of Technology
Original Assignee
Xiamen University of Technology
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 Xiamen University of Technology filed Critical Xiamen University of Technology
Priority to CN201811200009.1A priority Critical patent/CN109271296B/en
Publication of CN109271296A publication Critical patent/CN109271296A/en
Application granted granted Critical
Publication of CN109271296B publication Critical patent/CN109271296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0736Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • G06F11/0742Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function in a data processing system embedded in a mobile device, e.g. mobile phones, handheld devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of jelly screen test method, comprising: runs application program in test lead, grabs running log, and detect whether the test lead occurs to freeze screen by freezing screen detection module, in case of screen is frozen, then generate jelly screen label;The running log and jelly screen label are uploaded onto the server in the test lead timing, it parses and obtains jelly screen information, running log, jelly screen label and jelly screen information are sent to analog end by server, the analog end builds running environment according to running log, jelly screen label and jelly screen information, the analog end is tested according to the running environment, improves testing efficiency.

Description

A kind of jelly screen test method
Technical field
The present invention relates to Application testing fields, shield test method more particularly to a kind of jelly.
Background technique
It in software use process, will appear the phenomenon that freezing and can not effectively be operated using interface once in a while, be commonly called as Freeze screen, it is sometimes necessary to forced shutdown or restart just can be used normally, due to Android system using be all based on java into Row exploitation, JVM virtual machine is not relatively high for the efficiency of management of memory, therefore user is occurred in using Android application process The probability for freezing screen is relatively large, therefore before Android application listing, needs to carry out a large amount of test job, be answered with improving this Android User experience.
Freeze screen problem to test, tester wants to have use up various methods, but due to freezing screen in several forthright hairs of user terminal Raw, so to be reappeared, the cost of reproduction is often higher, and efficiency is lower, it is sometimes necessary to expend the time also hardly possible of several weeks To reappear.Frozen by manual testing and shielded, the time cost and human cost for being difficult to find the path of reproduction, and testing all compared with It is high.Even if cooperating automatization testing technique, the path for needing to run when can not also specify automatic test, so being surveyed in automation Reproduction efficiency is not often can guarantee when examination yet.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide one kind, for solving the prior art Heavy workload, low efficiency and jelly screen are difficult to the problem of reappearing in middle Application testing, improve jelly screen testing efficiency.
In order to achieve the above objects and other related objects, the present invention provides a kind of jelly screen test method, comprising:
Application program is run in test lead, the fortune when test lead runs application program is grabbed by log handling module Row log, and detect whether the test lead occurs to freeze screen by freezing screen detection module, in case of screen is frozen, then generate jelly screen mark Note;
The running log and jelly screen label are uploaded onto the server in the test lead timing, and to running log and freeze screen Label parsed and obtain jelly screen information, it is described freeze screen information include freeze screen occur when application program, operation interface and into Journey stack information;
Running log, jelly screen label and jelly screen information are sent to analog end by server, and the analog end is according to operation Log freezes screen label and freezes screen information and builds running environment, and the analog end is tested according to the running environment.
Optionally, when the screen freeze-off time of test lead is more than N seconds, then freeze screen detection module and determine the test lead hair It is raw to freeze screen, N >=5.
Optionally, when test lead freeze-off time is greater than M seconds, then freeze screen detection module and determine that the test lead generation is doubtful Freeze screen, generates doubtful label, and doubtful put on is passed into the server, 2M >=N.
Optionally, the log diary further includes the system version information of test lead and the version letter of the application program Breath.
Optionally, running log and jelly screen label are uploaded onto the server and generate jelly screen sample by the test lead timing Library, the screen sample database of freezing determines the running log of subsequent upload and freezes to shield to mark whether to repeat, if it is not, then uploading and storing; If so, not uploading.
Optionally, the running log further includes the IMEI sequence number of the test lead, and passes through the IMEI sequence number Multiple test leads are distinguished.
Optionally, the jelly screen label further includes test lead cpu occupancy and memory usage when occurring to freeze screen.
Optionally, the analog end, which has, freezes screen detection alarm module, when the analog end occurs freezing screen, freezes screen detection Alarm modules save application program, operation interface and process stacks information and issue jelly screen message.
As described above, jelly screen test method of the invention, has the advantages that
1, it can be tested by multiple test leads, improve probability when occurring to freeze screen during the test and generation Freeze the sample of screen, to improve testing efficiency and quality;
2, the running log of test lead when occurring to freeze screen is received by server and freezes screen label, and server is according to application Program, operation interface and process stacks information can obtain reproduction path, and by running log and freeze screen flag transmission to simulation End, analog end build running environment according to running log and jelly screen label to reappear and freeze screen state, notify manpower intervention, analyze and freeze Shield reason;
3, analog end can be tested automatically according to reproduction path, solve the problems, such as manual testing's low efficiency, simultaneously Avoid the problem of automatic test can not clearly require operating path.
Detailed description of the invention
Fig. 1 is shown as the flow diagram that test lead in the embodiment of the present invention uploads data to server.
Fig. 2 is shown as server storage running log in the embodiment of the present invention and freezes the flow diagram that screen marks.
Fig. 3 is shown as analog end in the embodiment of the present invention and builds the flow diagram that running environment is tested.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from Various modifications or alterations are carried out under spirit of the invention.
It please refers to Fig.1 to Fig.3.It should be noted that diagram provided in the present embodiment only illustrates this in a schematic way The basic conception of invention, only shown in schema then with related component in the present invention rather than package count when according to actual implementation Mesh, shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its Assembly layout kenel may also be increasingly complex.This specification structure depicted in this specification institute accompanying drawings, ratio, size etc., only to Cooperate the revealed content of specification, so that those skilled in the art understands and reads, being not intended to limit the invention can be real The qualifications applied, therefore do not have technical essential meaning, the tune of the modification of any structure, the change of proportionate relationship or size It is whole, in the case where not influencing the effect of present invention can be generated and the purpose that can reach, it should all still fall in disclosed skill Art content obtains in the range of capable of covering.Meanwhile in this specification it is cited as "upper", "lower", "left", "right", " centre " and The term of " one " etc. is merely convenient to being illustrated for narration, rather than to limit the scope of the invention, relativeness It is altered or modified, under the content of no substantial changes in technology, when being also considered as the enforceable scope of the present invention.
Before the embodiment of the present invention is described in detail, first application environment of the invention is described.The present invention Technology mainly be applied to Application testing, be based especially on Android system exploitation application program, inventor finder Cost of labor required for work test application program jelly shields is increased and testing efficiency is lower, can not be effective when using automatic test Ground determines reproduction path, for This invention provides a kind of jellies to shield test method, to improve the efficiency for freezing screen test.
Please Fig. 1 to Fig. 3, the present invention provides a kind of jelly screen test method, is used for Application testing, comprising:
Application program is run in test lead, can be tested with multiple test leads with raising efficiency, it can also be according in face When to user, user carries out freezing screen feedback as test lead, and test lead is equipped with log handling module, is grabbed by log handling module The running log when test lead operation application program is taken, the running log includes system log and corresponding application program Log, and detect whether the test lead occurs to freeze screen by freezing screen detection module, in case of screen is frozen, then generate jelly screen mark Note;
The running log and jelly screen label are uploaded onto the server in the test lead timing, and to running log and freeze screen Label parsed and obtain jelly screen information, it is described freeze screen information include freeze screen occur when application program, operation interface and into Journey stack information;
Running log, jelly screen label and jelly screen information are sent to analog end by server, and the analog end is according to operation Log freezes screen label and freezes screen information and builds running environment, and the analog end is tested according to the running environment.We Case is increased during the test by multiple test leads there is freezing the probability of screen, and records running log at this time, and obtaining may Occur freezing the courses of action of screen, running environment is then built by analog end again and is tested automatically, screen event is frozen in reproduction, concurrently Outbound message greatly increases the efficiency and quality of Application testing.
Specifically, running log and jelly screen label are uploaded onto the server and generate jelly screen sample by the test lead timing Library, the screen sample database of freezing determines the running log of subsequent upload and freezes to shield to mark whether to repeat, if it is not, then uploading and storing; If so, not uploading.When the screen of test lead is lighted and freezes and (not can be carried out normal operating) time and be more than N seconds, then freeze screen Detection module determines that the test lead occurs to freeze screen, N >=5;Further, when the sample space for freezing screen sample database is sufficiently large, Doubtful jelly screen event can be screened, when test lead freeze-off time is greater than M seconds, then freezes screen detection module and determines the test lead hair Become suspicious like screen is frozen, generates doubtful label, and doubtful put on is passed into the server, 2M >=N, by shielding sample inventory in jelly Storage occurs to freeze screen and doubtful running log when freezing screen, freezes screen label, doubtful label etc., is conducive to parse generation and freezes screen and doubt Like the courses of action set frozen when shielding, more test samples are provided for subsequent running environment of building, improve test quality, into And improve the user experience of application program.
Preferably, the log diary further includes the system version information of test lead and the version letter of the application program Breath.In order to protect the privacy of test lead, the ID of test lead can be concealed, is carried out multiple test leads by the IMEI sequence number It distinguishes.
In order to improve the accuracy of test, the jelly screen label further includes test lead cpu occupancy and interior when occurring to freeze screen The reason of depositing utilization rate, preferably summarizing when there is freezing screen.
Further, the analog end, which has, freezes screen detection alarm module, freezes in analog end automatic testing process When screen, autotest program stops, and it is concurrent to freeze screen detection alarm module preservation application program, operation interface and process stacks information Freeze screen message out, the correspondence responsible person of the project receives jelly screen message, and responsible person can convene developer to carry out scene It checks, to navigate to the concrete reason of problem generation.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as At all equivalent modifications or change, should be covered by the claims of the present invention.

Claims (8)

1. a kind of jelly shields test method characterized by comprising
Application program is run in test lead, the operation day when test lead runs application program is grabbed by log handling module Will, and detect whether the test lead occurs to freeze screen by freezing screen detection module, in case of screen is frozen, then generate jelly screen label;
The test lead timing uploads onto the server the running log with screen label is frozen, and to running log and jelly screen label Jelly screen information is parsed and is obtained, the screen information of freezing includes application program, operation interface and the process heap frozen when screen occurs Stack information;
Server by running log, freeze screen label and freeze screen information and be sent to analog end, the analog end according to running log, Freeze screen label and freeze screen information and build running environment, the analog end is tested according to the running environment.
2. jelly according to claim 1 shields test method, it is characterised in that: when the screen freeze-off time of test lead is more than N When the second, then freezes screen detection module and determine that the test lead occurs jelly and shields, N >=5.
3. jelly according to claim 2 shields test method, it is characterised in that: when test lead freeze-off time is greater than M seconds, then Freeze screen detection module and determine that doubtful jelly screen occurs for the test lead, generates doubtful label, and doubtful put on is passed into the clothes Business device, 2M >=N.
4. jelly according to claim 1 shields test method, it is characterised in that: the log diary further includes that test lead is The version information of system version information and the application program.
5. jelly according to claim 1 shields test method, it is characterised in that: the test lead is periodically by running log and jelly Screen label uploads onto the server and generates jelly screen sample database, and the screen sample database of freezing determines the running log of subsequent upload and freezes screen Mark whether to repeat, if it is not, then uploading and storing;If so, not uploading.
6. jelly according to claim 1 shields test method, it is characterised in that: the running log further includes the test lead IMEI sequence number, and multiple test leads are distinguished by the IMEI sequence number.
7. jelly according to claim 1 shields test method, it is characterised in that: the jelly screen label further includes when occurring to freeze screen Test lead cpu occupancy and memory usage.
8. jelly according to claim 1 shields test method, it is characterised in that: the analog end, which has, freezes screen detection alarm mould Block freezes screen detection alarm module and saves application program, operation interface and process stacks information when the analog end occurs freezing screen And issue jelly screen message.
CN201811200009.1A 2018-10-16 2018-10-16 Frozen screen testing method Active CN109271296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811200009.1A CN109271296B (en) 2018-10-16 2018-10-16 Frozen screen testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811200009.1A CN109271296B (en) 2018-10-16 2018-10-16 Frozen screen testing method

Publications (2)

Publication Number Publication Date
CN109271296A true CN109271296A (en) 2019-01-25
CN109271296B CN109271296B (en) 2023-03-24

Family

ID=65196914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811200009.1A Active CN109271296B (en) 2018-10-16 2018-10-16 Frozen screen testing method

Country Status (1)

Country Link
CN (1) CN109271296B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903711A (en) * 2019-04-13 2019-06-18 陈波 Liquid crystal display defect automatic checkout system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385582A (en) * 2010-08-31 2012-03-21 中兴通讯股份有限公司 Method, server and system for processing production test data
US20130132933A1 (en) * 2011-11-17 2013-05-23 Microsoft Corporation Automated compliance testing during application development
CN106126402A (en) * 2016-06-14 2016-11-16 网易(杭州)网络有限公司 The processing method and processing device that accelerator is abnormal
CN107704133A (en) * 2017-09-28 2018-02-16 努比亚技术有限公司 Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102385582A (en) * 2010-08-31 2012-03-21 中兴通讯股份有限公司 Method, server and system for processing production test data
US20130132933A1 (en) * 2011-11-17 2013-05-23 Microsoft Corporation Automated compliance testing during application development
CN106126402A (en) * 2016-06-14 2016-11-16 网易(杭州)网络有限公司 The processing method and processing device that accelerator is abnormal
CN107704133A (en) * 2017-09-28 2018-02-16 努比亚技术有限公司 Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903711A (en) * 2019-04-13 2019-06-18 陈波 Liquid crystal display defect automatic checkout system

Also Published As

Publication number Publication date
CN109271296B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN108255729B (en) Mobile phone game automatic testing method and system based on Unity platform
CN110768872B (en) Inspection method, system, device, computer equipment and storage medium
US10241897B2 (en) Identifying test gaps using code execution paths
CN105094783B (en) method and device for testing stability of android application
EP3447642A1 (en) System and method for predicting application performance for large data size on big data cluster
EP2572294B1 (en) System and method for sql performance assurance services
CN102722440B (en) A kind of debugging apparatus of embedded system executable code, adjustment method and embedded system
US10120783B2 (en) Determining test case efficiency
CN109388556B (en) Method and device for analyzing test process
CN103716690A (en) Multimedia live broadcast whistle-blowing method, terminal, server and system
CN103684898A (en) Method and device for monitoring operation of user request in distributed system
CN106664285B (en) Event-based recording and playback for advanced applications
CN108415830A (en) A kind of generation method and device of software test case
CN104022913B (en) For method of testing and the device of data cluster
CN105204986A (en) Automated product testing method, server and mobile equipment
CN103544095A (en) Server program monitoring method and system of server program
CN107704375A (en) A kind of system and method recorded and play back network port upstream data
CN109857631A (en) Code coverage statistical method, device, equipment and storage medium based on artificial intelligence
CN108108445A (en) A kind of data intelligence processing method and system
CN109408361A (en) Monkey tests restored method, device, electronic equipment and computer readable storage medium
CN113079061B (en) Internet of things performance testing method and system
CN109271296A (en) A kind of jelly screen test method
CN111309606A (en) Page exception handling method and device, computer equipment and storage medium
CN108933689A (en) A kind of data collection system and method
CN110795330A (en) Monkey pressure testing method and device

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
GR01 Patent grant
GR01 Patent grant