CN108628747A - H5 application testing methods, device, computer equipment and storage medium - Google Patents
H5 application testing methods, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108628747A CN108628747A CN201810435846.6A CN201810435846A CN108628747A CN 108628747 A CN108628747 A CN 108628747A CN 201810435846 A CN201810435846 A CN 201810435846A CN 108628747 A CN108628747 A CN 108628747A
- Authority
- CN
- China
- Prior art keywords
- test
- mobile terminal
- applications
- destination mobile
- target
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- 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/3696—Methods or tools to render software testable
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 discloses a kind of H5 application testing methods, device, computer equipment and storage medium, which includes:H5 application test requests are obtained, corresponding destination mobile terminal is connected based on the H5 applications test request;It controls the destination mobile terminal and loads corresponding target H5 applications, execute the test process of the target H5 applications;Based on the test process of target H5 applications, corresponding test data is obtained from the destination mobile terminal;Based on the test data, test result is shown in visualization interface.The H5 application testing methods can realize the test remotely applied to H5, and be tested using prototype, and the convenience of test is also improved while ensureing H5 application test accuracies.
Description
Technical field
The present invention relates to using testing field more particularly to a kind of H5 application testing methods, device, computer equipment and deposit
Storage media.
Background technology
It is also growing to the research and development of H5 applications with the development of computer technology.Wherein, H5 applications refer to base
In the application program of HTML5 technological development.The performance test of progress H5 applications is needed after H5 applications complete.Usually
Ground can test the H5 applications to complete using specific H5 applications testing tool at the ends PC.But this test side
Formula is only a kind of test of scenario simulation, can not truly embody the practical application scene of H5 applications.In order to improve this not
Foot, it will usually the H5 applications to complete be tested using prototype automatic performance testing scheme.Prototype automatic performance
Testing scheme refers to the automatic test for using H5 performance testing tools to carry out H5 performances to H5 applications on mobile terminals.So
And this testing scheme is higher to the dependence of mobile terminal, needs the local mobile terminal for being available for test.For on hand
The case where not can be used for the mobile terminal of H5 application tests, can not just H5 prototype automatic performance testing schemes be used to carry out
The automated performance testing of H5 applications, it is greatly inconvenient that this carrys out the calibration tape of H5 applications.
Invention content
A kind of H5 application testing methods of offer of the embodiment of the present invention, device, computer equipment and storage medium, to solve H5
Prototype automatic performance tests the not high problem of convenience.
In a first aspect, the embodiment of the present invention provides a kind of H5 application testing methods, including the following step that STF platforms execute
Suddenly:
H5 application test requests are obtained, corresponding destination mobile terminal is connected based on the H5 applications test request;
It controls the destination mobile terminal and loads corresponding target H5 applications, execute the test of the target H5 applications
Journey;
Based on the test process of target H5 applications, corresponding test data is obtained from the destination mobile terminal;
Based on the test data, test result is shown in visualization interface.
Second aspect, the embodiment of the present invention provide a kind of H5 applications test device, including:
Destination mobile terminal link block is connected for obtaining H5 application test requests based on the H5 applications test request
Connect corresponding destination mobile terminal;
Target H5 application test modules load corresponding target H5 applications for controlling the destination mobile terminal, execute
The test process of the target H5 applications;
Test data acquisition module, the test process for being applied based on the target H5, from the destination mobile terminal
It is middle to obtain corresponding test data;
Test result display module shows test result for being based on the test data in visualization interface.
Third aspect present invention provides a kind of computer equipment, including memory, processor and is stored in the storage
In device and the computer program that can run on the processor, the processor are realized when executing the computer program such as this
Described in invention first aspect the step of H5 application testing methods.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has
Computer program realizes H5 application testing methods as described in the first aspect of the invention when the computer program is executed by processor
The step of.
In H5 application testing methods provided in an embodiment of the present invention, device, computer equipment and storage medium, pass through acquisition
H5 application test requests, and corresponding destination mobile terminal is connected based on H5 application test requests, targetedly to be surveyed
Examination.Control targe mobile terminal loads corresponding target H5 applications, the test process of performance objective H5 applications, to realize long-range control
Mobile terminal processed carries out the test of target H5 applications.Based on the test process of target H5 applications, obtained from destination mobile terminal
Corresponding test data.Based on test data, test result is shown in visualization interface, test result is more intuitively presented.
It by the H5 application testing methods, it can be achieved that the remotely test to H5 applications, and is tested using prototype, is ensureing that H5 answers
The convenience of test is also improved while with test accuracy.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a flow chart of the H5 application testing methods in the embodiment of the present invention 1;
Fig. 2 is a flow chart of a specific implementation mode of step S10 in Fig. 1;
Fig. 3 is a flow chart of a specific implementation mode of step S40 in Fig. 1;
Fig. 4 is a flow chart of the another embodiment of step S40 in Fig. 1;
Fig. 5 is a schematic diagram of the H5 application test devices provided in the embodiment of the present invention 2;
Fig. 6 is a schematic diagram of the computer equipment provided in the embodiment of the present invention 4.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 shows the flow chart of H5 application testing methods in the present embodiment.The H5 application testing methods were applied at various ends
In end, to solve the problems, such as that H5 prototype automatic performances test convenience is not high.STF (smart mobile phone test platform,
Smartphone test farm) platform be it is a can by the platform of browser remote management smart machine, can be move
Dynamic automatic test offer conveniently services.STF platforms, which can be applied to the ends PC, can also be applied to mobile terminal.Example
Such as, mobile terminal application STF platforms can be presented as:Mobile terminal installs STF platform softwares, and STF on mobile terminals is flat
Platform software middle pipe manages smart machine.The ends PC can be presented as using STF platforms:Long-range visit is provided in the form of a web page on the ends PC
It asks, after console interface of the user in the ends PC directly inputs instruction " adb connect $ iPaddress ", so that it may with by the ends PC
IP be connected to the mobile terminal on remote server.In the present embodiment, STF platforms are connected at least one mobile terminal.
As shown in Figure 1, the H5 application testing methods include the following steps that STF platforms execute:
S10:H5 application test requests are obtained, corresponding destination mobile terminal is connected based on H5 application test requests.
Wherein, H5 applications test request refers to the initiation request tested H5 applications.Destination mobile terminal is to need
Carry out the mobile terminal of H5 application tests.After getting H5 application test requests, STF platforms can be based on H5 applications and survey
Examination asks to connect corresponding destination mobile terminal.Can be selected based on different test requests different destination mobile terminals into
Row connection targetedly tests H5 applications with meeting different testing requirements.Optionally, H5 applications test request
It, can be according to the target in H5 application test requests after getting H5 application test requests including destination mobile terminal ID
The corresponding destination mobile terminal of mobile terminal ID connections.
In a specific embodiment, H5 applications test request includes test-types.Test-types refer to based on difference
Testing requirement and to the classification of H5 application test-types.For example, test-types can include but is not limited to:H5 applies itself property
It can test, the version test etc. of the H5 applications stability test based on different system and H5 applications.Getting H5 application tests
After request, corresponding destination mobile terminal can be connected according to test-types different in H5 application test requests.
S20:Control targe mobile terminal loads corresponding target H5 applications, the test process of performance objective H5 applications.
Wherein, target H5 applications refer to the H5 applications that needs to be tested in the H5 application test requests.In STF platforms
It is connected to after corresponding destination mobile terminal, control targe mobile terminal loads corresponding target H5 applications, to be moved in target
Realize that the test of target H5 applications provides basis in dynamic terminal.In a specific embodiment, H5 applications test request includes
The addresses URL of target H5 applications.Therefore, corresponding target H5 can be loaded by the addresses URL with control targe mobile terminal to apply,
To the test process of performance objective H5 applications.The test process of target H5 applications includes each page for loading target H5 applications
Face, control and execution interaction content etc., can be configured or adjust to the test process according to different testing requirements.
S30:Based on the test process of target H5 applications, corresponding test data is obtained from destination mobile terminal.
In the test process of target H5 applications, STF platforms can obtain corresponding test data from destination mobile terminal.Its
In, test data may include HTTP request data, time response data or bury point data etc..
In a specific embodiment, TcpDump packet catchers may be used and obtain corresponding survey from mobile terminal
Try data.In the present embodiment, target H5 applications can be loaded on destination mobile terminal to obtain by TcpDump packet catchers
HTTP request data in test process.TcpDump packet catchers can intercept and capture the data packet transmitted in network completely
And analyzed, it supports to be directed to network layer, agreement, host, network or the filtering of port, and provide and, or and not etc. to patrol
Sentence is collected to help to remove useless information.Corresponding target H5 is loaded by TcpDump packet catchers to mobile terminal to apply
Process carry out packet capturing, can really and in real time obtain the data packet in H5 application loading procedures.Optionally, it is sent out in Google
Include pcap2har Open-Source Tools in the PCAP Web Performance Analyzer projects of cloth, pcap packets can be turned
Turn to har files.It is thereby possible to select the overall process that TcpDump packet catchers open target H5 applications carries out packet capturing, obtain
It converts pcap packets to har files to pcap packets, then by pcap2har Open-Source Tools.Hereafter, then to har files parse
Corresponding test data can be got.
In a specific embodiment, call back function may be used, triggered when all kinds of events reach, obtain target H5
Using the response time (i.e. time response data) for different event.Call back function is that application program is supplied to Windows systems
The function that the DLL or other DLL that unite are called is generally used for intercepting messages, obtains system information or processing asynchronous event.Alternatively, logical
It crosses JavaScript and interacts monitoring windows object events with mobile terminal, such as onload events, carried out in suitable place
JavaScript pitching piles collect the response time for different event, to obtain corresponding time response data.
Optionally, partial target H5 applications can count corresponding event in such a way that setting is buried a little, such as:
Page access number, page residence time, user's login times or identifying code input number etc..Wherein, it is data acquisition to bury a little
The term in field (especially user behavior data acquisition field), refer to capturing for specific user's behavior or event,
Processing and the relevant technologies and its implementation process sent.And these events are configured to bury in target H5 applications and are a little obtained later
The data got are exactly to bury point data.In the test process of target H5 applications, it is predetermined that destination mobile terminal execution can be operated
The above-mentioned event of number (page access number, page residence time, user's login times or identifying code input number).Then it obtains
Take it is corresponding bury point data, with verify be arranged in target H5 application bury a little whether can smoothly realize its function, and obtain
To accurate data.Specifically, burying the acquisition of point data can select different tools come real according to specific data type
It is existing.If this buries point data and refers to HTTP request data, TcpDump packet catchers may be used and obtained from mobile terminal
Corresponding test data.If this buries point data and refers to time response data, call back function may be used or pass through
JavaScript is interacted with mobile terminal monitors windows object events to obtain.
S40:Based on test data, test result is shown in visualization interface.
After getting test data, the test data based on acquisition handles test data, obtains corresponding
Test result, and show test result in visualization interface.Test result is the feedback to test case based on test data
As a result.Specifically, test data is handled, can be presented as:Identify the quality of test data, based on the excellent of test data
Change suggestion and test data pictorialization etc..
Preferably, show that test result may include in visualization interface:Using chart crossover tool to test result into
Row conversion, obtains corresponding visual image, visual image is shown on visualization interface.Wherein, visual image refers to
The obtained image of visualization processing is carried out to test result.In the present embodiment, chart crossover tool may be used but be not limited to
Echarts tools.ECharts (Enterprise Charts, business level data drawing list) is the chart of a pure Javascript
Library smooth can operate on PC and mobile device, the current overwhelming majority browser of compatibility (IE6/7/8/9/10/11,
Chrome, firefox, Safari etc.), it is a kind of Canvas class libraries ZRender of bottom dependence lightweight, can be carried to user
For it is intuitive, lively, can height personalized customization data visualization chart.Survey can be effectively improved by using Echarts tools
The visualization of test result so that interactivity higher.
In H5 application testing methods provided in an embodiment of the present invention, by obtaining H5 application test requests, and answered based on H5
Corresponding destination mobile terminal is connected with test request, targetedly to be tested.The load pair of control targe mobile terminal
The target H5 applications answered, the test process of performance objective H5 applications can carry out target H5 to realize with remote control mobile terminal
Using the purpose of test.Based on the test process of target H5 applications, corresponding test data is obtained from destination mobile terminal.Base
In test data, test result is shown in visualization interface, test result is more intuitively presented.Test side is applied by the H5
Method is tested using prototype, it can be achieved that the remotely test to H5 applications, while ensureing H5 application test accuracies
Also improve the convenience of test.
In a specific embodiment, H5 applications test request includes test-types.Test-types refer to based on difference
Testing requirement and to the classification of H5 application test-types.For example, test-types can include but is not limited to:H5 applies itself property
It can test, the version test etc. of the H5 applications stability test based on different system and H5 applications.
In this embodiment, H5 application test requests are based on and connect corresponding destination mobile terminal, as shown in Fig. 2,
Specifically comprise the following steps:
S11:Test terminal allocation list is inquired based on test-types, obtains and shows at least one recommendation mobile terminal ID.
Test terminal allocation list refers to the contingency table of the test-types and corresponding mobile terminal ID of H5 application test requests
Corresponding recommendation information of mobile terminal can be arranged previously according to different test-types in lattice, test terminal allocation list.It can pass through
Inquiry test terminal allocation list, obtain the corresponding mobile terminal ID of different types of H5 applications test request, obtain and show to
Few one is recommended mobile terminal ID.Preferably, test terminal allocation list includes the type and mobile terminal of H5 application test requests
ID。
Table 1 tests terminal allocation list
Such as (with reference to table 1):Assuming that the test-types obtained are stability tests of the H5 based on different system.STF platforms
It, can be in test terminal after getting the test-types in H5 application test requests after getting H5 application test requests
Allocation list is based on the test-types and searches corresponding mobile terminal ID (HUAWEI XX, IPHONE YY, Blackberry ZZ) work
To recommend mobile terminal ID, after getting corresponding recommendation mobile terminal ID, acquired recommendation mobile terminal can be shown
ID, with for reference.
S12:It obtains mobile terminal and selects information, it includes destination mobile terminal ID that mobile terminal, which selects information,.
Wherein, mobile terminal selection information refers to the mobile terminal for needing STF platforms to be attached of user's final choice
Information.Specifically, for STF platforms after obtaining and showing recommendation mobile terminal ID, user can refer to the recommendation mobile terminal
ID come select the H5 application test in the destination mobile terminal ID to be connected, formed mobile terminal select information.The present embodiment
In, user can select mode to be selected from test terminal allocation list on the corresponding interface of STF platforms using pulling mode or hook
Corresponding destination mobile terminal ID can also use keyboard entry method the input phase in the input frame at the corresponding interface of STF platforms
The destination mobile terminal ID answered selects information to input the mobile terminal.
S13:Based on destination mobile terminal ID, corresponding destination mobile terminal is selected to be attached.
STF platforms select the target in information to move after getting mobile terminal selection information, by mobile terminal
Termination ID navigates to corresponding destination mobile terminal, and is attached.
In this embodiment, according to different test-types, STF platforms are obtained and are shown by test terminal allocation list
Show corresponding recommendation information, to help user rapidly and accurately to formulate testing scheme, improves testing efficiency.
In a specific embodiment, it is based on test data, test result is shown in visualization interface, as shown in figure 3,
Specifically comprise the following steps:
S41:Obtain the scale parameter between test data and corresponding test threshold.
Wherein, for test data, a test threshold can be preset, correspondence is weighed by this test threshold
Test data quality.And scale parameter is exactly a concrete embodiment of relationship between test data and test threshold of weighing.
Optionally, scale parameter can be determined by the ratio between test data and corresponding test threshold.
S42:In visualization interface, classification is carried out to test data based on scale parameter and is shown.
It, can be according to the difference of scale parameter, to test data in visualization interface after getting scale parameter
It carries out classification to show, more intuitively to embody the relationship between test data and corresponding test threshold.
Optionally, carrying out classification display to test data can be:Test data is used based on different scale parameters
Different colours are shown.For example, can be set based on scale parameter different scale parameter sections [0-5%), [5%-
10%) and [10%-15%).After setting scale parameter section, according to the scale parameter section that scale parameter is located at
Classification is carried out on visualization interface by different colors to show.Preferably, can according to the size of specific scale parameter and
The display mode of color depth gradual change is carried out, such as:It is pale red, red and dark red etc..Alternatively, for the ratio positioned at different segments
Example parameter corresponding test parameter selection subregion is shown.
In this embodiment, according to the proportionate relationship between test data and test threshold on visualization interface
It carries out classification to show, test result can be more intuitively embodied on visualization interface.
In a specific embodiment, the scale parameter between test data and corresponding test threshold is obtained, specifically
Including:The scale parameter of test data and corresponding test threshold is obtained using following formula:
Scale parameter=direction coefficient * ((test data-test threshold)/test threshold);
Wherein, direction coefficient is a coefficient for weighing degree of correlation direction between test data and test threshold.It is testing
In data, if a test data is more than test threshold, which, which is only, meets test request, then the test data
It is positive correlation between test threshold, i.e., their degree of correlation direction is just.Optionally, their direction system can be set at this time
Number is+1.If conversely, when test data is more than test threshold, which is undesirable, the then test number
According to being negatively correlated between test threshold, i.e., their degree of correlation direction is negative.Optionally, their direction can be set at this time
Coefficient is -1.
Therefore, when a test data does not meet test request, it is by the scale parameter that above-mentioned formula is calculated
One negative value.Conversely, when a test data meets the requirements, by the scale parameter that above-mentioned formula is calculated be one just
Value.
By the setting of this direction coefficient, no matter positive correlation or the negative correlation of test data and test threshold, all may be used
It is intuitively embodied with the calculation formula by aforementioned proportion parameter, need not additionally distinguish, can intuitively embody again
Test result also improves the data-handling efficiency of STF platforms.
In a specific embodiment, H5 applications test request includes test-types.Test-types refer to based on difference
Testing requirement and to H5 application test classification.For example, test-types may include:The test of H5 application self performances is based on
Version test of stability test and H5 application of different system etc..
In this embodiment, it is based on test data, test result is shown in visualization interface, further includes:Based on H5
Using the test-types of test request, corresponding visualization interface is generated.
For different test-types, the test result that gets is difference.Therefore, it can be surveyed by H5 applications
Different test-types in examination request, to generate different visualization interfaces, more intuitively to embody test result.Such as:When
When test-types are that H5 self performances are tested, relevant test data can be directly embodied on visualization interface, and to surveying
The good and bad of examination data is shown with classifying.When test-types be H5 using stability test based on different system when, can be can
Depending on changing, display target H5 applies test data or crucial test data in different system simultaneously on interface.Further,
Also test data or the good and bad of crucial test data can be embodied with classifying display.When the version that test-types are H5 applications
When test, it can show that the H5 of different editions is applied on one or more destination mobile terminals simultaneously on visualization interface
Test data or corresponding test result.
In this embodiment, for different test-types, by with different visualization interfaces to dependence test
As a result it is shown, more intuitively test result can be observed.
In a specific embodiment, the test-types based on H5 application test requests, generate corresponding visualization circle
Face, as shown in figure 4, specifically comprising the following steps:
S51:If the test-types of H5 application test requests are the version test of H5 applications, target component and every is obtained
The corresponding weighted value of one target component.
Wherein, the version test of H5 applications refers to that the performance carrying out version to the H5 of a variety of different editions applications is good and bad
Test.The version test applied by the H5, selects a most suitable version as official release.Target component refers in H5
In the version test of application, the test data paying close attention to or monitor.By obtaining target component, to be joined according to the target of acquisition
Several H5 applications to different editions are assessed.
In the present embodiment, by obtaining the corresponding weighted value of each target component, and then determine that different target components exists
Proportion in the version test of H5 applications, to help corresponding version the performance test results are subsequently obtained.The weighted value can lead to
It crosses the application scenarios of target H5 applications or is arranged according to practical experience.Wherein, weighted value can be user in selection target
It is configured when parameter;It can also set in systems in advance.STF platforms get target in the version test applied according to H5
After parameter, so that it may to get the corresponding weighted value of each target component in systems.
S52:Based on target component, test parameter value is obtained from test data.
By target component, the corresponding test parameter value of each target component is obtained from test data, to be based on
There is the corresponding test parameter value of target component to obtain corresponding version the performance test results.
S53:Based on test parameter value and the corresponding weighted value of each target component, corresponding version performance test is obtained
As a result.
After getting test parameter value and the corresponding weighted value of each target component, test parameter value can be based on
Weighted value corresponding with each target component obtains corresponding version the performance test results.Optionally, in a target H5 application
In, each test parameter value can be added with the product of corresponding weighted value, you can obtain the H5 applications of the version
Performance Evaluation score.Performance Evaluation score is the score obtained after the Performance Evaluation applied to target H5 based on target component.
It gets in H5 application tests after the Performance Evaluation score of the H5 applications of all versions, you can obtain version performance test knot
Fruit, the version the performance test results can be embodied with Performance Evaluation score.
S54:In visualization interface version of display the performance test results.
After getting version the performance test results, which is shown by visualization interface.
Preferably, test data is shown in visualization interface version of display the performance test results and in visualization interface.By test data
It is shown by visualization interface with corresponding version the performance test results, preferably to help user to understand test result.
In this embodiment, it by obtaining target component and corresponding weighted value, and is calculated often based on test data
The Performance Evaluation score of one target H5 applications, to obtain version the performance test results, by this mode intuitively to difference
The quality of the H5 application performances of version is embodied, and testing efficiency is improved.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Embodiment 2
Fig. 5 shows the functional block diagram with the one-to-one H5 applications test device of H5 application testing methods in embodiment 1.Such as
Shown in Fig. 5, which includes destination mobile terminal link block 10, target H5 applications test module 20, test
Data acquisition module 30 and test result display module 40.Wherein, destination mobile terminal link block 10, target H5 application tests
H5 applications test in the realization function and embodiment 1 of module 20, test data acquisition module 30 and test result display module 40
The corresponding step of method corresponds, and to avoid repeating, the present embodiment is not described in detail one by one.
Destination mobile terminal link block 10 is connected for obtaining H5 application test requests based on H5 application test requests
Corresponding destination mobile terminal.
Target H5 applications test module 20 loads corresponding target H5 applications for control targe mobile terminal, executes mesh
Mark the test process of H5 applications.
Test data acquisition module 30 is obtained for the test process based on target H5 applications from destination mobile terminal
Corresponding test data.
Test result display module 40 shows test result for being based on test data in visualization interface.
Preferably, H5 applications test request includes test-types.Destination mobile terminal link block 10 includes recommending to move
Termination ID acquiring unit 11, mobile terminal selection information acquisition unit 12 and destination mobile terminal connection unit 13.
Recommend mobile terminal ID acquiring units 11, for based on test-types inquiry test terminal allocation list, obtaining and showing
Show at least one recommendation mobile terminal ID.
Mobile terminal selects information acquisition unit 12, selects information, mobile terminal to select information for obtaining mobile terminal
Including destination mobile terminal ID.
Destination mobile terminal connection unit 13 selects corresponding destination mobile terminal for being based on destination mobile terminal ID
It is attached.
Preferably, test result display module 40 includes scale parameter acquiring unit 41 and classification display unit 42.
Scale parameter acquiring unit 41, for obtaining the scale parameter between test data and corresponding test threshold.
Classification display unit 42, in visualization interface, carrying out classification to test data based on scale parameter and showing.
Preferably, scale parameter acquiring unit 41, for obtaining test data and corresponding test threshold using following formula
The scale parameter of value:Scale parameter=direction coefficient * ((test data-test threshold)/test threshold).
Preferably, H5 applications test request includes test-types.
Test result display module 40 is used for the test-types based on H5 application test requests, generates corresponding visualization
Interface.
Preferably, test result display module 40 further include weighted value acquiring unit 51, test parameter value acquiring unit 52,
Version the performance test results acquiring unit 53 and version the performance test results display unit 54.
Weighted value acquiring unit 51 is used for when the version test that the test-types of H5 application test requests are H5 applications,
Obtain target component and the corresponding weighted value of each target component.
Test parameter value acquiring unit 52 obtains test parameter value for being based on target component from test data.
Version the performance test results acquiring unit 53, for being based on test parameter value and the corresponding power of each target component
Weight values obtain corresponding version the performance test results.
Version the performance test results display unit 54, in visualization interface version of display the performance test results.
Embodiment 3
The present embodiment provides a computer readable storage medium, computer journey is stored on the computer readable storage medium
Sequence realizes H5 application testing methods in embodiment 1, to avoid repeating, here no longer when the computer program is executed by processor
It repeats.Alternatively, realizing in embodiment 2 each module/unit in H5 application test devices when the computer program is executed by processor
Function, to avoid repeating, which is not described herein again.
It is to be appreciated that the computer readable storage medium may include:The computer program code can be carried
Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal and telecommunications letter
Number etc..
Embodiment 4
Fig. 6 is the schematic diagram for the computer equipment that one embodiment of the invention provides.As shown in fig. 6, the calculating of the embodiment
Machine equipment 60 includes:Processor 61, memory 62 and it is stored in the calculating that can be run in memory 62 and on processor 61
Machine program 63.Processor 61 realizes the step in above-described embodiment 1 in each H5 application testing methods when executing computer program 63
Such as step S10 to S40 shown in FIG. 1 suddenly,.Alternatively, processor 61 is realized when executing computer program 63 in above-described embodiment 2
The function of each module/unit of H5 application test devices, such as destination mobile terminal link block shown in Fig. 5 10, target H5 are answered
With test module 20, the function of test data acquisition module 30 and test result display module 40.
Computer equipment 60 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.
Computer equipment may include but be not limited only to processor 61, memory 62.It will be understood by those skilled in the art that Fig. 6 is only
The example of computer equipment 60 does not constitute the restriction to computer equipment 60, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as computer equipment can also include input-output equipment, network
Access device, bus etc..
Alleged processor 61 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
Memory 62 can be the internal storage unit of computer equipment 60, such as the hard disk of computer equipment 60 or interior
It deposits.Memory 62 can also be the plug-in type being equipped on the External memory equipment of computer equipment 60, such as computer equipment 60
Hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Further, memory 62 can also both include computer equipment 60 internal storage unit and also including
External memory equipment.Memory 62 is used to store other programs and the data needed for computer program and computer equipment.It deposits
Reservoir 62 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of H5 application testing methods, which is characterized in that the following steps executed including STF platforms:
H5 application test requests are obtained, corresponding destination mobile terminal is connected based on the H5 applications test request;
It controls the destination mobile terminal and loads corresponding target H5 applications, execute the test process of the target H5 applications;
Based on the test process of target H5 applications, corresponding test data is obtained from the destination mobile terminal;
Based on the test data, test result is shown in visualization interface.
2. H5 application testing methods as described in claim 1, which is characterized in that the H5 applications test request includes test class
Type;
It is described that corresponding destination mobile terminal is connected based on the H5 applications test request, specifically comprise the following steps:
Test terminal allocation list is inquired based on the test-types, obtains and shows at least one recommendation mobile terminal ID;
It obtains mobile terminal and selects information, the mobile terminal selection information includes destination mobile terminal ID;
Based on the destination mobile terminal ID, corresponding destination mobile terminal is selected to be attached.
3. H5 application testing methods as described in claim 1, which is characterized in that the test data is based on, on visualization circle
Face shows test result, specifically includes:
Obtain the scale parameter between the test data and corresponding test threshold;
In the visualization interface, classification is carried out to the test data based on the scale parameter and is shown.
4. H5 application testing methods as claimed in claim 3, which is characterized in that obtain the test data and corresponding test
The scale parameter of threshold value, specifically includes:
The scale parameter of the test data and corresponding test threshold is obtained using following formula:
Scale parameter=direction coefficient * ((test data-test threshold)/test threshold);
Wherein, direction coefficient is the coefficient for weighing degree of correlation direction between test data and test threshold.
5. H5 application testing methods as described in claim 1, which is characterized in that the H5 applications test request includes test class
Type;
It is described to be based on the test data, it shows test result in visualization interface, further includes:
Based on the test-types of H5 application test requests, corresponding visualization interface is generated.
6. H5 application testing methods as claimed in claim 5, which is characterized in that the test class based on H5 application test requests
Type generates corresponding visualization interface, specifically comprises the following steps:
If the test-types of H5 application test requests are the version test of H5 applications, target component and each mesh are obtained
Mark the corresponding weighted value of parameter;
Based on the target component, test parameter value is obtained from the test data;
Based on the test parameter value and the corresponding weighted value of each target component, corresponding version performance test knot is obtained
Fruit;
The version the performance test results are shown in visualization interface.
7. a kind of H5 applications test device, which is characterized in that including:
Destination mobile terminal link block, for obtaining H5 application test requests, based on H5 applications test request connection pair
The destination mobile terminal answered;
Target H5 application test modules are applied for controlling the corresponding target H5 of the destination mobile terminal load, described in execution
The test process of target H5 applications;
Test data acquisition module, the test process for being applied based on the target H5, is obtained from the destination mobile terminal
Take corresponding test data;
Test result display module shows test result for being based on the test data in visualization interface.
8. H5 applications test device as claimed in claim 7, which is characterized in that the H5 applications test request includes test class
Type;
The destination mobile terminal link block, specifically includes:
Recommend mobile terminal ID acquiring units, for based on test-types inquiry test terminal allocation list, obtaining and showing
At least one recommendation mobile terminal ID;
Mobile terminal selects information acquisition unit, selects information for obtaining mobile terminal, the terminal selection information includes mesh
Mark mobile terminal ID;
Destination mobile terminal connection unit, for be based on the destination mobile terminal ID, select corresponding destination mobile terminal into
Row connection.
9. a kind of computer equipment, including memory, processor and it is stored in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of 6 any one of them H5 application testing methods.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In realization is such as claim 1 to 6 any one of them H5 application testing methods when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810435846.6A CN108628747A (en) | 2018-05-09 | 2018-05-09 | H5 application testing methods, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810435846.6A CN108628747A (en) | 2018-05-09 | 2018-05-09 | H5 application testing methods, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108628747A true CN108628747A (en) | 2018-10-09 |
Family
ID=63692242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810435846.6A Withdrawn CN108628747A (en) | 2018-05-09 | 2018-05-09 | H5 application testing methods, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108628747A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783365A (en) * | 2018-12-15 | 2019-05-21 | 深圳壹账通智能科技有限公司 | Automated testing method, device, computer equipment and storage medium |
CN110275811A (en) * | 2019-05-24 | 2019-09-24 | 北京指掌易科技有限公司 | A kind of method of mobile terminal H5 application behavior monitoring |
CN111327588A (en) * | 2020-01-16 | 2020-06-23 | 深圳开源互联网安全技术有限公司 | Network access security detection method, system, terminal and readable storage medium |
CN111506508A (en) * | 2020-04-17 | 2020-08-07 | 北京百度网讯科技有限公司 | Edge calculation test method, device, equipment and readable storage medium |
CN111563032A (en) * | 2020-03-26 | 2020-08-21 | 中国平安财产保险股份有限公司 | APP debugging method and device, computer equipment and storage medium |
CN112765039A (en) * | 2021-02-03 | 2021-05-07 | 上海复深蓝软件股份有限公司 | Test data consumption dyeing method and device, computer equipment and storage medium |
CN113449227A (en) * | 2020-03-24 | 2021-09-28 | 北京新氧科技有限公司 | Page information processing method and terminal equipment |
CN117054846A (en) * | 2023-06-30 | 2023-11-14 | 珠海妙存科技有限公司 | Visual test method, system and device for chip and storage medium |
-
2018
- 2018-05-09 CN CN201810435846.6A patent/CN108628747A/en not_active Withdrawn
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783365A (en) * | 2018-12-15 | 2019-05-21 | 深圳壹账通智能科技有限公司 | Automated testing method, device, computer equipment and storage medium |
CN110275811A (en) * | 2019-05-24 | 2019-09-24 | 北京指掌易科技有限公司 | A kind of method of mobile terminal H5 application behavior monitoring |
CN111327588A (en) * | 2020-01-16 | 2020-06-23 | 深圳开源互联网安全技术有限公司 | Network access security detection method, system, terminal and readable storage medium |
CN113449227A (en) * | 2020-03-24 | 2021-09-28 | 北京新氧科技有限公司 | Page information processing method and terminal equipment |
CN113449227B (en) * | 2020-03-24 | 2023-09-19 | 北京新氧科技有限公司 | Page information processing method and terminal equipment |
CN111563032A (en) * | 2020-03-26 | 2020-08-21 | 中国平安财产保险股份有限公司 | APP debugging method and device, computer equipment and storage medium |
CN111506508A (en) * | 2020-04-17 | 2020-08-07 | 北京百度网讯科技有限公司 | Edge calculation test method, device, equipment and readable storage medium |
CN112765039A (en) * | 2021-02-03 | 2021-05-07 | 上海复深蓝软件股份有限公司 | Test data consumption dyeing method and device, computer equipment and storage medium |
CN112765039B (en) * | 2021-02-03 | 2022-05-06 | 上海复深蓝软件股份有限公司 | Test data consumption dyeing method and device, computer equipment and storage medium |
CN117054846A (en) * | 2023-06-30 | 2023-11-14 | 珠海妙存科技有限公司 | Visual test method, system and device for chip and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108628747A (en) | H5 application testing methods, device, computer equipment and storage medium | |
KR101558909B1 (en) | Iterative simulation of requirement metrics for assumption and schema-free configuration management | |
CA2845059C (en) | Test script generation system | |
CN109783388B (en) | UI (user interface) automatic testing method and device and electronic equipment | |
US20140351394A1 (en) | Reporting performance capabilities of a computer resource service | |
CN105893253A (en) | Application software testing method, device and equipment | |
WO2012025773A1 (en) | Infrastructure model generation system and method | |
CN106130749B (en) | Method, system, and computer readable medium for network deployment of infrastructure | |
CN110209569B (en) | Interface test method, interface test device and storage medium | |
US10282272B2 (en) | Operation management apparatus and operation management method | |
CN110413510B (en) | Data processing method, device and equipment | |
CN106850330B (en) | Intelligent cloud desktop performance test system and method | |
US7562410B2 (en) | System and method for managing a computer network | |
CN106708715A (en) | Automatic test method and device | |
CN102419705A (en) | Method and device for generating and managing Web geographic information system (GIS) client control | |
CN103634147A (en) | Network topology management method and equipment | |
CN107480036A (en) | Automatic test approach, device, storage medium and the terminal of iOS Mobile solutions | |
CN110121082A (en) | Show method, apparatus, equipment and the readable storage medium storing program for executing of direct broadcasting room ranking information | |
CN105204986A (en) | Automated product testing method, server and mobile equipment | |
CN108964967A (en) | Method and system for intelligently monitoring and analyzing CDN acceleration service | |
US20160254970A1 (en) | Tracking And Analyzing Mobile Application User Interactions | |
CN107438014A (en) | Automatic network based on equipment provides | |
CN109194545B (en) | Network test platform flow generation system, method and device and electronic equipment | |
EP4152715A1 (en) | Method and apparatus for determining resource configuration of cloud service system | |
US20230334027A1 (en) | System and method for automatic infrastructure cloud cost optimization and comparison |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20181009 |