CN108108303A - A kind of application program interim card test method, relevant device and computer storage media - Google Patents

A kind of application program interim card test method, relevant device and computer storage media Download PDF

Info

Publication number
CN108108303A
CN108108303A CN201711477047.7A CN201711477047A CN108108303A CN 108108303 A CN108108303 A CN 108108303A CN 201711477047 A CN201711477047 A CN 201711477047A CN 108108303 A CN108108303 A CN 108108303A
Authority
CN
China
Prior art keywords
interim card
reason
card reason
terminal
caton phenomenon
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
CN201711477047.7A
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.)
Zhuhai Juntian Electronic Technology Co Ltd
Original Assignee
Zhuhai Juntian Electronic 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 Zhuhai Juntian Electronic Technology Co Ltd filed Critical Zhuhai Juntian Electronic Technology Co Ltd
Priority to CN201711477047.7A priority Critical patent/CN108108303A/en
Publication of CN108108303A publication Critical patent/CN108108303A/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
    • 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/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of application program interim card test method, relevant device and computer storage media, this method to include:The interim card information that server receiving terminal is sent, interim card information cause terminal the duration of Caton phenomenon occur respectively including destination application is caused the corresponding program code of N number of interim card reason of Caton phenomenon and N number of interim card reason occur, and N is positive integer;The M interim card reason that server according to interim card information determines that destination application is caused Caton phenomenon occur, M interim card reason causes that the duration of Caton phenomenon occurs in terminal and/or N number of interim card reason causes terminal to occur what the number of Caton phenomenon determined respectively for server respectively according to N number of interim card reason, and M is the positive integer less than or equal to N.By the application, test process is simple, convenient, and testing efficiency is high, and without manually reading the corresponding program code of interim card reason.

Description

A kind of application program interim card test method, relevant device and computer storage media
Technical field
The present invention relates to a kind of network technique field more particularly to application program interim card test method, relevant device and meters Calculation machine storage medium.
Background technology
With the high speed development of network technology, on intelligent terminal, such as mobile phone, tablet computer, wearable device Application program diversified development trend is still either presented on Vision Design in Functional Design, it is intended to meet use While the primary demand at family, better user experience is improved for user.It is more preferable that if developer can not provide experience to the user Application, which is can hardly be avoided using the loss of user.For example, there is Caton phenomenon in application program (Application Not Responding, ANR) is exactly that application program does not timely respond in simple terms, shows intelligence The display page in terminal for intelligent terminal occurs delay, frame losing phenomenon occurs.Specifically, Caton phenomenon occurs for application program It is more than the default threshold value of intelligent terminal to refer to execution time of the application program when responding user's operation.Intelligent terminal referred to herein Default threshold value refers to the time for the processing single incident that intelligent terminal is pre-set.In most cases, the time in a moment Later, application program just can be self-healing normally.If application program continued to keep Caton phenomenon after the time in a moment, this will The warning of higher level is caused, the operation of user is caused to be unable to successful execution.
In the prior art, developer carrys out test application program on an intelligent terminal by BlockCanary instruments, with It was found that the interim card reason of Caton phenomenon occurs for application program.Specifically, BlockCanary can show in application program generation interim card As when record corresponding stack information, the stack information be output under BlockCanary instrument config directories/ In data/anr/traces.txt files.Here mentioned stack information refers to the card in intelligent terminal test application program During reason of pausing, the program code of the application program recorded.The stack information can characterize holding for each program code Row order, the execution sequence can specifically include the calling order between power function.Details may be referred to Fig. 1.As shown in Figure 1, The program code of the application program of record can symbolize terminal and first run the 469th line program code, and rerun the 499th line program Code finally runs the program code of the 362nd row.Developer can determine the program of application program by checking output file It is insufficient present in source code, it then modifies to it, to solve to cause Caton phenomenon occur in BlockCanary test process Interim card reason.It should be noted that during above-mentioned use BlockCanary instruments are to Application testing, if When BlockCanary instruments detect the interim card reason that application program is caused Caton phenomenon occur, intelligent terminal shows bullet Window, entire test process finish.If developer it is expected to obtain application program is caused multiple interim card reasons of Caton phenomenon occur, When then needing to use BlockCanary instruments multiple to Application testing, and obtaining specific interim card reason every time, it is required for Manually read the corresponding program code of interim card reason.Whole process is cumbersome, complicated.How one kind is designed simply, easily The technical issues of method for the interim card reason of test application program is urgent need to resolve.
The content of the invention
The embodiment of the present invention provides a kind of application program interim card test method, relevant device and computer storage media, can The complexity of the interim card reason of test application program is reduced, test process is simple, convenient, and testing efficiency is high, and without artificial hand It is dynamic to read the corresponding program code of interim card reason.
In a first aspect, an embodiment of the present invention provides a kind of application program interim card test method, applied to server side.It should Method includes:
The interim card information that server receiving terminal is sent, the interim card information include destination application is caused interim card occur The corresponding program code of N number of interim card reason of phenomenon and N number of interim card reason cause the terminal interim card occur to show respectively The duration of elephant, N are positive integer;
The M that the server according to the interim card information determines that the destination application is caused the Caton phenomenon occur A interim card reason, the M interim card reason cause the terminal to occur respectively for the server according to N number of interim card reason The duration of Caton phenomenon and/or N number of interim card reason cause the terminal to occur what the number of Caton phenomenon determined respectively, M To be less than or equal to the positive integer of N.
By the embodiment of the present invention, what server receiving terminal was sent causes application program N number of card of Caton phenomenon occur After reason of pausing, M interim card reason in N number of interim card reason is determined as main interim card reason, and test process is simple, convenient, test It is efficient, and without manually reading the corresponding program code of interim card reason.Main interim card is former determined by above-mentioned server The defects of in the presence of program code because that can characterize application program, can be convenient for developer to be directed to the program of above application program The defects of in the presence of code, is improved, and so as to avoid the Caton phenomenon of application program, improves the fluency of application program, And then improve the usage experience of user.
Optionally, the interim card information further includes the corresponding indicator of said program code, and identical program code corresponds to Indicator it is identical, the length for being shorter in length than said program code of the indicator.
By the embodiment of the present invention, the corresponding program code of multiple interim card reasons is characterized with indicator, wherein, it is identical The corresponding indicator of program code is identical.Due to the program code for being shorter in length than application program of indicator, server can pass through The quantity of same indicator is counted to determine number that same interim card reason causes terminal Caton phenomenon occur, compared to server It counts for the corresponding program code of each interim card reason, it is simple, convenient, the statistical efficiency of server can be improved.
Optionally, the server determines that the destination application is caused the interim card occur according to the interim card information M interim card reason of phenomenon, including:
The server is by N number of interim card reason according to causing the duration that Caton phenomenon occurs in the terminal descending It is ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon;
Or, the server by N number of interim card reason according to the terminal is caused the number of Caton phenomenon occur by big It is ranked up to small;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon;
Or, the server by N number of interim card reason according to cause the terminal occur Caton phenomenon duration and lead The number that Caton phenomenon occurs in the terminal is caused descending to be ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon.
By the embodiment of the present invention, server, which combines N number of interim card reason, each causes terminal the duration of Caton phenomenon occur And/or N number of interim card reason each causes terminal the number of Caton phenomenon occur to determine the original of M interim card in N number of interim card reason Because main interim card reason.
Optionally, the server by N number of interim card reason according to the terminal is caused the duration of Caton phenomenon occur With cause the terminal occur Caton phenomenon number it is descending be ranked up, including:
The server determines the weight of each interim card reason in N number of interim card reason according to the following formula successively, The formula is:
Xi=0.5*Ai+0.5*Bi
Wherein, Xi is the weight of i-th of interim card reason in N number of interim card reason, and Ai is by N number of interim card reason The duration that Caton phenomenon occurs in the terminal is caused to be ranked up rear i-th of interim card original according to order from big to small respectively Because the terminal is caused the ranking shared by the duration of Caton phenomenon occur, Bi is described for N number of interim card reason is caused respectively The number that Caton phenomenon occurs in terminal is ranked up rear i-th of interim card reason according to order from big to small and causes the end There is the ranking shared by the number of Caton phenomenon in end, wherein, i is the positive integer more than or equal to 1 and less than or equal to N;
N number of interim card reason is ranked up by the server according to weight is ascending, and weight is smaller, characterizes interim card The severity level of reason is higher;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon, including:
After N number of interim card reason is ranked up by the server according to weight is ascending, by the card of M before ranking Reason of pausing is determined as the M interim card reason that the destination application is caused the Caton phenomenon occur, the M interim card reason For the highest M interim card reason of severity level in N number of interim card reason.
By the embodiment of the present invention, server determines N number of interim card reason with reference to N number of corresponding weight of interim card reason In M interim card reason be main interim card reason.
Optionally, the server determines that the destination application is caused the interim card occur according to the interim card information After M interim card reason of phenomenon, further include:
The server shows that the M interim card reason that the destination application is caused Caton phenomenon occur is each right The program code answered.
By the embodiment of the present invention, server determines M interim card reason in N number of interim card reason for main card according to strategy After reason of pausing, the main corresponding program code of interim card reason is shown, developer can be convenient for know the main card of application program Reason, and the deficiency in the presence of the program code of application program is improved, the Caton phenomenon of application program can be avoided, The fluency of application program is improved, and then improves the usage experience of user.
Optionally, the server determines that the destination application is caused the interim card occur according to the interim card information After M interim card reason of phenomenon, further include:
The server each corresponds to the M interim card reason that the destination application is caused Caton phenomenon occur Program code be sent to default email address.
Optionally, the mailbox that email address is developer is preset.
By the embodiment of the present invention, server determines M interim card reason in N number of interim card reason for main card according to strategy After reason of pausing, the main corresponding program code of interim card reason is sent to the mailbox of developer, can be known convenient for developer The main interim card reason of application program, and the deficiency in the presence of the program code of application program is improved, can avoid should With the Caton phenomenon of program, the fluency of application program is improved, and then improves the usage experience of user.
Second aspect, an embodiment of the present invention provides a kind of application program interim card test method, applied to end side.Bag It includes:
Terminal to server sends interim card information, and the interim card information includes destination application is caused Caton phenomenon occur The corresponding program code of N number of interim card reason and N number of interim card reason the terminal is caused Caton phenomenon occur respectively Duration, N are positive integer, and the interim card information determines that the destination application is caused the interim card occur for the server M interim card reason of phenomenon, the M interim card reason are the server according to N number of interim card reason causes respectively The duration of Caton phenomenon and/or N number of interim card reason occurs in terminal causes the terminal number of Caton phenomenon occur respectively Definite.
By the embodiment of the present invention, terminal is when test causes application program the interim card reason of Caton phenomenon occur, once There is N number of interim card reason of Caton phenomenon in available applications program.Terminal, will be N number of after test obtains above-mentioned N number of interim card reason Interim card reason is reported to server, and then server can determine that M interim card reason in N number of interim card reason is former for main interim card Cause can reduce the complexity of the interim card reason of test application program, and test process is simple, convenient, and testing efficiency is high.
Optionally, the interim card information further includes the corresponding indicator of said program code, and identical program code corresponds to Indicator it is identical, the length for being shorter in length than said program code of the indicator.
By the embodiment of the present invention, the corresponding program code of multiple interim card reasons is characterized with indicator, wherein, identical journey The corresponding indicator of sequence code is identical.Due to the program code that is shorter in length than of indicator, server can be by counting same instruction The number of appearance is accorded with to determine the number of the same interim card reason that destination application is caused Caton phenomenon occur appearance, compared to It is simple, convenient for the corresponding program code of each interim card reason of server statistics, the statistical efficiency of server can be improved.
Optionally, the corresponding program code of N number of interim card reason utilizes automated test tool to institute for the terminal The installation kit for stating destination application carries out what automatic test obtained.
Optionally, automated test tool includes monkey testing tools and automatic traversal testing tool.
By the embodiment of the present invention, terminal carries out automation survey using automated test tool to the installation kit of application program , to obtain application program there are multiple interim card reasons of Caton phenomenon in examination, and the interim card reason that can reduce test application program is answered Miscellaneous degree, test process is simple, convenient, and testing efficiency is high.
The third aspect, an embodiment of the present invention provides a kind of server, which, which has, realizes in above-mentioned first aspect The function of server behavior.Function by hardware can also be performed corresponding software and be realized by hardware realization.Hardware or Software includes the one or more and corresponding module of above-mentioned function.
In a kind of possible realization method, the structure of the server includes processor and memory, and memory is used for Storage supports the server to perform the program of the above method, and processor is configurable for performing the program stored in memory. The server can also include communication interface, for the server and other equipment or communication.
Fourth aspect, an embodiment of the present invention provides a kind of terminal, which, which has, realizes terminal in above-mentioned second aspect The function of behavior.Function by hardware can also be performed corresponding software and be realized by hardware realization.Hardware or software package Include the one or more and corresponding module of above-mentioned function.
In a kind of possible realization method, the structure of the terminal includes processor and memory, and memory is used to deposit Storage supports the terminal to perform the program of the above method, and processor is configurable for performing the program stored in memory.The end End can also include communication interface, for the terminal and other equipment or communication.
5th aspect, an embodiment of the present invention provides a kind of server, including:
Receiving unit, for receiving the interim card information of terminal transmission, the interim card information includes causing destination application The corresponding program code of N number of interim card reason and N number of interim card reason for Caton phenomenon occur cause the terminal to go out respectively The duration of existing Caton phenomenon, N is positive integer;
First determination unit, for being determined that the destination application is caused the interim card occur according to the interim card information M interim card reason of phenomenon, the M interim card reason are led respectively for first determination unit according to N number of interim card reason The terminal is caused the duration of Caton phenomenon and/or N number of interim card reason occur causes the terminal Caton phenomenon occur respectively Number determine that M is the positive integer less than or equal to N.
Optionally, the interim card information further includes the corresponding indicator of N number of interim card reason, the length of the indicator The shorter than length of said program code.
Optionally, first determination unit includes the first sequencing unit and the second determination unit;
First sequencing unit, for by N number of interim card reason according to the terminal is caused Caton phenomenon occur Duration is descending to be ranked up;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon;
Or, first sequencing unit, for by N number of interim card reason according to the terminal is caused Caton phenomenon occur Number descending be ranked up;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon;
Or, first sequencing unit, for by N number of interim card reason according to the terminal is caused Caton phenomenon occur Duration and number that the terminal is caused Caton phenomenon occur descending be ranked up;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon.
Optionally, first sequencing unit includes processing unit and the second sequencing unit;
The processing unit, for determining each interim card reason in N number of interim card reason successively according to the following formula Weight, the formula is:
Xi=0.5*Ai+0.5*Bi
Wherein, Xi is the weight of i-th of interim card reason in N number of interim card reason, and Ai is by N number of interim card reason The duration that Caton phenomenon occurs in the terminal is caused to be ranked up rear i-th of interim card original according to order from big to small respectively Because the terminal is caused the ranking shared by the duration of Caton phenomenon occur, Bi is described for N number of interim card reason is caused respectively The number that Caton phenomenon occurs in terminal is ranked up rear i-th of interim card reason according to order from big to small and causes the end There is the ranking shared by the number of Caton phenomenon in end, wherein, i is the positive integer more than or equal to 1 and less than or equal to N;
Second sequencing unit, for N number of interim card reason to be ranked up according to weight is ascending, weight is got over Small, the severity level for characterizing interim card reason is higher;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon, be specially:
After N number of interim card reason is ranked up according to weight is ascending, the interim card reason of M before ranking is determined For the destination application is caused M interim card reason of the Caton phenomenon occur, the M interim card reason is described N number of The highest M interim card reason of severity level in interim card reason.
Optionally, the server further includes display unit;
The display unit, for being determined according to the interim card information to cause the intended application journey in the first determination unit After M interim card reason of the Caton phenomenon occurs in sequence, display causes the destination application institute of Caton phenomenon occur State M interim card reason.
Optionally, the server further includes transmitting element;
The transmitting element, for being determined according to the interim card information to cause the intended application journey in the first determination unit After M interim card reason of the Caton phenomenon occurs in sequence, the destination application will be caused the M of Caton phenomenon occur A corresponding program code of interim card reason is sent to default email address.
6th aspect, an embodiment of the present invention provides a kind of terminal, including:
Transmitting element, for sending interim card information to server, the interim card information includes destination application is caused to go out The corresponding program code of N number of interim card reason of existing Caton phenomenon and N number of interim card reason cause the terminal to occur respectively The duration of Caton phenomenon, N are positive integer, and the interim card information for the server determines that the destination application is caused to go out M interim card reason of the existing Caton phenomenon, the M interim card reason are the server according to N number of interim card reason point The terminal is not caused the duration of Caton phenomenon and/or N number of interim card reason occur causes the terminal interim card occur respectively What the number of phenomenon determined.
Optionally, the interim card information further includes the corresponding indicator of said program code, and identical program code corresponds to Indicator it is identical, the length for being shorter in length than said program code of the indicator.
Optionally, the corresponding program code of N number of interim card reason utilizes automated test tool to institute for the terminal The installation kit for stating destination application carries out what automatic test obtained.
7th aspect, an embodiment of the present invention provides a kind of computer storage media, for saving as above-mentioned server institute Computer software instructions, it includes be the program designed by server for performing above-mentioned first aspect.
Eighth aspect, an embodiment of the present invention provides a kind of computer storage media, for saving as used in above-mentioned terminal Computer software instructions, it includes for performing above-mentioned second aspect as the program designed by terminal.
9th aspect, an embodiment of the present invention provides a kind of computer program, the computer program includes above-mentioned service Program instruction used in device, described program instruction when by server processor execution when the processor is made to perform above-mentioned first Program of the aspect designed by server.
Tenth aspect, an embodiment of the present invention provides a kind of computer program, the computer program includes above-mentioned terminal Program instruction used, described program instruction when by terminal processor execution when the processor is made to perform above-mentioned first aspect For the program designed by terminal.
By implementing the embodiment of the present invention, terminal when test causes application program the interim card reason of Caton phenomenon occur, There is N number of interim card reason of Caton phenomenon in available applications program, and the interim card reason that can reduce test application program is answered Miscellaneous degree, test process is simple, convenient, and testing efficiency is high.There is N number of reason of Caton phenomenon in the test program that is applied in terminal Afterwards, the interim card information of N number of interim card reason is sent to server, without manually reading interim card reason corresponding program generation Code.Server determines that M interim card reason in N number of interim card reason is main interim card reason according to strategy.Above-mentioned server institute is really The defects of fixed main interim card reason can be characterized in the presence of the program code of application program can be convenient for developer for above-mentioned The defects of in the presence of the program code of application program, is improved, and so as to avoid the Caton phenomenon of application program, improving should With the fluency of program, and then improve the usage experience of user.
Description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described.
Fig. 1 is a kind of schematic diagram of the corresponding program code of interim card reason provided in an embodiment of the present invention;
Fig. 2 is the configuration diagram of the test system of test application program interim card provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of computer equipment provided in an embodiment of the present invention;
Fig. 4 is a kind of flow diagram of application program interim card test method provided in an embodiment of the present invention;
Fig. 4 A are a kind of schematic diagrames of the corresponding program code of interim card reason provided in an embodiment of the present invention;
Fig. 4 B are a kind of schematic diagrames of the corresponding program code of interim card reason provided in an embodiment of the present invention;
Fig. 4 C are a kind of schematic diagrames of the corresponding program code of interim card reason provided in an embodiment of the present invention;
Fig. 4 D are a kind of schematic diagrames of the corresponding program code of interim card reason provided in an embodiment of the present invention;
Fig. 4 E are a kind of schematic diagrames of the corresponding program code of interim card reason provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another application program interim card test method provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of another application program interim card test method provided in an embodiment of the present invention;
Fig. 7 is a kind of structure diagram of server provided in an embodiment of the present invention;
Fig. 8 is a kind of structure diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is described.
First, the inventive concept of the present invention is introduced.
In the prior art, developer is when in terminal by the interim card reason of BlockCanary instrument test application programs, Once test can only obtain an interim card reason.In the application, developer comes in a terminal by BlockCanary instruments During test application program, automated test tool is employed (for example, monkey testing tools and automatic traversal test work Tool) to find the multiple interim card reasons for causing application program that Caton phenomenon occurs, i.e., once test can obtain causing using journey There are multiple interim card reasons of Caton phenomenon in sequence.Then server causes terminal Caton phenomenon occur according to strategy to what is detected Multiple interim card reasons carry out statistical analysis, with determine multiple interim card reasons in main interim card reason.Finally in application program Above-mentioned main interim card reason is shown on test platform, and above-mentioned main interim card reason is sent to developer, so as to developer couple The program code of application program is modified, and avoids the Caton phenomenon of application program as far as possible.During above-mentioned realization, survey Examination process is simple, convenient, and testing efficiency is high.
Application program interim card test method described herein is suitable for but is not limited to:Android system.
In the application, above application program can be arbitrary a application program.The application is using above-mentioned application program to be micro- It is illustrated exemplified by letter application program.
In a kind of possible realization method, terminal sends interim card information, the interim card packet by network to server Including causes application program mark corresponding to each interim card reason of Caton phenomenon and each interim card reason occur causes respectively There is the duration of Caton phenomenon in terminal.Fig. 2 is a kind of test system of test application program interim card provided in an embodiment of the present invention 200 configuration diagram, including:Server 201, terminal 202 and network 203.The interim card letter that server receiving terminal is sent After breath, the main interim card reason in multiple interim card reasons that application program is caused Caton phenomenon occur is determined.
It should be noted that in above system, the quantity of terminal 202 includes but not limited to one, can also be multiple, this hair Bright embodiment is not especially limited.Specifically, terminal can include cell phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile Internet Device, MID), The terminal device that intelligent wearable device (such as smartwatch, Intelligent bracelet) various users can use, the embodiment of the present invention is not It is construed as limiting.
In alternatively possible realization method, terminal 202 sends interim card information by wireline interface to server 201. The interim card information that server is sent according to terminal determines the master in multiple interim card reasons that application program is caused Caton phenomenon occur Want interim card reason.The wireline interface connects including such as local area access networks (Local Access Network, LAN) interface, USB Mouth, blue tooth interface etc..
As shown in figure 3, the server 201 or terminal 202 in Fig. 2 can (or be with the computer equipment in Fig. 3 System) mode realize.
Fig. 3 show computer equipment schematic diagram provided in an embodiment of the present invention.Computer equipment 300 includes at least one Processor 301, communication bus 302, memory 303 and at least one communication interface 304.
Processor 301 can be a general central processor (Central Processing Unit, CPU), microprocessor Device, application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC) or one or more A integrated circuit for being used to that the present invention program program to be controlled to perform.
Communication bus 302 may include an access, and information is transmitted between said modules.The communication interface 304, using appoint The device of what transceiver one kind, for other equipment or communication, such as Ethernet, wireless access network (Radio Access Technology, RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
Memory 303 can be read-only memory (Read-Only Memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (Random Access Memory, RAM) or letter can be stored Breath and the other kinds of dynamic memory or Electrically Erasable Programmable Read-Only Memory (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, digital universal Optical disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to Order or data structure form desired program code simultaneously can by any other medium of computer access, but not limited to this. Memory can be individually present, and be connected by bus with processor.Memory can also be integrated with processor.
Wherein, the memory 303 is for storing the program code of execution the present invention program, and is controlled by processor 301 System performs.The processor 301 is used to perform the program code stored in the memory 303.
In the concrete realization, as a kind of embodiment, processor 301 can include one or more CPU, such as in Fig. 3 CPU0 and CPU1.
In the concrete realization, as a kind of embodiment, computer equipment 300 can include multiple processors, such as in Fig. 3 Processor 301 and processor 308.Each in these processors can be monokaryon (single-CPU) processor, It can also be multinuclear (multi-CPU) processor.Here processor can refer to one or more equipment, circuit, and/or For handling the process cores of data (such as computer program instructions).
In the concrete realization, as a kind of embodiment, computer equipment 300 can also include output equipment 305 and input Equipment 306.Output equipment 305 and processor 301 communicate, and can show information in many ways.For example, output equipment 305 Can be liquid crystal display (Liquid Crystal Display, LCD), Light-Emitting Diode (Light Emitting Diode, LED) display device, cathode-ray tube (Cathode Ray Tube, CRT) display device or projecting apparatus (projector) etc.. Input equipment 306 and processor 301 communicate, and can receive the input of user in many ways.For example, input equipment 306 can be with It is mouse, keyboard, touch panel device or sensing equipment etc..
Above-mentioned computer equipment 300 can be an a general purpose computing device either dedicated computing machine equipment. In the concrete realization, computer equipment 300 can be desktop computer, portable computer, network server, palm PC (Personal Digital Assistant, PDA), cell phone, tablet computer, wireless terminal device, communication equipment, insertion Formula equipment or the equipment for having similar structures in Fig. 3.The unlimited type for determining computer equipment 300 of the embodiment of the present invention.
If the server 201 in Fig. 2 can be equipment shown in Fig. 3, store in the memory of server 201 one or Multiple software modules (such as interactive module and processing module).Such as the terminal 202 in Fig. 2 or equipment shown in Fig. 3, terminal Memory in store one or more software modules (such as interactive module and processing module).Server or terminal can lead to The program code crossed in processor and memory realizes software module, realizes the test of application program interim card.
Conceived based on foregoing invention, referring to Fig. 4, to introduce a kind of application program interim card test provided in an embodiment of the present invention Method.As shown in figure 4, this method includes but not limited to following steps S301-S302:
S301, terminal to server send interim card information, and interim card information shows including destination application is caused interim card occur The corresponding program code of N number of interim card reason of elephant and N number of interim card reason cause terminal the duration of Caton phenomenon, N occur respectively For positive integer.
In a kind of possible realization method, above-mentioned destination application includes multiple version models.With wechat application journey Exemplified by sequence, including wechat application program V1 versions, wechat application program V2 editions etc..It should be noted that mesh referred to herein Mark application program refers to a version model of a application program, such as wechat application program V2 editions.
In the first realization method, interim card information includes the corresponding program code of N number of interim card reason and N number of interim card is former Because terminal is caused the duration of Caton phenomenon occur respectively.For example, 1 corresponding program code of interim card reason may refer to Fig. 4 A, card Reason 1 of pausing causes terminal when a length of 664ms of Caton phenomenon occur, and 2 corresponding program code of interim card reason may refer to Fig. 4 B, There is when a length of 829ms of Caton phenomenon in 2 terminal of interim card reason.More above-mentioned 1 corresponding program code of interim card reason and interim card 2 corresponding program code of reason understands that the corresponding program code of interim card reason is different.Specifically, above-mentioned interim card information The form of expression can be for example shown in table 1.
Table 1
Interim card reason Program code Interim card duration
Interim card reason 1 Referring to shown in Fig. 4 A 664ms
Interim card reason 2 Referring to shown in Fig. 4 B 829ms
Optionally, the interim card information further includes the corresponding indicator of said program code, and identical program code corresponds to Indicator it is identical, the length for being shorter in length than said program code of the indicator.
In second of realization method, interim card information includes the corresponding program code of N number of interim card reason, N number of interim card reason Corresponding indicator and N number of interim card reason cause terminal the duration of Caton phenomenon occur respectively.Here, interim card reason is corresponding Indicator namely refer to indicator corresponding to the corresponding program code of interim card reason.For example, the journey that interim card reason 1 will be caused The indicator of sequence code is arranged to 000.Specifically, answering corresponding to different interim card reasons is characterized with different indicators With the program code of program, indicator and the program code that terminal is caused the interim card reason of Caton phenomenon occur correspond, i.e., One indicator can only indicate the program code of an interim card reason that terminal is caused Caton phenomenon occur.For example, cause terminal Occur Caton phenomenon interim card reason include interim card reason 1, interim card reason 2, interim card reason 3, interim card reason 4, interim card reason 5 this 5 interim card reasons.In a kind of possible realization method, it is corresponding that above-mentioned 5 interim card reasons are characterized using indicator Program code.Specifically, the form of expression of above-mentioned interim card information can be for example shown in table 2.
Table 2
Interim card reason Indicator Program code Interim card duration
Interim card reason 1 000 Referring to shown in Fig. 4 A 664ms
Interim card reason 2 001 Referring to shown in Fig. 4 B 829ms
Interim card reason 3 010 Referring to shown in Fig. 4 C 1194ms
Interim card reason 4 011 Referring to shown in Fig. 4 D 539ms
Interim card reason 5 100 Referring to shown in Fig. 4 E 711ms
It should be noted that the program code corresponding to due to being smaller than interim card the length of indicator, in server It is simple, convenient when statistics causes same interim card reason the terminal number of Caton phenomenon occur.For example, terminal is caused to be blocked The interim card reason for phenomenon of pausing includes interim card reason 1, this 2 interim card reasons of interim card reason 2.The interim card that server receiving terminal is sent The form of expression of information is as shown in table 3:
Table 3
It should be noted that the interim card reason and three indicators shown in table 3 are a kind of example, the present invention is implemented Example is not especially limited.
In a kind of possible realization method, server causes terminal Caton phenomenon occur in the same interim card reason of statistics During number, the number of indicator need to be only counted.For example, server is known from above-mentioned table 3, the finger of characterization interim card reason 1 Show that symbol 000 occurs twice, i.e., interim card reason 1 causes terminal Caton phenomenon twice occur.In another example server is from above-mentioned table Know in 3, the indicator 001 of characterization interim card reason 2 occurs four times, i.e. interim card reason 2 causes terminal four interim cards occur to show As compared to terminal by counting for the corresponding program code of same interim card reason, being counted by the way of indicator same The number that one interim card reason causes terminal Caton phenomenon occur is simpler, convenient.Optionally, N number of interim card reason is corresponding Program code carries out automatic test using automated test tool for the terminal to the installation kit of the destination application It obtains.
In a kind of possible realization method, in the interim card reason of test application program, in order to avoid because other should Cause tested application program that Caton phenomenon occurs with program, it should be ensured that the system environments of terminal is clean.If for example, terminal When being tested using automated test tool wechat application program V3 versions, it should ensure that on the terminal except its own system Outside the application program of institute's band, wechat application program V3 versions are only mounted with.
Optionally, automated test tool referred to herein includes monkey testing tools and automatic time of appcrawler Go through testing tool.Monkey tests refer to key-press input, touch screen input, gesture input of analog subscriber etc., test intelligence eventually How long end is present with exception.It should be noted that when performing monkey tests, if meeting with an accidet (Crash) or ANR, The then monkey EOT end of test.The test result of monkey tests can be checked by monkey_log.txt.If test result It normally, can display statement in last column of monkey_log.txt files:monkey finished.
In a kind of possible realization method, in order to avoid the notification bar of monkey testing tools test intelligent terminal, make Notification bar is shielded with simiasque.Since monkey testing tools can not test all interfaces of application program, terminal profit Testing tool is traveled through automatically with appcrawler to realize the test to all interfaces of application program.
The M interim card reason that S302, server according to interim card information determine that destination application is caused Caton phenomenon occur, The M interim card reason causes terminal the duration of Caton phenomenon and/or the N occur respectively for server according to N number of interim card reason A interim card reason causes terminal to occur what the number of Caton phenomenon determined respectively.
Optionally, the server determines that the destination application is caused the interim card occur according to the interim card information M interim card reason of phenomenon, including:
The server is by N number of interim card reason according to causing the duration that Caton phenomenon occurs in the terminal descending It is ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon;
Or,
The server is by N number of interim card reason according to causing the number that Caton phenomenon occurs in the terminal descending It is ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon;
Or,
The server by N number of interim card reason according to cause the terminal occur Caton phenomenon duration and cause institute The number that Caton phenomenon occurs in terminal is stated descending to be ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon.
In a kind of possible realization method, for example, the form of expression example for the interim card information that server receiving terminal is sent As shown in table 4.
Table 4
Interim card reason Program code Interim card duration
Interim card reason 1 Referring to shown in Fig. 4 A 664ms
Interim card reason 2 Referring to shown in Fig. 4 B 829ms
Interim card reason 1 Referring to shown in Fig. 4 A 564ms
Interim card reason 2 Referring to shown in Fig. 4 B 1027ms
Interim card reason 2 Referring to shown in Fig. 4 B 929ms
Interim card reason 2 Referring to shown in Fig. 4 B 620ms
Interim card reason 3 Referring to shown in Fig. 4 C 1194ms
Interim card reason 4 Referring to shown in Fig. 4 D 539ms
Interim card reason 5 Referring to shown in Fig. 4 E 711ms
Interim card reason 3 Referring to shown in Fig. 4 C 1494ms
Interim card reason 4 Referring to shown in Fig. 4 D 520ms
Interim card reason 3 Referring to shown in Fig. 4 C 998ms
Interim card reason 4 Referring to shown in Fig. 4 D 619ms
For server after above-mentioned interim card information is had received, server causes terminal to be blocked same interim card reason first The duration for phenomenon of pausing is handled.For example, server causes terminal multiple durations of Caton phenomenon occur same interim card reason It is averaged.At this point, after the interim card information that server receiving terminal is sent, to the form of expression after above-mentioned interim card information processing Such as shown in table 5.
Table 5
In a kind of possible realization method, server is first to multiple interim card reasons according to causing terminal Caton phenomenon occur Duration it is descending be ranked up, interim card reason in the top is determined as main interim card reason.For example, as shown in table 5, The interim card reason that Caton phenomenon occurs in destination application is caused to include 5, respectively interim card reason 1, interim card reason 2, interim card Reason 3, interim card reason 4, interim card reason 5.Server is first to above-mentioned 5 interim card reasons according to causing terminal Caton phenomenon occur Duration it is descending be ranked up, the result after sequence be interim card reason 3, interim card reason 2, interim card reason 5, interim card reason 1, Interim card reason 4.Server determines that interim card reason 3 and interim card reason 2 therein are main interim card reason.
In a kind of possible realization method, server is first to multiple interim card reasons according to causing the terminal interim card occur The number of phenomenon is descending to be ranked up, and interim card reason in the top is determined as main interim card reason.For example, such as table 5 It is shown, destination application is caused the interim card reason of Caton phenomenon occur including 5, respectively interim card reason 1, interim card reason 2, Interim card reason 3, interim card reason 4, interim card reason 5.Server causes terminal interim card occur by statistical form 5, interim card reason 1 The number of phenomenon is 2 times, and interim card reason 2 causes terminal the number of Caton phenomenon occur for 4 times, and interim card reason 3 causes terminal to go out The number of existing Caton phenomenon is 3 times, and interim card reason 4 causes terminal the number of Caton phenomenon occur for 3 times, and interim card reason 5 causes The number that Caton phenomenon occurs in terminal is 1 time.Server is first to above-mentioned 5 interim card reasons according to there is the number of Caton phenomenon Descending to be ranked up, result after sequence is interim card reason 2, interim card reason 3, interim card reason 4, interim card reason 1, and interim card is former Because of 5.Server determines that interim card reason 2 therein, interim card reason 3, interim card reason 4 are main interim card reason.
In alternatively possible realization method, terminal can be simultaneously to multiple interim card reasons according to causing the terminal to go out The duration of existing Caton phenomenon and cause the terminal occur Caton phenomenon number it is descending be ranked up, then ranking is leaned on Preceding interim card reason is determined as main interim card reason, and realization process may be referred to foregoing description, does not add to repeat herein.
By the embodiment of the present invention, server, which combines N number of interim card reason, each causes terminal the duration of Caton phenomenon occur And/or N number of interim card reason each causes terminal the number of Caton phenomenon occur to determine the original of M interim card in N number of interim card reason Because main interim card reason.
Optionally, the server by N number of interim card reason according to the terminal is caused the duration of Caton phenomenon occur With cause the terminal occur Caton phenomenon number it is descending be ranked up, including:
The server determines the weight of each interim card reason in N number of interim card reason according to the following formula successively, The formula is:
Xi=0.5*Ai+0.5*Bi
Wherein, Xi is the weight of i-th of interim card reason in N number of interim card reason, and Ai is by N number of interim card reason Each self-sustaining interim card time is ranked up the lasting interim card time institute of rear i-th of interim card reason according to order from big to small The ranking accounted for, Bi are to arrange the number that Caton phenomenon each occurs in N number of interim card reason according to order from big to small There is the ranking shared by the number of Caton phenomenon in i-th of interim card reason after sequence, wherein, i is more than or equal to 1 and is less than or equal to The positive integer of N;
N number of interim card reason is ranked up by the server according to weight is ascending, and weight is smaller, characterizes interim card The severity level of reason is higher;
The interim card reason of M before ranking is determined as that the destination application is caused the interim card occur by the server M interim card reason of phenomenon, including:
After N number of interim card reason is ranked up by the server according to weight is ascending, by the card of M before ranking Reason of pausing is determined as the M interim card reason that the destination application is caused the Caton phenomenon occur, the M interim card reason For the highest M interim card reason of severity level in N number of interim card reason.
It should be noted that weight is smaller, show that the seriousness of interim card reason is higher.For example, as shown in table 5, cause mesh There is the interim card reason of Caton phenomenon including 5 in mark application program, respectively interim card reason 1, interim card reason 2, interim card reason 3, Interim card reason 4, interim card reason 5.First, server to above-mentioned 5 interim card reasons according to terminal is caused Caton phenomenon occur most Descending for a long time to be ranked up, result after sequence is interim card reason 3 (the first), interim card reason 2 (the second), interim card reason 5 (three), interim card reason 1 (the 4th), interim card reason 4 (the 5th).Secondly, server is to above-mentioned 5 interim card reasons according to appearance The number of Caton phenomenon is descending to be ranked up, the result after sequence be interim card reason 2 (the first), interim card reason 3 (the second), Interim card reason 4 (the 3rd), interim card reason 1 (the 4th), interim card reason 5 (the 5th).Then, server calculates above-mentioned 5 according to formula The weight of a interim card reason, wherein, the weight of interim card reason 1 is 4, and the weight of interim card reason 2 is 1.5, the weight of interim card reason 3 For 1.5, the weight of interim card reason 4 is 4, and the weight of interim card reason 5 is 4.Finally, server to above-mentioned 5 interim card reasons according to Weight is ascending to be ranked up, the result after sequence be interim card reason 2, interim card reason 3, interim card reason 1, interim card reason 4, card Reason 5, server determine that interim card reason 2 and interim card reason 3 therein are main interim card reason.
By the embodiment of the present invention, server determines N number of interim card reason with reference to N number of corresponding weight of interim card reason In M interim card reason be main interim card reason.
It should be noted that above-mentioned formula is intended only as a kind of example to introduce each corresponding power of interim card reason Weight, in practical applications, above-mentioned formula can also have other forms of expression.For example, the weight factor 0.5 of Ai is gone back in above-mentioned formula Can be other values, such as 0.1,0.2,0.3 etc..The weight factor 0.5 of Bi can also be other values in above-mentioned formula, such as 0.1st, 0.2,0.3 etc., but it should be noted that Ai is added with the weight factor of Bi equal to 1.
Optionally, server can also carry out step S303, specifically, referring to figure after above-mentioned steps S302 is performed 5, it is the flow diagram of another application program interim card test method provided in an embodiment of the present invention, below to step S303 It is described in detail.
S303, above-mentioned server show that the M interim card reason that destination application is caused Caton phenomenon occur each corresponds to Program code.
Server includes application program interim card test platform.Here mentioned application program interim card test platform is to be based on The platform that the express frames of Node.js are built.The application program interim card test platform, which can be shown, causes destination application There is the main corresponding program code of interim card reason of Caton phenomenon.For example, main interim card reason includes 1.Details please Referring to 4A.
By the embodiment of the present invention, server determines M interim card reason in N number of interim card reason for main card according to strategy After reason of pausing, the main corresponding program code of interim card reason is shown, developer can be convenient for know the main card of application program Reason, and the deficiency in the presence of the program code of application program is improved, the Caton phenomenon of application program can be avoided, The fluency of application program is improved, and then improves the usage experience of user.
Optionally, server can also carry out step S304, specifically, referring to figure after above-mentioned steps S302 is performed 6, be the flow diagram of another application program interim card test method provided in an embodiment of the present invention, below to step S304 into Row is described in detail.
S304, above-mentioned server will cause the M interim card reason that Caton phenomenon occurs in destination application corresponding Program code is sent to default email address.
Optionally, the mailbox that email address is developer is preset.
In a kind of possible realization method, mentioned default email address is pre-set here, for example, should Email address can be 123 cc.com.Specifically, the email address can include the postal that multiple developers are used in conjunction with Case address can also include the email address that some specific developer uses, for example, Zhang San, the embodiment of the present invention is not made It is specific to limit.
Server is determined after main interim card reason in multiple interim card reasons according to strategy (for example, 5 main interim cards originals Cause), the main corresponding program code of interim card reason is sent to the email address pre-set.Developer can be to every A corresponding program code of interim card reason is modified, to avoid occurring same interim card reason again.
It, will after server determines the main interim card reason in multiple interim card reasons according to strategy by the embodiment of the present invention Main interim card reason is sent to the mailbox of developer, and developer can be convenient for know the main interim card reason of application program, and corresponding It is improved with the deficiency in the presence of the program code of program, the Caton phenomenon of application program can be avoided, improve application program Fluency, and then improve user usage experience.
The embodiment of the present invention, which is also described, to be belonged to above-mentioned Fig. 4, Fig. 5, Fig. 6 the method embodiment under same inventive concept A kind of server structure diagram.As shown in fig. 7, the server 700 is implemented for performing Fig. 4, Fig. 5, Fig. 6 above method The function of server in example, including:Receiving unit 701, the first determination unit 702.
Wherein, receiving unit 701, for receiving the interim card information of terminal transmission, the interim card information includes causing target The corresponding program code of N number of interim card reason of Caton phenomenon and N number of interim card reason occurs in application program causes institute respectively It states terminal and the duration of Caton phenomenon occurs, N is positive integer;
First determination unit 702, described in determining to cause the destination application to occur according to the interim card information M interim card reason of Caton phenomenon, the M interim card reason are first determination unit 702 according to N number of interim card reason The terminal is caused the duration of Caton phenomenon and/or N number of interim card reason occur respectively causes the terminal to be blocked respectively What the number for phenomenon of pausing determined, M is the positive integer less than or equal to N.
Optionally, the interim card information further includes the corresponding indicator of said program code, and identical program code corresponds to Indicator it is identical, the length for being shorter in length than said program code of the indicator.
Optionally, the first determination unit 702 includes the first sequencing unit and the second determination unit;
Wherein, first sequencing unit, for N number of interim card reason to be showed according to the terminal is caused interim card occur The duration of elephant is descending to be ranked up;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon;
Or, first sequencing unit, for by N number of interim card reason according to the terminal is caused Caton phenomenon occur Number descending be ranked up;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon;
Or, first sequencing unit, for by N number of interim card reason according to the terminal is caused Caton phenomenon occur Duration and number that the terminal is caused Caton phenomenon occur descending be ranked up;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon.
Optionally, the first sequencing unit includes processing unit, the second sequencing unit;
The processing unit, for determining each interim card reason in N number of interim card reason successively according to the following formula Weight, the formula is:
Xi=0.5*Ai+0.5*Bi
Wherein, Xi is the weight of i-th of interim card reason in N number of interim card reason, and Ai is by N number of interim card reason The duration that Caton phenomenon occurs in the terminal is caused to be ranked up rear i-th of interim card original according to order from big to small respectively Because the terminal is caused the ranking shared by the duration of Caton phenomenon occur, Bi is described for N number of interim card reason is caused respectively The number that Caton phenomenon occurs in terminal is ranked up rear i-th of interim card reason according to order from big to small and causes the end There is the ranking shared by the number of Caton phenomenon in end, wherein, i is the positive integer more than or equal to 1 and less than or equal to N;
Second sequencing unit, for N number of interim card reason to be ranked up according to weight is ascending, weight is got over Small, the severity level for characterizing interim card reason is higher;
Second determination unit, for the interim card reason of M before ranking to be determined as causing the destination application There is M interim card reason of the Caton phenomenon, be specially:
After N number of interim card reason is ranked up according to weight is ascending, the interim card reason of M before ranking is determined For the destination application is caused M interim card reason of the Caton phenomenon occur, the M interim card reason is described N number of The highest M interim card reason of severity level in interim card reason.
Optionally, the server further includes display unit;
Display unit, for being determined according to the interim card information to cause the intended application journey in the first determination unit 702 After M interim card reason of the Caton phenomenon occurs in sequence, display causes the destination application institute of Caton phenomenon occur State M interim card reason.
Optionally, the server further includes transmitting element;
Transmitting element, for being determined according to the interim card information to cause the intended application journey in the first determination unit 702 After M interim card reason of the Caton phenomenon occurs in sequence, the destination application will be caused the M of Caton phenomenon occur A corresponding program code of interim card reason is sent to default email address.
It is understood that the function of each functional unit of the server 700 of the present embodiment can according to above-mentioned Fig. 4, Fig. 5, Method specific implementation in embodiment of the method shown in Fig. 6, specific implementation process are referred to the correlation of above method embodiment Description, details are not described herein again.
The embodiment of the present invention also describes a kind of end belonged to above-mentioned Fig. 4 the methods embodiment under same inventive concept The structure diagram at end.As shown in figure 8, the terminal 800 is used to perform the function of terminal in Fig. 4 above method embodiments, including: Transmitting element 801.
Wherein, transmitting element 801, for sending interim card information to server, the interim card information includes causing target should There is the corresponding program code of N number of interim card reason of Caton phenomenon with program and N number of interim card reason cause respectively it is described There is the duration of Caton phenomenon in terminal, and N is positive integer, and the interim card information determines to cause the target should for the server Occur M interim card reason of the Caton phenomenon with program, the M interim card reason is the server according to N number of card Reason of pausing causes the terminal duration of Caton phenomenon and/or N number of interim card reason occur respectively causes the terminal respectively What the number of appearance Caton phenomenon determined.
Optionally, the interim card information further includes the corresponding indicator of said program code, and identical program code corresponds to Indicator it is identical, the length for being shorter in length than said program code of the indicator.
Optionally, the corresponding program code of N number of interim card reason is that the target is answered using automated test tool Carry out what automatic test obtained with the installation kit of program.
It is understood that the function of each functional unit of the terminal 800 of the present embodiment can be according to above-mentioned Fig. 4, Fig. 5, Fig. 6 Method specific implementation in shown embodiment of the method, the correlation that specific implementation process is referred to above method embodiment are retouched It states, details are not described herein again.The embodiment of the present invention additionally provides a kind of computer storage media, for saving as shown in above-mentioned Fig. 7 Server used in computer software instructions, it includes for performing the program designed by above method embodiment.By holding The program of row storage, can realize the test of application program interim card.
The embodiment of the present invention additionally provides another computer storage media, for saving as the terminal described in above-mentioned Fig. 8 Computer software instructions used, it includes for performing the program designed by above method embodiment.By performing storage Program can realize the test of application program interim card.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention The shape for the computer program product that usable storage medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these modification and variations.

Claims (10)

1. a kind of application program interim card test method, which is characterized in that including:
The interim card information that server receiving terminal is sent, the interim card information include destination application is caused Caton phenomenon occur The corresponding program code of N number of interim card reason and N number of interim card reason the terminal is caused Caton phenomenon occur respectively Duration, N are positive integer;
The server determines M that the destination application is caused the Caton phenomenon occur card according to the interim card information Reason, the M interim card reason are that the server causes the terminal interim card occur respectively according to N number of interim card reason The duration of phenomenon and/or N number of interim card reason cause the terminal to occur what the number of Caton phenomenon determined respectively, and M is small In or equal to N positive integer.
2. according to the method described in claim 1, it is characterized in that, the interim card information to further include said program code corresponding Indicator, the corresponding indicator of identical program code is identical, the length for being shorter in length than said program code of the indicator.
3. according to the method described in claim 1, it is characterized in that, the server determines to cause institute according to the interim card information The M interim card reason that the Caton phenomenon occurs in destination application is stated, including:
The server is by N number of interim card reason according to the terminal is caused the descending progress of duration of Caton phenomenon occur Sequence;
The interim card reason of M before ranking is determined as that the destination application is caused the Caton phenomenon occur by the server M interim card reason;
Or, the server by N number of interim card reason according to causing the number that Caton phenomenon occurs in the terminal descending It is ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the Caton phenomenon occur by the server M interim card reason;
Or, the server by N number of interim card reason according to cause the terminal occur Caton phenomenon duration and cause institute The number that Caton phenomenon occurs in terminal is stated descending to be ranked up;
The interim card reason of M before ranking is determined as that the destination application is caused the Caton phenomenon occur by the server M interim card reason.
4. according to the method described in claim 3, it is characterized in that, the server by N number of interim card reason according to causing The terminal occur Caton phenomenon duration and cause the terminal occur Caton phenomenon number it is descending be ranked up, wrap It includes:
The server determines the weight of each interim card reason in N number of interim card reason according to the following formula successively, described Formula is:
Xi=0.5*Ai+0.5*Bi
Wherein, Xi is the weight of i-th of interim card reason in N number of interim card reason, and Ai is to distinguish N number of interim card reason The duration that Caton phenomenon occurs in the terminal is caused to be ranked up rear i-th of interim card reason according to order from big to small and lead The terminal is caused the ranking shared by the duration of Caton phenomenon occur, Bi is that N number of interim card reason is caused the terminal respectively The number of appearance Caton phenomenon is ranked up rear i-th of interim card reason according to order from big to small causes the terminal to go out Ranking shared by the number of existing Caton phenomenon, wherein, i is the positive integer more than or equal to 1 and less than or equal to N;
N number of interim card reason is ranked up by the server according to weight is ascending, and weight is smaller, characterizes interim card reason Severity level it is higher;
The interim card reason of M before ranking is determined as that the destination application is caused the Caton phenomenon occur by the server M interim card reason, including:
It is after N number of interim card reason is ranked up by the server according to weight is ascending, the interim card of M before ranking is former Because being determined as the M interim card reason that the destination application is caused the Caton phenomenon occur, the M interim card reason is institute State the highest M interim card reason of severity level in N number of interim card reason.
5. method according to any one of claims 1 to 4, which is characterized in that the server is according to the interim card information After determining the M interim card reason that the destination application is caused the Caton phenomenon occur, further include:
The server shows that the M interim card reason that the destination application is caused Caton phenomenon occur is corresponding Program code.
6. method according to any one of claims 1 to 4, which is characterized in that the server is according to the interim card information After determining the M interim card reason that the destination application is caused the Caton phenomenon occur, further include:
The server will cause the destination application the corresponding journey of M interim card reason of Caton phenomenon occur Sequence code is sent to default email address.
7. a kind of application program interim card test method, which is characterized in that including:
Terminal to server sends interim card information, and the interim card information includes destination application is caused the N of Caton phenomenon occur A corresponding program code of interim card reason and N number of interim card reason cause respectively the terminal occur Caton phenomenon when Long, N is positive integer, and the interim card information determines that the destination application is caused, which the interim card occur, to be showed for the server The M interim card reason of elephant, the M interim card reason cause the end respectively for the server according to N number of interim card reason There is the duration of Caton phenomenon in end and/or N number of interim card reason number that the terminal is caused Caton phenomenon occur respectively is true Fixed.
8. the method according to the description of claim 7 is characterized in that further include said program code corresponding for the interim card information Indicator, the corresponding indicator of identical program code is identical, the length for being shorter in length than said program code of the indicator.
9. the method according to the description of claim 7 is characterized in that the corresponding program code of N number of interim card reason is described Terminal carries out what automatic test obtained using automated test tool to the installation kit of the destination application.
10. a kind of server, which is characterized in that including:
Receiving unit, for receiving the interim card information of terminal transmission, the interim card information includes destination application is caused to occur The corresponding program code of N number of interim card reason of Caton phenomenon and N number of interim card reason cause the terminal to be blocked respectively The duration for phenomenon of pausing, N is positive integer;
First determination unit, for being determined that the destination application is caused the Caton phenomenon occur according to the interim card information M interim card reason, the M interim card reason causes institute respectively for first determination unit according to N number of interim card reason State time that the duration of Caton phenomenon occurs in terminal and/or N number of interim card reason causes the terminal Caton phenomenon occur respectively What number determined, M is the positive integer less than or equal to N.
CN201711477047.7A 2017-12-29 2017-12-29 A kind of application program interim card test method, relevant device and computer storage media Pending CN108108303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711477047.7A CN108108303A (en) 2017-12-29 2017-12-29 A kind of application program interim card test method, relevant device and computer storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711477047.7A CN108108303A (en) 2017-12-29 2017-12-29 A kind of application program interim card test method, relevant device and computer storage media

Publications (1)

Publication Number Publication Date
CN108108303A true CN108108303A (en) 2018-06-01

Family

ID=62214740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711477047.7A Pending CN108108303A (en) 2017-12-29 2017-12-29 A kind of application program interim card test method, relevant device and computer storage media

Country Status (1)

Country Link
CN (1) CN108108303A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900520A (en) * 2018-07-11 2018-11-27 广州虎牙信息科技有限公司 Live streaming Caton factor determines method, apparatus, server and storage medium
CN109840189A (en) * 2018-12-15 2019-06-04 中国平安人寿保险股份有限公司 Caton formation gathering method, device, computer installation and readable storage medium storing program for executing
CN110868622A (en) * 2019-10-30 2020-03-06 北京奇艺世纪科技有限公司 Canton analysis method and device, electronic equipment and storage medium
CN111045926A (en) * 2019-11-05 2020-04-21 北京字节跳动网络技术有限公司 Application program jamming detection method, device, medium and electronic equipment
CN112423096A (en) * 2020-11-03 2021-02-26 上海哔哩哔哩科技有限公司 Playing optimization method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347282A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Performance testing for blocks of code
CN105589783A (en) * 2014-11-18 2016-05-18 广州市动景计算机科技有限公司 Application program lag problem data obtaining method and device
CN106681913A (en) * 2016-12-08 2017-05-17 武汉斗鱼网络科技有限公司 Application not responding positioning system and method
CN107247667A (en) * 2017-06-02 2017-10-13 上海金大师网络科技有限公司 Automate dump analysis systems and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347282A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Performance testing for blocks of code
CN105589783A (en) * 2014-11-18 2016-05-18 广州市动景计算机科技有限公司 Application program lag problem data obtaining method and device
CN106681913A (en) * 2016-12-08 2017-05-17 武汉斗鱼网络科技有限公司 Application not responding positioning system and method
CN107247667A (en) * 2017-06-02 2017-10-13 上海金大师网络科技有限公司 Automate dump analysis systems and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MARKZHAI: ""BlockCanary-轻松找出Android App界面卡顿元凶"", 《HTTPS://WWW.JIANSHU.COM/P/CD7FC77405AC》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900520A (en) * 2018-07-11 2018-11-27 广州虎牙信息科技有限公司 Live streaming Caton factor determines method, apparatus, server and storage medium
CN108900520B (en) * 2018-07-11 2021-04-20 广州虎牙信息科技有限公司 Live broadcast card pause factor determination method and device, server and storage medium
CN109840189A (en) * 2018-12-15 2019-06-04 中国平安人寿保险股份有限公司 Caton formation gathering method, device, computer installation and readable storage medium storing program for executing
CN110868622A (en) * 2019-10-30 2020-03-06 北京奇艺世纪科技有限公司 Canton analysis method and device, electronic equipment and storage medium
CN110868622B (en) * 2019-10-30 2022-03-04 北京奇艺世纪科技有限公司 Canton analysis method and device, electronic equipment and storage medium
CN111045926A (en) * 2019-11-05 2020-04-21 北京字节跳动网络技术有限公司 Application program jamming detection method, device, medium and electronic equipment
CN111045926B (en) * 2019-11-05 2023-04-14 北京字节跳动网络技术有限公司 Application program jamming detection method, device, medium and electronic equipment
CN112423096A (en) * 2020-11-03 2021-02-26 上海哔哩哔哩科技有限公司 Playing optimization method and system

Similar Documents

Publication Publication Date Title
CN108108303A (en) A kind of application program interim card test method, relevant device and computer storage media
US7415444B2 (en) Determining compliance rates for probabilistic requests
CN108228463B (en) Method and device for detecting first screen time
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN108170600A (en) The coverage rate statistical method of front-end code test, apparatus and system
CN107038120A (en) A kind of method for testing software and equipment
CN109800152A (en) A kind of automated testing method and terminal device
CN110322375A (en) Online interview wire examination method, device, medium and electronic equipment
CN112199261A (en) Application program performance analysis method and device and electronic equipment
CN109471787B (en) Software quality evaluation method and device, storage medium and electronic equipment
CN110083506A (en) The method and device of cluster resource amount optimization
CN111127223B (en) Insurance product testing method, insurance product testing device and storage medium
CN111402000B (en) Service page generation method, device and system and computer system
CN109697166B (en) Test data preparation method and related device
CN111581915A (en) Project task management method, platform, electronic equipment and storage medium
CN110866492B (en) Baseline branch identification method and device and computer system
CN107678967B (en) Unit test coverage rate generation method and device, readable storage medium and equipment
CN115543435A (en) Software development quality measuring method, device and equipment based on development contribution value
CN111538652B (en) Application control testing method and related equipment
CN106294104B (en) Test case execution method and mobile terminal
CN114302207A (en) Bullet screen display method, device, system, equipment and storage medium
CN106020839B (en) A kind of display methods of test data, exploitation terminal and graphic user interface
JP2010217862A (en) Electronic learning monitoring method and system
CN112905432B (en) Performance test method, device, storage medium and terminal
CN111240652A (en) Data processing method and device, computer storage medium and electronic equipment

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: 20180601

RJ01 Rejection of invention patent application after publication