CN108519946A - Theme testing method and device and electronic equipment - Google Patents
Theme testing method and device and electronic equipment Download PDFInfo
- Publication number
- CN108519946A CN108519946A CN201810276322.7A CN201810276322A CN108519946A CN 108519946 A CN108519946 A CN 108519946A CN 201810276322 A CN201810276322 A CN 201810276322A CN 108519946 A CN108519946 A CN 108519946A
- Authority
- CN
- China
- Prior art keywords
- target
- theme
- matched
- topic
- target topic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a theme testing method and device and electronic equipment. The method is applied to the electronic equipment and comprises the following steps: determining a target operation corresponding to a preset client, wherein the preset client is a client applying a target theme to be tested, and the target operation is as follows: the operation that the expected theme effect of the target theme can be displayed after the preset client is executed; executing target operation on a preset client, and acquiring an object to be matched corresponding to a target theme, wherein the object to be matched is data content representing the current theme effect after the target operation is executed; and determining a test result of the target theme based on the matching degree of the object to be matched and the target object corresponding to the target theme, wherein the target object is data content representing an expected theme effect after target operation is executed. By the technical scheme provided by the embodiment of the invention, the theme can be automatically tested, and the test efficiency of the theme and the accuracy of the test result are improved.
Description
Technical field
The present invention relates to technical field of measurement and test, more particularly to a kind of theme test method, device and electronic equipment.
Background technology
It is more and more with the type of client, in order to improve experience of the user in using client process, usual feelings
Under condition, theme can be applied to client.For example, theme is applied to search dog input method, user is using search dog input method
During, it can be seen that some pop-up effects, the themes effect such as spcial character are inputted to improve user using search dog
Experience during method.
In order to ensure theme can accurately be applied to client, after generating theme, need to test theme.It is existing
Have in technology, the main process for testing theme is:After theme is applied to client, tester is manually to the client
The operation for the expection theme effect that can show the theme is executed, and after executing operation, tester's observation is current main
Whether topic effect reaches the expection theme effect of the theme, if current topic effect reaches the expection theme effect of the theme,
Then the test result of the theme is the theme application success, and otherwise, the test result of the theme is the theme using failure.
As it can be seen that in the prior art, the method for testing theme, which exists, " to be needed manually to participate in, testing efficiency is relatively low, and tests knot
The accuracy of fruit is relatively low " the shortcomings that.
Invention content
The embodiment of the present invention is designed to provide a kind of theme test method, device and electronic equipment, automatic to realize
Change ground test theme, improves the testing efficiency of theme and the accuracy of test result.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of theme test method, it is applied to electronic equipment, the method packet
It includes:
Determine that the corresponding object run in intended client end, the intended client end are the visitor using target topic to be tested
Family end, the object run are:The expection theme effect of the target topic can be shown after being executed to the intended client end
Operation;
The object run is executed to the intended client end, and obtains the corresponding object to be matched of the target topic,
The object to be matched is the data content of the current topic effect after the characterization object run executes;
Matching degree based on the object to be matched and the corresponding target object of the target topic, determines the target master
The test result of topic, the target object are in the data of the expected theme effect after the characterization object run executes
Hold.
Optionally, described the step of obtaining the target topic corresponding object to be matched, including:
The picture of current topic effect of the interception comprising the target topic;
The picture intercepted is determined as the corresponding object to be matched of the target topic.
Optionally, described the step of obtaining the target topic corresponding object to be matched, including:
Extract the component of the current topic effect for showing the target topic;
The component extracted is determined as the corresponding object to be matched of the target topic.
Optionally, the matching degree based on the object to be matched and the corresponding target object of the target topic, really
The test result of the fixed target topic, including:
Determine target object corresponding with the object to be matched, wherein the target object for the electronic equipment from
What server-side obtained;
Calculate the matching degree of the object to be matched and identified target object;
Judge whether the matching degree being calculated is more than or equal to preset matching degree;
If it is, the test result is determined the application success that is the theme;
If it has not, being the theme test result determination using failure.
Optionally, the component of the target topic is constituted based on the element acquired in server-side.
Optionally, the method further includes:When the test result is the theme using failure, to the object to be matched
With/target object progress abnormal marking.
Optionally, the method further includes:
The test result is sent to server-side, so that the server-side shows the test result.
Second aspect, the embodiment of the present invention additionally provide a kind of theme test device, are applied to electronic equipment, described device
Including:
Object run determining module, for determining that the corresponding object run in intended client end, the intended client end are to answer
With the client of target topic to be tested, the object run is:It can be shown after being executed to the intended client end described
The operation of the expection theme effect of target topic;
Object acquisition module to be matched for executing the object run to the intended client end, and obtains the mesh
The corresponding object to be matched of theme is marked, the object to be matched is the current topic effect after the characterization object run executes
Data content;
Test result determining module, for based on the object to be matched and the corresponding target object of the target topic
Matching degree determines that the test result of the target topic, the target object are described after the characterization object run executes
It is expected that the data content of theme effect.
Optionally, the object acquisition module to be matched, is specifically used for:
The picture of current topic effect of the interception comprising the target topic;
The picture intercepted is determined as the corresponding object to be matched of the target topic.
Optionally, the object acquisition module to be matched, is specifically used for:
Extract the component of the current topic effect for showing the target topic;
The component extracted is determined as the corresponding object to be matched of the target topic.
Optionally, the test result determining module, is specifically used for:
Determine target object corresponding with the object to be matched, wherein the target object for the electronic equipment from
What server-side obtained;
Calculate the matching degree of the object to be matched and identified target object;
Judge whether the matching degree being calculated is more than or equal to preset matching degree;
If it is, the test result is determined the application success that is the theme;
If it has not, being the theme test result determination using failure.
Optionally, the component of the target topic is constituted based on the element acquired in server-side.
Optionally, described device further includes:
Abnormal marking module, for the test result be the theme using failure when, to the object to be matched and/mesh
It marks object and carries out abnormal marking.
Optionally, described device further includes:
Test result sending module, for the test result to be sent to server-side, so that the server-side is shown
The test result.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any theme test described in first aspect
Method.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit
It is stored with computer program in storage media, any master described in first aspect is realized when the computer program is executed by processor
Inscribe test method.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first before testing target topic
The corresponding object run in first intended client end, wherein the intended client end is the client using target topic to be tested, should
Object run is:The operation of the expection theme effect of target topic can be shown after being executed to intended client end;Then to predetermined
Client executing object run, and obtain the corresponding object to be matched of target topic, wherein object to be matched is characterization target behaviour
The data content of current topic effect after executing;Finally, object to be matched and the corresponding target object of target topic are based on
Matching degree, determine the test result of target topic, wherein target object be characterize object run execute after expection theme effect
The data content of fruit.As it can be seen that theme test method provided in an embodiment of the present invention, need not manually participate in, can realize automatic
Change ground test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e. the accuracy of test result is higher.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
A kind of flow chart for theme test method that Fig. 1 is provided by the embodiment of the present invention;
A kind of another flow chart for theme test method that Fig. 2 is provided by the embodiment of the present invention;
A kind of another flow chart for theme test method that Fig. 3 is provided by the embodiment of the present invention;
A kind of structural schematic diagram for theme test device that Fig. 4 is provided by the embodiment of the present invention;
A kind of another structural schematic diagram for theme test device that Fig. 5 is provided by the embodiment of the present invention;
A kind of another structural schematic diagram for theme test device that Fig. 6 is provided by the embodiment of the present invention;
The structural schematic diagram for a kind of electronic equipment that Fig. 7 is provided by the embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In order to solve it is of the existing technology " test theme process need tester to participate in, testing efficiency is relatively low, and
The accuracy of test result is relatively low " the technical issues of, an embodiment of the present invention provides a kind of theme test method, device and electronics
Equipment automatically tests theme to realize, improves the testing efficiency of theme and the accuracy of test result.
It is introduced in a first aspect, being provided for the embodiments of the invention a kind of theme test method first below.
It should be noted that a kind of executive agent for theme test method that the embodiment of the present invention is provided can be a kind of
Theme test device, the theme test device are run in electronic equipment.In a particular application, which can be intelligence
Mobile phone, computer, tablet etc..
Also, before testing a theme, theme test device can obtain the theme from server-side, and will
The theme is applied to the intended client end in electronic equipment, wherein intended client end is the client that can apply the theme, is lifted
For example, when the theme is the theme applied to input method, intended client end can be any in electronic equipment
Money input method client.
In addition, it is necessary to, it is emphasized that theme test device can be the plug-in unit in intended client end, or
The stand-alone program that can be communicated to connect with intended client end.It is understood that when theme test device is mounted on predetermined visitor
When the plug-in unit at family end, which can be only to testing applied to the theme at the intended client end;When theme is surveyed
When trial assembly is set to the stand-alone program communicated to connect with intended client end, which not only can be predetermined to being applied to this
The theme of client is tested, can also to being tested applied to the theme of other clients in electronic equipment, that is,
It says, other clients can also be used as intended client end.
For example, by taking the theme to input method client is tested as an example, it is assumed that the input method of electronic equipment installation
Client has input method client A and input method client B.When respectively to applied to input method client A theme and application
When the theme of input method client B is tested, in one case, plug-in unit 1 can be installed in input method client A:It is main
Test device 1 is inscribed, plug-in unit 2 is installed in input method client B:Theme test device 2, theme test device 1 is to being applied to input
The theme of method customer end A is tested, and theme test device 2 applied to the theme of input method client B to testing;Another
In the case of one kind, a stand-alone program is installed in the electronic device, which is the theme test device 3, theme test
Device 3 was both communicated with input method client A, was also communicated with input method client B, at this point, the theme test device 3 can
Enough to being tested applied to the theme of input method client A, additionally it is possible to being surveyed applied to the theme of input method client B
Examination.
As shown in Figure 1, a kind of theme test method that the embodiment of the present invention is provided, includes the following steps:
S101 determines the corresponding object run in intended client end, which is using target topic to be tested
Client, which is:The operation of the expection theme effect of target topic can be shown after being executed to intended client end;
Wherein, above-mentioned target topic is any theme to be tested, is on the process nature tested target topic
Whether test target theme can accurately be applied to the process at intended client end.Therefore, intended client end is substantially to apply
The client of target topic to be tested, that is to say, that before testing target topic, first by target master to be tested
Topic is applied to intended client end.It for example, can be with to before being tested applied to the target topic of input method client
The target topic is applied to input method client.
After target topic to be tested is applied to intended client end, start to test target topic.To mesh
When mark theme is tested, it can be determined to the operation of the expection theme effect of displaying target topic first, that is to say, that really
It is fixed which operation, which can show the expection theme effect of target topic, is carried out to intended client end.
Still for being tested applied to the target topic of input method client A, the expection theme of the target topic
Effect can be sytlized font, the themes effect such as pop-up effect, the special environment figure, sound.In order to the target topic into
Row is accurately and comprehensively tested, it is thus necessary to determine that be shown sytlized font, pop-up effect, the themes effect such as the special environment figure, be needed pair
Which object run input method client A executes.Wherein, the action type of the object run can be click, double click, slide,
The action types such as touch.
It should be noted that the type for the client that can be applied to due to target topic is fixed, and generate theme effect
Operation also fix, therefore, the operation of the corresponding object run in intended client end can be previously provided in theme test device
Content, in this way, behind the intended client end being applied to target topic to be tested in electronic equipment, which can
Based on the pre-set operation content about object run, to determine the corresponding object run in intended client end.
S102 operates intended client end performance objective, and obtains the corresponding object to be matched of target topic, this is to be matched
Object is the data content for characterizing the current topic effect after object run executes;
After accurately judging whether the current topic effect after performance objective operation can reach performance objective operation
Expection theme effect obtain the corresponding object to be matched of target topic after being operated to intended client end performance objective,
In, which is used to characterize the data content of the current topic effect after object run executes.Also, object to be matched
It can be the picture of the current topic effect comprising target topic, can also be the group of the current topic effect of displaying target topic
Part.
For example, by taking intended client end is input method client as an example, object run can be to click the operation of character,
When this operation of character is clicked in execution, input method client can generate two kinds of theme effects.For example, in the behaviour for clicking character
When work starts, i.e. when the character of input method client is pressed, the theme effect that input method client is shown can be:Animation
Fig. 1;At the end of clicking the operation of character, i.e., when the character of input method client is bounced, what input method client was shown
Theme effect can be:Animation Fig. 2.When input method client shows both theme effects of animation Fig. 1, animation Fig. 2, hold
Row main body theme test device obtains object to be matched.
In following embodiment, it will be described in detail to how to obtain the corresponding object to be matched of target topic.
In one embodiment, the corresponding object to be matched of target topic can be obtained as follows:
The picture of current topic effect of the interception comprising target topic;
The picture intercepted is determined as the corresponding object to be matched of the target topic.
In order to obtain the corresponding object to be matched of target topic like clockwork, target master is shown at intended client end
When the current topic effect of topic, the picture of the current topic effect comprising target topic can be intercepted, and include by what is intercepted
The picture of the current topic effect of target topic is as the corresponding object to be matched of target topic.
For example, still by taking intended client end is input method client as an example, object run can be to click the behaviour of character
Make, when the operation for clicking character starts, i.e. when the character of input method client is pressed, master that input method client is shown
Inscribing effect can be:Animation Fig. 1;At the end of clicking the operation of character, i.e., when the character of input method client is bounced, input
The theme effect that method client is shown can be:Animation Fig. 2.When input method client shows animation Fig. 1 respectively, execute
Main body theme test device intercepts the picture for including animation Fig. 1, the picture comprising animation Fig. 1 intercepted is determined as to be matched
Object;Similarly, when input method client shows animation Fig. 2 respectively, the interception of executive agent theme test device is comprising dynamic
The picture of picture 2, is also determined as object to be matched by the picture comprising animation Fig. 2 intercepted;
In another embodiment, the corresponding object to be matched of target topic can be obtained as follows:
Extract the component of the current topic effect for showing target topic;
The component extracted is determined as the corresponding object to be matched of target topic.
Intended client end can show the theme effect to match with object run after receiving object run, and target
Theme current topic effect is shown by constituting the component of target topic, therefore, can will be used to show target topic
Current topic effect component as object to be matched.
For example, include applied to the theme of input method client:Background, spcial character figure, pop-up effect this three
Component of the kind for showing theme effect, it is assumed that after being operated to intended client end performance objective, the execution of the embodiment of the present invention
Main body can extract Background, spcial character figure, pop-up effect these three components, and by the Background extracted, spcial character
Figure, pop-up effect these three components are as object to be matched.
It should be noted that the component of target topic can be constituted based on the element acquired in server-side.Specifically,
Server-side can crawl some elements for constituting component automatically, wherein the element for constituting component can be picture, animation effect
Fruit, font etc.;Certainly, the element for constituting component can also be that user uploads to picture, animation effect, font of server-side etc.,
This is all reasonable.
S103, the matching degree based on object to be matched and the corresponding target object of target topic, determines the survey of target topic
Test result, target object are the data content for characterizing the expection theme effect after object run executes.
Since target object is the data content of the expection theme effect after characterizing object run execution, and object to be matched
It is to characterize the data content of current topic effect after object run executes therefore to be based on object to be matched and target pair
The matching degree of elephant determines the test result of target topic.
It should be noted that above-mentioned target object is generated previously according to the expection theme effect of target topic, wherein
Above-mentioned target object can be comprising component, the sound for being expected the picture of theme effect, the expection theme effect for showing target topic
Sound etc..And the type of object to be matched and target object is identical.For example, being comprising expected theme effect in target object
When picture, object to be matched is the picture for including current topic effect;For another example being the pre- of displaying target topic in target object
When the component of phase theme effect, object to be matched is the component for the current topic effect for showing target topic.
In one embodiment, the matching degree based on object to be matched and the corresponding target object of target topic determines
The test result of target topic, may include steps of:
Determine corresponding with object to be matched target object, wherein the target object is the electronic equipment from service
What end obtained;
Calculate the matching degree of object to be matched and identified target object;
Judge whether the matching degree being calculated is more than or equal to preset matching degree;
If it is judged that matching degree is more than or equal to preset matching degree, test result is determined into the application success that is the theme;
If it is judged that matching degree is less than preset matching degree, test result determination is the theme using failure.
Since the target object of target topic has very much, such as can be spcial character, pop-up effect, sound etc., therefore,
After obtaining the object to be matched of target topic, it is first determined target object corresponding with object to be matched, that is to say, that target
The object to be matched of theme and the target object of target topic have correspondence.For example, object to be matched is " input method
In client, the pop-up effect of alphabetical a is pressed ", then target object is " in input method client, to press the pop-up effect of alphabetical a
Fruit ".
After target object corresponding with object to be matched is determined, object to be matched and identified target pair are calculated
The matching degree of elephant, wherein calculate matching degree mode can there are many, in embodiments of the present invention to calculate matching degree mode
It is not specifically limited.For example, when the picture that object to be matched is the current topic effect comprising target topic, target object
For the expection theme effect comprising target topic picture when, can by calculate object to be matched and target object it is European away from
From the matching degree of object and target object to be matched is obtained, it is of course also possible to pass through any calculating image in the prior art
The mode of matching degree obtains the matching degree of object and target object to be matched.
After the matching degree that object to be matched and identified target object is calculated, the matching being calculated is judged
Whether degree is more than or equal to preset matching degree, if the matching degree being calculated is more than or equal to preset matching degree, it is to be matched right to illustrate
As higher with the matching degree of target object, i.e., the similarity of object and target object to be matched is higher, to current topic effect
Expected theme effect can be reached, therefore, test result can be determined the application success that is the theme;Similarly, if calculated
The matching degree arrived be less than preset matching degree, illustrate that the matching degree of object and target object to be matched is relatively low, i.e., object to be matched and
The similarity of target object is relatively low, therefore, can be by test result to which current topic effect cannot reach expected theme effect
It determines and is the theme using failure.
It is understood that the size of preset matching degree can be set according to actual conditions, the embodiment of the present invention pair
The size of preset matching degree is simultaneously not specifically limited.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first before testing target topic
The corresponding object run in first intended client end, wherein the intended client end is the client using target topic to be tested, should
Object run is:The operation of the expection theme effect of target topic can be shown after being executed to intended client end;Then to predetermined
Client executing object run, and obtain the corresponding object to be matched of target topic, wherein object to be matched is characterization target behaviour
The data content of current topic effect after executing;Finally, object to be matched and the corresponding target object of target topic are based on
Matching degree, determine the test result of target topic, wherein target object be characterize object run execute after expection theme effect
The data content of fruit.As it can be seen that theme test method provided in an embodiment of the present invention, need not manually participate in, can realize automatic
Change ground test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e. the accuracy of test result is higher.
Further, on the basis of comprising S101-S103, as shown in Fig. 2, one kind that the embodiment of the present invention is provided
Theme test method can also include:
S104 carries out abnormal marking when test result is the theme using failure to object to be matched and/target object.
Theme test result be the theme using failure when, in order to enable theme tester's quicklook judge to lead
Whether topic application succeeds, and can carry out abnormal marking to object to be matched, can also be corresponded to target and carry out abnormal marking, may be used also
To carry out abnormal marking to object to be matched and target object simultaneously.Theme tester watch object to be matched and/or
It when target object carries abnormal marking, then can quickly go out target topic application failure, and theme application failure can be found
Position, and then target topic is safeguarded, so that target topic can be successfully applied to intended client end.
It should be noted that object to be matched and/or target carry out abnormal marking mode can there are many mode, examples
Such as, highlight mark or the label of other colors can be carried out.The embodiment of the present invention does not do specifically the mode of abnormal marking
It limits.
Compared with prior art, theme test method provided in an embodiment of the present invention, need not manually participate in, and can realize
Automatically test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e., the accuracy of test result compared with
It is high;Meanwhile by carrying out abnormal marking to object to be matched and/or target object, it can make theme tester's fast direct
It sees ground and judges whether theme application succeeds.
Further, on the basis of comprising S101-S103, as shown in figure 3, one kind that the embodiment of the present invention is provided
Theme test method can also include:
Test result is sent to server-side by S105, so that server-side shows test result.
In a period, the target topic of test may be one or more, alternatively, in a period of time can be with
One or many tests are carried out to target topic, can be seen about being tested in server-side in order to facilitate tester
All test results of target topic, the electronic equipment, can be by the surveys of target topic in the test result for obtaining target topic
Test result is sent to server-side.
Compared with prior art, theme test method provided in an embodiment of the present invention, need not manually participate in, and can realize
Automatically test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e., the accuracy of test result compared with
It is high;Meanwhile electronic equipment can facilitate tester to see about institute in server-side by the way that test result is sent to server-side
All test results of the target topic of test.
Second aspect, the embodiment of the present invention additionally provides a kind of theme test device, as shown in figure 5, being set applied to electronics
Standby, described device includes:
Object run determining module 410, for determining that the corresponding object run in intended client end, the intended client end be
Using the client of target topic to be tested, the object run is:Institute can be shown after being executed to the intended client end
State the operation of the expection theme effect of target topic;
Object acquisition module 420 to be matched, for executing the object run to the intended client end, and described in acquisition
The corresponding object to be matched of target topic, the object to be matched are the current topic effect after the characterization object run executes
Data content;
Test result determining module 430, for being based on the object to be matched and the corresponding target pair of the target topic
The matching degree of elephant determines that the test result of the target topic, the target object are after characterizing the object run execution
The data content of the expected theme effect.
Optionally, the object acquisition module 420 to be matched, can be specifically used for:
The picture of current topic effect of the interception comprising the target topic;
The picture intercepted is determined as the corresponding object to be matched of the target topic.
Optionally, the object acquisition module 420 to be matched, can be specifically used for:
Extract the component of the current topic effect for showing the target topic;
The component extracted is determined as the corresponding object to be matched of the target topic.
Optionally, the test result determining module 430, can be specifically used for:
Determine target object corresponding with the object to be matched, wherein the target object for the electronic equipment from
What server-side obtained;
Calculate the matching degree of the object to be matched and identified target object;
Judge whether the matching degree being calculated is more than or equal to preset matching degree;
If it is, the test result is determined the application success that is the theme;
If it has not, being the theme test result determination using failure.
Optionally, the component of the target topic is constituted based on the element acquired in server-side.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first before testing target topic
First determine that the corresponding object run in intended client end, the intended client end are the client using target topic to be tested, it should
Object run is:The operation of the expection theme effect of target topic can be shown after being executed to intended client end;Then to predetermined
Client executing object run, and obtain the corresponding object to be matched of target topic, wherein object to be matched is characterization target behaviour
The data content of current topic effect after executing;Finally, object to be matched and the corresponding target object of target topic are based on
Matching degree, determine the test result of target topic, wherein target object be characterize object run execute after expection theme effect
The data content of fruit.As it can be seen that theme test method provided in an embodiment of the present invention, need not manually participate in, can realize automatic
Change ground test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e. the accuracy of test result is higher.
Optionally, as shown in figure 5, the theme test device can also include:
Abnormal marking module 440, for the test result be the theme using failure when, to the object to be matched
With/target object progress abnormal marking.
Compared with prior art, theme test method provided in an embodiment of the present invention, need not manually participate in, and can realize
Automatically test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e., the accuracy of test result compared with
It is high;Meanwhile by carrying out abnormal marking to object to be matched and/or target object, it can make theme tester's fast direct
It sees ground and judges whether theme application succeeds.
Optionally, as shown in fig. 6, the theme test device can also include:
Test result sending module 450, for the test result to be sent to server-side, so that the server-side exhibition
Show the test result.
Compared with prior art, theme test method provided in an embodiment of the present invention, need not manually participate in, and can realize
Automatically test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e., the accuracy of test result compared with
It is high;Meanwhile electronic equipment can facilitate tester to see about institute in server-side by the way that test result is sent to server-side
All test results of the target topic of test.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, as shown in fig. 7, comprises processor 701, logical
Believe interface 702, memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 pass through communication
Bus 704 completes mutual communication,
Memory 703, for storing computer program;
Processor 701 when for executing the program stored on memory 703, realizes any master described in first aspect
Inscribe test method.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
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
Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first before testing target topic
The corresponding object run in first intended client end, wherein the intended client end is the client using target topic to be tested, should
Object run is:The operation of the expection theme effect of target topic can be shown after being executed to intended client end;Then to predetermined
Client executing object run, and obtain the corresponding object to be matched of target topic, wherein object to be matched is characterization target behaviour
The data content of current topic effect after executing;Finally, object to be matched and the corresponding target object of target topic are based on
Matching degree, determine the test result of target topic, wherein target object be characterize object run execute after expection theme effect
The data content of fruit.As it can be seen that theme test method provided in an embodiment of the present invention, need not manually participate in, can realize automatic
Change ground test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e. the accuracy of test result is higher.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit
It is stored with computer program in storage media, any master described in first aspect is realized when the computer program is executed by processor
Inscribe test method.
Compared with prior art, technical solution provided in an embodiment of the present invention, it is first before testing target topic
First determine the corresponding object run in intended client end, wherein the intended client end is the client using target topic to be tested
End, the object run are:The operation of the expection theme effect of target topic can be shown after being executed to intended client end;Then right
The performance objective operation of intended client end, and obtain the corresponding object to be matched of target topic, wherein object to be matched is characterization mesh
The data content of current topic effect after mark operation execution;Finally, object to be matched and the corresponding target of target topic are based on
The matching degree of object determines the test result of target topic, wherein target object is to characterize the expected master after object run executes
Inscribe the data content of effect.As it can be seen that theme test method provided in an embodiment of the present invention, need not manually participate in, can realize
Automatically test theme, theme testing efficiency is higher, and is not influenced by human factor, i.e., the accuracy of test result compared with
It is high.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, storage medium embodiment, since it is substantially similar to the method embodiment, so fairly simple, the phase of description
Place is closed referring to the part of embodiment of the method to illustrate.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of theme test method, which is characterized in that it is applied to electronic equipment, the method includes:
Determine that the corresponding object run in intended client end, the intended client end are the client using target topic to be tested
End, the object run are:The expection theme effect of the target topic can be shown after being executed to the intended client end
Operation;
The object run is executed to the intended client end, and obtains the corresponding object to be matched of the target topic, it is described
Object to be matched is the data content of the current topic effect after the characterization object run executes;
Matching degree based on the object to be matched and the corresponding target object of the target topic, determines the target topic
Test result, the target object are the data content of the expected theme effect after the characterization object run executes.
2. according to the method described in claim 1, it is characterized in that, described obtain the corresponding object to be matched of the target topic
The step of, including:
The picture of current topic effect of the interception comprising the target topic;
The picture intercepted is determined as the corresponding object to be matched of the target topic.
3. according to the method described in claim 1, it is characterized in that, described obtain the corresponding object to be matched of the target topic
The step of, including:
Extract the component of the current topic effect for showing the target topic;
The component extracted is determined as the corresponding object to be matched of the target topic.
4. method according to any one of claims 1 to 3, which is characterized in that described to be based on the object to be matched and institute
The matching degree for stating the corresponding target object of target topic determines the test result of the target topic, including:
Determine target object corresponding with the object to be matched, wherein the target object is the electronic equipment from service
What end obtained;
Calculate the matching degree of the object to be matched and identified target object;
Judge whether the matching degree being calculated is more than or equal to preset matching degree;
If it is, the test result is determined the application success that is the theme;
If it has not, being the theme test result determination using failure.
5. method according to any one of claims 1 to 3, which is characterized in that the component of the target topic is based on clothes
What the element being engaged in acquired in end was constituted.
6. method according to any one of claims 1 to 3, which is characterized in that the method further includes:
When the test result is the theme using failure, abnormal marking is carried out to the object to be matched and/target object.
7. according to claim 1-3 any one of them methods, which is characterized in that the method further includes:
The test result is sent to server-side, so that the server-side shows the test result.
8. a kind of theme test device, which is characterized in that be applied to electronic equipment, described device includes:
Object run determining module, for determining that the corresponding object run in intended client end, the intended client end are that application waits for
The client of the target topic of test, the object run are:The target can be shown after being executed to the intended client end
The operation of the expection theme effect of theme;
Object acquisition module to be matched for executing the object run to the intended client end, and obtains the target master
Corresponding object to be matched is inscribed, the object to be matched is the data of the current topic effect after the characterization object run executes
Content;
Test result determining module is used for the matching based on the object to be matched and the corresponding target object of the target topic
Degree determines that the test result of the target topic, the target object are the expection after the characterization object run executes
The data content of theme effect.
9. device according to claim 8, which is characterized in that the object acquisition module to be matched is specifically used for:
The picture of current topic effect of the interception comprising the target topic;
The picture intercepted is determined as the corresponding object to be matched of the target topic.
10. device according to claim 8, which is characterized in that the object acquisition module to be matched is specifically used for:
Extract the component of the current topic effect for showing the target topic;
The component extracted is determined as the corresponding object to be matched of the target topic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810276322.7A CN108519946A (en) | 2018-03-30 | 2018-03-30 | Theme testing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810276322.7A CN108519946A (en) | 2018-03-30 | 2018-03-30 | Theme testing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108519946A true CN108519946A (en) | 2018-09-11 |
Family
ID=63430887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810276322.7A Pending CN108519946A (en) | 2018-03-30 | 2018-03-30 | Theme testing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108519946A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103309664A (en) * | 2013-05-31 | 2013-09-18 | 北京小米科技有限责任公司 | Screenshot method, device and equipment |
CN103546907A (en) * | 2012-07-11 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | System and method for testing wireless application protocol webpage |
CN105025140A (en) * | 2014-04-30 | 2015-11-04 | 腾讯科技(深圳)有限公司 | Theme adaptation test method and apparatus |
US20150347284A1 (en) * | 2014-05-27 | 2015-12-03 | International Business Machines Corporation | Screenshot validation testing |
-
2018
- 2018-03-30 CN CN201810276322.7A patent/CN108519946A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546907A (en) * | 2012-07-11 | 2014-01-29 | 深圳市世纪光速信息技术有限公司 | System and method for testing wireless application protocol webpage |
CN103309664A (en) * | 2013-05-31 | 2013-09-18 | 北京小米科技有限责任公司 | Screenshot method, device and equipment |
CN105025140A (en) * | 2014-04-30 | 2015-11-04 | 腾讯科技(深圳)有限公司 | Theme adaptation test method and apparatus |
US20150347284A1 (en) * | 2014-05-27 | 2015-12-03 | International Business Machines Corporation | Screenshot validation testing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10990512B2 (en) | User interface test coverage | |
CN105553769B (en) | A kind of data acquisition and analysis system and method | |
CN109302522A (en) | Test method, device and computer system and medium | |
CN101295280B (en) | Automatic software debugging method and system | |
CN107092555A (en) | A kind of method and system of test application program | |
CN106326108A (en) | New application testing method and device | |
CN107357726A (en) | A kind of application compatibility method of testing and device | |
CN105187608B (en) | The method and apparatus of application program power consumption on a kind of acquisition mobile terminal | |
CN104503910A (en) | Product test method by monitoring users' using behavior | |
CN111080633A (en) | Screen defect detection method and device, terminal equipment and storage medium | |
CN106708528A (en) | Script generating method and device | |
CN107967207A (en) | The test method and device of user interface interaction function | |
CN112506773A (en) | Abnormal scene testing method, device, equipment and storage medium | |
CN106557419A (en) | The method of testing and device of program | |
CN106528413A (en) | Method and device for testing application program | |
US20180336122A1 (en) | Generating application flow entities | |
CN108595325A (en) | Input method software testing method and device and electronic equipment | |
CN108519946A (en) | Theme testing method and device and electronic equipment | |
US10969407B2 (en) | Soft front panel for concurrent radio frequency measurements | |
CN110941830B (en) | Vulnerability data processing method and device | |
CN109446084A (en) | User method and device are invited in TESTFLIGHT test outside a kind of end IOS | |
CN110297751A (en) | Detection method, device, storage medium and the processor of page elements | |
CN107800593A (en) | The method of testing and system of a kind of network pressure | |
CN109684525B (en) | Document display method and device, storage medium and test equipment | |
CN108509341A (en) | Input method software testing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180911 |