CN106844213A - A kind of front end method of testing and device - Google Patents
A kind of front end method of testing and device Download PDFInfo
- Publication number
- CN106844213A CN106844213A CN201710048578.8A CN201710048578A CN106844213A CN 106844213 A CN106844213 A CN 106844213A CN 201710048578 A CN201710048578 A CN 201710048578A CN 106844213 A CN106844213 A CN 106844213A
- Authority
- CN
- China
- Prior art keywords
- request
- create
- measured
- test
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention provides a kind of front end method of testing and device, and methods described includes:Server receives the request to create that first terminal sends, and according to the request to create for receiving, creates corresponding service end example;Start the Front End to be measured in corresponding user terminal;The test operation request that first terminal is initiated is received, and test operation request is sent to user terminal, so that the Front End described to be measured in the user terminal is tested, wherein, the test operation request includes test case;If the test crash, the server receives sectional drawing order, and the sectional drawing order and test operation request are sent to the Front End described to be measured in the user terminal, so that the Front End to be measured completes test.Methods described causes that server provides unified front end DLL for various front end test frames, reduces the difficulty of automatic test, improves testing efficiency, and reduce testing cost.
Description
Technical field
The present invention relates to testing field, in particular to a kind of front end method of testing and device.
Background technology
With developing rapidly for mobile Internet, enterprise release software systems would generally issue mobile APP, Html5 and
The multiple version such as Web, wherein, mobile APP is also divided into two versions of iOS and Android.For the Front End of different editions,
At present tested using different front end test frames, because the front end DLL of each framework is not united
One, bring great difficulty to front end test.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of front end method of testing and device, to solve
Certainly above mentioned problem.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
In a first aspect, the embodiment of the invention provides a kind of front end method of testing, methods described includes:Server
The request to create that first terminal sends is received, according to the request to create for receiving, corresponding service end example is created;The service
Device starts the Front End to be measured in corresponding user terminal by the service end example;The server is by the service
End example receives the test operation request that first terminal is initiated, and test operation request is sent to user's end by the server
End, so that the Front End described to be measured in the user terminal is tested, wherein, the test operation request includes surveying
Example on probation;If the test crash, the server receives sectional drawing order, and the sectional drawing order and the test operation are asked
The Front End described to be measured in the user terminal is sent to, so that the Front End to be measured completes test.
Second aspect, the embodiment of the invention provides a kind of front end test device, and described device includes:Receive mould
Block, the request to create that first terminal sends is received for server, according to the request to create for receiving, creates corresponding service end
Example;First processing module, for the server by be measured in the corresponding user terminal of service end example startup
Front End;Second processing module, the test that first terminal is initiated is received for the server by the service end example
Test operation request is sent to user terminal by operation requests, the server, so that described in the user terminal
Front End to be measured is tested, wherein, the test operation request includes test case;3rd processing module, if for
The test crash, the server receives sectional drawing order, and the sectional drawing order and test operation request are sent into institute
The Front End described to be measured in user terminal is stated, so that the Front End to be measured completes test.
Compared with prior art, a kind of front end method of testing provided in an embodiment of the present invention and device, by clothes
Business device receives the request to create that first terminal sends, and according to the request to create for receiving, creates corresponding service end example, described
Server starts the Front End to be measured in corresponding user terminal by the service end example, and the server is by described
Service end example receives the test operation request that first terminal is initiated, and the test operation request includes test case, described
Test operation request is sent to user terminal by server, so that the Front End described to be measured in the user terminal enters
Row test, if the test crash, the server receives sectional drawing order, and the sectional drawing order and the test operation are asked
The Front End described to be measured in the user terminal is sent to, so that the Front End to be measured completes test, this mode
Under so that server provides unified front end DLL for various front end test frames, reduces automation and surveys
The difficulty of examination, improves testing efficiency, and reduce testing cost.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is first terminal provided in an embodiment of the present invention, the schematic diagram that user terminal is interacted with server.
Fig. 2 is the structured flowchart of server provided in an embodiment of the present invention.
Fig. 3 is a kind of flow chart of front end method of testing that first embodiment of the invention is provided.
Fig. 4 is a kind of flow chart of front end method of testing that second embodiment of the invention is provided.
Fig. 5 is a kind of structured flowchart of front end test device that third embodiment of the invention is provided.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.Meanwhile, of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Fig. 1 shows first terminal provided in an embodiment of the present invention 110, and user terminal 120 is interacted with server 200
Schematic diagram.The server 200 can be communicatively coupled by network with one or more first terminals 110, to carry out
Data communication or interaction.The server 200 can be communicatively coupled by network with one or more user terminals 120,
To enter row data communication or interaction.The server 200 can be the webserver or data server etc..Described first
Terminal 110 or the user terminal 100 can be PC (personal computer, PC), panel computer, intelligent hand
Machine, personal digital assistant (personal digital assistant, PDA) etc..
As shown in Fig. 2 being the block diagram of the server 200.The server 200 includes memory 201, treatment
Device 202 and mixed-media network modules mixed-media 203.
Memory 201 can be used to store software program and module, the front end test such as in the embodiment of the present invention
Corresponding programmed instruction/the module of method and device, processor 202 by run software program of the storage in memory 201 with
And module, so as to perform various function application and data processing, that is, realize the front end test in the embodiment of the present invention
Method.Memory 201 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Storage device, flash memory or other non-volatile solid state memories.Further, the software program in above-mentioned memory 201 with
And module may also include:Operating system 221 and service module 222.Wherein operating system 221, for example can for LINUX, UNIX,
WINDOWS, it may include various for management system task (such as memory management, storage device control, power management etc.)
Component software and/or driving, and can mutually be communicated with various hardware or component software, so as to provide the operation of other software component
Environment.Service module 222 is operated on the basis of operating system 221, and is monitored by the network service of operating system 221 and come from
The request of network, completes corresponding data processing, and return to result to client according to request.That is, service mould
Block 222 is used to provide network service to client.
Mixed-media network modules mixed-media 203 is used to receive and send network signal.Above-mentioned network signal may include wireless signal or have
Line signal.
It is appreciated that the structure shown in Fig. 2 be only illustrate, the server 200 may also include it is more more than shown in Fig. 2 or
The less component of person, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or
Its combination is realized.In addition, the server in the embodiment of the present invention can also include the server of multiple specific difference in functionalitys.
Fig. 3 shows a kind of front end method of testing that first embodiment of the invention is provided, and refers to Fig. 3, this reality
The handling process that example describes server is applied, methods described includes:
Step S310, server receives the request to create that first terminal sends, and according to the request to create for receiving, it is right to create
The service end example answered.
Automated test frame is installed in the first terminal, as a kind of implementation method, before step S310, should
Method also includes:Automated test frame is initialized in the first terminal, start-up parameter, environmental variance is obtained, starts framework
Process.After automated test frame completes initialization, from server lookup each server on service end example number, according to negative
The corresponding server of policy selection in a balanced way is carried, to the request to create that the server of the selection is initiated.
Wherein, service end example can be the service end example under different front end test frames, for example,
Appium Server examples, Selenium Server examples.It is of course also possible to be the service end example under other frameworks, example
Such as, the service end example under Watir frameworks, the service under service end example, UIAutomator frameworks under Robotium frameworks
End example etc., it is not limited to this.
It is understood that be encapsulated for the service end example in various head end test frameworks in advance by server.According to
The request to create for receiving, creates corresponding service end example.Used as a kind of implementation method, the request to create can be
RESTFul is asked.For different Front Ends to be measured, the RESTFul requests that it is initiated are different.
As a kind of implementation method, if the request to create for receiving is the first request to create, Appium Server are created
Example, wherein, first request to create includes user terminal IP address, client terminal system version number, the bag of application program
The main interface class of name and application program.
Further, if the request to create for receiving is the first request to create, ADB connections are created, and according to port model
Enclose for Appium Server examples distribute idle port automatically, create Appium Server examples.
If the request to create for receiving is the second request to create, Appium Server examples are created, wherein, described the
Two requests to create include user terminal IP address, client terminal system version number and browser title.
Further, if the request to create for receiving is the second request to create, ADB connections are created, and according to port model
Enclose for Appium Server examples distribute idle port automatically, create Appium Server examples.
If the request to create for receiving is three request to create, Selenium Server examples are created, wherein, it is described
3rd request to create includes the corresponding parameter of browser.
Further, it is Selenium according to port range if the request to create for receiving is three request to create
Server example allocation idle ports, create Selenium Server examples.
It is understood that under this mode, can be managed collectively and safeguard Adb connections and service end example (Appium
Server examples and Selenium Server examples) establishment, details realized to the shielding of upper strata test program, reduce tester
Member writes use-case difficulty.
Step S320, the server starts the front end journey to be measured in corresponding user terminal by the service end example
Sequence.
Used as a kind of implementation method, the Front End to be measured includes application program, Html5 webpages, or Web page.
Wherein, Html5 webpages refer to the Html5 webpages of mobile terminal, such as wechat program etc., and the Html5 webpages are by moving
The program operation such as Chrome or Safari browsers of dynamic terminal.
Web page refers to the Web page at PC ends, can be Chrome, Safari, Firefox, IE, the Edge at PC ends etc.
The webpage that browser is opened.
As a kind of implementation method, if the service end example is the Appium generated according to the first request to create
Server examples, then it is APP programs to correspond to the Front End to be measured for starting.If the service end example is to create to ask according to second
The Appium Server examples sought survival, then it is the browser program of mobile terminal to correspond to the Front End to be measured for starting, for example,
Chrome the or Safari browsers of mobile terminal.If the service end example is to be generated according to the 3rd request to create
Selenium Server examples, then it is the browser program at PC ends to correspond to the Front End to be measured for starting, for example, PC ends
The browsers such as Chrome, Safari, Firefox, IE, Edge.
It is understood that the Front End to be measured can be pre-installed in user terminal, the service end example solution
After locking the user terminal, start corresponding Front End to be measured.Certainly, the Front End to be measured can not also be pre-installed in
User terminal, when needing to be tested, just uploads onto the server the installation file of the Front End to be measured, so that the clothes
After business end example unlocks the user terminal so that the user terminal installs the Front End to be measured.
Step S330, the server receives the test operation request that first terminal is initiated by the service end example,
Test operation request is sent to user terminal by the server, so that the front end journey described to be measured in the user terminal
Sequence is tested, wherein, the test operation request includes test case.
Used as a kind of implementation method, server is based on Page Object and designs pattern, is thought with object-oriented (page object)
Think, test object element (button, input frame, title etc.) and single testing procedure are encapsulated in Page objects.Page pairs
As comprising element and function.Page objects are based on WebDriver agreements, there is provided three ends (mobile APP, Html5, Web) unification
DLL.According to injection design pattern is relied on, Page page objects element is explained based on Java, is united in Page page creations
One injection.It is understood that based on the unified front end abstraction interface of WebDriver protocol encapsulations, as long as developer learns
Can once APP, H5 and Web automatic test program be write.And by UI interface abstractions be Page objects, test case is
Circulation between Page objects, enhances code reuse ability, reduces duplicated code, reduces developer's maintenance cost.
Test operation request is corresponding with test case, and the service end example receives test operation request, can adjust
Corresponding test case is used, the test case can be that advance write and store, or tester uploads in real time
The test case of server.
Used as a kind of implementation method, test case can be tested and used by two dimension tissues of test scene and test module
The function of example is realized by the circulation of Page objects.Further, it is also possible to according to business scenario, by use-case be divided into scene,
Module and method, support to start automatic test program according to various granularities (scene, module, method).
As a kind of implementation method, priority can be set to each test case.Performed according to priorities of test cases
Test case, the preposition and postcondition of implementation of test cases supports multiple terminals, the concurrent implementation of test cases of many browsers.
Wherein, the Front End to be tested may be mounted at the server, it is also possible to installed in user terminal, if institute
State Front End to be tested and be arranged on user terminal, then server unblock user terminal, then server please by the test operation
Ask and be sent to user terminal, so that user terminal performs corresponding test case, the Front End to be measured is tested.
Step S340, if the test crash, the server receives sectional drawing order, and by the sectional drawing order and the survey
Examination operation requests are sent to the Front End described to be measured in the user terminal, so that the Front End to be measured completes to survey
Examination.
After the completion of each testing case, test result is detected.Used as a kind of implementation method, server can set number
According to warehouse module, it is mainly used in storing input, the output data of test case, configures in data.properteis files, branch
Hold the multiple dimension such as mobile terminal, browser and test scene.
According to test result, judgement tests whether failure.For example, the output result of current test case is with expected results not
Unanimously, then current test crash is judged.If current test operation failure, sectional drawing order, the server are sent by first terminal
Sectional drawing order is received, and the sectional drawing order is sent to the user terminal, the user terminal carries out sectional drawing and returns to
Server, server can also be further transmitted to first terminal.By this sectional drawing mode so that tester being capable of basis
Intuitively see the place of test error, improve testing efficiency.
Also, it is further, described in be sent in the user terminal for test operation request by the server
Front End to be measured, so that the Front End to be measured completes test.
As a kind of implementation method, it is also possible to default number of retries is set, if the test crash, resends test operation
After the default number of retries of request, still if test crash, the test is no longer re-started.
Front end method of testing provided in an embodiment of the present invention, server plays various head end test framework encapsulations
Come, when the request to create for receiving, create corresponding service end example, the different front end of different service end example correspondences is automatic
Change the service end of test frame, the service end example starts corresponding Front End to be measured, and the service end example is received to be surveyed
Examination operation requests, and test operation request is sent to the corresponding Front End execution to be measured, so that described to be measured
Front End complete test, if the test crash, sectional drawing and by the test operation request resend to it is corresponding it is to be measured before
End program is performed, so that the Front End to be measured completes test, under this mode so that server is various front ends
Test frame provides unified front end DLL, reduces the difficulty of automatic test, improves testing efficiency, and reduce
Testing cost.
Fig. 4 shows a kind of front end method of testing that second embodiment of the invention is provided, and refers to Fig. 4, this reality
The handling process that example describes server is applied, methods described includes:
Step S410, receives the Front End installation file to be measured that the first terminal sends.
Wherein, the Front End installation file to be measured can be the installation file of APP to be measured.
Step S420, server receives the request to create that first terminal sends, and according to the request to create for receiving, it is right to create
The service end example answered.
The request to create can be sent by the client under automated test frame is (corresponding with service end).
Step S430, user terminal is sent to by the Front End installation file to be measured, so that the user terminal root
According to the Front End installation file to be measured, the Front End to be measured is installed.
It is understood that just being installed during Front End to be tested per secondary test, user terminal can be saved and deposited
Storage resource.Further, can be after the completion of the Front End test to be tested, by test Front End unloading, under thinking
One Front End to be tested reserves enough spaces.
Step S440, the server starts the front end journey to be measured in corresponding user terminal by the service end example
Sequence.
Step S450, the server receives the test operation request that first terminal is initiated by the service end example,
Test operation request is sent to user terminal by the server, so that the front end journey described to be measured in the user terminal
Sequence is tested, wherein, the test operation request includes test case.
Step S460, if the test crash, the server receives sectional drawing order, and by the sectional drawing order and the survey
Examination operation requests are sent to the Front End described to be measured in the user terminal, so that the Front End to be measured completes to survey
Examination.
Step S470, after the completion of all tests, the test report that HTTP modes are consulted is supported in generation.
It is of course also possible to after the completion of all tests, executor be notified by modes such as mail, short messages.By this side
Formula so that tester can in time check test report, improve Consumer's Experience.
Step S480, closes the service end example and discharges the corresponding resource of the service end example.
After the completion of test, close the service end example and discharge the corresponding resource of the service end example, can make
The resource for obtaining server is reclaimed in real time, is conducive to server to allocate resources to other programs and is used, and saves server money
Source.
Wherein, the implementation method of step S420, step S440 to step S460 and step S310 in a upper embodiment to step
It is similar in rapid S340, here is omitted.
Front end method of testing provided in an embodiment of the present invention, server plays various head end test framework encapsulations
Come, when the request to create for receiving, create corresponding service end example, the different front end of different service end example correspondences is automatic
Change the service end of test frame, the service end example starts corresponding Front End to be measured, and the service end example is received to be surveyed
Examination operation requests, and the Front End to be measured is surveyed according to the corresponding test case of the test operation request call
Examination, if the test crash, test operation request is simultaneously resend to corresponding Front End execution to be measured by sectional drawing, so that
The Front End to be measured completes test, under this mode so that server is provided for various front end test frames
Unified front end DLL, reduces the difficulty of automatic test, improves testing efficiency, and reduce testing cost.
Fig. 5 is referred to, is that the functional module of the front end test device 500 that third embodiment of the invention is provided is illustrated
Figure.The front end test device 500 include receiver module 510, first processing module 520, Second processing module 530,
3rd processing module 540.
Receiver module 510, the request to create that first terminal sends is received for server, please according to the establishment for receiving
Ask, create corresponding service end example.
As a kind of implementation method, receiver module 510, if the request to create specifically for receiving is the first request to create
When, Appium Server examples are created, wherein, first request to create includes user terminal IP address, client terminal system
The main interface class of version number, the bag name of application program and application program;If the request to create for receiving is the second request to create
When, Appium Server examples are created, wherein, second request to create includes user terminal IP address, client terminal system
Version number and browser title;If the request to create for receiving is three request to create, Selenium Server realities are created
Example, wherein, the 3rd request to create includes the corresponding parameter of browser.
First processing module 520, for the server by the corresponding user terminal of service end example startup
Front End to be measured.
Wherein, the Front End to be measured includes application program, Html5 webpages, or Web page.
Second processing module 530, the survey that first terminal is initiated is received for the server by the service end example
Test operation request is sent to user terminal by examination operation requests, the server, so that the institute in the user terminal
Front End to be measured is stated to be tested, wherein, the test operation request includes test case.
3rd processing module 540, if for the test crash, the server receives sectional drawing order, and by the sectional drawing
Order and test operation request are sent to the Front End described to be measured in the user terminal, so that the front end to be measured
Program completes test.
Used as a kind of implementation method, the receiver module 510 is additionally operable to receive the front end to be measured that the first terminal sends
Program installation file;Described device also includes fourth processing module 550, corresponding to be measured for starting in the service end example
Before Front End, the Front End installation file to be measured is sent to user terminal, so that the user terminal is according to institute
Front End installation file to be measured is stated, the Front End to be measured is installed.
Used as a kind of implementation method, described device also includes the 5th processing module 560, for after the completion of all tests,
The test report that HTTP modes are consulted is supported in generation.
Used as a kind of implementation method, described device also includes the 6th processing module 570, for closing the service end example
And discharge the corresponding resource of the service end example.
Each module can, by software code realization, can equally be realized by hardware such as IC chip above.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
The technique effect of the front end test device that the embodiment of the present invention is provided, its realization principle and generation and preceding
State embodiment of the method identical, to briefly describe, device embodiment part does not refer to part, refers to phase in preceding method embodiment
Answer content.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more
Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation
Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need
It is noted that herein, such as first and second or the like relational terms are used merely to an entity or operation
Made a distinction with another entity or operation, and not necessarily require or imply these entities or exist between operating any this
Actual relation or order.And, term " including ", "comprising" or its any other variant be intended to nonexcludability
Comprising so that process, method, article or equipment including a series of key elements not only include those key elements, but also wrapping
Include other key elements being not expressly set out, or also include for this process, method, article or equipment is intrinsic wants
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Also there is other identical element in process, method, article or the equipment of element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (10)
1. a kind of front end method of testing, it is characterised in that methods described includes:
Server receives the request to create that first terminal sends, and according to the request to create for receiving, creates corresponding service end reality
Example;
The server starts the Front End to be measured in corresponding user terminal by the service end example;
The server passes through the service end example and receives the test operation that first terminal initiates to ask, and the server is by institute
State test operation request and be sent to user terminal, so that the Front End described to be measured in the user terminal is tested, its
In, the test operation request includes test case;
If the test crash, the server receives sectional drawing order, and the sectional drawing order and test operation request are sent out
The Front End described to be measured in the user terminal is sent to, so that the Front End to be measured completes test.
2. method according to claim 1, it is characterised in that the service end example includes Appium Server examples
Or Selenium Server examples, the request to create that the basis is received, corresponding service end example is created, including:
If the request to create for receiving is the first request to create, Appium Server examples are created, wherein, first wound
Building request includes the bag name and the main interface of application program of user terminal IP address, client terminal system version number, application program
Class;
If the request to create for receiving is the second request to create, Appium Server examples are created, wherein, second wound
Building request includes user terminal IP address, client terminal system version number and browser title;
If the request to create for receiving is three request to create, Selenium Server examples are created, wherein, the described 3rd
Request to create includes the corresponding parameter of browser.
3. method according to claim 2, it is characterised in that it is described create corresponding service end example before, it is described
Method also includes:
Receive the Front End installation file to be measured that the first terminal sends;
Before the service end example starts corresponding Front End to be measured, methods described also includes:
The Front End installation file to be measured is sent to user terminal, so that the user terminal is according to the front end to be measured
Program installation file, installs the Front End to be measured.
4. according to the method in any one of claims 1 to 3, it is characterised in that the Front End to be measured includes application
Program, Html5 webpages, or Web page.
5. method according to claim 1, it is characterised in that methods described also includes:
After the completion of all tests, the test report that HTTP modes are consulted is supported in generation.
6. method according to claim 5, it is characterised in that support the test report that HTTP modes consult in the generation
Afterwards, methods described also includes:
Close the service end example and discharge the corresponding resource of the service end example.
7. method according to claim 1, it is characterised in that the test case includes at least one test object element
And testing procedure, the test object element and testing procedure are packaged using Page objects.
8. a kind of front end test device, it is characterised in that described device includes:
Receiver module, the request to create that first terminal sends is received for server, and according to the request to create for receiving, it is right to create
The service end example answered;
First processing module, started by the service end example for the server in corresponding user terminal it is to be measured before
End program;
Second processing module, please by the test operation that the service end example receives first terminal initiation for the server
Ask, test operation request is sent to user terminal by the server, so that before described to be measured in the user terminal
End program is tested, wherein, the test operation request includes test case;
3rd processing module, if for the test crash, the server receives sectional drawing order, and by the sectional drawing order and institute
The Front End described to be measured that test operation request is sent in the user terminal is stated, so that the Front End to be measured is completed
Test.
9. device according to claim 8, it is characterised in that the service end example includes Appium Server examples
Or Selenium Server examples, if the receiver module is the first request to create specifically for the request to create that receives,
Appium Server examples are created, wherein, first request to create includes user terminal IP address, client terminal system version
This number, the main interface class of the bag name of application program and application program;If the request to create for receiving is the second request to create,
Appium Server examples are created, wherein, second request to create includes user terminal IP address, client terminal system version
This number and browser title;If the request to create for receiving is three request to create, Selenium Server examples are created,
Wherein, the 3rd request to create includes the corresponding parameter of browser.
10. device according to claim 9, it is characterised in that the receiver module, is additionally operable to receive the first terminal
The Front End installation file to be measured for sending;Described device also includes fourth processing module, for being opened in the service end example
Before moving corresponding Front End to be measured, the Front End installation file to be measured is sent to user terminal, so that the use
Family terminal installs the Front End to be measured according to the Front End installation file to be measured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710048578.8A CN106844213A (en) | 2017-01-21 | 2017-01-21 | A kind of front end method of testing and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710048578.8A CN106844213A (en) | 2017-01-21 | 2017-01-21 | A kind of front end method of testing and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106844213A true CN106844213A (en) | 2017-06-13 |
Family
ID=59120499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710048578.8A Pending CN106844213A (en) | 2017-01-21 | 2017-01-21 | A kind of front end method of testing and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106844213A (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108111369A (en) * | 2017-12-22 | 2018-06-01 | 北京奇虎科技有限公司 | The test method and device of a kind of webpage performance of mobile terminal |
CN109150978A (en) * | 2018-07-24 | 2019-01-04 | 北京百度网讯科技有限公司 | The method and apparatus for debugging micro services |
CN109359053A (en) * | 2018-12-18 | 2019-02-19 | 上海科梁信息工程股份有限公司 | Generation method and relevant apparatus, the test macro and storage medium of test report |
CN109560991A (en) * | 2018-12-19 | 2019-04-02 | 中山大学 | A kind of Visualizing Test System and method of electric-controlled plate |
CN109582534A (en) * | 2018-11-01 | 2019-04-05 | 阿里巴巴集团控股有限公司 | The determination method, apparatus and server of the operation entry of system |
CN110287122A (en) * | 2019-06-29 | 2019-09-27 | 广州华多网络科技有限公司 | A kind of automated testing method, device, terminal and storage medium |
CN110532141A (en) * | 2019-08-30 | 2019-12-03 | 峰米(北京)科技有限公司 | A kind of automatization test system and method, a kind of storage medium of intelligent display terminal |
CN111506508A (en) * | 2020-04-17 | 2020-08-07 | 北京百度网讯科技有限公司 | Edge calculation test method, device, equipment and readable storage medium |
CN114036049A (en) * | 2021-11-10 | 2022-02-11 | 四川启睿克科技有限公司 | Cross-end-based UI (user interface) automatic testing method |
CN114092169A (en) * | 2020-10-20 | 2022-02-25 | 北京沃东天骏信息技术有限公司 | Ordering test method and system and equipment for executing ordering test method |
WO2022237826A1 (en) * | 2021-05-12 | 2022-11-17 | 华为云计算技术有限公司 | User interface testing method and system, cluster, medium, and program product |
CN115858402A (en) * | 2023-02-27 | 2023-03-28 | 国网瑞嘉(天津)智能机器人有限公司 | Automatic regression testing method and device based on cloud platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424093A (en) * | 2013-08-26 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Compatibility testing method and system |
CN104461897A (en) * | 2014-12-18 | 2015-03-25 | 网易(杭州)网络有限公司 | Application program test method and device |
CN105117289A (en) * | 2015-09-30 | 2015-12-02 | 北京奇虎科技有限公司 | Task allocation method, device and system based on cloud testing platform |
US20150363304A1 (en) * | 2014-06-17 | 2015-12-17 | Kishan Nagamalla | Self-learning and self-validating declarative testing |
-
2017
- 2017-01-21 CN CN201710048578.8A patent/CN106844213A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104424093A (en) * | 2013-08-26 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Compatibility testing method and system |
US20150363304A1 (en) * | 2014-06-17 | 2015-12-17 | Kishan Nagamalla | Self-learning and self-validating declarative testing |
CN104461897A (en) * | 2014-12-18 | 2015-03-25 | 网易(杭州)网络有限公司 | Application program test method and device |
CN105117289A (en) * | 2015-09-30 | 2015-12-02 | 北京奇虎科技有限公司 | Task allocation method, device and system based on cloud testing platform |
Non-Patent Citations (1)
Title |
---|
陈晔 等: "《大话APP测试2.0:移动互联网产品测试实录》", 30 September 2016, 清华大学出版社 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108111369A (en) * | 2017-12-22 | 2018-06-01 | 北京奇虎科技有限公司 | The test method and device of a kind of webpage performance of mobile terminal |
CN109150978B (en) * | 2018-07-24 | 2022-05-10 | 北京百度网讯科技有限公司 | Method and device for debugging micro service |
CN109150978A (en) * | 2018-07-24 | 2019-01-04 | 北京百度网讯科技有限公司 | The method and apparatus for debugging micro services |
CN109582534A (en) * | 2018-11-01 | 2019-04-05 | 阿里巴巴集团控股有限公司 | The determination method, apparatus and server of the operation entry of system |
CN109359053A (en) * | 2018-12-18 | 2019-02-19 | 上海科梁信息工程股份有限公司 | Generation method and relevant apparatus, the test macro and storage medium of test report |
CN109560991A (en) * | 2018-12-19 | 2019-04-02 | 中山大学 | A kind of Visualizing Test System and method of electric-controlled plate |
CN110287122A (en) * | 2019-06-29 | 2019-09-27 | 广州华多网络科技有限公司 | A kind of automated testing method, device, terminal and storage medium |
CN110287122B (en) * | 2019-06-29 | 2023-08-11 | 广州华多网络科技有限公司 | Automatic test method, device, terminal and storage medium |
CN110532141A (en) * | 2019-08-30 | 2019-12-03 | 峰米(北京)科技有限公司 | A kind of automatization test system and method, a kind of storage medium of intelligent display terminal |
CN111506508A (en) * | 2020-04-17 | 2020-08-07 | 北京百度网讯科技有限公司 | Edge calculation test method, device, equipment and readable storage medium |
CN114092169A (en) * | 2020-10-20 | 2022-02-25 | 北京沃东天骏信息技术有限公司 | Ordering test method and system and equipment for executing ordering test method |
WO2022237826A1 (en) * | 2021-05-12 | 2022-11-17 | 华为云计算技术有限公司 | User interface testing method and system, cluster, medium, and program product |
CN114036049A (en) * | 2021-11-10 | 2022-02-11 | 四川启睿克科技有限公司 | Cross-end-based UI (user interface) automatic testing method |
CN115858402A (en) * | 2023-02-27 | 2023-03-28 | 国网瑞嘉(天津)智能机器人有限公司 | Automatic regression testing method and device based on cloud platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106844213A (en) | A kind of front end method of testing and device | |
CN109933522B (en) | Test method, test system and storage medium for automatic case | |
Suryotrisongko et al. | Design and development of backend application for public complaint systems using microservice spring boot | |
WO2018006789A1 (en) | Parameter checking method and apparatus, and network management server and computer storage medium | |
US9672140B1 (en) | Processing special requests at dedicated application containers | |
US20180081795A1 (en) | Automated test generation for multi-interface enterprise virtualization management environment | |
US10169203B2 (en) | Test simulation for software defined networking environments | |
CN105630685A (en) | Method and device for testing program interface | |
WO2022016847A1 (en) | Automatic test method and device applied to cloud platform | |
CN106326088B (en) | Method and device for realizing construction of test object and device for realizing service configuration test | |
CN107526676B (en) | Cross-system test method and device | |
CN111190586A (en) | Software development framework building and using method, computing device and storage medium | |
US10572371B2 (en) | Generating valid use cases from a parsed configuration file describing use case options | |
CN115051927B (en) | Data network development method and system | |
CN111651169B (en) | Block chain intelligent contract operation method and system based on web container | |
CN114422618A (en) | IOT platform protocol adaptation method, device, equipment and medium based on cloud protogenesis | |
CN109597627A (en) | A kind of component mounting method, device, storage medium and processor | |
CN110083366B (en) | Application running environment generation method and device, computing equipment and storage medium | |
CN107766230A (en) | A kind of method and apparatus tested based on configuration file | |
CN115883310A (en) | Service deployment method, service deployment system, electronic device, and storage medium | |
CN113518002A (en) | Monitoring method, device, equipment and storage medium based on server-free platform | |
CN111712795A (en) | Method, apparatus, computer program product and readable medium for evaluating application deployment | |
CN116303309A (en) | File mounting method and device and electronic equipment | |
CN115525545A (en) | Docker-based automatic testing method, system, equipment and medium | |
CN114237821A (en) | Self-discovery method and device for Kubernetes container cluster, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |