[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109324967A - The method, apparatus and terminal device of application program pop-up components testing - Google Patents

The method, apparatus and terminal device of application program pop-up components testing Download PDF

Info

Publication number
CN109324967A
CN109324967A CN201811122147.2A CN201811122147A CN109324967A CN 109324967 A CN109324967 A CN 109324967A CN 201811122147 A CN201811122147 A CN 201811122147A CN 109324967 A CN109324967 A CN 109324967A
Authority
CN
China
Prior art keywords
test
pop
image
control
result
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
CN201811122147.2A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811122147.2A priority Critical patent/CN109324967A/en
Publication of CN109324967A publication Critical patent/CN109324967A/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/3684Test management for test design, e.g. generating new test cases
    • 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/3692Test management for test results analysis

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)
  • Debugging And Monitoring (AREA)

Abstract

The present invention is suitable for the field of test technology, provides the method, apparatus and terminal device of a kind of application program pop-up components testing, which comprises during testing application program, synchronous recording test process obtains the record result of test process;According to the flow nodes of the record result positioning pop-up control;The flow nodes include the precondition and response operation of pop-up control;Obtain the test case of the pop-up control generated according to the flow nodes;The application program is run on multiple equipment under tests or analog machine with different operating system, and executes the test case, obtains the test result of corresponding different operating system;By comparing the test result of different operating system, test report is generated.The present invention improves the efficiency of pop-up components testing.

Description

The method, apparatus and terminal device of application program pop-up components testing
Technical field
The invention belongs to the method, apparatus of the field of test technology more particularly to a kind of application program pop-up components testing and Terminal device.
Background technique
Due to various differences of system architecture, developing instrument and development scheme, for identical function when exploitation, Different operating system can do different processing to pop-up control, lead to user when in use and will appear all kinds of compatibility issues, sternly Process even initiator collapse can be hindered when weight, when test needs to put into great effort and goes the such process of manual test, tests Inefficiency.
Summary of the invention
In view of this, the embodiment of the invention provides the method, apparatus and terminal of a kind of application program pop-up components testing Equipment, to solve the problems, such as that prior art pop-up components testing is inefficient.
The first aspect of the embodiment of the present invention provides a kind of method of application program pop-up components testing, comprising:
During testing application program, synchronous recording test process obtains the record result of test process;
According to the flow nodes of the record result positioning pop-up control;The flow nodes include the preposition of pop-up control Condition and response operation;
Obtain the test case of the pop-up control generated according to the flow nodes;
The application program is run on multiple equipment under tests or analog machine with different operating system, and described in execution Test case obtains the test result of corresponding different operating system;
By comparing the test result of different operating system, test report is generated.
The second aspect of the embodiment of the present invention provides a kind of device of application program pop-up components testing, comprising:
Logging modle, during testing application program, synchronous recording test process obtains test process Record result;
Locating module, for the flow nodes according to the record result positioning pop-up control;The flow nodes include The precondition and response operation of pop-up control;
Module is obtained, for obtaining the test case of the pop-up control generated according to the flow nodes;
Test module, it is described using journey for being run on multiple equipment under tests or analog machine with different operating system Sequence, and the test case is executed, obtain the test result of corresponding different operating system;
Generation module generates test report for the test result by comparing different operating system
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit The computer program that can be run on the processor is stored in reservoir, when the processor executes the computer program, Realize following steps:
During testing application program, synchronous recording test process obtains the record result of test process;
According to the flow nodes of the record result positioning pop-up control;The flow nodes include the preposition of pop-up control Condition and response operation;
Obtain the test case of the pop-up control generated according to the flow nodes;
The application program is run on multiple equipment under tests or analog machine with different operating system, and described in execution Test case obtains the test result of corresponding different operating system;
By comparing the test result of different operating system, test report is generated.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
During testing application program, synchronous recording test process obtains the record result of test process;
According to the flow nodes of the record result positioning pop-up control;The flow nodes include the preposition of pop-up control Condition and response operation;
Obtain the test case of the pop-up control generated according to the flow nodes;
The application program is run on multiple equipment under tests or analog machine with different operating system, and described in execution Test case obtains the test result of corresponding different operating system;
By comparing the test result of different operating system, test report is generated.
In the embodiment of the present invention, by the way that in the test process of application program, record test process is recorded as a result, root Flow nodes are fed back to software developer, so that software is opened by the flow nodes that pop-up control is oriented according to record result The scene information that originator learns pop-up control according to the flow nodes obtains software in terminal device and opens to generate test case After originator uploads or is input to the test case of terminal device, then the implementation of test cases in different systems, obtain test knot Fruit obtains the test result of system compatibility by the test result of automatic comparison not homologous ray, by by certain testing process Automation, improves testing efficiency.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the method for application program pop-up components testing provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart of the method for another application program pop-up components testing provided in an embodiment of the present invention;
Fig. 3 is the implementation flow chart of the method for another application program pop-up components testing provided in an embodiment of the present invention;
Fig. 4 is the implementation flow chart of the method for another application program pop-up components testing provided in an embodiment of the present invention;
Fig. 5 is the implementation flow chart of the method for another application program pop-up components testing provided in an embodiment of the present invention;
Fig. 6 is a kind of structural block diagram of the device of application program pop-up components testing provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
If in addition, the description for being related to " first " or " second " etc. in the present invention is used for description purposes only, and cannot understand For its relative importance of indication or suggestion or implicitly indicate the quantity of indicated technical characteristic." first " is defined as a result, Or the feature of " second " etc. can explicitly or implicitly include at least one of the features.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the method for application program pop-up components testing provided in an embodiment of the present invention, the party Method process includes step S101 to S105.This method is suitable for the situation that window control tested of being hit by a bullet to not homologous ray.The party Method is executed by the device of application program pop-up components testing, and the device of the application program pop-up components testing is configured at terminal and sets It is standby, it can be implemented by software and/or hardware.The specific implementation principle of each step is as follows.
S101, during testing application program, synchronous recording test process obtains the record knot of test process Fruit.
Wherein, the application program of the embodiment of the present invention can include but is not limited to client application and page application journey Sequence.Page application includes the page application based on the HTML5 page.
Program test can be carried out by the way of manual hand manipulation by testing application program, can also be using certainly Dynamic testing process carries out program test.While carrying out Application testing, test process is carried out using array control Record obtains the record of test process as a result, in subsequent steps according to pop-up in record result positioning application program The flow nodes of control.
It should be noted that the open control that can use many open sources or encapsulation completion is gone in application development Certain function is realized, for example, video playing, arouses alarm clock etc..Bullet used in the referred to application program of the embodiment of the present invention Window control, i.e. prompting frame.
S102, according to the flow nodes of the record result positioning pop-up control.
Wherein, the flow nodes of pop-up control include the precondition and response operation of pop-up control.
It is completed in step 101 and application is tested, obtain the process of record result.Include in record result The flow nodes of pop-up control, to get precondition and response operation that each pop-up control of application program occurs.Base In this, software developer determines the scene information of pop-up control according to the flow nodes, to generate the survey of pop-up control Example on probation.
Precondition refers to system level to the decision logic of one pop-up control of pop-up.For example, setting user's access Five A systems cannot visit again B system, this is the decision logic of a system level.
Response operation is that application program pops up user's operation required when a pop-up control.For example, user is clicking After five A buttons, returns to menu and click B button again, popped up prompting frame.
S103 obtains the test case of the pop-up control generated according to the flow nodes.
Wherein, the flow nodes of pop-up control have been obtained in step 102, so that software developer is according to process section Point obtains the scene information of pop-up control, to generate the test case of pop-up control based on scene information, software developer will Test case uploads or is input to terminal device, and the test that terminal device obtains the pop-up control generated according to flow nodes is used Example, and then execute the test case.
S104 runs the application program on multiple equipment under tests or analog machine with different operating system, and holds The row test case obtains the test result of corresponding different operating system.
Wherein, operating system includes Android, Saipan and IOS operating system.The present invention can be equipped with inspection software And application program to be detected is run in the equipment under test with different operating system;It is also possible to lead application program to be detected Enter equipped with simulator computer in, for example, in a computer install mobile phone simulator, mobile phone simulator include based on Android, The mobile phone simulator of IOS and Saipan system.
After running application program, by running application program described in testing case in different operating system Pop-up control, obtain test result in not homologous ray.
S105 generates test report by comparing the test result of different operating system.
Wherein, the test result for obtaining different operating system compares the test result of different operating system, generates pop-up control The test report of part.
Test report includes difference and compatibility results that pop-up control occurs on not homologous ray.It include: precondition It is whether effective with response operation, the display position of prompting frame whether consistent, display interface whether normal, good compatibility or difference etc..
The test result for obtaining different operating system includes: acquisition system log, uses logging.getLogger language Sentence positions the operating condition and feedback of system during each pop-up control occurs from system log.To described in positioning The problem of pop-up control.
In the embodiment of the present invention, by the way that in the test process of application program, record test process is recorded as a result, root Flow nodes are fed back to software developer, so that software is opened by the flow nodes that pop-up control is oriented according to record result The scene information that originator learns pop-up control according to the flow nodes obtains software in terminal device and opens to generate test case After originator uploads or is input to the test case of terminal device, then the implementation of test cases in different systems, obtain test knot Fruit obtains the test result of system compatibility by the test result of automatic comparison not homologous ray, by by certain testing process Automation, improves testing efficiency.
Fig. 2 shows the implementation process of the method for another application program pop-up components testing provided by the invention, the party Method process includes step S201 to S206.Embodiment illustrated in fig. 2 is further changing of making on the basis of embodiment shown in Fig. 1 Into.It should be noted that step 201 is to the step 101 of step 203 and embodiment illustrated in fig. 1 to step in embodiments of the present invention Rapid 103 is identical, and details are not described herein again.
As shown in Fig. 2, step 104, on multiple equipment under tests or analog machine with different operating system described in operation Application program, and the test case is executed, obtain the test result of corresponding different operating system, comprising: S204, in multiple tools Have and run the application program on the equipment under test or analog machine of different operating system, and while implementation of test cases, it is right The process of implementation of test cases carries out video recording or screenshot, obtains the test image of corresponding different operating system.
Correspondingly, by comparing the test result of different operating system, generating test report in step 105, comprising:
S205, obtaining respectively from the corresponding test image of two different operating systems includes the first of pop-up control Image and the second image;
Acquisition comparison result is compared in the first image and second image by S206, and generation is compared with described As a result corresponding test report.
In the embodiment of the present invention, while implementation of test cases, the process of implementation of test cases is recorded a video or cut Figure, thus record user be how to operate with pop up prompting frame and prompting frame be how to guide user go operation, it is easier to after Continuous analysis, obtains test result.
The first image of pop-up control and the second image to occur during any two not homologous ray implementation of test cases It compares, if there are larger differences or entirely different for the first image and the second image, illustrates the simultaneous of the pop-up control Capacitive is abnormal;If the first image and the second image are substantially or entirely identical, illustrate that the compatibility of the pop-up control is normal.
As an embodiment of the present invention, as shown in figure 3, step 206 includes step 2061 to 2063.
The parameter of first image and the second image is compared acquisition comparison result by S2061.
Wherein, parameter is specifically as follows the parameter of the first image and the second image, or the first image and the second figure The parameter of pop-up control as in.
The parameter of first image and the second image can include but is not limited to committed memory size, picture size and color Deng;The parameter of pop-up control can include but is not limited to display position, size, committed memory size and color etc..
S2062 generates the normal test report of compatibility of pop-up control if the comparison result meets preset condition It accuses;
S2063 generates the test report of the compatibility sexual abnormality of pop-up control if the comparison result is unsatisfactory for preset condition It accuses.
Wherein, the first image and second of pop-up control will occur during any two not homologous ray implementation of test cases The parameter of image compares, if the parameter comparison result of the first image and the second image meets preset condition, illustrates this The compatibility of pop-up control is normal;If the parameter comparison result of the first image and the second image is unsatisfactory for preset condition, say The compatibility sexual abnormality of the bright pop-up control.
As another embodiment of the present invention, as shown in figure 4, step 206 includes step 2064 to 2066.
S2064 obtains the first parameter of the first image and the second parameter of the second image respectively, by the first parameter and second Parameter is compared, and generates the first comparison result.
S2065 generates the detection of the compatibility sexual abnormality of pop-up control if the first comparison result is greater than the first preset threshold As a result.
S2066, if the first comparison result is less than or equal to the first preset threshold, the compatibility for generating pop-up control is normal Testing result.
Wherein, the first parameter and the second parameter can be the single parameter information of prompting frame in image, such as height, width Parameter information, or by the information after the integrated treatment of multiple parameters information.First preset threshold specifically can be according to reality The detection accuracy on border is arranged.It is understood that the second of the first parameter and the second image that obtain the first image respectively Before parameter, further include the steps that the prompting frame for identifying the first image and the second image, to mention in subsequent acquisition figure The step of showing the parameter of frame.
For example, the first parameter can specifically include but be not limited to the height of prompting frame in the first image, mentions in the first image Show the width of frame and the size etc. of the first image occupancy memory space.Second parameter can specifically include but be not limited to the second image The width of prompting frame and the second image occupy the size etc. of memory space in the height of middle prompting frame, the second image.
In order to more clearly be described, Height (img1) and Height (img2) respectively indicate the first image and second Prompting frame height in image, Width (img1) and Width (img2) respectively indicate the prompt in the first image and the second image Width of frame, Size (img1) and Size (img2) respectively indicate the first image and the second image occupies the size of memory space.
When the first parameter is Height (img1), and the second parameter is Height (img2), when | Height (img1)- Height (img2) | when > H1, i.e. it is default to be greater than first for the height absolute value of the difference of prompting frame in the first image and the second image When threshold value, the testing result of the compatibility sexual abnormality of pop-up control is generated, the first preset threshold is H1.Max (Height can also be worked as (img1), Height (img2))/min (Height (img1), Height (img2)) | > H2, i.e. the first image and the second image It is pre- that the ratio of the middle biggish value of prompting frame height and the lesser value of prompting frame height in the first image and the second image is greater than first If threshold value, the testing result of the compatibility sexual abnormality of pop-up control is generated, the first preset threshold is H2.Conversely, then generating pop-up control The normal testing result of compatibility of part.
When the first parameter is Width (img1), and the second parameter information is Width (img2), when | Width (img1)- Width (img2) | when > W1, the testing result of the compatibility sexual abnormality of pop-up control is generated, the first preset threshold is W1.It can also be with As max (Width (img1), Width (img2))/min (Width (img1), Width (img2)) | when > W2, generate pop-up control The testing result of the compatibility sexual abnormality of part, the first preset threshold are W2.Conversely, the normal inspection of the compatibility for then generating pop-up control Survey result.
When the first parameter information is Size (img1), and the second parameter information is Size (img2), when (| Size (img1)- Size (img2) | > S1 generates the testing result of the compatibility sexual abnormality of pop-up control, and the first preset threshold is S1.It can also work as Max (Size (img1), Size (img2))/min (Size (img1), Size (img2)) | when > S2, generate the simultaneous of pop-up control The testing result of capacitive exception, the first preset threshold are S2.Conversely, the normal detection knot of the compatibility for then generating pop-up control Fruit.
In the embodiment of the present invention, by height, width and the size for occupying memory space as parameter is compared, letter is calculated It is single, it is easy to accomplish.
As another embodiment of the present invention, as shown in figure 5, step 206 includes step 2067 to 2069.
S2067, identifies the region of prompting frame in the first image, and is converted to the first gray level image, obtains the first grayscale image Gray value is less than the quantity of the pixel of default gray value as the first pixel quantity as in;
S2068, identifies the region of prompting frame in the second image, and is converted to the second gray level image, obtains the second grayscale image Gray value is less than the quantity of the pixel of default gray value as the second pixel quantity as in;
First pixel quantity and the second pixel quantity are compared by S2069, generate the second comparison result;
S20610 generates the inspection of the compatibility sexual abnormality of pop-up control if the second comparison result is greater than the second preset threshold Survey result;
S20611 is generating the compatibility of pop-up control just if the second comparison result is less than or equal to the second preset threshold Normal testing result.
In embodiments of the present invention, the region of prompting frame can be equal in the region of prompting frame and the second image in the first image For RGB subgraph, formula can be passed throughRGB subgraph is converted For gray level image, other gradation conversion formula can also be used.
It should be noted that if the first image and the second image sheet as gray level image, then need to only identify the first figure respectively In picture and the second image then the region of prompting frame executes the first ash of acquisition as the first gray level image and the second gray level image again It spends gray value in image and is less than the quantity for the pixel for presetting gray value as in the first pixel quantity, and the second gray level image of acquisition Gray value is less than the step of quantity of the pixel of default gray value is as the second pixel quantity.
It is understood that step 2067 can execute after step 2068, it can also be executed before step 2068, also It can be performed simultaneously with step 2068, the present invention is not specifically limited this time sequence.
The number of pixels that gray value in the first gray level image and the second gray level image is less than default gray value is counted, respectively First pixel quantity pixel (img1) and the second pixel quantity pixel (img2) calculates pixel (img1)-pixel (img2), When | pixel (img1)-pixel (img2) | when > P1, the testing result of the compatibility sexual abnormality of pop-up control is generated, second is default Threshold value is P1;Can also work as | max (pixel (img1), pixel (img2))/min (pixel (img1), pixel (img2)) | When > P2, the second preset threshold is P2, generates the testing result of the compatibility sexual abnormality of pop-up control.Conversely, then generating pop-up control The normal testing result of compatibility of part.
In the embodiment of the present invention, by identifying the prompt frame region in the first image and the second image, be converted to Gray level image is compared, and the accuracy of detection can be improved, decrease calculation amount, improves program operational efficiency, into one Step improves testing efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the method for application program pop-up components testing described in foregoing embodiments, Fig. 6 shows implementation of the present invention The structural block diagram of the device for the application program pop-up components testing that example provides illustrates only and present invention reality for ease of description Apply the relevant part of example.
Referring to Fig. 6, the device of the application program pop-up components testing includes:
Logging modle 61, during testing application program, the acquisition of synchronous recording test process was tested The record result of journey;
Locating module 62, for the flow nodes according to the record result positioning pop-up control;The flow nodes packet Include the precondition and response operation of pop-up control;
Module 63 is obtained, for obtaining the test case of the pop-up control generated according to the flow nodes;
Test module 64, for running the application on multiple equipment under tests or analog machine with different operating system Program, and the test case is executed, obtain the test result of corresponding different operating system;
Generation module 65 generates test report for the test result by comparing different operating system.
Optionally, the test module 64 is specifically used for: in multiple equipment under tests with different operating system or The application program is run on analog machine, and while implementation of test cases, record a video to the process of implementation of test cases Or screenshot, obtain the test image of corresponding different operating system.
Correspondingly, the generation module 65 is specifically used for:
Obtain the first image including pop-up control respectively from the corresponding test image of two different operating systems With the second image;
Acquisition comparison result is compared in the first image and second image, is generated and the comparison result pair The test report answered.
Further, the first image and second image are compared acquisition comparison result, generate with it is described The corresponding test report of comparison result, comprising:
By the way that acquisition comparison result is compared in the first image and second image parameter;The parameter includes The parameter of pop-up control in the parameter or the first image of first image and the second image and the second image;
If the comparison result meets preset condition, the normal test report of compatibility of pop-up control is generated;
If the comparison result is unsatisfactory for preset condition, the test report of the compatibility sexual abnormality of pop-up control is generated.
Further, the first image and second image are compared acquisition comparison result, generate with it is described The corresponding test report of comparison result, comprising:
The first parameter information of the first image and the second parameter information of the second image are obtained respectively, by the first parameter information It is compared with the second parameter information, generates the first comparison result, if the first comparison result is greater than the first preset threshold, generated The testing result of the compatibility sexual abnormality of pop-up control;If the first comparison result is less than or equal to the first preset threshold, bullet is generated The normal testing result of compatibility of window control.
Further, the first image and second image are compared acquisition comparison result, generate with it is described The corresponding test report of comparison result, comprising:
It identifies the region of pop-up control in the first image, and is converted to the first gray level image, obtain in the first gray level image Gray value is less than the quantity of the pixel of default gray value as the first pixel quantity;
It identifies the region of pop-up control in the second image, and is converted to the second gray level image, obtain in the second gray level image Gray value is less than the quantity of the pixel of default gray value as the second pixel quantity;
First pixel quantity and the second pixel quantity are compared, the second comparison result is generated;
If the second comparison result is greater than the second preset threshold, the testing result of the compatibility sexual abnormality of pop-up control is generated;
If the second comparison result is less than or equal to the second preset threshold, the normal detection of compatibility of pop-up control is generated As a result.
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70 Calculation machine program 72, such as the program of application program pop-up components testing.When the processor 70 executes the computer program 72 Realize the step in the embodiment of the method for above-mentioned application program pop-up components testing, such as step S101 to S105 shown in FIG. 1. Alternatively, the processor 70 realizes the function of each module/unit in above-mentioned each Installation practice when executing the computer program 72 Can, such as the function of module 61 to 65 shown in Fig. 6.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be computer, host or server etc..The terminal device 7 may include, but not only limit In processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7 is only the example of terminal device 7, do not constitute Restriction to terminal device 7 may include perhaps combining certain components or different than illustrating more or fewer components Component, such as the terminal device can also include input-output equipment, network access equipment, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7 It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7 Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of application program pop-up components testing characterized by comprising
During testing application program, synchronous recording test process obtains the record result of test process;
According to the flow nodes of the record result positioning pop-up control;The flow nodes include the precondition of pop-up control It is operated with response;
Obtain the test case of the pop-up control generated according to the flow nodes;
The application program is run on multiple equipment under tests or analog machine with different operating system, and executes the test Use-case obtains the test result of corresponding different operating system;
By comparing the test result of different operating system, test report is generated.
2. the method as described in claim 1, which is characterized in that it is described to execute the test case, obtain corresponding different operation The test result of system, comprising: while implementation of test cases, video recording or screenshot are carried out to the process of implementation of test cases, Obtain the test image of corresponding different operating system.
3. method according to claim 2, which is characterized in that the test result by comparing different operating system, it is raw At test report, comprising:
Obtained respectively from the corresponding test image of two different operating systems include pop-up control the first image and the Two images;
Acquisition comparison result is compared in the first image and second image, is generated corresponding with the comparison result Test report.
4. method as claimed in claim 3, which is characterized in that described to compare the first image with second image To comparison result is obtained, test report corresponding with the comparison result is generated, comprising:
By the way that acquisition comparison result is compared in the first image and second image parameter;The parameter includes first The parameter of pop-up control in the parameter or the first image of image and the second image and the second image;
If the comparison result meets preset condition, the normal test report of compatibility of pop-up control is generated;
If the comparison result is unsatisfactory for preset condition, the test report of the compatibility sexual abnormality of pop-up control is generated.
5. method as claimed in claim 3, which is characterized in that described to compare the first image with second image To comparison result is obtained, test report corresponding with the comparison result is generated, comprising:
The first parameter of the first image and the second parameter of the second image are obtained respectively, and the first parameter and the second parameter are compared Compared with the first comparison result of generation;
If the first comparison result is greater than the first preset threshold, the testing result of the compatibility sexual abnormality of pop-up control is generated;
If the first comparison result is less than or equal to the first preset threshold, the normal detection knot of compatibility of pop-up control is generated Fruit.
6. method as claimed in claim 3, which is characterized in that described to compare the first image with second image To comparison result is obtained, test report corresponding with the comparison result is generated, comprising:
It identifies the region of pop-up control in the first image, and is converted to the first gray level image, obtain gray scale in the first gray level image Value is less than the quantity of the pixel of default gray value as the first pixel quantity;
It identifies the region of pop-up control in the second image, and is converted to the second gray level image, obtain gray scale in the second gray level image Value is less than the quantity of the pixel of default gray value as the second pixel quantity;
First pixel quantity and the second pixel quantity are compared, the second comparison result is generated;
If the second comparison result is greater than the second preset threshold, the testing result of the compatibility sexual abnormality of pop-up control is generated;
If the second comparison result is less than or equal to the second preset threshold, the normal detection knot of compatibility of pop-up control is generated Fruit.
7. a kind of device of application program pop-up components testing characterized by comprising
Logging modle, during testing application program, synchronous recording test process obtains the note of test process Record result;
Locating module, for the flow nodes according to the record result positioning pop-up control;The flow nodes include pop-up The precondition and response operation of control;
Module is obtained, for obtaining the test case of the pop-up control generated according to the flow nodes;
Test module, for running the application program on multiple equipment under tests or analog machine with different operating system, And the test case is executed, obtain the test result of corresponding different operating system;
Generation module generates test report for the test result by comparing different operating system.
8. a kind of terminal device, including memory and processor, it is stored with and can transports on the processor in the memory Capable computer program, which is characterized in that when the processor executes the computer program, realize following steps:
During testing application program, synchronous recording test process obtains the record result of test process;
According to the flow nodes of the record result positioning pop-up control;The flow nodes include the precondition of pop-up control It is operated with response;
Obtain the test case of the pop-up control generated according to the flow nodes;
The application program is run on multiple equipment under tests or analog machine with different operating system, and executes the test Use-case obtains the test result of corresponding different operating system;
By comparing the test result of different operating system, test report is generated.
9. method according to claim 8, which is characterized in that it is described to execute the test case, obtain corresponding different operation The test result of system, comprising: while implementation of test cases, video recording or screenshot are carried out to the process of implementation of test cases, Obtain the test image of corresponding different operating system.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201811122147.2A 2018-09-26 2018-09-26 The method, apparatus and terminal device of application program pop-up components testing Pending CN109324967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811122147.2A CN109324967A (en) 2018-09-26 2018-09-26 The method, apparatus and terminal device of application program pop-up components testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811122147.2A CN109324967A (en) 2018-09-26 2018-09-26 The method, apparatus and terminal device of application program pop-up components testing

Publications (1)

Publication Number Publication Date
CN109324967A true CN109324967A (en) 2019-02-12

Family

ID=65265510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811122147.2A Pending CN109324967A (en) 2018-09-26 2018-09-26 The method, apparatus and terminal device of application program pop-up components testing

Country Status (1)

Country Link
CN (1) CN109324967A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902004A (en) * 2019-02-18 2019-06-18 深圳壹账通智能科技有限公司 A kind of test method and device of application program link channel
CN110471855A (en) * 2019-08-21 2019-11-19 小胡杨信息技术(武汉)有限公司 A kind of computer application software test macro and method
CN112130870A (en) * 2020-09-22 2020-12-25 湖南快乐阳光互动娱乐传媒有限公司 Method, device and system for installing test packets

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024434A (en) * 2012-12-20 2013-04-03 广州视源电子科技股份有限公司 Automatic test system based on image matching
CN103546907A (en) * 2012-07-11 2014-01-29 深圳市世纪光速信息技术有限公司 System and method for testing wireless application protocol webpage
CN104424093A (en) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 Compatibility testing method and system
CN104484273A (en) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 Test method for application program, device and system
CN104536888A (en) * 2014-12-24 2015-04-22 网易(杭州)网络有限公司 Game testing method and system for mobile devices
CN105824755A (en) * 2016-03-17 2016-08-03 厦门美图移动科技有限公司 Automation test method, automation test device and mobile terminal
CN105988934A (en) * 2016-02-01 2016-10-05 腾讯科技(深圳)有限公司 Automatic detecting method for mobile game and automatic detecting device for mobile game
CN106095666A (en) * 2016-06-02 2016-11-09 腾讯科技(深圳)有限公司 Game automated testing method and relevant apparatus
US20170097882A1 (en) * 2015-10-06 2017-04-06 Ca, Inc. Generating Tests for Testing Software Applications
CN107025174A (en) * 2017-04-06 2017-08-08 网易(杭州)网络有限公司 For the method for the user interface abnormality test of equipment, device and readable storage media
CN107229560A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 A kind of interface display effect testing method, image specimen page acquisition methods and device
CN107729244A (en) * 2017-10-12 2018-02-23 北京元心科技有限公司 Multi-system testing method and device, mobile terminal and testing equipment
CN107861862A (en) * 2017-06-27 2018-03-30 陆金所(上海)科技服务有限公司 UI automated testing methods, device and computer-readable recording medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546907A (en) * 2012-07-11 2014-01-29 深圳市世纪光速信息技术有限公司 System and method for testing wireless application protocol webpage
CN103024434A (en) * 2012-12-20 2013-04-03 广州视源电子科技股份有限公司 Automatic test system based on image matching
CN104424093A (en) * 2013-08-26 2015-03-18 阿里巴巴集团控股有限公司 Compatibility testing method and system
CN104484273A (en) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 Test method for application program, device and system
CN104536888A (en) * 2014-12-24 2015-04-22 网易(杭州)网络有限公司 Game testing method and system for mobile devices
US20170097882A1 (en) * 2015-10-06 2017-04-06 Ca, Inc. Generating Tests for Testing Software Applications
CN105988934A (en) * 2016-02-01 2016-10-05 腾讯科技(深圳)有限公司 Automatic detecting method for mobile game and automatic detecting device for mobile game
CN105824755A (en) * 2016-03-17 2016-08-03 厦门美图移动科技有限公司 Automation test method, automation test device and mobile terminal
CN107229560A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 A kind of interface display effect testing method, image specimen page acquisition methods and device
CN106095666A (en) * 2016-06-02 2016-11-09 腾讯科技(深圳)有限公司 Game automated testing method and relevant apparatus
CN107025174A (en) * 2017-04-06 2017-08-08 网易(杭州)网络有限公司 For the method for the user interface abnormality test of equipment, device and readable storage media
CN107861862A (en) * 2017-06-27 2018-03-30 陆金所(上海)科技服务有限公司 UI automated testing methods, device and computer-readable recording medium
CN107729244A (en) * 2017-10-12 2018-02-23 北京元心科技有限公司 Multi-system testing method and device, mobile terminal and testing equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
V.K. MAROTHU: "Application of HPLC to assess the compatibility of bisoprolol fumarate with selected excipients in mixtures by isothermal stress testing", ANNALES PHARMACEUTIQUES FRANÇAISES, vol. 73, no. 6 *
首家辉;: "LabVIEW自动弹窗函数设计", 软件导刊, no. 02 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109902004A (en) * 2019-02-18 2019-06-18 深圳壹账通智能科技有限公司 A kind of test method and device of application program link channel
CN110471855A (en) * 2019-08-21 2019-11-19 小胡杨信息技术(武汉)有限公司 A kind of computer application software test macro and method
CN112130870A (en) * 2020-09-22 2020-12-25 湖南快乐阳光互动娱乐传媒有限公司 Method, device and system for installing test packets

Similar Documents

Publication Publication Date Title
CN109670558B (en) Digital image completion using deep learning
US8549478B2 (en) Graphical user interface input element identification
CN111031346B (en) Method and device for enhancing video image quality
CN107025174B (en) Method, device and readable storage medium for user interface anomaly test of equipment
CN109740617A (en) A kind of image detecting method and device
CN109324967A (en) The method, apparatus and terminal device of application program pop-up components testing
WO2019134578A1 (en) Equipment compatibility test method and apparatus, electronic device and medium
US20190034787A1 (en) Relative position encoding based networks for action recognition
CN113901647A (en) Part process rule compiling method and device, storage medium and electronic equipment
CN110427998A (en) Model training, object detection method and device, electronic equipment, storage medium
CN107729885B (en) Face enhancement method based on multiple residual error learning
CN112418305A (en) Training sample generation method and device, computer equipment and storage medium
WO2017095362A1 (en) Generating application flow entities
CN112527676A (en) Model automation test method, device and storage medium
CN110069997B (en) Scene classification method and device and electronic equipment
CN111369557A (en) Image processing method, image processing device, computing equipment and storage medium
CN113516697B (en) Image registration method, device, electronic equipment and computer readable storage medium
JP2020204800A (en) Learning dataset generation system, learning server, and learning dataset generation program
CN111127432B (en) Medical image detection method, device, equipment and storage medium
CN111126566B (en) Abnormal furniture layout data detection method based on GAN model
JP2021089711A (en) Video jitter detection method and apparatus
CN116628250A (en) Image generation method, device, electronic equipment and computer readable storage medium
CN110428377B (en) Data expansion method, device, equipment and medium
CN115035565A (en) Visual cortex imitated multi-scale small target detection method, device and equipment
CN112308074A (en) Method and device for generating thumbnail

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190212

WD01 Invention patent application deemed withdrawn after publication