CN109062793A - A kind of test method, device and the electronic equipment of idler wheel control - Google Patents

A kind of test method, device and the electronic equipment of idler wheel control Download PDF

Info

Publication number
CN109062793A
CN109062793A CN201810812530.4A CN201810812530A CN109062793A CN 109062793 A CN109062793 A CN 109062793A CN 201810812530 A CN201810812530 A CN 201810812530A CN 109062793 A CN109062793 A CN 109062793A
Authority
CN
China
Prior art keywords
idler wheel
wheel control
tested
target
test zone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810812530.4A
Other languages
Chinese (zh)
Other versions
CN109062793B (en
Inventor
戴亦斌
程明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Testin Information Technology Co Ltd
Original Assignee
Guangzhou Cloud Information 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 Guangzhou Cloud Information Technology Co Ltd filed Critical Guangzhou Cloud Information Technology Co Ltd
Priority to CN201810812530.4A priority Critical patent/CN109062793B/en
Publication of CN109062793A publication Critical patent/CN109062793A/en
Application granted granted Critical
Publication of CN109062793B publication Critical patent/CN109062793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

This application discloses test method, device and its electronic equipment of a kind of idler wheel control, for solving the problems, such as to need to expend more resource to the test of miscellaneous idler wheel in the prior art and efficiency is lower.The described method includes: obtaining target idler wheel control, the target idler wheel control includes idler wheel control to be tested;Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;Based on the rotating direction and the rolling amplitude, the idler wheel control to be tested is tested on the test zone.

Description

A kind of test method, device and the electronic equipment of idler wheel control
Technical field
This application involves field of computer technology more particularly to a kind of test method, device and the electronics of idler wheel control to set It is standby.
Background technique
With the fast development of computer technology, official's application program, system included application program and various open sources Exponentially type increases the quantity of application program, and the type of used idler wheel control is also many in these application programs.
However, in the prior art, for the idler wheel control of each type, requiring the interface by idler wheel control type And specific test program is just able to achieve the test to such idler wheel control.
Obviously, the above-mentioned prior art needs to expend a large amount of resource, and efficiency to the test of multiple types idler wheel control It is very low.Therefore, it is badly in need of the test method of a kind of pair of idler wheel control to improve the testing efficiency of idler wheel control.
Summary of the invention
The embodiment of the present application provides test method, device and the electronic equipment of a kind of idler wheel control, to solve existing skill The test method of idler wheel control in art needs to expend a large amount of resource, and the problem of inefficiency.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, proposing a kind of test method of idler wheel control, comprising:
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, on the test zone to the idler wheel control to be tested into Row test.
Second aspect proposes a kind of test device of idler wheel control, comprising:
Acquiring unit, for obtaining target idler wheel control, the target idler wheel control includes idler wheel control to be tested;
Determination unit, for determining rotating direction in the target idler wheel control, rolling amplitude and test zone;
Test cell, for be based on the rotating direction and the rolling amplitude, on the test zone to it is described to Test idler wheel control is tested.
The third aspect proposes a kind of electronic equipment, which includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed It manages device and executes following operation:
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, on the test zone to the idler wheel control to be tested into Row test.
Fourth aspect proposes a kind of computer readable storage medium, the computer-readable recording medium storage one Or multiple programs, one or more of programs are when the electronic equipment for being included multiple application programs executes, so that the electricity Sub- equipment executes following operation:
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, on the test zone to the idler wheel control to be tested into Row test.
The embodiment of the present application at least can achieve following technical effects by adopting the above technical scheme:
The embodiment of the present invention can obtain including idler wheel control to be tested the idler wheel control of any one type first Then the target idler wheel control of part determines rotating direction in the target idler wheel control, rolls amplitude and test zone, last energy Enough based on rotating direction and rolling amplitude, idler wheel control to be tested is tested on test zone, to be various types Idler wheel components testing a kind of general test method is provided, do not need idler wheel control to be tested and specific interface be provided, It is not necessary to which the idler wheel control for each type separately designs test program, a large amount of resource is on the one hand saved, it is another Aspect also improves the testing efficiency of idler wheel control.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of implementation process schematic diagram of the test method for idler wheel control that this specification one embodiment provides;
Fig. 2 is the schematic diagram for two kinds of idler wheel controls that this specification one embodiment provides;
Fig. 3 is that the test method for the idler wheel control that this specification one embodiment provides applies the process in actual scene Schematic diagram;
Fig. 4 is a kind of structural schematic diagram of the test device for idler wheel control that this specification one embodiment provides;
Fig. 5 is the structural schematic diagram for the electronic equipment that this specification one embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
To solve the problems, such as to need to expend more resource and efficiency is lower to the test of miscellaneous idler wheel in the prior art, This specification embodiment provides a kind of test method of idler wheel control.The test side for the idler wheel control that this specification embodiment provides The executing subject of method, which can be, but not limited to test terminal etc., can be configured as executing this method survey provided in an embodiment of the present invention Trial assembly at least one of is set.
For ease of description, hereafter executing subject in this way is to be able to carry out for the test device of this method, to this The embodiment of method is introduced.It is appreciated that it is that one kind is illustratively said that the executing subject of this method, which is test device, It is bright, it is not construed as the restriction to this method.
As described in the background art, there are many kinds of the classifications of idler wheel control, when testing these idler wheel controls, then The idler wheel control design test script for each classification is needed, and corresponding interface is needed just to be able to achieve to these idler wheel controls The test of part, this is for taking over for the tester of these idler wheel controls, it is clear that workload is very big, and efficiency is very low.In order to This problem is solved, the embodiment of the present invention proposes a kind of test method of general idler wheel control, i.e., for any one type Idler wheel control, the target idler wheel control that can wrap up idler wheel control to be tested can be obtained first, then the target roll It takes turns and determines rotating direction in control, rolls amplitude and test zone, finally based on the rotating direction and the amplitude of rolling, in test section Idler wheel control to be tested is tested on domain.
Specifically, a kind of implementation process of the test method for idler wheel control that this specification one or more embodiment provides Schematic diagram is as shown in Figure 1, comprising:
Step 110, target idler wheel control is obtained, which includes idler wheel control to be tested;
Optionally, due to the terminal device of different model, the display interface size of screen is not also identical, therefore, obtains Target idler wheel control can determine to include idler wheel control to be tested based on the display interface where idler wheel control to be tested first Interface zone;Then, based on the interface zone including idler wheel control to be tested, target idler wheel control, target idler wheel control are obtained Part be include idler wheel control to be tested interface zone minimum control.
It is described in detail below with reference to idler wheel control specific in Fig. 2 (a) to how obtaining target idler wheel control.
It is the schematic diagram of idler wheel control to be tested provided in an embodiment of the present invention as shown in Fig. 2 (a), the packet in Fig. 2 (a) Include idler wheel control 21, idler wheel control 22 to be tested and idler wheel control 23 to be tested to be tested.By taking idler wheel control 21 to be tested as an example, It is to be tested based on this shown in the display situation such as Fig. 2 (a) of idler wheel control 21 to be tested in the display interface of some terminal device Display interface where idler wheel control 21 can then determine minimum interface zone 210 first including idler wheel control 21 to be tested, It may then based on the minimum interface zone 210 including idler wheel control 21 to be tested, obtain corresponding with idler wheel control 21 to be tested Target idler wheel control, i.e., the minimum corresponding idler wheel control of interface zone 210.
The rest may be inferred, can also determine the minimum interface zone 220 including idler wheel control 22 to be tested, with the minimum interface The corresponding idler wheel control in region 220 (target idler wheel control i.e. corresponding with idler wheel control 22 to be tested), and including to be tested The minimum interface zone 230 of idler wheel control 23, corresponding with the minimum interface zone 230 idler wheel control (i.e. with idler wheel to be tested The corresponding target idler wheel control of control 23).
Step 120, rotating direction is determined in target idler wheel control, rolls amplitude and test zone;
Optionally, rotating direction is determined in target idler wheel control, rolls amplitude and test zone, can specifically be based on mesh The rotating direction for marking idler wheel control, determines rotating direction;The area of interface zone based on target idler wheel control determines and rolls width Degree;And the text based on target idler wheel control can recognize region, determine test zone.
Under normal conditions, the rotating direction of idler wheel control may include two kinds of directions of horizontal rolling and vertical scrolling.With Fig. 2 (a) for the idler wheel control to be tested in, it is clear that the rotating direction of target idler wheel control corresponding with idler wheel control 21 to be tested For vertical direction rolling, then rotating direction can be determined for vertical direction rolling;Interface zone based on target idler wheel control Area, specifically then can be based on the vertical width size of interface zone 210, to determine rolling amplitude, it is assumed that determine each rolling Dynamic amplitude is the vertical width a of scroll box 211 shown in Fig. 2 (a), i.e., the distance length once rolled, it should be appreciated that the rolling amplitude Numerical value answer suitable size, can by repeatedly test to determine;And region can recognize based on the text of target idler wheel control, then may be used To determine test zone, it is assumed that the text of target idler wheel control can recognize that region is scroll box 211, then can then determine rolling Interface zone where frame 211 is test zone.
And if idler wheel control to be tested is horizontal direction rolling, can determine the rolling square of corresponding target idler wheel control To also be horizontal direction roll, and then can determine rotating direction be horizontal direction roll;And the boundary based on target idler wheel control The area in face region specifically then can determine rolling width based on the horizontal width size of the interface zone of target idler wheel control Degree;Text based on target idler wheel control can recognize region, then can determine test zone, it is assumed that in idler wheel control to be tested only Having the centre of the idler wheel control to be tested to highlight region is that text can recognize region, then can determine the idler wheel control to be tested It is test zone that the centre of part, which highlights region,.
It should be noted that idler wheel control to be tested text can recognize region also may include it is multiple, then in order to mention High testing efficiency then can accordingly determine multiple test zones, the idler wheel control to be tested by taking Fig. 2 (b) as an example, in Fig. 2 (b) The text of 24 corresponding target idler wheel controls can recognize that region includes the region where " 7 ", " 8 " and " 9 " three numbers, then base It can recognize region in the text of the corresponding target idler wheel control of idler wheel control 24 to be tested, then can determine three test zones, That is test zone 241, test zone 242 shown in Fig. 2 (b) and test zone 243.During actual test, idler wheel to be measured Control 24 is every to be rolled once, then three numerical value in available corresponding three test zones, can quickly determine in this way Whether will appear default desired value in the idler wheel control 24 to be tested, to greatly improve testing efficiency.
In addition, above-mentioned rolling amplitude can also be characterized with rolling speed, it can be based on the interface area of target idler wheel control The area in domain determines its rolling speed.By taking the interface zone 210 of target idler wheel control as an example, due to the rolling of target idler wheel control Dynamic direction is vertical scrolling, then its rolling speed, rolling speed tool can be determined according to the interfacial level of interface zone 210 The determination of body numerical value can according to the actual situation depending on, should not be too large, rolling speed is excessive, then be likely difficult to control its rolling, Test result is influenced, also unsuitable too small, rolling speed is too small, will affect testing efficiency.
Step 130, based on rotating direction and rolling amplitude, idler wheel control to be tested is tested on test zone.
Optionally, it is based on rotating direction and the rolling amplitude, idler wheel control to be tested is surveyed on test zone Examination, specifically can be with firstly, obtaining default desired value, which be to be worth included in idler wheel control to be tested, with Fig. 2 (a) for the idler wheel control 21 to be tested in, the value which is included is 1~12, then default expectation Value can be a numerical value in 1~12;Then, idler wheel control to be tested is rolled according to rotating direction and rolling amplitude Operation;The value of test zone appearance when idler wheel control to be tested carries out scroll operation is obtained again;Finally, based on default expectation The value of value and the test zone appearance when idler wheel control to be tested carries out scroll operation, surveys idler wheel control to be tested Examination.
In the following, for the idler wheel control 21 to be tested shown in Fig. 2 (a), according to rotating direction and amplitude is rolled to above-mentioned Scroll operation is carried out to idler wheel control to be tested to be described in detail.By the rotating direction of the idler wheel control to be tested in Fig. 2 (a) It is found that its rotating direction is vertical scrolling, it is assumed that set rolling amplitude is a, then according to rotating direction and rolling amplitude pair Idler wheel control 21 to be tested carries out scroll operation, specifically then can be according to vertical scrolling direction and rolls amplitude a to be tested Idler wheel control 21 carries out scroll operation, that is, so that scroll control to be tested 21 is rolled in vertical direction, and rolls every time Amplitude be all a.
Optionally, the appearance when idler wheel control to be tested carries out scroll operation based on default desired value and test zone Value, idler wheel control to be tested is tested, including following two situation: situation 1, if in preset time period in test zone There is default desired value, then the default corresponding control of desired value is set;Situation 2, if not going out in test zone in preset time period Desired value is now preset, then reports error message.It should be understood that the preset time period can pass through timer during actual test To preset.
Optionally, for situation 1, if occurring default desired value in preset time period in test zone, be set the default phase Prestige is worth corresponding control, comprising: if occurring default desired value in preset time period in test zone, clicks default desired value pair The control answered, so that the default corresponding control of desired value is rolled to the central location of target area, wherein target area is test Text identification region in region.Due to may there is also during actual test, in target area default desired value with Outer other values can then click the corresponding control of default desired value in order to which the corresponding control of default desired value is more accurately arranged Part, so that the default corresponding control of desired value is rolled to the central location of target area.
And for situation 2, due to not occurring default desired value in preset time period in test zone, then it represents that the default phase Prestige is worth corresponding control and is likely to occur some problems, such as corresponding data structure in the program of entire idler wheel control to be tested The problems such as missing, alternatively, amplitude is excessive or preset time period is too small and is not rolled to the default desired value due to rolling.And Which kind of either above-mentioned reason and lead to do not occur default desired value in preset time period in test zone, report mistake letter Breath, for further checking whether the default corresponding control of desired value goes wrong.
Optionally, the value for obtaining test zone appearance when idler wheel control to be tested carries out scroll operation, specifically can be with base In default recognition methods, the value of test zone appearance when idler wheel control to be tested carries out scroll operation is obtained;Wherein, it presets and knows Other method includes at least optical character identification (Optical Character Recognition, OCR), image recognition and control One of recognition methods.Wherein control recognition methods includes UIAutomator and Robotium.
Below with reference to Fig. 2 (a) and Fig. 3, it is situated between in detail to the test method of idler wheel control provided in an embodiment of the present invention It continues.The test method for being illustrated in figure 3 idler wheel control provided in an embodiment of the present invention applies the process in actual scene to illustrate Figure, including following key steps:
Step 31, the minimum control that can wrap up idler wheel control to be tested is obtained;
It is available to wrap up idler wheel control 21 to be tested for idler wheel control 21 to be tested as shown in Fig. 2 (a) Minimum control, the i.e. corresponding control of interface zone 210.
Step 32, scroll box is outlined in minimum control;
Scroll box 211 is outlined in the corresponding control of minimum control, that is, interface zone 210, wherein the width a of scroll box 211 It then can be rolling amplitude, and rotating direction is vertical direction rolling, the interface zone where the scroll box 211, that is, described above Test zone.
Step 33, idler wheel control to be tested is rolled based on scroll box;
Scroll control 21 to be tested is rolled based on scroll box 211, that is, so that idler wheel control 21 to be tested is in vertical direction It rolls, and rolling amplitude every time is a.
Step 34, all texts occurred in scroll box are identified;
When scroll control 21 to be tested carries out scroll operation every time, it will appear numerical value in scroll box 211, at this point, can To identify the numerical value occurred in scroll box 211 by least one of OCR, image recognition and control recognition methods.
Step 35, judge whether occur default desired value in scroll box, however, it is determined that occur default desired value in scroll box, then Step 36 is executed, it is no to then follow the steps 37;
Assuming that default desired value is 12 in 1~12, then it may determine that whether scroll box 211 the default desired value occurs 12, however, it is determined that occur the default desired value 12 in scroll box, thens follow the steps 36, and if it is determined that not occurring in scroll box 211 The default desired value 12, then continue to execute step 37.
Step 36, the default corresponding control of desired value is set;
In order to which the corresponding control of default desired value is more accurately arranged, then the corresponding control of default desired value can be clicked, So that presetting the central location that the corresponding control of desired value is rolled to target area, i.e., in the text identification region in scroll box Entreat position.
Step 37, judging whether to be more than preset time period, section then tests end and returns to error message when the preset time is exceeded, If being not above preset time period, 33 are thened follow the steps.
Section when the preset time is exceeded then shows that the default phase does not occur in scroll box (i.e. test zone) in the preset time period Prestige value then may be in this case since to preset desired value scarce in the corresponding program code of the control to be tested for this It loses, needs to return to error message, so that whether developer or tester inquire the corresponding program code of control to be tested There are some problems.And if be not above preset time period, can with return step 33, continue based on scroll box roll it is to be tested Idler wheel control, to determine in scroll box (i.e. test zone) default desired value whether occur.
The embodiment of the present invention can obtain including idler wheel control to be tested the idler wheel control of any one type first Then the target idler wheel control of part determines rotating direction in the target idler wheel control, rolls amplitude and test zone, last energy Enough based on rotating direction and rolling amplitude, idler wheel control to be tested is tested on test zone, to be various types Idler wheel components testing a kind of general test method is provided, do not need idler wheel control to be tested and specific interface be provided, It is not necessary to which the idler wheel control for each type separately designs test program, a large amount of resource is on the one hand saved, it is another Aspect also improves the testing efficiency of idler wheel control.
The structural schematic diagram of the test device 400 of Fig. 4 idler wheel control.Referring to FIG. 4, in a kind of Software Implementation, The test device 400 of idler wheel control may include acquiring unit 401, determination unit 402, test cell 403, in which:
Acquiring unit 401, for obtaining target idler wheel control, the target idler wheel control includes idler wheel control to be tested;
Determination unit 402, for determining rotating direction in the target idler wheel control, rolling amplitude and test zone;
Test cell 403, for being based on the rotating direction and the rolling amplitude, to described on the test zone Idler wheel control to be tested is tested.
The embodiment of the present invention can obtain packet by acquiring unit 401 first for the idler wheel control of any one type The target idler wheel control of idler wheel control to be tested is included, is then determined and is rolled in the target idler wheel control by determination unit 402 Direction rolls amplitude and test zone, and rotating direction can be finally based on by test cell 403 and rolls amplitude, is being tested Idler wheel control to be tested is tested on region, to provide a kind of general test for various types of idler wheel components testings Method does not need idler wheel control to be tested and provides specific interface, It is not necessary to be directed to the idler wheel control of each type yet Test program is separately designed, a large amount of resource is on the one hand saved, on the other hand also improves the testing efficiency of idler wheel control.
Optionally, in one embodiment, the acquiring unit 401, is used for:
Based on the display interface where the idler wheel control to be tested, the interface including the idler wheel control to be tested is determined Region;
Based on the interface zone including the idler wheel control to be tested, the target idler wheel control, the mesh are obtained Mark idler wheel control be include the idler wheel control to be tested interface zone minimum control.
Optionally, in one embodiment, the determination unit 402, is used for:
Based on the idler wheel direction of the target idler wheel control, the rotating direction is determined;
The area of interface zone based on the target idler wheel control determines the rolling amplitude;
Text based on the target idler wheel control can recognize region, determine the test zone.
Optionally, in one embodiment, the test cell 403, is used for:
Obtain default desired value;
Scroll operation is carried out to the idler wheel control to be tested according to the rotating direction and the rolling amplitude;
Obtain the value of test zone appearance when the idler wheel control to be tested carries out scroll operation;
Based on the default desired value and the test zone when the idler wheel control to be tested carries out scroll operation The value of appearance tests the idler wheel control to be tested.
Optionally, in one embodiment, the test cell 403, is used for:
If occurring the default desired value in preset time period in the test zone, the default desired value pair is set The control answered;
If not occurring the default desired value in preset time period in the test zone, error message is reported.
Optionally, in one embodiment, the test cell 403, is used for:
If occurring the default desired value in preset time period in the test zone, the default desired value pair is clicked The control answered, so that the corresponding control of the default desired value is rolled to the central location of target area, wherein the target area Domain is the text identification region in the test zone.
Optionally, in one embodiment, the test cell 403, is used for:
Based on default recognition methods, obtains the test zone and go out when the idler wheel control to be tested carries out scroll operation Existing value;
Wherein, the default recognition methods includes at least optical character identification OCR identification, image recognition and control identification side One of method.
The test device 400 of idler wheel control can be realized the test side of the idler wheel control of the embodiment of the method for FIG. 1 to FIG. 3 Method specifically refers to the test method of the idler wheel control of embodiment illustrated in fig. 1, repeats no more.
Fig. 5 is the structural schematic diagram for the electronic equipment that one embodiment of this specification provides.Referring to FIG. 5, in hardware Level, the electronic equipment include processor, optionally further comprising internal bus, network interface, memory.Wherein, memory can It can include memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-easy The property lost memory (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible to Including hardware required for other business.
Processor, network interface and memory can be connected with each other by internal bus, which can be ISA (Industry Standard Architecture, industry standard architecture) bus, PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended Industry Standard Architecture, expanding the industrial standard structure) bus etc..The bus can be divided into address bus, data/address bus, control always Line etc..Only to be indicated with a four-headed arrow in Fig. 5, it is not intended that an only bus or a type of convenient for indicating Bus.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer The test device of idler wheel control is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following behaviour Make:
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, on the test zone to the idler wheel control to be tested into Row test.
The test method of idler wheel control disclosed in the above-mentioned embodiment illustrated in fig. 1 such as this specification can be applied to processor In, or realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.It was realizing Each step of Cheng Zhong, the above method can be complete by the integrated logic circuit of the hardware in processor or the instruction of software form At.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), Network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided Vertical door or transistor logic, discrete hardware components.It may be implemented or execute this specification one or more embodiment In disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to Any conventional processor etc..The step of method in conjunction with disclosed in this specification one or more embodiment, can directly embody Execute completion for hardware decoding processor, or in decoding processor hardware and software module combination execute completion.Software Module can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable storage In the storage medium of this fields such as device, register maturation.The storage medium is located at memory, and processor reads the letter in memory Breath, in conjunction with the step of its hardware completion above method.
The electronic equipment can also carry out the test method of the idler wheel control of FIG. 1 to FIG. 3, and details are not described herein for this specification.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of this specification, such as Logical device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each Logic unit is also possible to hardware or logical device.
In short, being not intended to limit the protection of this specification the foregoing is merely the preferred embodiment of this specification Range.With within principle, made any modification, changes equivalent replacement all spirit in this specification one or more embodiment Into etc., it should be included within the protection scope of this specification one or more embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.

Claims (10)

1. a kind of test method of idler wheel control characterized by comprising
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, the idler wheel control to be tested is surveyed on the test zone Examination.
2. the method as described in claim 1, which is characterized in that obtain target idler wheel control, comprising:
Based on the display interface where the idler wheel control to be tested, the interface area including the idler wheel control to be tested is determined Domain;
Based on the interface zone including the idler wheel control to be tested, the target idler wheel control, the target rolling are obtained Wheel control be include the idler wheel control to be tested interface zone minimum control.
3. the method as described in claim 1, which is characterized in that determine rotating direction in the target idler wheel control, roll Amplitude and test zone, comprising:
Based on the idler wheel direction of the target idler wheel control, the rotating direction is determined;
The area of interface zone based on the target idler wheel control determines the rolling amplitude;
Text based on the target idler wheel control can recognize region, determine the test zone.
4. method as claimed in any one of claims 1 to 3, which is characterized in that be based on the rotating direction and the rolling width Degree, tests the idler wheel control to be tested on the test zone, comprising:
Obtain default desired value;
Scroll operation is carried out to the idler wheel control to be tested according to the rotating direction and the rolling amplitude;
Obtain the value of test zone appearance when the idler wheel control to be tested carries out scroll operation;
The appearance when the idler wheel control to be tested carries out scroll operation based on the default desired value and the test zone Value, the idler wheel control to be tested is tested.
5. method as claimed in claim 4, which is characterized in that existed based on the default desired value and the test zone The idler wheel control to be tested carries out the value of appearance when scroll operation, tests the idler wheel control to be tested, comprising:
If occurring the default desired value in preset time period in the test zone, it is corresponding that the default desired value is set Control;
If not occurring the default desired value in preset time period in the test zone, error message is reported.
6. method as claimed in claim 5, which is characterized in that if occurring in the test zone in preset time period described pre- If desired value, then the corresponding control of the default desired value is set, comprising:
If occurring the default desired value in preset time period in the test zone, it is corresponding to click the default desired value Control, so that the corresponding control of the default desired value is rolled to the central location of target area, wherein the target area is Text identification region in the test zone.
7. method as claimed in claim 4, which is characterized in that obtain the test zone the idler wheel control to be tested into The value occurred when row scroll operation, comprising:
Based on default recognition methods, test zone appearance when the idler wheel control to be tested carries out scroll operation is obtained Value;
Wherein, the default recognition methods includes at least in optical character identification OCR identification, image recognition and control recognition methods One kind.
8. a kind of test device of idler wheel control characterized by comprising
Acquiring unit, for obtaining target idler wheel control, the target idler wheel control includes idler wheel control to be tested;
Determination unit, for determining rotating direction in the target idler wheel control, rolling amplitude and test zone;
Test cell, for being based on the rotating direction and the rolling amplitude, to described to be tested on the test zone Idler wheel control is tested.
9. a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute following operation:
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, the idler wheel control to be tested is surveyed on the test zone Examination.
10. a kind of computer readable storage medium, the computer-readable recording medium storage one or more program, described one A or multiple programs are when the electronic equipment for being included multiple application programs executes, so that the electronic equipment executes following behaviour Make:
Target idler wheel control is obtained, the target idler wheel control includes idler wheel control to be tested;
Rotating direction is determined in the target idler wheel control, rolls amplitude and test zone;
Based on the rotating direction and the rolling amplitude, the idler wheel control to be tested is surveyed on the test zone Examination.
CN201810812530.4A 2018-07-23 2018-07-23 Test method and device of roller control and electronic equipment Active CN109062793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810812530.4A CN109062793B (en) 2018-07-23 2018-07-23 Test method and device of roller control and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810812530.4A CN109062793B (en) 2018-07-23 2018-07-23 Test method and device of roller control and electronic equipment

Publications (2)

Publication Number Publication Date
CN109062793A true CN109062793A (en) 2018-12-21
CN109062793B CN109062793B (en) 2022-03-04

Family

ID=64836084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810812530.4A Active CN109062793B (en) 2018-07-23 2018-07-23 Test method and device of roller control and electronic equipment

Country Status (1)

Country Link
CN (1) CN109062793B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457219A (en) * 2019-08-08 2019-11-15 中国建设银行股份有限公司 The method and apparatus of selection of time when a kind of test script is recorded
CN110580221A (en) * 2019-08-21 2019-12-17 东软集团股份有限公司 Control testing method and device, storage medium and electronic equipment
CN111813479A (en) * 2020-07-06 2020-10-23 北京飞漫软件技术有限公司 Method and system for constructing roller object

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013138895A1 (en) * 2012-03-22 2013-09-26 Irdeto Canada Corporation Updating software components
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN106547454A (en) * 2015-09-16 2017-03-29 阿里巴巴集团控股有限公司 Display packing and device
CN107220170A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of method of testing, device and electronic equipment
CN108009078A (en) * 2016-11-01 2018-05-08 腾讯科技(深圳)有限公司 A kind of application interface traversal method, system and test equipment
CN108121644A (en) * 2017-12-19 2018-06-05 珠海市君天电子科技有限公司 A kind of test method, device and the electronic equipment of page control performance

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013138895A1 (en) * 2012-03-22 2013-09-26 Irdeto Canada Corporation Updating software components
CN106547454A (en) * 2015-09-16 2017-03-29 阿里巴巴集团控股有限公司 Display packing and device
CN107220170A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 A kind of method of testing, device and electronic equipment
CN106383780A (en) * 2016-09-05 2017-02-08 努比亚技术有限公司 Monkey test method and device
CN108009078A (en) * 2016-11-01 2018-05-08 腾讯科技(深圳)有限公司 A kind of application interface traversal method, system and test equipment
CN108121644A (en) * 2017-12-19 2018-06-05 珠海市君天电子科技有限公司 A kind of test method, device and the electronic equipment of page control performance

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457219A (en) * 2019-08-08 2019-11-15 中国建设银行股份有限公司 The method and apparatus of selection of time when a kind of test script is recorded
WO2021023171A1 (en) * 2019-08-08 2021-02-11 中国建设银行股份有限公司 Method and apparatus for test script recording time selection
CN110580221A (en) * 2019-08-21 2019-12-17 东软集团股份有限公司 Control testing method and device, storage medium and electronic equipment
CN111813479A (en) * 2020-07-06 2020-10-23 北京飞漫软件技术有限公司 Method and system for constructing roller object

Also Published As

Publication number Publication date
CN109062793B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN109062793A (en) A kind of test method, device and the electronic equipment of idler wheel control
CN109544166A (en) A kind of Risk Identification Method and device
CN107133174A (en) Test case code automatically generating device and method
CN109271611B (en) Data verification method and device and electronic equipment
CN109033772A (en) A kind of input method and device of verification information
CN109598414A (en) Risk evaluation model training, methods of risk assessment, device and electronic equipment
CN109858542A (en) A kind of character identifying method and device
CN109740352A (en) A kind of account processing method, device and electronic equipment
CN108550046A (en) A kind of resource and market recommendation method, apparatus and electronic equipment
CN107622008A (en) The traversal method and device of a kind of five application page
CN107239403A (en) A kind of positioning problems method and apparatus
CN108647075A (en) Listview method for refreshing, device and the electronic equipment of five application page
CN110334013A (en) Test method, device and the electronic equipment of decision engine
CN112199268A (en) Software compatibility testing method and electronic equipment
CN110827245A (en) Method and equipment for detecting screen display disconnection
CN109858284A (en) A kind of the acquisition and recording method, apparatus and electronic equipment of evidence
CN109102026A (en) A kind of vehicle image detection method, apparatus and system
CN109753435A (en) A kind of method for testing software and device
US9501390B1 (en) Enhancing automated mobile application testing
CN109828926A (en) It is a kind of to judge whether application interface loads exception, application testing method and device
CN112533060B (en) Video processing method and device
CN108650150A (en) A kind of data verification method and device
CN111863105A (en) Memory cell detection method and memory detection method
CN110020780A (en) The method, apparatus and electronic equipment of information output
CN104932984A (en) Multi-bit flipping detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210716

Address after: 100016 no.4301, No.52 Jiuxianqiao hospital, Chaoyang District, Beijing

Applicant after: BEIJING TESTIN INFORMATION TECHNOLOGY Co.,Ltd.

Address before: Room 2016, building 2, No.8, Fenghuang Third Road, Zhongxin Guangzhou Knowledge City, Guangzhou 510260, Guangdong Province

Applicant before: GUANGZHOU TESTIN INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant