CN105025140B - Theme is adapted to test method and device - Google Patents
Theme is adapted to test method and device Download PDFInfo
- Publication number
- CN105025140B CN105025140B CN201410181180.8A CN201410181180A CN105025140B CN 105025140 B CN105025140 B CN 105025140B CN 201410181180 A CN201410181180 A CN 201410181180A CN 105025140 B CN105025140 B CN 105025140B
- Authority
- CN
- China
- Prior art keywords
- under test
- equipment under
- theme
- screenshot
- test
- 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.)
- Active
Links
Abstract
The invention discloses a kind of theme adaptation test method and devices, belong to field of computer technology.The described method includes: by theme packet replication to equipment under test;It is instructed to the equipment under test sending application, so that the equipment under test applies the theme automatically;Screenshot instruction is sent to the equipment under test, so that the equipment under test carries out screenshot to the screen, obtains screenshot picture;Uploading instructions are sent to the equipment under test, so that the equipment under test uploads the screenshot picture.The present invention carries out dependent instruction when theme adaptation test by directly inputting in test equipment, obtains screenshot when theme adaptation automatically, completes the test being adapted to theme;Solve in the prior art to each theme carry out adaptation test when, need manually to be tested, lead to the problem that testing efficiency is relatively low;Reach testing efficiency when theme adaptation test can be improved, and reduces the effect of manual testing's cost.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of theme adaptation test method and device.
Background technique
In order to meet user to the individual demand of mobile phone, existing market provides the mobile phone theme of many different styles,
The personalization of mobile phone may be implemented after these themes of application in mobile phone.Since the resolution ratio of mobile phone is more diversified, in order to
Enough themes for guaranteeing publication can adapt to the mobile phone of different resolution, therefore before a theme is issued, it usually needs survey
Try the mobile phone whether theme adapts to different resolution.
During traditional theme is adapted to test, tester is separately mounted to have not firstly the need of by theme packet
With on multiple mobile phones of resolution ratio, each mobile phone can respectively correspond different resolution ratio, for example, correspond respectively to 480*800,
480*854、320*480、720*1280、540*960、1080*1920、800*1280、240*320、720*1184、480*728、
The resolution ratio such as 640*960 allow these mobile phones using the theme, and then tester operates each mobile phone that application has the theme,
Check adaptation effect of the theme on each mobile phone.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: to each theme
When carrying out adaptation test, need manually to install theme packet respectively on each mobile phone with different resolution, then
Adaptation effect is seen on each mobile phone, bigger so as to cause workload, testing efficiency is relatively low.
Summary of the invention
In order to solve in the prior art to each theme carry out adaptation test when, need manually to be tested, lead
The problem for causing testing efficiency relatively low, the embodiment of the invention provides a kind of theme adaptation test method and devices.The technology
Scheme is as follows:
In a first aspect, providing a kind of theme adaptation test method, which comprises
By theme packet replication to equipment under test;
The equipment under test, which is used to indicate, to equipment under test transmission applies theme corresponding to the theme packet automatically
Application instruction, so that the equipment under test applies the theme automatically;
It is sent to the equipment under test and is used to indicate the screenshot instruction that the equipment under test carries out screenshot to screen, with toilet
It states equipment under test and screenshot is carried out to the screen, obtain screenshot picture;
The uploading instructions for being used to indicate the equipment under test and uploading the screenshot picture are sent to the equipment under test, so as to
The equipment under test uploads the screenshot picture.
Second aspect, provides a kind of theme adaptation test device, and described device includes:
Replication module is used for theme packet replication to equipment under test;
Using instruction sending module, institute is applied automatically for being used to indicate the equipment under test to equipment under test transmission
The application instruction of theme corresponding to theme packet is stated, so that the equipment under test applies the theme automatically;
Screenshot instruction sending module carries out screen for being used to indicate the equipment under test to equipment under test transmission
The screenshot of screenshot instructs, so that the equipment under test carries out screenshot to the screen, obtains screenshot picture;
Uploading instructions sending module uploads described cut for being used to indicate the equipment under test to equipment under test transmission
The uploading instructions of figure picture, so that the equipment under test uploads the screenshot picture.Technical solution provided in an embodiment of the present invention
It has the benefit that
Dependent instruction when theme adaptation test is carried out by directly inputting in test equipment, it is automatic to obtain theme adaptation
When screenshot, complete the test that is adapted to theme;Solve in the prior art to each theme carry out adaptation test when, need
It is manually tested, leads to the problem that testing efficiency is relatively low;Due to carry out theme adaptation test when, can by
Relevant test instruction is sent in test equipment, therefore in entire subject matter adaptation test process, is not needed manually to tested
The too many operation of equipment;Reach testing efficiency when theme adaptation test can be improved, and reduces the effect of manual testing's cost
Fruit.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the method flow diagram of the theme adaptation test method provided in one embodiment of the invention;
Fig. 2 is the method flow diagram of the theme adaptation test method provided in another embodiment of the present invention;
Fig. 3 is the method flow diagram of the theme adaptation test method provided in further embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the theme adaptation test device provided in one embodiment of the invention;
Fig. 5 is the structural schematic diagram of the theme adaptation test device provided in another embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Shown in Figure 1, it illustrates the methods of the theme provided in one embodiment of the invention adaptation test method
Flow chart, theme adaptation test method can be applied in test equipment, and test equipment said here can be desktop
Brain, tablet computer, pocket computer on knee etc..The theme is adapted to test method
101, by theme packet replication to equipment under test;
The equipment that equipment under test said here is typically equipped with Android system, for example can be to be equipped with
Smart phone, tablet computer, smart television, E-book reader, MP3 player (the Moving Picture of Android system
Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving
Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, knee
Mo(u)ld top half portable computer and desktop computer etc..
102, equipment under test is used to indicate to equipment under test transmission, and the application of theme corresponding to theme packet is applied to refer to automatically
It enables, so that equipment under test applies theme automatically;
103, it is sent to equipment under test and is used to indicate the screenshot instruction that equipment under test carries out screenshot to screen, set so as to tested
It is standby that screenshot is carried out to screen, obtain screenshot picture;
104, the uploading instructions for being used to indicate equipment under test and uploading screenshot picture are sent, to equipment under test so as to equipment under test
Upload screenshot picture.
In conclusion theme provided in an embodiment of the present invention is adapted to test method, by directly inputting in test equipment
Dependent instruction when theme adaptation test is carried out, screenshot when theme adaptation is obtained automatically, completes the test being adapted to theme;Solution
Determined in the prior art to each theme carry out adaptation test when, need manually to be tested, lead to testing efficiency ratio
Lower problem;Due to that can be instructed by sending relevant test in test equipment when carrying out theme adaptation test, because
This does not need operation manually too many to equipment under test in entire subject matter adaptation test process;Reach and master can be improved
Testing efficiency when topic adaptation test, and reduce the effect of manual testing's cost.
During theme is adapted to and tests, each instruction that can send in advance to equipment under test is correspondingly arranged one
A period then can send corresponding instruction to equipment under test, specific implementation may refer to figure when reaching the period
Description in 2.
Shown in Figure 2, it illustrates the sides of the theme provided in another embodiment of the present invention adaptation test method
Method flow chart, theme adaptation test method can be applied in test equipment, and test equipment said here can be desk-top
Computer, tablet computer, pocket computer on knee etc..The theme is adapted to test method
201, by theme packet replication to equipment under test;
The equipment that equipment under test said here is typically equipped with Android system, for example can be to be equipped with
It is the smart phone of Android system, tablet computer, smart television, E-book reader, MP3 player, MP4 player, above-knee
Type portable computer and desktop computer etc..
The resolution ratio of equipment under test can be any one resolution ratio, for example can be 480*800,480*854,320*
480,720*1280,540*960,1080*1920,800*1280,240*320,720*1184,480*728,640*960 equal part
One of resolution.
In practical applications, the subject resource of upload can be packaged into theme packet first, then can be ordered according to duplication
Enable: android adb push<local path><remote path>is by theme packet replication to equipment under test.Wherein, local path is used
The position of theme packet is saved in instruction test equipment, remote path is used to indicate will be theme packet replication into equipment under test
Storage location.
202, after third designated time period, instructed to the application of each application program broadcast transmission of equipment under test, with
Just the multipad of equipment under test applies theme automatically;
Application instruction is used to indicate equipment under test and applies theme corresponding to the theme packet automatically.
Third designated time period said here be it is pre-set, this is because if the theme packet is not yet replicated
When to equipment under test, then sending application is instructed, equipment under test can not be correctly using theme corresponding to the theme packet, it is therefore desirable to
After duplication terminates, it could be instructed to equipment under test sending application.The third designated time period can be according to the big of theme packet
Small to set, this is because the size direct proportionality of doubling time and theme packet, when theme packet is larger, then what is needed answers
Time processed is longer.
There are various application programs in equipment under test, at this time then can be to each application program broadcast transmission of equipment under test
Using instruction.When each application program in equipment under test receives application instruction, the only desktop in the equipment under test
The application program ability success response application instruction, and the theme according to corresponding to application application of instruction theme packet.Here institute
The multipad said is the multipad that can apply theme.
In practical applications, test equipment can be according to order: Android adb broadcast is broadcasted to equipment under test
Using instruction, so that equipment under test loads and the theme corresponding to the theme packet that comes into force.
203, after the first designated time period, is sent to equipment under test and be used to indicate the specified operation of equipment under test simulation
Operational order, so that equipment under test simulates specified operation;
First designated time period said here can also be set according to the actual situation, for example can be set to 10s,
15s etc. comes into force this is because equipment under test after receiving using instruction, needs to carry out theme load, and this process
Can generally also consume a period of time, this period usually and be loaded the size of theme, the loading performance of equipment under test and
Configuration is related, and duration corresponding to the first designated time period is typically equal to or greater than duration corresponding to this period.Work as master
When topic wraps smaller or equipment under test loading performance or relatively high configuration, then theme consumed when load comes into force
The time taken will be shorter, conversely, when theme packet is bigger or the loading performance of equipment under test or when relatively low configuration,
Then spent time will be long carrying out when load comes into force to theme.Therefore, the first designated time period then can basis
Size, the loading performance of equipment under test, configuration of equipment under test of theme packet etc. are configured.
Specified operation said here may include one of clicking, pulling, slide, it is obvious that in practical applications,
Specified operation can also be other users in the operation that can be used using equipment under test.Specified operation said here is main
It is for analog subscriber in the operation carried out using equipment under test or the operation that equipment under test can be used to be identified.By
During testing theme adaptation, in order to reduce the manual operation of tester to the greatest extent, therefore here to tested
Equipment sends the operational order for being used to indicate the specified operation of equipment under test simulation, so that the equipment under test simulates these operations
Instruction, in this way, the processor of equipment under test then can receive and parse these operations, thus display boundary relevant to operation
Face.
In practical applications, can pass through order: Android adb input keyevent/tap/swipe is to tested
Equipment issues operational order corresponding with relevant operation, so that equipment under test simulates relevant operation.
204, after the second designated time period, equipment under test is used to indicate to equipment under test transmission, screenshot is carried out to screen
Screenshot instruction, so as to equipment under test to screen carry out screenshot, obtain screenshot picture;
It is analyzed for the ease of the theme adaptation effect to equipment under test, the equipment under test under available each operation
Screenshot capture, therefore also need to send screenshot instruction to equipment under test, so that equipment under test carries out screenshot to current screen, obtain
Get screenshot picture.
Generally, when an equipment under test simulated operation of every progress, a screenshot can be sent to the equipment under test
Instruction, for example after equipment under test carries out simulation click according to operational order, test equipment can then be sent to equipment under test at this time
One screenshot instruction, so that equipment under test carries out carrying out screenshot to the screen picture generated after click;When equipment under test is according to behaviour
After making instruction progress drag operation, test equipment can then send a screenshot instruction to equipment under test at this time, so as to equipment under test
Screenshot is carried out to the screen picture of product after towing.
In practical applications, test equipment can be according to order: Android adb screencap is sent to equipment under test
Screenshot instruction obtains screenshot picture so that equipment under test carries out screenshot to current screen.
Similarly, designated time period said here can also be set according to the actual situation, and this is mainly due to tested
Equipment needs to consume certain period of time when carrying out simulated operation, test equipment can be arranged according to this period this second
Designated time period, generally, the second designated time period are equal to or more than occupied period when equipment under test simulated operation.
205, after the 4th designated time period, is sent to equipment under test and be used to indicate equipment under test upload screenshot picture
Uploading instructions, so that equipment under test uploads screenshot picture;
After equipment under test is instructed according to screenshot obtains screenshot picture, then need these screenshot pictures being uploaded to test
In equipment, therefore test equipment needs to send uploading instructions to equipment under test, so as to equipment under test according to the uploading instructions to survey
It tries equipment and uploads screenshot picture.
Similarly, the 4th designated time period said here can also be set according to the actual situation, this is mainly due to
Equipment under test needs to consume certain period of time when carrying out screenshot, and test equipment can be arranged the 4th according to this period
Designated time period, generally, the 4th designated time period can be equal to or more than occupied time when equipment under test screenshot
Section.
In practical applications, test equipment can be according to order: Android adb pull sends to equipment under test and uploads
Instruction, the screenshot picture uploaded so as to equipment under test.
206, detect whether there is the specified operation being not yet modeled;
In practical applications, in order to the more accurate analysis of theme adaptation effect progress, it usually needs to different operation feelings
Screen under condition carries out screenshot, for example can carry out screenshot under each page caused by towing, page turning.Therefore mould is being carried out
When quasi- operation, need to carry out repeatedly identical or different simulated operation.So complete after according to step 203 to step 205
Successively simulated operation carries out screenshot and after getting screenshot picture in pairs, test equipment can also continue to detect whether there is also
The specified operation being not yet modeled thens follow the steps 207 when there is also the specified operation being not yet modeled.
Generally, it is said here it is specified operation can be it is pre-set, such as by it is specified operation set gradually for
Click, towing, page turning, rotation etc..The process of step 203 to step 205 is successively performed both by for each specified operation.
207, if testing result is to read next specified operation in the presence of the specified operation that is not yet modeled, to tested
Equipment, which issues, is used to indicate the operational order that equipment under test simulates the specified operation, so that equipment under test simulates specified operation.
When there is the specified operation being not yet modeled, then next specified operation is read, issues and is used for equipment under test
The operational order of the specified operation of equipment under test simulation is indicated, so that equipment under test simulates specified operation;Then it executes and step 204
The identical step with step 205.That is, when there is the specified operation being not yet modeled, after reading next specified operation,
It continues to execute and step 204 to the identical step of step 205.
From the foregoing, it will be observed that theme adaptation test during, due to do not need tester directly operate be tested
Equipment, but equipment under test is tested automatically by test equipment with the above function, to get in equipment under test
Screenshot picture under corresponding resolution ratio, tester can analyze related subject at this according only to these screenshot pictures
Adaptation effect under resolution ratio.
In conclusion theme provided in an embodiment of the present invention is adapted to test method, by directly inputting in test equipment
Dependent instruction when theme adaptation test is carried out, screenshot when theme adaptation is obtained automatically, completes the test being adapted to theme;Solution
Determined in the prior art to each theme carry out adaptation test when, need manually to be tested, lead to testing efficiency ratio
Lower problem;Due to that can be instructed by sending relevant test in test equipment when carrying out theme adaptation test, because
This does not need operation manually too many to equipment under test in entire subject matter adaptation test process;Reach and master can be improved
Testing efficiency when topic adaptation test, and reduce the effect of manual testing's cost.
It in practical applications, can also be in the response message for receiving equipment under test during theme is adapted to and tests
It is rear send next instruction to equipment under test, specific implementation may refer to the description in Fig. 3.
Shown in Figure 3, it illustrates the sides of the theme provided in further embodiment of the present invention adaptation test method
Method flow chart, theme adaptation test method can be applied in test equipment, and test equipment said here can be desk-top
Computer, tablet computer, pocket computer on knee etc..The theme is adapted to test method
301, by theme packet replication to equipment under test;
The equipment that equipment under test said here is typically equipped with Android system, for example can be to be equipped with
It is the smart phone of Android system, tablet computer, smart television, E-book reader, MP3 player, MP4 player, above-knee
Type portable computer and desktop computer etc..
The resolution ratio of equipment under test can be any one resolution ratio, for example can be 480*800,480*854,320*
480,720*1280,540*960,1080*1920,800*1280,240*320,720*1184,480*728,640*960 equal part
One of resolution.
In practical applications, the subject resource of upload can be packaged into theme packet first, then can be ordered according to duplication
Enable: android adb push<local path><remote path>is by theme packet replication to equipment under test.Wherein, local path is used
The position of theme packet is saved in instruction test equipment, remote path is used to indicate will be theme packet replication into equipment under test
Storage location.
302, the duplication success message of equipment under test feedback is received, is instructed to equipment under test sending application, is set so as to tested
Standby multipad applies theme automatically;
Duplication success message said here is after theme packet is successfully copied to equipment under test, to be fed back by equipment under test
Message.That is, equipment under test, which can then generate one and replicate, successfully to disappear after theme packet is successfully copied to equipment under test
Breath, and it is sent to test equipment.
When test equipment receives the duplication success message of equipment under test feedback, then show that equipment under test is successfully multiple
Theme packet processed can then instruct at this time to equipment under test sending application, and application instruction is used to indicate equipment under test and applies automatically
Theme corresponding to the theme packet, so that equipment under test is applied corresponding to the theme packet automatically after receiving application instruction
Theme.
In practical applications, test equipment can be according to order: Android adb broadcast is broadcasted to equipment under test
Using instruction, so that equipment under test loads and the theme corresponding to the theme packet that comes into force.
303, message is completed in the application for receiving equipment under test feedback, sends operational order to equipment under test, is set so as to tested
The standby specified operation of simulation;
Specified operation said here includes one of clicking, pulling, slide, it is obvious that in practical applications, is specified
Operation can also be other users in the operation that can be used using equipment under test.Specified operation said here is mainly used
In analog subscriber in the operation carried out using equipment under test or the operation that equipment under test can be used to be identified.Due to
During testing theme adaptation, in order to reduce the manual operation of tester to the greatest extent, therefore here to equipment under test
The operational order for being used to indicate the specified operation of equipment under test simulation is sent, these operations is simulated so as to the equipment under test and refers to
It enables, in this way, the processor of equipment under test then can receive and parse these operations, thus display interface relevant to operation.
It is equipment under test in the message for completing to carry out feeding back after to theme that message is completed in application said here.?
That is equipment under test can then generate an application and complete after the theme packet corresponding theme is applied successfully in equipment under test
Message, and it is sent to test equipment.
When message is completed in the application that test equipment receives equipment under test feedback, then show that equipment under test is successfully answered
The theme corresponding to the theme packet, at this time then can to equipment under test send operational order, the operational order be used to indicate by
The specified operation of measurement equipment simulation, so that equipment under test simulates the specified operation after receiving the operational order.
In practical applications, can pass through order: Android adb input keyevent/tap/swipe is to tested
Equipment issues operational order corresponding with relevant operation, so that equipment under test simulates relevant operation.
304, message is completed in the operation for receiving equipment under test feedback, is sent screenshot instruction to equipment under test, is set so as to tested
It is standby that screenshot is carried out to screen, obtain screenshot picture;
Operation said here complete message be equipment under test simulation complete specified operation indicated by operational order it
The message fed back afterwards.That is, after equipment under test success simulated operation instruction indicated specified operation, equipment under test
An operation can then be generated and complete message, and be sent to test equipment.
It is analyzed for the ease of the theme adaptation effect to equipment under test, the equipment under test under available each operation
Screenshot capture, therefore also need to send to equipment under test and be used to indicate the screenshot instruction that equipment under test carries out screenshot to screen, with
Just equipment under test carries out screenshot to current screen, gets screenshot picture.
Generally, when an equipment under test simulated operation of every progress, a screenshot can be sent to the equipment under test
Instruction, for example after equipment under test carries out simulation click according to operational order, test equipment can then be sent to equipment under test at this time
One screenshot instruction, so that equipment under test carries out carrying out screenshot to the screen picture generated after click;When equipment under test is according to behaviour
After making instruction progress drag operation, test equipment can then send a screenshot instruction to equipment under test at this time, so as to equipment under test
Screenshot is carried out to the screen picture of product after towing.
In practical applications, test equipment can be according to order: Android adb screencap is sent to equipment under test
Screenshot instruction obtains screenshot picture so that equipment under test carries out screenshot to current screen.
305, the screenshot success message of equipment under test feedback is received, sends uploading instructions to equipment under test, is set so as to tested
It is standby to upload screenshot picture;
Screenshot success message said here is that equipment under test completes the message fed back after screenshot.That is, working as quilt
After measurement equipment instructs completion screenshot according to screenshot, equipment under test can then generate a screenshot success message, and be sent to test
Equipment.
After equipment under test is instructed according to screenshot obtains screenshot picture, then need these screenshot pictures being uploaded to test
In equipment, therefore test equipment needs to send uploading instructions to equipment under test, so as to equipment under test according to the uploading instructions to survey
It tries equipment and uploads screenshot picture.
In practical applications, test equipment can be according to order: Android adb pull sends to equipment under test and uploads
Instruction, the screenshot picture uploaded so as to equipment under test.
306, detect whether there is the specified operation being not yet modeled;
In practical applications, in order to the more accurate analysis of theme adaptation effect progress, it usually needs to different operation feelings
Screen under condition carries out screenshot, for example can carry out screenshot under each page caused by towing, page turning.Therefore mould is being carried out
When quasi- operation, need to carry out repeatedly identical or different simulated operation.So complete after according to step 303 to step 305
Successively simulated operation carries out screenshot and after getting screenshot picture in pairs, test equipment can also continue to detect whether there is also
The specified operation being not yet modeled thens follow the steps 307 when there is also the specified operation being not yet modeled.
Generally, it is said here it is specified operation can be it is pre-set, such as by it is specified operation set gradually for
Click, towing, page turning, rotation etc..The process of step 303 to step 305 is successively performed both by for each specified operation.
307, if testing result is to read next specified operation in the presence of the specified operation that is not yet modeled, to tested
Equipment, which issues, is used to indicate the operational order that equipment under test simulates the specified operation, so that equipment under test simulates specified operation.
When there is the specified operation being not yet modeled, then next specified operation is read, issues and is used for equipment under test
The operational order of the specified operation of equipment under test simulation is indicated, so that equipment under test simulates specified operation;Then it executes and step 304
The identical step with step 305.That is, when there is the specified operation being not yet modeled, after reading next specified operation,
Continue to execute with step 304 to the identical step of step 305, specify operation different.
From the foregoing, it will be observed that theme adaptation test during, due to do not need tester directly operate be tested
Equipment, but equipment under test is tested automatically by test equipment with the above function, to get in equipment under test
Screenshot picture under corresponding resolution ratio, tester can analyze related subject at this according only to these screenshot pictures
Adaptation effect under resolution ratio.
In conclusion theme provided in an embodiment of the present invention is adapted to test method, by directly inputting in test equipment
Dependent instruction when theme adaptation test is carried out, screenshot when theme adaptation is obtained automatically, completes the test being adapted to theme;Solution
Determined in the prior art to each theme carry out adaptation test when, need manually to be tested, lead to testing efficiency ratio
Lower problem;Due to that can be instructed by sending relevant test in test equipment when carrying out theme adaptation test, because
This does not need operation manually too many to equipment under test in entire subject matter adaptation test process;Reach and master can be improved
Testing efficiency when topic adaptation test, and reduce the effect of manual testing's cost.
It should be added that in the test process of theme adaptation, it is different due to can directly replace resolution ratio
Equipment under test is performed both by instruction corresponding to theme adaptation test method in test equipment, for each equipment under test to obtain
Obtained screenshot picture when carrying out theme adaptation to each equipment under test is taken, then can analyze the master according to these screenshot pictures
Topic is adapted in the equipment under test with different resolution.It, can be with it will be apparent that in one possible implementation
Multiple equipment under tests with different resolution are connected simultaneously in test equipment, it is then multiple to these respectively in synchronization
Equipment under test sends above-mentioned described each instruction, can then realize in the same test process to multiple tested in this way
The theme of equipment is adapted to test, can greatly improve testing efficiency.
Shown in Figure 4, it illustrates the structures of the theme provided in one embodiment of the invention adaptation test device
Schematic diagram.Theme adaptation test device can be applied in test equipment, and test equipment said here can be desktop
Brain, tablet computer, pocket computer on knee etc..Theme adaptation test device may include: replication module 402, using referring to
Enable sending module 404, screenshot instruction sending module 406 and uploading instructions sending module 408.
Replication module 402 can be used for theme packet replication to equipment under test;
Using instruction sending module 404, can be used for being used to indicate equipment under test application master automatically to equipment under test transmission
The application instruction of the corresponding theme of topic packet, so that equipment under test applies theme automatically;
Screenshot instruction sending module 406 can be used for being used to indicate equipment under test to equipment under test transmission to screen progress
The screenshot of screenshot instructs, so that equipment under test carries out screenshot to screen, obtains screenshot picture;
Uploading instructions sending module 408 can be used for being used to indicate equipment under test upload screenshot figure to equipment under test transmission
The uploading instructions of piece, so that equipment under test uploads screenshot picture.
In conclusion theme provided in an embodiment of the present invention is adapted to test device, by directly inputting in test equipment
Dependent instruction when theme adaptation test is carried out, screenshot when theme adaptation is obtained automatically, completes the test being adapted to theme;Solution
Determined in the prior art to each theme carry out adaptation test when, need manually to be tested, lead to testing efficiency ratio
Lower problem;Due to that can be instructed by sending relevant test in test equipment when carrying out theme adaptation test, because
This does not need operation manually too many to equipment under test in entire subject matter adaptation test process;Reach and master can be improved
Testing efficiency when topic adaptation test, and reduce the effect of manual testing's cost.
Shown in Figure 5, it illustrates the knots of the theme provided in another embodiment of the present invention adaptation test device
Structure schematic diagram.Theme adaptation test device can be applied in test equipment, and test equipment said here can be desk-top
Computer, tablet computer, pocket computer on knee etc..Theme adaptation test device may include: replication module 502, application
Instruction sending module 504, screenshot instruction sending module 506 and uploading instructions sending module 508.
Replication module 502 can be used for theme packet replication to equipment under test;
Using instruction sending module 504, can be used for being used to indicate equipment under test application master automatically to equipment under test transmission
The application instruction of the corresponding theme of topic packet, so that equipment under test applies theme automatically;
Screenshot instruction sending module 506 can be used for being used to indicate equipment under test to equipment under test transmission to screen progress
The screenshot of screenshot instructs, so that equipment under test carries out screenshot to screen, obtains screenshot picture;
Uploading instructions sending module 508 can be used for being used to indicate equipment under test upload screenshot figure to equipment under test transmission
The uploading instructions of piece, so that equipment under test uploads screenshot picture.
In the possible implementation of in the embodiment shown in fig. 5 the first, theme adaptation test device can also be wrapped
It includes: operational order sending module 510.
Operational order sending module 510 can be used for being used to indicate the specified behaviour of equipment under test simulation to equipment under test transmission
The operational order of work simulates so as to equipment under test and specifies operation, and specifying operation includes one of click, towing, sliding.
In the possible implementation of second in the embodiment shown in fig. 5, operational order sending module 510 be can wrap
It includes: the first transmission unit 510a or the second transmission unit 510b.
First transmission unit 510a, can be used for after the first designated time period, send operational order to equipment under test;
Or,
Second transmission unit 510b, the application that can be used for receiving equipment under test feedback are completed message, are sent out to equipment under test
Operational order is sent, is equipment under test in the message for completing to carry out feeding back after to theme using message is completed.
In the third possible implementation in the embodiment shown in fig. 5, theme adaptation test device can also be wrapped
It includes: detection module 512 and read module 514.
Detection module 512 can be used for detecting whether having the specified operation being not yet modeled;
Read module 514 can be used in the testing result of detection module 512 being in the presence of the specified operation being not yet modeled
When, next specified operation is read, the operational order for being used to indicate the specified operation of equipment under test simulation is issued to equipment under test, with
Just the specified operation of equipment under test simulation.
In the 4th kind of possible implementation in the embodiment shown in fig. 5, screenshot instruction sending module 506 be can wrap
It includes: third transmission unit 506a and the 4th transmission unit 506b.
Third transmission unit 506a, can be used for after the second designated time period, send screenshot instruction to equipment under test;
Or,
4th transmission unit 506b, the operation that can be used for receiving equipment under test feedback are completed message, are sent out to equipment under test
Screenshot is sent to instruct, it is that equipment under test is fed back after specified operation indicated by operational order is completed in simulation that message is completed in operation
Message.
In the 5th kind of possible implementation in the embodiment shown in fig. 5, it can wrap using instruction sending module 504
It includes: the 5th transmission unit 504a and the 6th transmission unit 504b.
5th transmission unit 504a can be used for after third designated time period, instruct to equipment under test sending application;
Or,
6th transmission unit 504b can be used for receiving the duplication success message of equipment under test feedback, send out to equipment under test
It send using instructing, duplication success message is after theme packet is successfully copied to equipment under test, by the message of equipment under test feedback.
In the 6th kind of possible implementation in the embodiment shown in fig. 5, uploading instructions sending module 508, comprising: the
Seven transmission unit 508a and the 8th transmission unit 508b.
7th transmission unit 508a can be used for after the 4th designated time period, send uploading instructions to equipment under test;
Or,
8th transmission unit 508b can be used for receiving the screenshot success message of equipment under test feedback, send out to equipment under test
Teletype command is served, screenshot success message is that equipment under test completes the message fed back after screenshot.
It, can be with using instruction sending module 504 in the 7th kind of possible implementation in the embodiment shown in fig. 5
For:
To each application program broadcast transmission of equipment under test application instruct, so as to equipment under test multipad from
It is dynamic to apply theme.
In conclusion theme provided in an embodiment of the present invention is adapted to test device, by directly inputting in test equipment
Dependent instruction when theme adaptation test is carried out, screenshot when theme adaptation is obtained automatically, completes the test being adapted to theme;Solution
Determined in the prior art to each theme carry out adaptation test when, need manually to be tested, lead to testing efficiency ratio
Lower problem;Due to that can be instructed by sending relevant test in test equipment when carrying out theme adaptation test, because
This does not need operation manually too many to equipment under test in entire subject matter adaptation test process;Reach and master can be improved
Testing efficiency when topic adaptation test, and reduce the effect of manual testing's cost.
It should be understood that the theme adaptation test device provided in above-described embodiment is suitable to equipment under test progress theme
With test when, only the example of the division of the above functional modules, in practical application, can according to need and will be above-mentioned
Function distribution is completed by different functional modules, i.e., the internal structure of test equipment is divided into different functional modules, with complete
At all or part of function described above.In addition, theme adaptation test device provided by the above embodiment is adapted to theme
Test method embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of theme is adapted to test method, which is characterized in that the described method includes:
By theme packet replication to equipment under test;
It is sent to the equipment under test and is used to indicate the equipment under test answering using theme corresponding to the theme packet automatically
With instruction, so that the equipment under test applies the theme automatically;
The operational order for being used to indicate the specified operation of equipment under test simulation is sent, to the equipment under test so as to described tested
Operation is specified described in equipment simulating, the specified operation includes one of click, towing, sliding;
It is sent to the equipment under test and is used to indicate the screenshot instruction that the equipment under test carries out screenshot to screen, so as to the quilt
Measurement equipment carries out screenshot to the screen, obtains screenshot picture;
The uploading instructions for being used to indicate the equipment under test and uploading the screenshot picture are sent, to the equipment under test so as to described
Equipment under test uploads the screenshot picture.
2. the method according to claim 1, wherein described issue to the equipment under test is used to indicate the quilt
The operational order of the specified operation of measurement equipment simulation, comprising:
After the first designated time period, the operational order is sent to the equipment under test;Or,
Message is completed in the application for receiving the equipment under test feedback, sends the operational order to the equipment under test, described to answer
It is the equipment under test in the message for completing to carry out feeding back after to the theme with message is completed.
3. according to the method described in claim 2, it is characterized in that, it is described be used to indicate to equipment under test transmission it is described
Equipment under test uploads the uploading instructions of the screenshot picture, after uploading the screenshot picture so as to the equipment under test, also wraps
It includes:
Detect whether there is the specified operation being not yet modeled;
If testing result is next specified operation to be read, to the equipment under test in the presence of the specified operation being not yet modeled
It issues and is used to indicate the operational order that the equipment under test simulates the specified operation, so that the equipment under test simulates the finger
Fixed operation.
4. the method according to claim 1, wherein described be used to indicate the quilt to equipment under test transmission
The screenshot that measurement equipment carries out screenshot to screen instructs, comprising:
After the second designated time period, the screenshot instruction is sent to the equipment under test;Or,
Message is completed in the operation for receiving the equipment under test feedback, sends the screenshot instruction, the behaviour to the equipment under test
Make to complete message to be that the equipment under test completes the message fed back after specified operation indicated by the operational order in simulation.
5. the method according to claim 1, wherein described be used to indicate the quilt to equipment under test transmission
Measurement equipment is automatically using the application instruction of theme corresponding to the theme packet, comprising:
After third designated time period, the application instruction is sent to the equipment under test;Or,
The duplication success message for receiving the equipment under test feedback sends the application instruction to the equipment under test, described multiple
Success message processed is the message fed back by the equipment under test after theme packet is successfully copied to the equipment under test.
6. the method according to claim 1, wherein described be used to indicate the quilt to equipment under test transmission
Measurement equipment uploads the uploading instructions of the screenshot picture, comprising:
After the 4th designated time period, the uploading instructions are sent to the equipment under test;Or, it is anti-to receive the equipment under test
The screenshot success message of feedback sends the uploading instructions to the equipment under test, and the screenshot success message is that described be tested sets
The standby message for completing to feed back after screenshot.
7. according to claim 1 to any method in 6, which is characterized in that described to be used for equipment under test transmission
The equipment under test is indicated automatically using the application instruction of theme corresponding to the theme packet, so that the equipment under test is automatic
Using the theme, comprising:
Using instruction described in each application program broadcast transmission to the equipment under test, so that the desktop of the equipment under test is answered
Apply the theme automatically with program.
8. a kind of theme is adapted to test device, which is characterized in that described device includes:
Replication module is used for theme packet replication to equipment under test;
Using instruction sending module, the master is applied automatically for being used to indicate the equipment under test to equipment under test transmission
The application instruction of the corresponding theme of topic packet, so that the equipment under test applies the theme automatically;
Operational order sending module is used to indicate the specified operation of equipment under test simulation for sending to the equipment under test
Operational order, so that the equipment under test simulates the specified operation, the specified operation includes clicking, pulling, in sliding
It is a kind of;
Screenshot instruction sending module carries out screenshot to screen for being used to indicate the equipment under test to equipment under test transmission
Screenshot instruction, so as to the equipment under test to the screen carry out screenshot, obtain screenshot picture;
Uploading instructions sending module uploads the screenshot figure for being used to indicate the equipment under test to equipment under test transmission
The uploading instructions of piece, so that the equipment under test uploads the screenshot picture.
9. device according to claim 8, which is characterized in that the operational order sending module, comprising:
First transmission unit, for sending the operational order to the equipment under test after the first designated time period;Or,
Second transmission unit, the application for receiving the equipment under test feedback complete message, send institute to the equipment under test
Operational order is stated, it is that the equipment under test is completed to carry out disappearing using feedback later to the theme that message is completed in the application
Breath.
10. device according to claim 9, which is characterized in that described device further include:
Detection module, for detecting whether in the presence of the specified operation being not yet modeled;
Read module is when there is the specified operation being not yet modeled, under reading for the testing result in the detection module
One specified operation, issues to be used to indicate the equipment under test and simulate the operation of the specified operation to the equipment under test and refers to
It enables, so that the equipment under test simulates the specified operation.
11. device according to claim 8, which is characterized in that the screenshot instruction sending module, comprising:
Third transmission unit, for sending the screenshot instruction to the equipment under test after the second designated time period;Or,
4th transmission unit, the operation for receiving the equipment under test feedback complete message, send institute to the equipment under test
Screenshot instruction is stated, it is equipment under test finger indicated by the simulation completion operational order that message is completed in the operation
The message fed back after fixed operation.
12. device according to claim 8, which is characterized in that described to apply instruction sending module, comprising:
5th transmission unit, for sending the application instruction to the equipment under test after third designated time period;Or,
6th transmission unit sends institute to the equipment under test for receiving the duplication success message of the equipment under test feedback
It states using instruction, the duplication success message is after theme packet is successfully copied to the equipment under test, by the quilt
The message of measurement equipment feedback.
13. device according to claim 8, which is characterized in that the uploading instructions sending module, comprising:
7th transmission unit, for sending the uploading instructions to the equipment under test after the 4th designated time period;Or,
8th transmission unit sends institute to the equipment under test for receiving the screenshot success message of the equipment under test feedback
Uploading instructions are stated, the screenshot success message is that the equipment under test completes the message fed back after screenshot.
14. according to the device any in claim 8 to 13, which is characterized in that it is described to apply instruction sending module, also use
In:
Using instruction described in each application program broadcast transmission to the equipment under test, so that the desktop of the equipment under test is answered
Apply the theme automatically with program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410181180.8A CN105025140B (en) | 2014-04-30 | 2014-04-30 | Theme is adapted to test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410181180.8A CN105025140B (en) | 2014-04-30 | 2014-04-30 | Theme is adapted to test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105025140A CN105025140A (en) | 2015-11-04 |
CN105025140B true CN105025140B (en) | 2019-02-05 |
Family
ID=54414831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410181180.8A Active CN105025140B (en) | 2014-04-30 | 2014-04-30 | Theme is adapted to test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105025140B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107179890A (en) * | 2016-03-10 | 2017-09-19 | 北京君正集成电路股份有限公司 | A kind of method and system for synchronizing operation to mobile terminal by PC ends |
CN106201517B (en) * | 2016-07-12 | 2019-06-11 | 四川酷比通信设备有限公司 | The method and system of one key batch making theme screenshot |
CN108519946A (en) * | 2018-03-30 | 2018-09-11 | 北京金山安全软件有限公司 | Theme testing method and device and electronic equipment |
CN110941252A (en) * | 2018-09-25 | 2020-03-31 | 比亚迪股份有限公司 | Vehicle-mounted equipment testing method and system |
CN114168237A (en) * | 2020-09-10 | 2022-03-11 | 华为技术有限公司 | Theme pack adaptation method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FI113898B (en) * | 2000-11-21 | 2004-06-30 | Nokia Corp | Process for producing content in a wireless communication device |
CN103546907A (en) * | 2012-07-11 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | System and method for testing wireless application protocol webpage |
CN103678096B (en) * | 2012-09-03 | 2018-04-06 | 腾讯科技(深圳)有限公司 | The adaptation method of testing and device of client application |
-
2014
- 2014-04-30 CN CN201410181180.8A patent/CN105025140B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105025140A (en) | 2015-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105025140B (en) | Theme is adapted to test method and device | |
CN106021095B (en) | A kind of Android application automated testing method based on push-mechanism | |
CN104765678B (en) | The method and device tested the application on mobile terminal device | |
US8605613B2 (en) | Mobile hardware and network environment simulation | |
US9161238B2 (en) | Mobile device monitoring and testing | |
US20120226940A1 (en) | Self-Expanding Test Automation Method | |
CN105653438B (en) | The striding course automated testing method and device of Android device | |
CN110493812B (en) | Distribution network test processing method, device and system, processor and master control equipment | |
CN107357726A (en) | A kind of application compatibility method of testing and device | |
CN104424089A (en) | Terminal testing method and device | |
CN105070127A (en) | Interactive practical teaching system and method | |
CN102710832A (en) | Mobile application test method and system | |
US20140149496A1 (en) | System and Method for Recording and Playback of Interactions on a Computing Device | |
CN102819456B (en) | The generation method and device of content in clipbook | |
CN108830383B (en) | Method and system for displaying machine learning modeling process | |
CN102929650A (en) | Method and device for independently configuring application program running environment and mobile device | |
CN103605604A (en) | Method for batch testing of set-top box software stability | |
CN107861928A (en) | One kind makes demonstration courseware method and apparatus | |
CN107861875A (en) | A kind of analogy method and system for mixing Mobile solution | |
CN106682910B (en) | Information processing method, system and related equipment | |
CN105786694A (en) | Automatic test system and method, and mobile terminals | |
CN106371994A (en) | Dynamic mobile APP testing method based on natural language processing | |
CN103729258A (en) | Automatic testing method, terminal and system | |
CN112241373A (en) | Automatic test method, test device, processor and test system | |
CN109712701A (en) | Slave computer simulator and master system test method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |