CN106897207A - Ui testing method and apparatus - Google Patents

Ui testing method and apparatus Download PDF

Info

Publication number
CN106897207A
CN106897207A CN201510958939.3A CN201510958939A CN106897207A CN 106897207 A CN106897207 A CN 106897207A CN 201510958939 A CN201510958939 A CN 201510958939A CN 106897207 A CN106897207 A CN 106897207A
Authority
CN
China
Prior art keywords
test
middleware
test case
user interface
database
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
CN201510958939.3A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510958939.3A priority Critical patent/CN106897207A/en
Publication of CN106897207A publication Critical patent/CN106897207A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a kind of ui testing method and apparatus, wherein, methods described includes:Receive the selection operation to the corresponding test case of the user interface;When test trigger condition is met, call middleware that the corresponding test case of the selection operation is called from database, wherein, the middleware is used to be managed distributed server collection;The test case is sent into distributed server cluster by a server by the middleware, is tested with to the user interface, test result is sent to the database by the middleware;The test result is obtained from the database;The test result is shown in the user interface.By ui testing method provided in an embodiment of the present invention, the highly reliable of human resources and regression test result can be saved.

Description

Ui testing method and apparatus
Technical field
The present invention relates to User Page technical field of measurement and test, more particularly to a kind of ui testing method With device.
Background technology
For a user interface do not reached the standard grade, need to carry out repeated test in early stage of reaching the standard grade, with Just tester has found exception present in user interface, and then to being carried out extremely present in user interface Repair.All exceptions even in the user interface are repaired finish after, it is also desirable to user interface A regression test is carried out again.
In the prior art, when testing a certain user interface, it is necessary to tester manually performs one The operation (e.g., clicking on button, dilatory page elements, input word) of series, then by setting accordingly It is standby to generate a test case according to above-mentioned a series of operation, and the generation of each test case is actually All it is that user interface is tested accordingly according to the test case.It means that tester Every time when testing user interface, be required for being manually entered many set operations, could substantially complete to The test at family interface.And if repeated test is carried out to user interface in early stage of reaching the standard grade, need every Many set operations are all manually performed by tester during secondary test.
It can be seen that, it is existing to be completely dependent on the method that tester is tested user interface manually, not only A large amount of human resources can be consumed, also, because regression test is also to be manually performed by tester, Certain set test operation may be omitted when regression is tested, or omits a certain operating procedure, influenceed back The reliability of returning property test result.
The content of the invention
In view of existing ui testing method consumes a large amount of human resources and regression test result can By the low problem of property, it is proposed that the present invention is to provide a kind of ui testing side for overcoming above mentioned problem Method and device.
According to one aspect of the present invention, there is provided a kind of ui testing method, including:It is right to receive The selection operation of the corresponding test case of the user interface;When test trigger condition is met, in calling Between part the corresponding test case of the selection operation is called from database, wherein, the middleware is used for Distributed server collection is managed;The test case is sent to distribution by the middleware A server in server cluster, tests with to the user interface, and test result is by described Between part send to the database;The test result is obtained from the database;In the user The test result is shown on interface.
Preferably, it is described when test trigger condition is met, call middleware to be called from database described The corresponding test case step of selection operation includes:When the instruction for opening test immediately is received, call The middleware calls the corresponding test case of the selection operation from database.
Preferably, it is described when test trigger condition is met, call middleware to be called from database described The corresponding test case step of selection operation includes:When current time meets the default test triggered time, Call the middleware that the corresponding test case of the selection operation is called from database.
Preferably, the step of described reception to the selection operation of the test case of the user interface it Afterwards, methods described also includes:Receive the setting operation to testing the triggered time.
Preferably, it is described the test case is sent by the middleware into server cluster one Individual server, includes the step of to test the user interface:Will be described by the middleware Test case sends the service matched with the user interface type into the distributed server cluster Device.
Preferably, it is described obtain the test result from the database the step of after, the side Method also includes:The test result is sent to default client by bitcom;Wherein, the survey Test result includes at least one of:Functional test results, the performance test results, test defect.
Preferably, methods described is applied to and following any one user interface is tested:Software client End interface, operation system interface and web interface.
Preferably, before the selection operation step in the reception to test case, methods described also includes: Receive test case typing open command;Receive multiple operations of user input and call CSS selector to look into The corresponding path of each operation is looked for, while according to reception journal to operating and operating corresponding path to enter Row record, generates test case;The test case is uploaded to the database.
According to another aspect of the present invention, a kind of ui testing device is additionally provided, including:Connect Module is received, for receiving the selection operation to the corresponding test case of the user interface;First calls mould Block, for when test trigger condition is met, calling middleware that the selection operation is called from database Corresponding test case, wherein, the middleware is used to be managed distributed server collection;Second Calling module, for being sent into distributed server cluster the test case by the middleware One server, is tested with to the user interface, and test result is sent to institute by the middleware State database;Acquisition module, for obtaining the test result from the database;Display module, For showing the test result in the user interface.
Preferably, first calling module includes:Calling module, opens immediately for working as to receive immediately When opening the instruction of test, call the middleware that the corresponding test of the selection operation is called from database Use-case.
Preferably, first calling module also includes:Monitoring calling module, meets for current time During the default test triggered time, call the middleware that the selection operation correspondence is called from database Test case.
Preferably, the ui testing device also includes:Set of time receiver module, in institute After receiver module reception is stated to the selection operation of the corresponding test case of the user interface, receive to surveying Try the setting operation in triggered time.
Preferably, second calling module specifically for:By the middleware by the test case Send the server matched with the user interface type into the distributed server cluster.
Preferably, the ui testing device also includes:Communication module, in the acquisition mould Block is obtained after the test result from the database, and the test result is sent out by bitcom Deliver to default client;Wherein, the test result includes at least one of:Functional test results, The performance test results, test defect.
Preferably, described device is applied to and following any one user interface is tested:Software client End interface, operation system interface and web interface.
Preferably, the ui testing device also includes:Open command receiver module, in institute Before receiver module reception is stated to the selection operation of test case, test case typing open command is received; Test cases technology module, for receiving multiple operations of user input and calling CSS selector to search respectively Corresponding path is operated, while according to reception journal to operating and operating corresponding path to remember Record, generates test case;Test case uploading module, for the test case to be uploaded into the number According to storehouse.
Ui testing scheme provided in an embodiment of the present invention, prestores use to be tested in database The corresponding test case in family interface, the test case that tester uses needed for only needing to select, test After instrument receives the test case of selection, middleware is called to call corresponding test to use from database Example, sends a server into distributed server cluster, by taking by middleware by test case Business device is tested user interface using test case, and test result is stored to database.Test work Tool obtains this test result from database, and shows test result on a user interface.It can be seen that, this The ui testing scheme that inventive embodiments are provided, tester only needs to perform the selection to test case Operation, entirely the test operation to user interface is performed automatically by testing tool, therefore, it is possible to save Save substantial amounts of human resources.
Further, since the corresponding test case of user interface has been stored in database, surveyed in regression Need to only call test case during examination from database, and the test case in database has been fixed and Each operating procedure that test case is included has been fixed, therefore, in the absence of certain set test operation of omission, or Person omits the problem of a certain operating procedure, therefore, ensure that the reliability of regression test result.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical part.In the accompanying drawings:
The step of Fig. 1 is a kind of according to embodiments of the present invention one ui testing method flow chart;
The step of Fig. 2 is a kind of according to embodiments of the present invention two ui testing method flow chart;
Fig. 3 is a kind of structured flowchart of according to embodiments of the present invention three ui testing device;
Fig. 4 is a kind of structured flowchart of according to embodiments of the present invention four ui testing device.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Embodiment one
Reference picture 1, flow the step of show a kind of ui testing method of the embodiment of the present invention one Figure.
The ui testing method of the embodiment of the present invention is comprised the following steps:
Step 101:Receive the selection operation to the corresponding test case of user interface.
Wherein, the corresponding whole test cases of the user interface that is stored with database, and to user interface When being tested, the corresponding whole test cases of user interface to be tested can be selected, it is also possible to only select Partial test use-case is selected to be tested.
Therefore, test cases selection interface can be provided in testing tool client, tester can be with root Selection operation is carried out to test case according to demand, correspondingly, testing tool client receives tester couple The selection operation of test case.
User interface is tested by testing tool in the embodiment of the present invention, also, testing tool is divided into Client and backstage.The client of testing tool is responsible for receiving and the accordingly operation of tester, and The acquisition of test result shows, and the backstage of testing tool is then distributed server cluster, and it is mainly born Duty is tested user interface according to test case.
Step 102:When test trigger condition is met, middleware is called to call selection to grasp from database Make corresponding test case.
Wherein, test trigger condition in actual use, can be by those skilled in the art according to reality Border demand is configured, for example:It is provided to the interface that tester's triggering is tested immediately, tester Member is immediately performed test operation by clicking on the i.e. triggerable testing tool of the test interface.For example:It is arranged to The interface that tester sets the triggered time is provided, tester can set test triggering by the interface Time, when the test triggered time is met, testing tool just performs test operation.Again for example:Set simultaneously Above-mentioned two interface is put, is selected how to set test trigger condition according to the actual requirements by tester.
Step 103:The test case is sent into distributed server cluster one by middleware Server, is tested with to user interface, and test result is sent to the database by the middleware.
Middleware is used to be managed distributed server collection in the embodiment of the present invention, accordingly, it would be desirable to logical Middleware is crossed to select for performing the server tested to user interface.
Specifically, the client of testing tool will be chosen after the selection operation for receiving test case Test case information send to middleware, the test case of selection is obtained from database by middleware. So, after middleware gets test case, just can be according to respectively being serviced in distributed server cluster The current state of device or be affairs or be the bars such as each server present load that server is responsible for Part selects a server, and user interface is tested by the server implementation of test cases for selecting. Selected server generates test result after being finished to ui testing, and middleware obtains test knot Fruit is stored to database, so that testing tool client obtains test result from database.
Step 104:The test result is obtained from database.
After execution of step 103, the test result of this test of user interface is stored to data In storehouse, then, testing tool client obtains the corresponding test result of the user interface i.e. from database Can.
Step 105:The test result for getting is shown on a user interface.
It should be noted that test result can show on a user interface in any suitable form, tool Body display form can be according to the actual requirements configured by those skilled in the art, in the embodiment of the present invention This is not specifically limited.For example:The centralized displaying whole test result on the relevant position of user interface; For example:It is labeled to there is abnormal interface element in test process on a user interface;Again for example: Selected each test case is shown in one end of user interface, for the survey that exception occurs in test process Example on probation is labeled.
Ui testing method provided in an embodiment of the present invention, prestores use to be tested in database The corresponding test case in family interface, the test case that tester uses needed for only needing to select, test After instrument receives the test case of selection, middleware is called to call corresponding test to use from database Example, sends a server into distributed server cluster, by taking by middleware by test case Business device is tested user interface using test case, and test result is stored to database.Test work Tool obtains this test result from database, and shows test result on a user interface.It can be seen that, this The ui testing method that inventive embodiments are provided, tester only needs to perform the selection to test case Operation, entirely the test operation to user interface is performed automatically by testing tool, therefore, it is possible to save Save substantial amounts of human resources.Further, since the corresponding test case of user interface has been stored in database In, need to only call test case from database when regression is tested, and the test in database Each operating procedure that use-case has been fixed and test case is included has been fixed, therefore, certain set will not be omitted Test operation, or a certain operating procedure is omitted, therefore, ensure that the reliability of regression test result.
Embodiment two
Reference picture 2, flow the step of show a kind of ui testing method of the embodiment of the present invention two Figure.
The ui testing method of the embodiment of the present invention is comprised the following steps:
Step 201:Browser receives test case typing open command.
After logging in corresponding Test cases technology interface in a browser, open command, user are clicked on Start the corresponding each operation of typing test case to be generated in the user interface.Wherein, operation include but It is not limited to:Click, dilatory, input operation.
As a example by testing tool to be installed in a browser as plug-in unit to the present invention in the embodiment of the present invention Embodiment is illustrated, and browser is to be integrated with testing tool after installation.After testing tool is installed Browser include browser client and backstage two parts, browser client receives user input Various operations and test result displaying, and browser backstage includes distributed server cluster, mainly adopts User interface is operated with test case.
It should be noted that browser provided in an embodiment of the present invention can be simultaneously multiple user interfaces, Various different types of interfaces are (for example:Software client interface, operation system interface and web interface) Testing service is provided.That is, browser can be provided accordingly for different types of user interface Test interface.When being tested due to multiple same types or different types of user interface simultaneously, meeting Very big test pressure is caused to browser backstage, therefore, distributed clothes are provided with the embodiment of the present invention Device cluster is engaged in share test pressure., and in order to be preferably managed to server cluster, the present invention The middleware of management distributed server cluster is introduced in embodiment, is each use to be tested by middleware Family interface selection server is tested.It can be seen that, ui testing method provided in an embodiment of the present invention Go for the test of various different types of user interfaces, and multiple user interfaces are carried out simultaneously Test.Also, the test of user interface is carried out by server cluster, therefore, it is possible to full The foot demand concurrent to test high-performance.
Step 202:Browser receives multiple operations of user input and calls CSS selector to search each behaviour Make corresponding path, while according to reception journal to operating and operating corresponding path to remember Record, generates test case.
CSS (Cascading Style Sheets, CSS) selector can use the CSS of the page The operation of the element in the page and path will be corresponded.
User is often input into an operation, and CSS selector is to find the operation according to the root architecture of the webpage Corresponding path.Browser by each operation and will operate the corresponding path to carry out record generation in sequence Test case.That is, a test case is patrolled comprising the execution between multiple operations and each operation Volume, also, also comprising the corresponding path of each operation.
Step 203:Browser receives test case and submits instruction to, and test case is uploaded into database.
After the test case of user input completion pre-generatmg corresponding all operationss, you can click on corresponding Button sends submission instruction to browser, after browser receives test case submission instruction, will generate Test case be uploaded to database and stored, and in storage by user interface be user circle The test case of face generation carries out correspondence, is searched when calling test case in order to the later stage.
Generate and upload a test case by step 201,202 and 203.Repeat State step, you can complete the generation of the corresponding multiple test cases of same user interface, upload.So far, The corresponding test case of one user interface all generation and can upload completion.
It should be noted that this step is for user interface to be tested generates test case and uploads data The operation in storehouse, if being stored with the corresponding test case of user interface to be tested, nothing in database Above-mentioned steps need to be performed.
Step 204:Browser receives the selection operation to the corresponding test case of user interface.
Wherein, the corresponding whole test cases of the user interface that is stored with database, and to user interface When being tested, the corresponding whole test cases of user interface to be tested can be selected, it is also possible to only select Partial test use-case is selected to be tested.Therefore, test cases selection can be provided on browser client to connect Mouthful, tester can carry out selection operation, correspondingly, browser clients to test case according to demand Selection operation of the termination Acceptance Tests personnel to test case.
The mark of the corresponding test case of the user interface, tester can be provided on browser client The selection to test case can be completed by the corresponding mark of selection.
Step 205:Browser receives the setting operation to testing the triggered time.
Also for example it is arranged to a button, when having selected comprising test triggered time setting option in browser After test case, tester shows an input frame, tester by clicking on rear browser The test triggered time is set in input frame.After browser client receives setting operation, you can It is determined that the test triggered time.
Step S206:When current time meets the default test triggered time, browser calls the centre Part calls the corresponding test case of the selection operation from database.
For example:The test triggered time of setting is 21 points of October 8 day in 2015, then, when to 2015 During year October 8 day 21, you can user interface is tested automatically.
It should be noted that being only, to preset the triggered time, triggering to be preset when meeting in the embodiment of the present invention During the time, then perform the explanation carried out as a example by the test to user interface.It is clear during implementing Looking in device can also provide triggering setting option immediately and for example start testing button, and user can also be not provided with test Triggered time, but after the corresponding test case of user interface has been selected, directly transmit to open immediately and survey The instruction of examination is (for example:Click on start testing button), now, browser when receive immediately open survey During the instruction of examination, soon call middleware that the corresponding test case of selection operation is called from database.
During implementing, which kind of mode specifically to trigger test using can be by people in the art Member is configured according to the actual requirements, and this is not specifically limited in the embodiment of the present invention.Certainly, in tool In body implementation process, can also only be provided in browser client and trigger setting option immediately, or only provided Test triggered time setting option, tester can not select to be triggered survey immediately when being tested, then Examination or setting test triggered time.
Step 207:Test case is sent into distributed server cluster one by browser by middleware Individual server, is tested with to user interface, and test result is sent to database by middleware.
When middleware selects a server from distributed server cluster, can be by art personnel Any appropriate selection rule is set, this is not specifically limited in the embodiment of the present invention.Can be arranged to The minimum server of a present load is selected according to each server present load.Can also be arranged to any One server of selection, judges whether this server load of selection reaches setting higher limit, if it is not, Then test case is sent to the server, if so, then return performing one step of server of any selection Suddenly, until selecting the server that a load not up to sets higher limit.
Preferably, test case is sent into distributed server cluster one by browser by middleware During server, test case can be sent into distributed server cluster and described by middleware The server of user interface type matching.
Because browser can be distributed for polytype user interface provides test, browser backstage Server cluster, then, the server in cluster can be drawn according to the type for the treatment of user interface Point.For example:A certain of setting or multiple servers are used to survey the user interface based on IOS systems Examination, a certain of setting or multiple servers are used to test the user interface based on Android system, if Determining a certain or multiple servers is used to test the user interface based on Windows systems, sets A certain or multiple servers are used to test the user interface based on MAC systems.
If user interface is the user interface based on Windows systems, then, middleware first determines to be used for The server tested the user interface based on Windows systems, then, then from determine service A server is selected to send to the server test case in device.
For the concrete scheme of type that middleware determines user interface, can be by those skilled in the art's root It is configured according to actual demand.For example:For each type of user interface provides survey in browser client Examination interface, the interface of the browser client that middleware is called by user interface can determine that user interface Type.For example:The prefix of the test case mark of the user interface of different types is different, middleware The prefix that can be identified by test case determines the type of user interface.Again for example:Browser client When test case information is sent to middleware, user interface type information is carried, middleware is by carrying User interface type information, you can determine user interface type.
Step 208:Browser obtains the test result from the database.
Wherein, the test result includes at least one of:Functional test results, the performance test results, Test defect.
Step 209:Browser sends to default client test result by bitcom.
Wherein, bitcom can be the communication softwares such as mail, QQ, wechat.
Tester can preset the client letter for receiving test result before ui testing is carried out Breath, for example:Default wechat account, addresses of items of mail, QQ numbers etc..Browser is getting test knot After fruit, the default client-side information of test results personnel can be sent to relative client.
Even if tester timely can also receive survey not before browser by the client for setting Test result, can lift the experience of tester.
Step 210:Browser shows test result on a user interface.
It should be noted that this step is optional step, if being sent to default client by bitcom End, tester then can receive test result by corresponding default client.Accordingly it is also possible to not Test result is shown on a user interface.
During implementing, a test result can also be set on browser client interface and read Item is taken, for example:Result reads button, when browser client receives the selection operation to the reading When, test result is shown on a user interface.
By ui testing method provided in an embodiment of the present invention, except with shown in embodiment one Ui testing method has the advantage that outer, can also preset the test triggered time, when reaching After the default test triggered time, you can automatic execution test triggers test operation without tester, makes survey Examination is more convenient.Certainly, if Preset Time is set on one's own time, when can also utilize inoperative Between user interface is tested, the utilization rate of browser can be lifted.Moreover, the present invention is implemented The ui testing method that example is provided, will directly can also be led to the test result of user interface by this News software is sent to default client, and tester just can get test result whenever and wherever possible, can Make the acquisition of test result much sooner, it is convenient.
Embodiment three
Reference picture 3, shows a kind of structured flowchart of ui testing device of the embodiment of the present invention three.
The ui testing device of the embodiment of the present invention includes:Receiver module 301, for receiving to institute State the selection operation of the corresponding test case of user interface;First calling module 302, for being surveyed when satisfaction During examination trigger condition, call middleware that the corresponding test case of the selection operation is called from database, Wherein, the middleware is used to be managed distributed server collection;Second calling module 303, leads to Cross the middleware and the test case is sent into distributed server cluster a server, with right The user interface is tested, and test result is sent to the database by the middleware;Obtain mould Block 304, for obtaining the test result from the database;Display module 305, in institute State and shown in user interface the test result.
By ui testing device provided in an embodiment of the present invention, due to the use that is stored with database The corresponding test in family interface is used for, therefore, when testing user interface, tester only needs to hold To the selection operation of test case, entirely the test operation to user interface is all automatic by testing tool to row Perform, therefore, it is possible to save substantial amounts of human resources.Further, since the corresponding test of user interface is used Example has been stored in database, only test case need to be called from database i.e. when regression is tested Can, and each operating procedure that the test case in database has been fixed and test case is included has been fixed, Therefore, certain set test operation will not be omitted, or omits a certain operating procedure, therefore, ensure that recurrence The reliability of property test result.
Example IV
Reference picture 4, shows a kind of structured flowchart of ui testing device of the embodiment of the present invention four.
The ui testing device of the embodiment of the present invention is the ui testing device in embodiment three Further optimization, the ui testing after optimization includes:Receiver module 401, for receiving to institute State the selection operation of the corresponding test case of user interface;First calling module 402, for being surveyed when satisfaction During examination trigger condition, call middleware that the corresponding test case of the selection operation is called from database, Wherein, the middleware is used to be managed distributed server collection;Second calling module 403, leads to Cross the middleware and the test case is sent into distributed server cluster a server, with right The user interface is tested, and test result is sent to the database by the middleware;Obtain mould Block 404, for obtaining the test result from the database;Display module 405, in institute State and shown in user interface the test result.
Preferably, first calling module 403 includes:Calling module 4031, receive for working as immediately When the instruction for opening test immediately, call the middleware that the selection operation pair is called from database The test case answered.
Preferably, first calling module 403 also includes:Monitoring calling module 4032, for current When time meets the default test triggered time, call the middleware that the selection is called from database Operate corresponding test case.
Preferably, the ui testing device also includes:Set of time receiver module 406, is used for After the selection operation that the receiver module receives to the corresponding test case of the user interface, receive Setting operation to testing the triggered time.
Preferably, second calling module 404 specifically for:By the middleware by the test Use-case sends the server matched with the user interface type into the distributed server cluster.
Preferably, the ui testing device also includes:Communication module 407, for being obtained described Modulus block 404 is obtained after the test result from the database, by the test result by logical News software is sent to default client;Wherein, the test result includes at least one of:Function is surveyed Test result, the performance test results, test defect.
Preferably, described device is applied to and following any one user interface is tested:Software client End interface, operation system interface and web interface.
Preferably, the ui testing device also includes:Open command receiver module 408, is used for Before the selection operation that the receiver module receives to test case, receive test case typing unlatching and refer to Order;Test cases technology module 409, for receiving multiple operations of user input and calling CSS to select Device searches the corresponding path of each operation, while according to reception journal to operating and operating corresponding road Footpath is recorded, and generates test case;Test case uploading module 410, for by the test case It is uploaded to the database.
During the ui testing device of the present embodiment is used to realize previous embodiment one and embodiment two Corresponding ui testing method, and with the beneficial effect of corresponding embodiment of the method, herein not Repeat again.
Each embodiment in this specification is described by the way of progressive, and each embodiment is stressed Be all difference with other embodiment, between each embodiment identical similar part mutually referring to .For system embodiment, because it is substantially similar to embodiment of the method, so the ratio of description Relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
Provided herein ui testing scheme not with any certain computer, virtual system or other Equipment is inherently related.Various general-purpose systems can also be used together with based on teaching in this.According to above Description, it is obvious to construct the structure required by the system with the present invention program.Additionally, this Invention is not also directed to any certain programmed language.It is understood that, it is possible to use various programming languages are realized The present disclosure of this description, and the description done to language-specific above is to disclose the present invention Preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of without these details.In some instances, not Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim The middle more features of feature be expressly recited.More precisely, as the following claims reflect, Inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows specific implementation Thus claims of mode are expressly incorporated in the specific embodiment, and wherein each claim is in itself All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in person's unit exclude each other, can using any combinations to this specification (including Adjoint claim, summary and accompanying drawing) disclosed in all features and so disclosed any method Or all processes or unit of equipment are combined.Unless expressly stated otherwise, this specification (including Adjoint claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or The alternative features of similar purpose replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in claim In book, the one of any of embodiment required for protection mode can use in any combination.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice Some or all parts in the ui testing scheme of the embodiment of the present invention it is some or all Function.The present invention is also implemented as performing some or all of method as described herein Equipment or program of device (for example, computer program and computer program product).It is such to realize this The program of invention can be stored on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from internet website and obtained, or be provided on carrier signal, Or provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, And those skilled in the art can design replacement without departing from the scope of the appended claims Embodiment.In the claims, any reference symbol being located between bracket should not be configured to right It is required that limitation.Word "comprising" does not exclude the presence of element or step not listed in the claims.Position Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention can To be realized by means of the hardware for including some different elements and by means of properly programmed computer. If in the unit claim for listing equipment for drying, several in these devices can be by same Individual hardware branch is embodied.The use of word first, second, and third does not indicate that any order. These words can be construed to title.
The invention discloses A1, a kind of ui testing method, including:
Receive the selection operation to the corresponding test case of the user interface;
When test trigger condition is met, call middleware that the selection operation correspondence is called from database Test case, wherein, the middleware be used for distributed server collection is managed;
The test case is sent into distributed server cluster by a service by the middleware Device, is tested with to the user interface, and test result is sent to the database by the middleware;
The test result is obtained from the database;
The test result is shown in the user interface.
A2, the method according to A1, wherein, it is described when test trigger condition is met, in calling Between part call the corresponding test case step of the selection operation to include from database:
When the instruction for opening test immediately is received, the middleware is called to be called from database described The corresponding test case of selection operation.
A3, the method according to A1, wherein, it is described when test trigger condition is met, in calling Between part call the corresponding test case step of the selection operation to include from database:
When current time meets the default test triggered time, the middleware is called to be called from database The corresponding test case of the selection operation.
A4, the method according to A3, wherein, the test of the user interface is used in described reception After the step of selection operation of example, methods described also includes:
Receive the setting operation to testing the triggered time.
A5, the method according to A1, wherein, it is described by the middleware by the test case Send to a server in server cluster, wrap the step of to test the user interface Include:
The test case is sent into the distributed server cluster and institute by the middleware State the server of user interface type matching.
A6, the method according to A1, wherein, the test is obtained from the database described As a result after the step of, methods described also includes:
The test result is sent to default client by bitcom;Wherein, the test result Including at least one of:Functional test results, the performance test results, test defect.
A7, the method according to A1, wherein, methods described is applied to following any one user Interface is tested:Software client interface, operation system interface and web interface.
A8, the method according to A1, wherein, in the selection operation step received to test case Before rapid, methods described also includes:
Receive test case typing open command;
Receive multiple operations of user input and call CSS selector to search the corresponding path of each operation, together When according to journal is received to operating and operate corresponding path to record, generate test case;
The test case is uploaded to the database.
The invention also discloses B9, a kind of ui testing device, including:
Receiver module, for receiving the selection operation to the corresponding test case of the user interface;
First calling module, for when test trigger condition is met, calling middleware to be adjusted from database With the corresponding test case of the selection operation, wherein, the middleware is used for distributed server collection It is managed;
Second calling module, for being sent to Distributed Services the test case by the middleware A server in device cluster, tests with to the user interface, and test result is by the middleware Send to the database;
Acquisition module, for obtaining the test result from the database;
Display module, for showing the test result in the user interface.
B10, the device according to B9, wherein, first calling module includes:
Calling module immediately, for when the instruction for opening test immediately is received, calling the middleware The corresponding test case of the selection operation is called from database.
B11, the device according to B9, wherein, first calling module also includes:
Monitoring calling module, for current time meet it is default test the triggered time when, call it is described in Between part the corresponding test case of the selection operation is called from database.
B12, the device according to B11, wherein, the ui testing device also includes:
Set of time receiver module, for being received to the corresponding survey of the user interface in the receiver module After the selection operation of example on probation, the setting operation to testing the triggered time is received.
B13, the device according to B9, wherein, second calling module specifically for:By institute Middleware is stated to send into the distributed server cluster and the user interface test case The server of type matching.
B14, the device according to B9, wherein, the ui testing device also includes:
Communication module, for the acquisition module obtained from the database test result it Afterwards, the test result is sent to default client by bitcom;Wherein, the test result Including at least one of:Functional test results, the performance test results, test defect.
B15, the device according to B9, wherein, described device is applied to following any one user Interface is tested:Software client interface, operation system interface and web interface.
B16, the device according to B9, wherein, the ui testing device also includes:
Open command receiver module, for the receiver module receive to the selection operation of test case it Before, receive test case typing open command;
Test cases technology module, for receiving multiple operations of user input and calling CSS selector to look into The corresponding path of each operation is looked for, while according to reception journal to operating and operating corresponding path to enter Row record, generates test case;
Test case uploading module, for the test case to be uploaded into the database.

Claims (10)

1. a kind of ui testing method, including:
Receive the selection operation to the corresponding test case of the user interface;
When test trigger condition is met, call middleware that the selection operation correspondence is called from database Test case, wherein, the middleware be used for distributed server collection is managed;
The test case is sent into distributed server cluster by a service by the middleware Device, is tested with to the user interface, and test result is sent to the database by the middleware;
The test result is obtained from the database;
The test result is shown in the user interface.
2. method according to claim 1, wherein, it is described when test trigger condition is met, Middleware is called to call the corresponding test case step of the selection operation to include from database:
When the instruction for opening test immediately is received, the middleware is called to be called from database described The corresponding test case of selection operation.
3. method according to claim 1, wherein, it is described when test trigger condition is met, Middleware is called to call the corresponding test case step of the selection operation to include from database:
When current time meets the default test triggered time, the middleware is called to be called from database The corresponding test case of the selection operation.
4. method according to claim 3, wherein, in the reception to the user interface After the step of selection operation of test case, methods described also includes:
Receive the setting operation to testing the triggered time.
5. method according to claim 1, wherein, it is described by the middleware by the survey Example on probation sends a server into server cluster, with the step tested the user interface Suddenly include:
The test case is sent into the distributed server cluster and institute by the middleware State the server of user interface type matching.
6. method according to claim 1, wherein, institute is obtained from the database described After the step of stating test result, methods described also includes:
The test result is sent to default client by bitcom;Wherein, the test result Including at least one of:Functional test results, the performance test results, test defect.
7. method according to claim 1, wherein, methods described is applied to following any one User interface is planted to be tested:Software client interface, operation system interface and web interface.
8. method according to claim 1, wherein, in selection of the reception to test case Before operating procedure, methods described also includes:
Receive test case typing open command;
Receive multiple operations of user input and call CSS selector to search the corresponding path of each operation, together When according to journal is received to operating and operate corresponding path to record, generate test case;
The test case is uploaded to the database.
9. a kind of ui testing device, including:
Receiver module, for receiving the selection operation to the corresponding test case of the user interface;
First calling module, for when test trigger condition is met, calling middleware to be adjusted from database With the corresponding test case of the selection operation, wherein, the middleware is used for distributed server collection It is managed;
Second calling module, for being sent to Distributed Services the test case by the middleware A server in device cluster, tests with to the user interface, and test result is by the middleware Send to the database;
Acquisition module, for obtaining the test result from the database;
Display module, for showing the test result in the user interface.
10. device according to claim 9, wherein, first calling module includes:
Calling module immediately, for when the instruction for opening test immediately is received, calling the middleware The corresponding test case of the selection operation is called from database.
CN201510958939.3A 2015-12-17 2015-12-17 Ui testing method and apparatus Pending CN106897207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510958939.3A CN106897207A (en) 2015-12-17 2015-12-17 Ui testing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510958939.3A CN106897207A (en) 2015-12-17 2015-12-17 Ui testing method and apparatus

Publications (1)

Publication Number Publication Date
CN106897207A true CN106897207A (en) 2017-06-27

Family

ID=59189828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510958939.3A Pending CN106897207A (en) 2015-12-17 2015-12-17 Ui testing method and apparatus

Country Status (1)

Country Link
CN (1) CN106897207A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423221A (en) * 2017-08-04 2017-12-01 郑州云海信息技术有限公司 A kind of web applies sustainable method of testing and system
CN107566214A (en) * 2017-08-29 2018-01-09 微梦创科网络科技(中国)有限公司 A kind of performance test methods and device
CN107783870A (en) * 2017-10-13 2018-03-09 郑州云海信息技术有限公司 A kind of server-compatible test result management method and system
CN108694123A (en) * 2018-05-14 2018-10-23 中国平安人寿保险股份有限公司 A kind of regression testing method, computer readable storage medium and terminal device
CN109918288A (en) * 2019-01-16 2019-06-21 北京互金新融科技有限公司 Use-case test method and device
CN110162457A (en) * 2019-04-12 2019-08-23 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of user interface
CN110737549A (en) * 2018-07-20 2020-01-31 北京奇虎科技有限公司 Application testing method, device, server and system
CN111475417A (en) * 2020-04-13 2020-07-31 广东美的暖通设备有限公司 Automatic testing method, device, equipment and storage medium
CN112416318A (en) * 2020-11-03 2021-02-26 前海飞算云智软件科技(深圳)有限公司 Micro-service development method and device, storage medium and electronic equipment
WO2021135809A1 (en) * 2019-12-30 2021-07-08 北京金山云网络技术有限公司 Testing method, device, terminal apparatus, and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423221A (en) * 2017-08-04 2017-12-01 郑州云海信息技术有限公司 A kind of web applies sustainable method of testing and system
CN107566214A (en) * 2017-08-29 2018-01-09 微梦创科网络科技(中国)有限公司 A kind of performance test methods and device
CN107783870A (en) * 2017-10-13 2018-03-09 郑州云海信息技术有限公司 A kind of server-compatible test result management method and system
CN108694123A (en) * 2018-05-14 2018-10-23 中国平安人寿保险股份有限公司 A kind of regression testing method, computer readable storage medium and terminal device
CN110737549A (en) * 2018-07-20 2020-01-31 北京奇虎科技有限公司 Application testing method, device, server and system
CN109918288A (en) * 2019-01-16 2019-06-21 北京互金新融科技有限公司 Use-case test method and device
CN110162457A (en) * 2019-04-12 2019-08-23 深圳壹账通智能科技有限公司 Test method, device, equipment and the storage medium of user interface
WO2021135809A1 (en) * 2019-12-30 2021-07-08 北京金山云网络技术有限公司 Testing method, device, terminal apparatus, and storage medium
CN113127323A (en) * 2019-12-30 2021-07-16 北京金山云网络技术有限公司 Test method, test device, terminal equipment and storage medium
CN111475417A (en) * 2020-04-13 2020-07-31 广东美的暖通设备有限公司 Automatic testing method, device, equipment and storage medium
CN112416318A (en) * 2020-11-03 2021-02-26 前海飞算云智软件科技(深圳)有限公司 Micro-service development method and device, storage medium and electronic equipment
CN112416318B (en) * 2020-11-03 2021-10-08 前海飞算云智软件科技(深圳)有限公司 Micro-service development method and device, storage medium and electronic equipment
WO2022095412A1 (en) * 2020-11-03 2022-05-12 前海飞算云智软件科技(深圳)有限公司 Microservice development method and apparatus, storage medium, and electronic device

Similar Documents

Publication Publication Date Title
CN106897207A (en) Ui testing method and apparatus
US11151083B2 (en) Generating target application packages for groups of computing devices
CN105553769B (en) A kind of data acquisition and analysis system and method
US9015592B2 (en) Method, apparatus, and computer program for providing web service testing
EP2778929B1 (en) Test script generation system
US9558230B2 (en) Data quality assessment
CN108959059B (en) Test method and test platform
US9495282B2 (en) Method and systems for a dashboard testing framework in an online demand service environment
US20160306690A1 (en) Integrated test design, automation, and analysis
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN111400186A (en) Performance test method and system
CN103714002B (en) Project testing method and device based on configuration system
US20080028417A1 (en) Integrated instrument driver network
WO2020106501A1 (en) Veto-based model for measuring product health
CN103488562B (en) Automated testing method and device
KR20160070410A (en) System for testing an application use for a smart device and method therefor
CN107948120A (en) leak detection method and device
CN111782317A (en) Page testing method and device, storage medium and electronic device
CN106708528A (en) Script generating method and device
CN109902251A (en) Scheme Choice method, apparatus, terminal and readable storage medium storing program for executing based on decision tree
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
CN109308258A (en) Building method, device, computer equipment and the storage medium of test data
CN109739704A (en) A kind of interface test method, server-side and computer readable storage medium
CN106506212A (en) Abnormal information acquisition methods and user terminal
CN114185791A (en) Method, device and equipment for testing data mapping file and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170627