CN109857652A - A kind of automated testing method of user interface, terminal device and medium - Google Patents

A kind of automated testing method of user interface, terminal device and medium Download PDF

Info

Publication number
CN109857652A
CN109857652A CN201910039497.0A CN201910039497A CN109857652A CN 109857652 A CN109857652 A CN 109857652A CN 201910039497 A CN201910039497 A CN 201910039497A CN 109857652 A CN109857652 A CN 109857652A
Authority
CN
China
Prior art keywords
image
expected
testing procedure
screenshot image
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.)
Pending
Application number
CN201910039497.0A
Other languages
Chinese (zh)
Inventor
孙锦程
徐志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910039497.0A priority Critical patent/CN109857652A/en
Publication of CN109857652A publication Critical patent/CN109857652A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention is suitable for field of artificial intelligence, provides the automated testing method, terminal device and medium of a kind of user interface, comprising: the information of test case is obtained from the test case file of application to be measured;The corresponding executable script of test operation in the testing procedure is executed to the target UI control that each testing procedure in test case includes, obtain the actual functional capability test result of testing procedure, shot operation is carried out to the user interface shown after executable script has been executed, the expectation function test result of the first screenshot image and corresponding testing procedure that shot operation obtains is compared, obtain the first comparing result of testing procedure, the practical interface view test result of testing procedure is expected interface view test result with it to compare, obtain the second comparing result of testing procedure;The first comparing result and the second comparing result based on each testing procedure determine the UI test result of application to be measured, to realize the comprehensive test to user interface.

Description

A kind of automated testing method of user interface, terminal device and medium
Technical field
The invention belongs to field of artificial intelligence more particularly to a kind of automated testing methods of user interface, terminal Equipment and computer readable storage medium.
Background technique
Software test is essential link in software development process, the defect that the purpose is to find to hide in software, Software development and maintenance cost are reduced, the promotion of software quality is promoted.With the development of science and technology, software test increasingly tends to certainly Dynamicization, automation software testing be usually pass through Software Testing Tool according to certain test script to the various functions of software into Row test operation.In all types of automation software testings, the software test closest to user demand is to interact phase with user User interface (User Interface, UI) automatic test of pass.Existing UI automated testing method is usually to pass through to hold Row automatic test script carrys out operation behavior of the analog subscriber on software interface, and based on software to the sound of user's operation behavior Should result realize the functional test to control each in user interface.
However, existing UI automated testing method can only realize the functional test to control each in user interface, it can not Whether position, size, the color etc. of each control meet the expected requirements in detection user interface, i.e., the existing automatic test side UI Method cannot achieve the comprehensive test to user interface.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of automated testing method of user interface, terminal device and meters Calculation machine readable storage medium storing program for executing cannot achieve full side to control each in user interface to solve existing UI automated testing method The problem of bit test.
The first aspect of the embodiment of the present invention provides a kind of automated testing method of user interface, comprising:
It obtains from the test case file of application to be measured for testing the user interface UI of the application to be measured Test case information;The information of the test case include test case mark, the test case testing procedure that includes and The expected test result of each testing procedure;The mesh that the testing procedure is directed to by test operation and the test operation The description of UI control is marked, the expected test result includes expectation function test result and expected interface view test result;
Obtain the corresponding executable script of test operation in each testing procedure that the test case includes;
The corresponding institute of test operation in the testing procedure is executed to the target UI control that each testing procedure includes Executable script is stated, obtains the actual functional capability test result of each testing procedure, and to having executed the executable script The user interface shown afterwards carries out shot operation, and the first screenshot image that shot operation is obtained is as the reality of the testing procedure Border interface view test result;
The actual functional capability test result of each testing procedure is compared with its expectation function test result, The first comparing result of each testing procedure is obtained, and the practical interface view of each testing procedure is tested As a result interface view test result is expected with it to compare, obtain the second comparing result of each testing procedure;
First comparing result and second comparing result based on all testing procedures, determine described to be measured The UI test result of application.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program Realize following steps:
It obtains from the test case file of application to be measured for testing the user interface UI of the application to be measured Test case information;The information of the test case include test case mark, the test case testing procedure that includes and The expected test result of each testing procedure;The mesh that the testing procedure is directed to by test operation and the test operation The description of UI control is marked, the expected test result includes expectation function test result and expected interface view test result;
Obtain the corresponding executable script of test operation in each testing procedure that the test case includes;
The corresponding institute of test operation in the testing procedure is executed to the target UI control that each testing procedure includes Executable script is stated, obtains the actual functional capability test result of each testing procedure, and to having executed the executable script The user interface shown afterwards carries out shot operation, and the first screenshot image that shot operation is obtained is as the reality of the testing procedure Border interface view test result;
The actual functional capability test result of each testing procedure is compared with its expectation function test result, The first comparing result of each testing procedure is obtained, and the practical interface view of each testing procedure is tested As a result interface view test result is expected with it to compare, obtain the second comparing result of each testing procedure;
First comparing result and second comparing result based on all testing procedures, determine described to be measured The UI test result of application.
The third aspect of the embodiment of the present invention provides a kind of terminal device, comprising:
First acquisition unit, for obtaining from the test case file of application to be measured for the use to the application to be measured The information for the test case that family interface UI is tested;The information of the test case includes test case mark, test case The expected test result of the testing procedure and each testing procedure that include;The testing procedure passes through test operation and described The target UI control description that test operation is directed to, the expected test result include expectation function test result and expected interface view Figure test result;
Second acquisition unit, for obtaining the test operation pair in each testing procedure that the test case includes The executable script answered;
First execution unit, the target UI control for including to each testing procedure execute in the testing procedure The corresponding executable script of test operation, obtains the actual functional capability test result of each testing procedure, and to execution The user interface that shows after the complete executable script carries out shot operation, the first screenshot image that shot operation is obtained as The practical interface view test result of the testing procedure;
First comparison unit, for by the actual functional capability test result of each testing procedure and its expectation function Test result compares, and obtains the first comparing result of each testing procedure, and by the institute of each testing procedure It states practical interface view test result and is expected interface view test result with it and compare, obtain each testing procedure Second comparing result;
First determination unit, for based on all testing procedures first comparing result and it is described second comparison As a result, determining the UI test result of the application to be measured.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
It obtains from the test case file of application to be measured for testing the user interface UI of the application to be measured Test case information;The information of the test case include test case mark, the test case testing procedure that includes and The expected test result of each testing procedure;The mesh that the testing procedure is directed to by test operation and the test operation The description of UI control is marked, the expected test result includes expectation function test result and expected interface view test result;
Obtain the corresponding executable script of test operation in each testing procedure that the test case includes;
The corresponding institute of test operation in the testing procedure is executed to the target UI control that each testing procedure includes Executable script is stated, obtains the actual functional capability test result of each testing procedure, and to having executed the executable script The user interface shown afterwards carries out shot operation, and the first screenshot image that shot operation is obtained is as the reality of the testing procedure Border interface view test result;
The actual functional capability test result of each testing procedure is compared with its expectation function test result, The first comparing result of each testing procedure is obtained, and the practical interface view of each testing procedure is tested As a result interface view test result is expected with it to compare, obtain the second comparing result of each testing procedure;
First comparing result and second comparing result based on all testing procedures, determine described to be measured The UI test result of application.
Automated testing method, terminal device and the computer for implementing a kind of user interface provided in an embodiment of the present invention can Storage medium is read to have the advantages that
A kind of automatic test of user interface provided in this embodiment is in the user by test case to application to be measured When interface is tested, the testing procedure packet has been executed in the target UI control for including to each testing procedure in test case The corresponding executable script of the test operation contained, after obtaining the corresponding actual functional capability test result of the testing procedure, also to execution The user interface shown after complete executable script carries out shot operation, obtains the practical interface view test knot of each testing procedure Fruit, by by the actual functional capability test result of each testing procedure and practical interface view test result respectively with the testing procedure Expectation function test result and expected interface view test result compare, and then it is to be measured according to the comprehensive determination of comparing result The UI test result of application, since the first comparing result is able to reflect the functional test results of each UI control of application to be measured, Second comparing result is able to reflect the integral layout of the user interface comprising UI control and the test result of colouring information, therefore, The comprehensive test to user interface may be implemented in the embodiment of the present invention.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the automated testing method of user interface provided in an embodiment of the present invention;
Fig. 2 is the specific implementation stream of S14 in a kind of automated testing method of user interface provided in an embodiment of the present invention Cheng Tu;
Fig. 3 is the specific implementation stream of S141 in a kind of automated testing method of user interface provided in an embodiment of the present invention Cheng Tu;
Fig. 4 be another embodiment of the present invention provides a kind of user interface automated testing method implementation flow chart;
Fig. 5 is a kind of structural block diagram of terminal device provided in an embodiment of the present invention;
Fig. 6 be another embodiment of the present invention provides a kind of terminal device structural block diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referring to Fig. 1, Fig. 1 is a kind of realization stream of the automated testing method of user interface provided in an embodiment of the present invention Cheng Tu.In the present embodiment, the executing subject of the automated testing method of user interface is terminal device.Terminal device includes but not It is limited to smart phone, tablet computer or desktop computer.The automated testing method of user interface as shown in Figure 1 includes following step It is rapid:
S11: it is obtained from the test case file of application to be measured for the user interface UI progress to the application to be measured The information of the test case of test;The information of the test case includes the test step that test case identifies, test case includes The expected test result of rapid and each testing procedure;The testing procedure is directed to by test operation and the test operation The description of target UI control, the expected test result includes expectation function test result and expected interface view test result.
In the embodiment of the present invention, application (application, APP) to be measured is to need to carry out user interface (User Interface, UI) test application.In practical applications, developer can use in advance for each application configuration test to be measured Example text part, and by the application identities of application to be measured and the test case file associated storage of application to be measured in the test constructed in advance In use-case library.When testing the UI of application to be measured, terminal device can based on the application identities of application to be measured, from The test case file of application to be measured is obtained in the test case file library constructed in advance.
Record has the letter for treating at least one test case that the UI for surveying and applying is tested in test case file Breath.Wherein, each test case is for testing an interactive function of application to be measured, each test case include to A few testing procedure, the testing procedure target UI control description targeted by test operation and test operation.Illustratively, Table 1 shows the test case file of APP1, in the test case file include two test cases APP1_01 and APP1_02, Wherein, for testing the content search function of APP1, APP1_02 is used to that the personal information of APP1 to be arranged APP1_01 Function is tested, and illustratively, this testing procedure passes through test to " 3, click search control beside search box " in table 1 " click " and target UI control " the search control beside search box " are operated to describe.
It should be noted that each testing procedure of test case is provided with corresponding expected test result in advance, in advance Phase test result is expected user interface to be shown after having executed corresponding testing procedure for describing.Expected test result includes Expectation function test result and expected interface view test result, it is contemplated that functional test results are by having executed corresponding test step The content being displayed in the user interface is expected after rapid to describe;It is expected that interface view test result is by having executed corresponding test The screenshot image (i.e. expected screenshot image) of user interface to be shown is expected after step to describe.
Table 1
After terminal device gets the test case file of application to be measured, read from the test case file of application to be measured The information of its all test case recorded.
S12: the corresponding executable foot of test operation in each testing procedure that the test case includes is obtained This.
In practical applications, developer can pre-define multiple test operations, and for the configuration of each test operation with Its corresponding executable script, and the corresponding executable script association of the title of test operation predetermined is stored in In script bank.Wherein, executable script is using specific computer description language, and the calculating write according to certain format Machine can identify and execution script.
In the embodiment of the present invention, terminal device reads out the information of test case from the test case file of application to be measured Afterwards, semantic analysis is carried out to each testing procedure that each test case includes, obtains the test behaviour that each testing procedure includes The title for the target UI control that the title of work and the test operation are directed to.The test that terminal device includes based on each testing procedure The title of operation obtains the corresponding executable script of test operation that each testing procedure includes from script bank.
S13: it is corresponding that the test operation in the testing procedure is executed to the target UI control that each testing procedure includes The executable script, obtain the actual functional capability test result of each testing procedure, and described executable to having executed The user interface shown after script carries out shot operation, and the first screenshot image that shot operation is obtained is as the testing procedure Practical interface view test result.
Terminal device has determined the corresponding executable foot of test operation that each testing procedure of each test case includes After this, the title based on the target UI control that each testing procedure includes obtains each testing procedure from UI control information table The location information of the target UI control for including in the user interface, and the target UI control for including based on each testing procedure is in phase The location information in user interface is answered, the target UI that each testing procedure includes is searched in the respective user interfaces of application to be measured Control.Wherein, UI control information table is used to store the title of the every UI control for including in the user interface of application to be measured and every Default corresponding relationship between the location information of one UI control in the user interface.
Terminal device finds the target UI control that each testing procedure includes in the respective user interfaces of application to be measured Afterwards, the corresponding executable foot of test operation which includes is executed to the target UI control that each testing procedure includes This, the target UI control for including to certain testing procedure has been executed the content that user interface after executable script is shown by terminal device It is determined as the actual functional capability test result of the testing procedure.Meanwhile terminal device is in the target UI for including to each testing procedure After control has executed executable script accordingly, shot operation is carried out to the user interface shown after executable script has been executed, The first screenshot image that shot operation is obtained is determined as the practical interface view test result of the testing procedure.
S14: the actual functional capability test result of each testing procedure and its expectation function test result are carried out Comparison obtains the first comparing result of each testing procedure, and the practical interface of each testing procedure is regarded Figure test result is expected interface view test result with it and is compared, and the second comparison knot of each testing procedure is obtained Fruit.
In the embodiment of the present invention, terminal device obtains the actual functional capability test knot of each testing procedure of each test case After fruit and practical interface view test result, by the expection of the actual functional capability test result of each testing procedure and the testing procedure Functional test results are compared, and obtain the first comparing result of each testing procedure;And by the practical boundary of each testing procedure Face view test result is compared with the expection interface view test result of the testing procedure, obtains the of each testing procedure Two comparing results.Wherein, the first comparing result may include: to meet the expected requirements or do not meet expected requirement.Second comparison knot Fruit also may include: to meet the expected requirements and do not meet expected requirement.
As an embodiment of the present invention, the target UI control for including to each testing procedure the test step can have been executed into The screenshot image of expected user interface to be shown is determined as the testing procedure after the corresponding perform script of test operation in rapid Expection screenshot image, described by the expection screenshot image of each testing procedure each testing procedure expection interface view Figure test result.Wherein, the test operation pair in the testing procedure has been executed to the target UI control that each testing procedure includes The screenshot image of expected user interface to be shown can be preset by developer after the perform script answered.
Based on this, " the practical interface view test result of each testing procedure is expected boundary with it in S14 Face view test result compares, and obtains the second comparing result of each testing procedure " the step for can specifically pass through S141~S142 as shown in Figure 2 realizes that details are as follows:
S141: by the first screenshot image and the expection screenshot figure for being used to describe the expected interface view test result As comparing, the similarity between the first screenshot image and the expected screenshot image is calculated.
S142: described second pair is determined based on the similarity between the first screenshot image and the expected screenshot image Compare result.
In the present embodiment, terminal device will can be used to describe the practical interface view test result of each testing procedure First screenshot image and the expection screenshot image of the expection interface view test result for describing the testing procedure compare, The similarity between the expected screenshot image of the first screenshot image is calculated, and based between the first screenshot image and expected screenshot image Similarity determine the second comparing result of the testing procedure.
Specifically, if terminal device detects first of the practical interface view test result for describing certain testing procedure Similarity between screenshot image and the expection screenshot image of the expection interface view test result for describing the testing procedure More than or equal to default similarity threshold, then determine that the second comparing result of the testing procedure is to meet the expected requirements;Terminal is set If standby the first screenshot image for detecting the practical interface view test result for describing certain testing procedure with for describing this Similarity between the expection screenshot image of the expection interface view test result of testing procedure is less than default similarity threshold, then The second comparing result for determining the testing procedure is not meet expected requirement.Wherein, default similarity threshold can be according to reality Demand setting.
As an embodiment of the present invention, S141 can specifically be realized by S1411~S1413 as shown in Figure 3, be described in detail such as Under:
S1411: carrying out gray proces to the first screenshot image and the expected screenshot image respectively, obtains described the Second gray level image of the first gray level image of one screenshot image and the expected screenshot image.
In the present embodiment, terminal device obtains of the practical interface view test result for describing each testing procedure After one screenshot image, can the first screenshot image to the practical interface view test result for describing each testing procedure and Expection screenshot image for describing the expection interface view test result of the testing procedure carries out gray proces, and then obtains The first gray level image and the corresponding expected screenshot image of each testing procedure of the corresponding first screenshot image of each testing procedure The second gray level image.It should be noted that in the embodiment of the present invention, the size of the first gray level image and the second gray level image Size is identical, is n × m pixel, and n and m are the integer more than or equal to 1.
S1412: determining the finger image of the first screenshot image based on first gray level image, and based on described the Two gray level images determine the finger image of the expected screenshot image.
In the present embodiment, terminal device obtain the corresponding first screenshot image of each testing procedure the first gray level image and After second gray level image of the corresponding expected screenshot image of each testing procedure, the ash of all pixels in the first gray level image is calculated Average value is spent, and then obtains the average gray of the first gray level image, and calculates the gray scale of all pixels in the second gray level image Average value, and then obtain the average gray of the second gray level image.
Gray scale of the terminal device by the gray value of all pixels in the first gray level image respectively with the first gray level image is put down Mean value compares, if detecting, the gray value of certain pixel in the first gray level image is greater than or equal to the gray scale of the first gray level image Average value then sets 1 for the value of the corresponding fingerprint elements of the pixel, if detecting the gray scale of certain pixel in the first gray level image Be worth less than the first gray level image average gray, then set 0 for the value of the corresponding fingerprint elements of the pixel, so obtain by First finger image is determined as the figure of the first screenshot image by the first finger image that n × m fingerprint elements are constituted, terminal device As fingerprint.
Meanwhile terminal device also by the gray value of all pixels in the second gray level image respectively with the second gray level image Average gray compares, if detecting, the gray value of certain pixel in the second gray level image is greater than or equal to the second gray level image Average gray, then 1 is set by the value of the corresponding fingerprint elements of the pixel, if detecting certain pixel in the second gray level image Gray value less than the average gray of the second gray level image, then set 0 for the value of the corresponding fingerprint elements of the pixel, in turn The second finger image being made of n × m fingerprint elements is obtained, the second finger image is determined as expected screenshot figure by terminal device The finger image of picture.
S1413: the finger image of finger image and the expected screenshot image based on the first screenshot image calculates Similarity between the first screenshot image and the expected screenshot image.
In the present embodiment, terminal device obtains the finger image of the first screenshot image and the finger image of expected screenshot image Afterwards, each fingerprint elements in the finger image of the first screenshot image are corresponding to the finger image of expected screenshot image respectively The fingerprint elements of position compare, and count phase in the finger image of the first screenshot image and the finger image of expected screenshot image The number of identical fingerprint elements with the value of position is denoted as the first sum, the fingerprint that will include in the first sum and finger image The ratio between sum of element is determined as the similarity between the first screenshot image and expected screenshot image.
As another embodiment of the present invention, S1413 can specifically include following steps:
The finger image of finger image, the expected screenshot image based on the first screenshot image and default similarity Calculation formula calculates the similarity between the first screenshot image and the expected screenshot image;The default similarity meter Calculate formula are as follows:
Wherein, similarity of the Similarity (X, Y) between the first screenshot image and the expected screenshot image, X is the finger image of the first screenshot image, and Y is the finger image of the expected screenshot image, and k is the first screenshot image The sum for the fingerprint elements for including in the finger image of finger image and the expected screenshot image, xiFor the first screenshot figure The value of i-th of fingerprint elements, y in the finger image of pictureiFor i-th of fingerprint elements in the finger image of the second screenshot image Value.
S15: first comparing result and second comparing result based on all testing procedures, determine described in The UI test result of application to be measured.
In the embodiment of the present invention, terminal device obtains the first comparing result and the second comparing result of each testing procedure Afterwards, the first comparing result and the second comparing result based on each testing procedure, determine the first test result of the testing procedure, And the application to be measured is determined based on the first test result of all testing procedures for including in the test case file of application to be measured UI test result.
Specifically, if the first comparing result and second for all testing procedures that all test cases of application to be measured include Comparing result is to meet the expected requirements, then determines that the UI test result of the application to be measured passes through for test;If at least one The first comparing result and/or the second comparing result at least one testing procedure that test case includes are not meet expection to want It asks, then determines that the UI test result of the application to be measured does not pass through for test.
Above as can be seen that a kind of automatic test of user interface provided in this embodiment is treated by test case When the user interface of survey application is tested, executed in the target UI control for including to each testing procedure in test case The corresponding executable script of the test operation that the testing procedure includes obtains the corresponding actual functional capability test result of the testing procedure Afterwards, the practical boundary of each testing procedure also is obtained to the user interface progress shot operation shown after executable script has been executed Face view test result, by distinguishing the actual functional capability test result of each testing procedure and practical interface view test result It is compared with the expectation function test result of the testing procedure and expected interface view test result, and then according to comparing result The comprehensive UI test result for determining application to be measured, since the first comparing result is able to reflect the function of each UI control of application to be measured Energy test result, the second comparing result are able to reflect the test of the integral layout and colouring information of the user interface comprising UI control As a result, therefore, the comprehensive test to user interface may be implemented in the embodiment of the present invention.
Referring to Fig. 4, Fig. 4 be another embodiment of the present invention provides a kind of user interface automated testing method reality Existing flow chart.Relative to the corresponding embodiment of Fig. 1, a kind of automated testing method of user interface provided in this embodiment exists Can also include S01~S05, details are as follows before S11:
S01: it describes to obtain the user interface UI progress for the application to be measured in file from the first of application to be measured At least one set of operating procedure of operation;The target UI control that the operating procedure is directed to by operational motion and the operational motion Description.
In the embodiment of the present invention, before carrying out UI test to application to be measured, need first to generate for application to be measured At least one test case that UI is tested.
In practical applications, developer is to be measured in exploitation in application, can be equal for every UI interactive function of application to be measured One group of operating procedure for realizing the UI interactive function is configured, one group of operating procedure is made of at least one operating procedure, and one Group operating procedure for realizing application to be measured a UI interactive function, and each operating procedure can by operational motion and The targeted UI control description of operational motion.The survey that developer can will be configured by all UI interactive functions of application to be measured What try was stored in the application to be measured suddenly first describes in file, and the first of application to be measured, which describes file, can store in terminal In the local data base of equipment, also it can store in the host computer being connected with terminal device, host computer can be server.
When needing to generate test case for testing the UI of application to be measured, can by with terminal device phase Host computer even sends pretest instruction to terminal device, after terminal device receives pretest instruction, from local data base or The first of application to be measured is obtained from host computer and describes file, and first describes to obtain in file for application to be measured from this At least one set of operating procedure that user interface is operated.
S02: the corresponding executable script of operational motion that each operating procedure includes is obtained.
After terminal device gets at least one set of operating procedure for being operated to the UI of application to be measured, to every group of behaviour Make each operating procedure for including in step and carry out semantic analysis, obtains the name of the operational motion for describing each operating procedure The title for the target UI control that title and the operational motion are directed to.
The title for the operational motion that terminal device includes based on each operating procedure obtains each operation step from script bank Suddenly the corresponding executable script of the operational motion for including.Wherein, script bank is for storing multiple operational motions predetermined Default corresponding relationship between title executable script corresponding with operational motion.
S03: it is corresponding that the operational motion in the operating procedure is executed to the target UI control that each operating procedure includes The executable script, and carry out shot operation to the user interface that shows after the executable script has been executed, obtain every Second screenshot image of one operating procedure.
In the present embodiment, terminal device gets the step of each operation for being operated to the user interface of application to be measured Suddenly after the corresponding executable script of the operational motion for including, the title based on the target UI control that each operating procedure includes, from The location information of target UI control that each operating procedure includes in the user interface is obtained in UI control information table, and based on every Location information of the target UI control that one operating procedure includes in respective user interfaces, in the respective user interfaces of application to be measured The middle target UI control searched each operating procedure and include.Wherein, UI control information table is used to store user circle of application to be measured Default between the location information of the title for the every UI control for including in face and every UI control in the user interface corresponding is closed System.
Terminal device finds the target UI control that each operating procedure includes in the respective user interfaces of application to be measured Afterwards, the corresponding executable foot of operational motion which includes is executed to the target UI control that each operating procedure includes This, and shot operation is carried out to the user interface shown after executable script has been executed, obtain second section of each operating procedure Figure image.
S04: the second screenshot image of each operating procedure of display, and export the first prompt information;Described One prompt information is for prompting user to verify the second screenshot image.
In the present embodiment, after terminal device obtains the second screenshot image of each operating procedure, in the interaction of terminal device Second screenshot image of each operating procedure of interface display, and the first prompt information is exported, to prompt user to walk each operation The second rapid screenshot image is verified, and then verifies layout, size and the color of the UI control for including in the second screenshot image Deng whether meeting the expected requirements.It should be noted that the user in the present embodiment refers to the developer for developing application to be measured.
User is if it is determined that layout, size and the color etc. of all UI controls in the second screenshot image meet expected want It asks, then can feed back the first check information passed through for identifying verification to terminal device, user is if it is determined that the second screenshot image In the UI control for including the layout, size of at least one UI control and in color at least one of do not meet expected requirement, then It can be fed back to terminal device and verify unsanctioned second check information for identifying.As an embodiment of the present invention, terminal is set It is standby after export the first prompt information, can the interactive interface for showing the second screenshot image show the first preset control with Second preset control, user can be by triggering the first preset control shown for showing the interactive interface of the second screenshot image The first check information and the second check information are fed back respectively to terminal device with the second preset control.
S05: receiving the check information that the user is fed back based on first prompt information, if detecting the verification letter Breath passes through for verification, then the second screenshot image of the operating procedure is determined as to the expection interface view of the operating procedure Test result.
If terminal device detects that user's triggering is used to show that the interactive interface of the second screenshot image is shown first is default Control or the second preset control, it is determined that receive the check information that user is fed back based on the first prompt information.Specifically, terminal If equipment detects user's triggering for showing the first preset control that the interactive interface of the second screenshot image is shown, it is determined that connect The check information received is that verification passes through, and is walked at this point, the second screenshot image of operating procedure is determined as the operation by terminal device Rapid expection interface view test result.
In the present embodiment, terminal device performs the operating procedure to the target UI control that each operating procedure includes and includes The corresponding executable script of operational motion after, also export the second prompt information, the second prompt information is for prompting user to holding The content that user interface is shown after script accordingly can be performed of having gone is verified, and has executed corresponding can be performed to verify terminal device Whether the content that user interface is shown after script meets the expected requirements.Wherein, the content that user interface is shown may include but not It is limited to word content and image content etc..
User meets expected want if it is determined that terminal device has executed the content that user interface is shown after script accordingly can be performed It asks, then can feed back the third check information passed through for identifying verification to terminal device;User is if it is determined that terminal device executes The content that user interface is shown after complete corresponding executable script does not meet expected requirement, then can feed back to terminal device for marking Know and verifies unsanctioned 4th check information.
If terminal device receives the third check information of user feedback, the target UI that will include to each operating procedure Control performs the content that user interface after the corresponding executable script of operational motion that the operating procedure includes is shown and is determined as The expectation function test result of the operating procedure.
Terminal device has determined the expectation function test result of each operating procedure and expected interface in every group of operating procedure After view test result, by each operating procedure and its expectation function test result and expected interface view in every group of operating procedure Figure test result is associated, and will be associated with every group of behaviour after expectation function test result and expected interface view test result Make the test case that step is tested as the UI interactive function for being realized to this group of operating procedure.
Above as can be seen that a kind of automated testing method of user interface provided by the embodiment to be to be measured by answering in advance Every UI interactive function configures test case, to provide UI testing efficiency.
Referring to Fig. 5, Fig. 5 is a kind of structural block diagram of terminal device provided in an embodiment of the present invention.In the present embodiment Terminal device is terminal device.The each unit that the terminal device includes is used to execute each step in the corresponding embodiment of Fig. 1 to Fig. 4 Suddenly.Referring specifically to the associated description in embodiment corresponding to Fig. 1 to Fig. 4 and Fig. 1 to Fig. 4.For ease of description, only show Part related to the present embodiment is gone out.Referring to Fig. 5, terminal device 500 includes: first acquisition unit 51, second acquisition unit 52, the first execution unit 53, the first comparison unit 54 and the first determination unit 55.Wherein:
First acquisition unit 51 is used to obtain from the test case file of application to be measured for the application to be measured The information for the test case that user interface UI is tested;The information of the test case includes test case mark, test use The expected test result of testing procedure and each testing procedure that example includes;The testing procedure passes through test operation and institute The target UI control description that test operation is directed to is stated, the expected test result includes expectation function test result and expected interface View test result;
Second acquisition unit 52 is used to obtain the test operation in each testing procedure that the test case includes Corresponding executable script;
First execution unit 53 is for executing in the testing procedure target UI control that each testing procedure includes The corresponding executable script of test operation, obtain the actual functional capability test result of each testing procedure, and to holding The user interface shown after the executable script of having gone carries out shot operation, and the first screenshot image that shot operation is obtained is made For the practical interface view test result of the testing procedure;
First comparison unit 54 is used to the actual functional capability test result of each testing procedure being expected function with it Can test result compare, obtain the first comparing result of each testing procedure, and by each testing procedure The practical interface view test result is expected interface view test result with it and is compared, and each testing procedure is obtained The second comparing result;
First determination unit 55 is for first comparing result based on all testing procedures and second pair described Than as a result, determining the UI test result of the application to be measured.
As an embodiment of the present invention, the first comparison unit 54 specifically includes: the first computing unit and the second determination unit. Wherein:
First computing unit is used for the first screenshot image and is used to describe the expected interface view test result Expection screenshot image compare, calculate the similarity between the first screenshot image and the expected screenshot image.
Second determination unit is used for true based on the similarity between the first screenshot image and the expected screenshot image Fixed second comparing result.
As an embodiment of the present invention, the first computing unit specifically includes: image processing unit, fingerprint determination unit and phase Like degree computing unit.Wherein:
Image processing unit is used to carry out gray proces to the first screenshot image and the expected screenshot image respectively, Obtain the first gray level image of the first screenshot image and the second gray level image of the expected screenshot image.
Fingerprint determination unit is used to determine the finger image of the first screenshot image based on first gray level image, and The finger image of the expected screenshot image is determined based on second gray level image.
Similarity calculated is for finger image and the expected screenshot image based on the first screenshot image Finger image calculates the similarity between the first screenshot image and the expected screenshot image.
As an embodiment of the present invention, similarity calculated is specifically used for:
The finger image of finger image, the expected screenshot image based on the first screenshot image and default similarity Calculation formula calculates the similarity between the first screenshot image and the expected screenshot image;The default similarity meter Calculate formula are as follows:
Wherein, similarity of the Similarity (X, Y) between the first screenshot image and the expected screenshot image, X is the finger image of the first screenshot image, and Y is the finger image of the expected screenshot image, and k is the first screenshot image The sum for the fingerprint elements for including in the finger image of finger image and the expected screenshot image, xiFor the first screenshot figure The value of i-th of fingerprint elements, y in the finger image of pictureiFor i-th of fingerprint elements in the finger image of the second screenshot image Value.
As an embodiment of the present invention, terminal device 500 further include: third acquiring unit, the 4th acquiring unit, screenshot list Member, prompt unit and third determination unit.Wherein:
Third acquiring unit is used to describe to obtain in file for the use to the application to be measured from the first of application to be measured At least one set of operating procedure that family interface UI is operated;The operating procedure is directed to by operational motion and the operational motion Target UI control description.
4th acquiring unit is for obtaining the corresponding executable script of operational motion that each operating procedure includes.
Screenshot unit is used to execute the target UI control that each operating procedure includes the operation in the operating procedure The corresponding executable script is acted, and carries out screenshot behaviour to the user interface shown after the executable script has been executed Make, obtains the second screenshot image of each operating procedure.
Prompt unit is used to show the second screenshot image of each operating procedure, and exports the first prompt letter Breath;First prompt information is for prompting user to verify the second screenshot image.
Third determination unit is for receiving the check information that the user is fed back based on first prompt information, if detection It is that verification passes through to the check information, then the second screenshot image of the operating procedure is determined as the operating procedure It is expected that interface view test result.
Above as can be seen that a kind of terminal device provided in this embodiment is in the user by test case to application to be measured When interface is tested, the testing procedure packet has been executed in the target UI control for including to each testing procedure in test case The corresponding executable script of the test operation contained, after obtaining the corresponding actual functional capability test result of the testing procedure, also to execution The user interface shown after complete executable script carries out shot operation, obtains the practical interface view test knot of each testing procedure Fruit, by by the actual functional capability test result of each testing procedure and practical interface view test result respectively with the testing procedure Expectation function test result and expected interface view test result compare, and then it is to be measured according to the comprehensive determination of comparing result The UI test result of application, since the first comparing result is able to reflect the functional test results of each UI control of application to be measured, Second comparing result is able to reflect the integral layout of the user interface comprising UI control and the test result of colouring information, therefore, The comprehensive test to user interface may be implemented in the embodiment of the present invention.
Fig. 6 be another embodiment of the present invention provides a kind of terminal device structural block diagram.As shown in fig. 6, the embodiment Terminal device 6 include: processor 60, memory 61 and be stored in the memory 61 and can be on the processor 60 The computer program 62 of operation, for example, user interface automated testing method program.Processor 60 executes the computer The step in each embodiment of automated testing method of above-mentioned each user interface, such as S11 shown in FIG. 1 are realized when program 62 To S14.Alternatively, the processor 60 realizes each unit in the corresponding embodiment of above-mentioned Fig. 5 when executing the computer program 62 Function, for example, the function of unit 51 to 54 shown in fig. 5, referring specifically to the associated description in the corresponding embodiment of Fig. 5, It does not repeat herein.
Illustratively, the computer program 62 can be divided into one or more units, one or more of Unit is stored in the memory 61, and is executed by the processor 60, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 62 in the terminal device 6.For example, the computer program 62 can be divided into the first acquisition list Member, second acquisition unit, the first execution unit, the first comparison unit and the first determination unit, each unit concrete function institute as above It states.
The terminal device may include, but be not limited only to, processor 60, memory 61.Those skilled in the art can manage Solution, Fig. 6 is only the example of terminal device 6, does not constitute the restriction to terminal device 6, may include more or more than illustrating Few component perhaps combines certain components or different components, such as the terminal device can also be set including input and output Standby, network access equipment, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as the hard disk or interior of terminal device 6 It deposits.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as be equipped on the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of automated testing method of user interface characterized by comprising
The survey for being tested the user interface UI of the application to be measured is obtained from the test case file of application to be measured The information of example on probation;The information of the test case includes test case mark, the test case testing procedure that includes and each The expected test result of the testing procedure;The target UI that the testing procedure is directed to by test operation and the test operation Control description, the expected test result include expectation function test result and expected interface view test result;
Obtain the corresponding executable script of test operation in each testing procedure that the test case includes;
To the target UI control that each testing procedure includes execute the test operation in the testing procedure it is corresponding it is described can Perform script, obtains the actual functional capability test result of each testing procedure, and to showing after having executed the executable script The user interface shown carries out shot operation, and the first screenshot image that shot operation is obtained is as the practical boundary of the testing procedure Face view test result;
The actual functional capability test result of each testing procedure is compared with its expectation function test result, is obtained First comparing result of each testing procedure, and by the practical interface view test result of each testing procedure Interface view test result is expected with it to compare, and obtains the second comparing result of each testing procedure;
First comparing result and second comparing result based on all testing procedures, determine the application to be measured UI test result.
2. the automated testing method of user interface according to claim 1, which is characterized in that described by each survey The rapid practical interface view test result of try is expected interface view test result with it and is compared, and obtains each described Second comparing result of testing procedure, comprising:
The first screenshot image is carried out with the expection screenshot image for being used to describe the expected interface view test result pair Than calculating the similarity between the first screenshot image and the expected screenshot image;
Second comparing result is determined based on the similarity between the first screenshot image and the expected screenshot image.
3. the automated testing method of user interface according to claim 2, which is characterized in that described by described first section Figure image is compared with the expection screenshot image for describing the expected interface view test result, calculates described first section Similarity between figure image and the expected screenshot image, comprising:
Gray proces are carried out to the first screenshot image and the expected screenshot image respectively, obtain the first screenshot image The first gray level image and the expected screenshot image the second gray level image;
The finger image of the first screenshot image is determined based on first gray level image, and is based on second gray level image Determine the finger image of the expected screenshot image;
The finger image of finger image and the expected screenshot image based on the first screenshot image calculates described first section Similarity between figure image and the expected screenshot image.
4. the automated testing method of user interface according to claim 3, which is characterized in that described to be based on described first The finger image of the finger image of screenshot image and the expected screenshot image calculates the first screenshot image and the expection Similarity between screenshot image, comprising:
The finger image and default similarity calculation of finger image, the expected screenshot image based on the first screenshot image Formula calculates the similarity between the first screenshot image and the expected screenshot image;The default similarity calculation is public Formula are as follows:
Wherein, similarity of the Similarity (X, Y) between the first screenshot image and the expected screenshot image, X are The finger image of the first screenshot image, Y are the finger image of the expected screenshot image, and k is the figure of the first screenshot image As the sum for the fingerprint elements for including in the finger image of fingerprint and the expected screenshot image, xiFor the first screenshot image Finger image in i-th of fingerprint elements value, yiFor i-th fingerprint elements in the finger image of the second screenshot image Value.
5. the automated testing method of user interface according to claim 1-4, which is characterized in that it is described to It surveys in the test case file of application and obtains the test case for being tested the user interface UI of the application to be measured Before information, further includes:
From the first of application to be measured describe in file obtain for the user interface UI of the application to be measured operated to Few one group of operating procedure;The operating procedure is described by the target UI control that operational motion and the operational motion are directed to;
Obtain the corresponding executable script of operational motion that each operating procedure includes;
To the target UI control that each operating procedure includes execute the operational motion in the operating procedure it is corresponding it is described can Perform script, and shot operation is carried out to the user interface shown after the executable script has been executed, obtain each behaviour Make the second screenshot image of step;
It shows the second screenshot image of each operating procedure, and exports the first prompt information;The first prompt letter Breath is for prompting user to verify the second screenshot image;
The check information that the user is fed back based on first prompt information is received, if detecting the check information for verification Pass through, then the second screenshot image of the operating procedure is determined as to the expection interface view test knot of the operating procedure Fruit.
6. a kind of terminal device, which is characterized in that the terminal device includes memory, processor and is stored in the storage In device and the computer program that can run on the processor, the processor are realized as follows when executing the computer program Step:
The survey for being tested the user interface UI of the application to be measured is obtained from the test case file of application to be measured The information of example on probation;The information of the test case includes test case mark, the test case testing procedure that includes and each The expected test result of the testing procedure;The target UI that the testing procedure is directed to by test operation and the test operation Control description, the expected test result include expectation function test result and expected interface view test result;
Obtain the corresponding executable script of test operation in each testing procedure that the test case includes;
To the target UI control that each testing procedure includes execute the test operation in the testing procedure it is corresponding it is described can Perform script, obtains the actual functional capability test result of each testing procedure, and to showing after having executed the executable script The user interface shown carries out shot operation, and the first screenshot image that shot operation is obtained is as the practical boundary of the testing procedure Face view test result;
The actual functional capability test result of each testing procedure is compared with its expectation function test result, is obtained First comparing result of each testing procedure, and by the practical interface view test result of each testing procedure Interface view test result is expected with it to compare, and obtains the second comparing result of each testing procedure;
First comparing result and second comparing result based on all testing procedures, determine the application to be measured UI test result.
7. terminal device according to claim 6, which is characterized in that the reality by each testing procedure Interface view test result is expected interface view test result with it and is compared, and second pair of each testing procedure is obtained Compare result, comprising:
The first screenshot image is carried out with the expection screenshot image for being used to describe the expected interface view test result pair Than calculating the similarity between the first screenshot image and the expected screenshot image;
Second comparing result is determined based on the similarity between the first screenshot image and the expected screenshot image.
8. terminal device according to claim 7, which is characterized in that it is described by the first screenshot image be used to describe The expection screenshot image of the expected interface view test result compares, and calculates the first screenshot image and the expection Similarity between screenshot image, comprising:
Gray proces are carried out to the first screenshot image and the expected screenshot image respectively, obtain the first screenshot image The first gray level image and the expected screenshot image the second gray level image;
The finger image of the first screenshot image is determined based on first gray level image, and is based on second gray level image Determine the finger image of the expected screenshot image;
The finger image of finger image and the expected screenshot image based on the first screenshot image calculates described first section Similarity between figure image and the expected screenshot image.
9. a kind of terminal device characterized by comprising
First acquisition unit, for obtaining from the test case file of application to be measured for user circle to the application to be measured The information for the test case that face UI is tested;The information of the test case includes that test case identifies, test case includes Testing procedure and each testing procedure expected test result;The testing procedure passes through test operation and the test The target UI control description being directed to is operated, the expected test result includes that expectation function test result and expected interface view are surveyed Test result;
Second acquisition unit, it is corresponding for obtaining the test operation in each testing procedure that the test case includes Executable script;
First execution unit, the target UI control for including to each testing procedure execute the test in the testing procedure The corresponding executable script is operated, obtains the actual functional capability test result of each testing procedure, and to having executed It states the user interface shown after executable script and carries out shot operation, the first screenshot image that shot operation is obtained is as described in The practical interface view test result of testing procedure;
First comparison unit, for testing the actual functional capability test result of each testing procedure and its expectation function As a result it compares, obtains the first comparing result of each testing procedure, and by the reality of each testing procedure Border interface view test result is expected interface view test result with it and is compared, and the second of each testing procedure is obtained Comparing result;
First determination unit, for first comparing result and the second comparison knot based on all testing procedures Fruit determines the UI test result of the application to be measured.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201910039497.0A 2019-01-16 2019-01-16 A kind of automated testing method of user interface, terminal device and medium Pending CN109857652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910039497.0A CN109857652A (en) 2019-01-16 2019-01-16 A kind of automated testing method of user interface, terminal device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910039497.0A CN109857652A (en) 2019-01-16 2019-01-16 A kind of automated testing method of user interface, terminal device and medium

Publications (1)

Publication Number Publication Date
CN109857652A true CN109857652A (en) 2019-06-07

Family

ID=66894861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910039497.0A Pending CN109857652A (en) 2019-01-16 2019-01-16 A kind of automated testing method of user interface, terminal device and medium

Country Status (1)

Country Link
CN (1) CN109857652A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309073A (en) * 2019-06-28 2019-10-08 上海交通大学 Mobile applications user interface mistake automated detection method, system and terminal
CN110941546A (en) * 2019-10-12 2020-03-31 平安健康保险股份有限公司 Automatic test method, device, equipment and storage medium for WEB page case
CN111767228A (en) * 2020-06-30 2020-10-13 平安国际智慧城市科技股份有限公司 Interface testing method, device, equipment and medium based on artificial intelligence
CN112394862A (en) * 2019-08-16 2021-02-23 台达电子工业股份有限公司 Control method of upper computer
TWI721531B (en) * 2019-08-16 2021-03-11 台達電子工業股份有限公司 Control method for host machine
CN112560513A (en) * 2020-12-08 2021-03-26 东莞华贝电子科技有限公司 NFC test system and method
CN112711526A (en) * 2019-10-25 2021-04-27 腾讯科技(深圳)有限公司 UI test method, device, equipment and storage medium
CN112711536A (en) * 2020-12-30 2021-04-27 广东粤云工业互联网创新科技有限公司 Automatic dial testing method and system, and computer readable storage medium
CN112732559A (en) * 2020-12-30 2021-04-30 广东粤云工业互联网创新科技有限公司 Picture comparison method, automatic dial testing method and system and storage medium
CN112860587A (en) * 2021-04-02 2021-05-28 中国工商银行股份有限公司 UI automatic test method and device
CN113076243A (en) * 2021-03-26 2021-07-06 成都安恒信息技术有限公司 Method for optimizing image recognition automated testing cost
CN113238942A (en) * 2021-05-13 2021-08-10 京东数字科技控股股份有限公司 User interface testing method and device, electronic equipment and storage medium
CN113254343A (en) * 2021-06-07 2021-08-13 瀚云科技有限公司 User interface test assertion method and device, electronic equipment and storage medium
CN113282502A (en) * 2021-06-04 2021-08-20 青岛海尔科技有限公司 Script generation method, device, storage medium and electronic device
CN113553261A (en) * 2021-07-22 2021-10-26 上汽通用五菱汽车股份有限公司 Software automation test method, equipment and computer readable storage medium
CN114666301A (en) * 2020-12-22 2022-06-24 深圳Tcl新技术有限公司 APP testing method and system based on mock server
WO2023220902A1 (en) * 2022-05-16 2023-11-23 北京小米移动软件有限公司 User interface testing methods and apparatus
CN117349189A (en) * 2023-12-05 2024-01-05 四川才子软件信息网络有限公司 APP new version testing method, equipment and medium
CN114666301B (en) * 2020-12-22 2024-07-05 深圳Tcl新技术有限公司 APP testing method and system based on mock server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017005148A1 (en) * 2015-07-03 2017-01-12 上海触乐信息科技有限公司 Automatic software-testing method and device
US9679090B1 (en) * 2014-10-27 2017-06-13 Amazon Technologies, Inc. Systematically exploring programs during testing
CN107885665A (en) * 2017-12-28 2018-04-06 努比亚技术有限公司 With case script method of testing, mobile terminal and computer-readable recording medium
CN109117358A (en) * 2017-06-23 2019-01-01 百度在线网络技术(北京)有限公司 test method and test device for electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9679090B1 (en) * 2014-10-27 2017-06-13 Amazon Technologies, Inc. Systematically exploring programs during testing
WO2017005148A1 (en) * 2015-07-03 2017-01-12 上海触乐信息科技有限公司 Automatic software-testing method and device
CN109117358A (en) * 2017-06-23 2019-01-01 百度在线网络技术(北京)有限公司 test method and test device for electronic equipment
CN107885665A (en) * 2017-12-28 2018-04-06 努比亚技术有限公司 With case script method of testing, mobile terminal and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘红刚;黄太新;宋立新;孟广国;: "DCS软件界面自动化测试技术研究与应用", 自动化博览, no. 04, 15 April 2017 (2017-04-15) *

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110309073B (en) * 2019-06-28 2021-07-27 上海交通大学 Method, system and terminal for automatically detecting user interface errors of mobile application program
CN110309073A (en) * 2019-06-28 2019-10-08 上海交通大学 Mobile applications user interface mistake automated detection method, system and terminal
TWI721531B (en) * 2019-08-16 2021-03-11 台達電子工業股份有限公司 Control method for host machine
CN112394862A (en) * 2019-08-16 2021-02-23 台达电子工业股份有限公司 Control method of upper computer
CN112394862B (en) * 2019-08-16 2022-02-22 台达电子工业股份有限公司 Control method of upper computer
CN110941546A (en) * 2019-10-12 2020-03-31 平安健康保险股份有限公司 Automatic test method, device, equipment and storage medium for WEB page case
CN112711526B (en) * 2019-10-25 2024-05-14 腾讯科技(深圳)有限公司 UI test method, device, equipment and storage medium
CN112711526A (en) * 2019-10-25 2021-04-27 腾讯科技(深圳)有限公司 UI test method, device, equipment and storage medium
CN111767228A (en) * 2020-06-30 2020-10-13 平安国际智慧城市科技股份有限公司 Interface testing method, device, equipment and medium based on artificial intelligence
CN111767228B (en) * 2020-06-30 2024-02-06 深圳赛安特技术服务有限公司 Interface testing method, device, equipment and medium based on artificial intelligence
CN112560513A (en) * 2020-12-08 2021-03-26 东莞华贝电子科技有限公司 NFC test system and method
CN114666301B (en) * 2020-12-22 2024-07-05 深圳Tcl新技术有限公司 APP testing method and system based on mock server
CN114666301A (en) * 2020-12-22 2022-06-24 深圳Tcl新技术有限公司 APP testing method and system based on mock server
CN112732559A (en) * 2020-12-30 2021-04-30 广东粤云工业互联网创新科技有限公司 Picture comparison method, automatic dial testing method and system and storage medium
CN112711536A (en) * 2020-12-30 2021-04-27 广东粤云工业互联网创新科技有限公司 Automatic dial testing method and system, and computer readable storage medium
CN113076243A (en) * 2021-03-26 2021-07-06 成都安恒信息技术有限公司 Method for optimizing image recognition automated testing cost
CN113076243B (en) * 2021-03-26 2024-05-17 成都安恒信息技术有限公司 Method for optimizing automatic testing cost of image recognition
CN112860587A (en) * 2021-04-02 2021-05-28 中国工商银行股份有限公司 UI automatic test method and device
CN112860587B (en) * 2021-04-02 2024-04-05 中国工商银行股份有限公司 UI automatic test method and device
CN113238942A (en) * 2021-05-13 2021-08-10 京东数字科技控股股份有限公司 User interface testing method and device, electronic equipment and storage medium
CN113282502A (en) * 2021-06-04 2021-08-20 青岛海尔科技有限公司 Script generation method, device, storage medium and electronic device
CN113254343A (en) * 2021-06-07 2021-08-13 瀚云科技有限公司 User interface test assertion method and device, electronic equipment and storage medium
CN113553261B (en) * 2021-07-22 2023-09-15 上汽通用五菱汽车股份有限公司 Software automated testing method, device and computer readable storage medium
CN113553261A (en) * 2021-07-22 2021-10-26 上汽通用五菱汽车股份有限公司 Software automation test method, equipment and computer readable storage medium
WO2023220902A1 (en) * 2022-05-16 2023-11-23 北京小米移动软件有限公司 User interface testing methods and apparatus
CN117349189A (en) * 2023-12-05 2024-01-05 四川才子软件信息网络有限公司 APP new version testing method, equipment and medium
CN117349189B (en) * 2023-12-05 2024-03-15 四川才子软件信息网络有限公司 APP new version testing method, equipment and medium

Similar Documents

Publication Publication Date Title
CN109857652A (en) A kind of automated testing method of user interface, terminal device and medium
CN105283848B (en) Application tracking is carried out with distributed object
CN105283851B (en) For selecting the cost analysis of tracking target
US20110131551A1 (en) Graphical user interface input element identification
CN105122234A (en) Deploying trace objectives using cost analyses
CN105122212A (en) Periodicity optimization in an automated tracing system
Feng et al. Gifdroid: Automated replay of visual bug reports for android apps
CN116303459A (en) Method and system for processing data table
CN112329762A (en) Image processing method, model training method, device, computer device and medium
CN106537423A (en) Adaptive featurization as service
CN115098292B (en) Method and device for identifying root cause of application program crash and electronic equipment
CN111767838A (en) Video auditing method and system, computer system and computer-readable storage medium
CN109086198A (en) Test method, device and the storage medium of database
US20240086165A1 (en) Systems and methods for building and deploying machine learning applications
CN114549849A (en) Image recognition method and device, computer equipment and storage medium
CN109446054B (en) Processing method and terminal equipment for override operation request based on big data
CN112446850A (en) Adaptation test method and device and electronic equipment
CN113284141A (en) Model determination method, device and equipment for defect detection
CN114238968A (en) Application program detection method and device, storage medium and electronic equipment
KR20210144049A (en) Device, method, system and computer readable storage medium for generating training data of machine learing model and generating fake image using machine learning model
CN110955595A (en) Problem repairing method and device, electronic equipment and computer readable storage medium
KR102647904B1 (en) Method, system, and computer program for classify place review images based on deep learning
US20220392258A1 (en) Method and System for Verifying Uploaded Customer Photographs
CN114296839B (en) Payment control method, device and equipment and computer storage medium
US20220358400A1 (en) Probing Model Signal Awareness

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