CN110245068A - Automated testing method, device and the computer equipment of the H5 page - Google Patents
Automated testing method, device and the computer equipment of the H5 page Download PDFInfo
- Publication number
- CN110245068A CN110245068A CN201910340506.XA CN201910340506A CN110245068A CN 110245068 A CN110245068 A CN 110245068A CN 201910340506 A CN201910340506 A CN 201910340506A CN 110245068 A CN110245068 A CN 110245068A
- Authority
- CN
- China
- Prior art keywords
- page
- target
- activity data
- data
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 135
- 230000000694 effects Effects 0.000 claims abstract description 93
- 238000000034 method Methods 0.000 claims abstract description 24
- 238000012545 processing Methods 0.000 claims description 14
- 238000004088 simulation Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 238000013507 mapping Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 5
- 230000013011 mating Effects 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000000875 corresponding effect Effects 0.000 description 57
- 238000013461 design Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000011835 investigation Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 210000005252 bulbus oculi Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000010200 validation analysis Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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/3672—Test management
- G06F11/3692—Test management for test results analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application discloses automated testing method, device and the computer equipments of a kind of H5 page, it is related to field of computer technology, it is not high to can effectively solve caused testing efficiency when to H5 page progress manual test, and the problem of accuracy and integrality tested are unable to get guarantee, wherein method includes: to receive the chained address of expected activity data and the target H5 page;Expected activity data activity data to be measured corresponding with the chained address is matched, determines the data test result of the target H5 page;The corresponding prompt page is exported according to the data test result.The application is suitable for the automatic test to the H5 page.
Description
Technical field
This application involves field of computer technology more particularly to a kind of automated testing method of the H5 page, device and
Computer equipment.
Background technique
With the innovation of science and technology with development, advertising is also constantly carrying out technological innovation, to promote user experience, meet visitor
Family is increasingly personalized, diversification demand for services is starting point, a kind of new mobile media advertisement mode is created, to attract more
The eyeball of more clients.The H5 page is exactly a kind of more representational new media advertisement mode, it is advertisement to be made into a field
Scape is linked by two dimensional code or forwarding, and then enhances the experience sense of user.What the H5 page generallyd use is that picture adds official documents and correspondence
Form first exports corresponding UI by UI designer and designs original text, and front end exploitation is developed according to design original text and operation demand, later
Validation test is carried out to the H5 page developed, just can formally be come into operation after verifying is errorless.
It is to be carried out by tester to picture, text and redirected link in the H5 page at present to the test method of the H5 page
Desk checking carries out content matching with user interface (User Interface, UI) design original text, obtains test knot to arrange
By.
However this method for carrying out manual test to the H5 page keeps testing efficiency lower due to the heavy workload of verification,
And it is easy omission problem, and then be easy that the accuracy of test and integrality is made to be unable to get guarantee.
Summary of the invention
In view of this, this application provides automated testing method, device and the computer equipments of a kind of H5 page, mainly
Purpose is to solve to carry out the H5 page caused testing efficiency accuracy and integrality not high, and test when manual test
The problem of being unable to get guarantee.
According to the one aspect of the application, a kind of automated testing method of H5 page is provided, this method comprises:
Receive the chained address of expected activity data and the target H5 page;
Expected activity data activity data to be measured corresponding with the chained address is matched, determines the mesh
Mark the data test result of the H5 page;
The corresponding prompt page is exported according to the data test result.
According to further aspect of the application, a kind of automatic test device of H5 page is provided, which includes:
Reception device, for receiving the chained address of expected activity data Yu the target H5 page;
Determining device is used for expected activity data activity data progress to be measured corresponding with the chained address
Match, determines the data test result of the target H5 page;
Output device, for exporting the corresponding prompt page according to the data test result.
According to the another aspect of the application, a kind of non-volatile readable storage medium is provided, calculating is stored thereon with
Machine program realizes the automated testing method of the above-mentioned H5 page when described program is executed by processor.
According to another aspect of the application, a kind of computer equipment is provided, including non-volatile readable storage medium,
Processor and it is stored in the computer program that can be run on non-volatile readable storage medium and on a processor, the processor
The automated testing method of the above-mentioned H5 page is realized when executing described program.
By above-mentioned technical proposal, a kind of automated testing method, device and the computer of the H5 page provided by the present application
Equipment is carried out at present by tester to picture, text and redirected link progress desk checking in the H5 page with UI design original text
Content matching show that the mode of test result is compared to arrange, and the application is that expected live is received using automatic test platform
The chained address of dynamic data and the target H5 page;By the activity data progress to be measured corresponding with chained address of expected activity data
Match, so determine the target H5 page data test as a result, activity data and expected activity data i.e. to be measured matching degree;Root
It can judge whether the target H5 page passes through test according to data test result, finally export the corresponding prompt page, completion pair
The automatic test of the H5 page.Whole operation can independently be completed by computer, saved the cost of manpower test, also improved work
Efficiency, and also it is avoided that the omission to test content, so that the work quality of test is protected.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application,
And it can be implemented in accordance with the contents of the specification, and in order to which the above and other objects, features and advantages of the application can be more
It becomes apparent, below the special specific embodiment for lifting the application.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please do not constitute the improper restriction to locally applying for explaining the application.In the accompanying drawings:
Fig. 1 shows a kind of flow diagram of the automated testing method of H5 page provided by the embodiments of the present application;
Fig. 2 shows the flow diagrams of the automated testing method of the another kind H5 page provided by the embodiments of the present application;
Fig. 3 shows a kind of structural schematic diagram of the automatic test device of H5 page provided by the embodiments of the present application;
Fig. 4 shows the structural schematic diagram of the automatic test device of the another kind H5 page provided by the embodiments of the present application.
Specific embodiment
The application is described in detail below with reference to embodiment and in conjunction with attached drawing.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
For caused testing efficiency accuracy and complete that is not high, and testing when carrying out manual test to the H5 page at present
The problem of whole property is unable to get guarantee, this application provides the automated testing methods of the H5 page, as shown in Figure 1, this method packet
It includes:
101, the chained address of expected activity data and the target H5 page is received.
Wherein, activity data activity data includes movable picture, official documents and correspondence and redirected link etc., and redirected link is exactly
It the address page URL in the page of marketing activity needing that user is guided to go to will after receiving the expected activity data of upload
In its expected results for inserting automatic test platform, and stored in a manner of picture;Expected activity data are generally UI design
Official documents and correspondence in original text and operation activity need.
It can be flat for realizing the test for carrying out automatic test to the target H5 page for the executing subject of the present embodiment
Platform receives the chained address of expected activity data and the target H5 page using test platform;And realize expected activity data and chain
It is grounded the comparison of the corresponding activity data to be measured in location, determines the data test result of the target H5 page;Test platform can also root
The corresponding prompt page is exported according to data test result.Wherein, automatic test platform can be write by Python, it may include
User interface, database and testing execution module.
102, expected activity data activity data to be measured corresponding with chained address is matched, determines the target H5 page
Data test result.
In specific application scenarios, using chained address, automatic test platform can obtain the page of the target H5 page
Face text, picture, redirected link wait test data.
103, the corresponding prompt page is exported according to data test result.
Wherein, prompting the page is the text prompt information shown in the user interface of automatic test platform, specific
In application scenarios, prompt information may also include picture prompting information, audio prompt information, visual prompts information, light prompt letter
Breath, vibration prompting information etc., can specifically carry out personalized setting according to the actual situation.
The automated testing method of the middle H5 page through this embodiment can use automatic test platform and receive expected live
The chained address of dynamic data and the target H5 page;By the activity data progress to be measured corresponding with chained address of expected activity data
Match, so determine the target H5 page data test as a result, activity data and expected activity data i.e. to be measured matching degree;Root
It can judge whether the target H5 page passes through test according to data test result, finally export the corresponding prompt page, completion pair
The automatic test of the H5 page.Whole operation can independently be completed by computer, saved the cost of manpower test, also improved work
Efficiency, and also it is avoided that the omission to test content, so that the accuracy of test and integrality is protected.
Further, as the refinement and extension of above-described embodiment specific embodiment, in order to completely illustrate the application reality
The specific implementation process in example is applied, the automated testing method of another H5 page is provided, as shown in Fig. 2, this method comprises:
201, the chained address of expected activity data and the target H5 page is received.
Wherein, it is contemplated that the corresponding activity data to be measured of activity data and target H5 page link address includes at least figure
Three sheet data, lteral data, redirected link sorting items.
202, the similarity between expected activity data and each sorting item of activity data to be measured is obtained.
In specific application scenarios, the picture of picture to be tested and expected results, the figure of usually active homepage
The other comparison of picture level is carried out with the UI design manuscript base piece in operation activity need, is using open source code meter when comparing
Corresponding function in calculation machine vision class libraries (Open Source Computer Vision Library, OpenCV)
MatchTemplate (), sliding window finds the similarity of each position Yu template image patch in the input image;It is to be measured
The text and redirected link of examination then use the side of existing character string comparison with the texts of expected results and the control methods linked
Method, carries out the verification to character string, and redirected link address can find chained address and and expected skip chain from the H5 page
Tap into the similarity comparison of style of writing originally.
If the similarity between 203a, each sorting item is all larger than or is equal to preset threshold, it is determined that the target H5 page meets pre-
Phase standard.
Wherein, what preset threshold made to be set in advance according to practical application request is used to determine that can the target H5 page meet pre-
The judging basis of phase standard.
In specific application scenarios, the preset threshold of setting is generally 100%, but in practical applications, image data
Allow there are certain deviation, therefore the judgment method whether determining target H5 page meets expected standard may be used also are as follows: image data
Similarity be greater than or equal to preset threshold, and the lteral data for not allowing deviation occur and redirected link the two classification
, need to meet official documents and correspondence to be measured and link with expected official documents and correspondence and to link the character string changed into identical method completely the same,
I.e. similarity reaches 100%, can just meet expected standard.
For example, if setting preset threshold as 95%, when determining image data, text in expected activity data and the target H5 page
When digital data, the similarity of three sorting items of redirected link are respectively 96%, 100%, 100%, by this classification of image data
Similarity be compared with the numerical values recited of preset threshold, because determining that its similarity is greater than 95%, and lteral data, jump
The similarity for linking the two sorting items is 100%, therefore can determine that the target H5 page meets expected standard.
204a, after determining that the target H5 page meets expected standard, the prompt page that passes through of output test.
Such as, however, it is determined that the target H5 page meets expected standard, then can be in the user interface displaying target H5 of test platform
The page can also carry out voice broadcast or vibration reminding etc. by the printed words of data test while output character, specific to prompt
It is specified that mode is subjected to user.
205a, configuration are suitable for the terminal emulator of different screen resolutions type.
In specific application scenarios, the corresponding terminal mould of installation different screen resolutions on automation platform can be passed through
H5 page zoom-in and zoom-out, the screen size and resolution sizes of mobile phone terminal are adapted to suitable size, utilizes terminal mould by quasi- device
Quasi- device realizes the compatibility test to the target H5 page in different screen resolutions type;Screen resolution type can be according to mesh
The dispensing demand of the mark H5 page is determined.If the screen resolution type that do not launched comprising corresponding specific aim in dispensing demand,
The screen resolution type stored in platform is all then subjected to compatibility verification.
206a, the target H5 page is shown respectively in the corresponding terminal emulator of all types of screen resolutions.
In specific application scenarios, for different types of screen resolution, the target H5 page can be subjected to webpage contracting
Put, specifically can be used js mode, the mode controlled on body plus zoom attribute, rem mode, by meta label
Viewport is come the mode etc. that changes.
For example, being directed to the 750px*1334px resolution ratio of iphone6s plus, the target H5 page can integrally be scaled, be adjusted
It is whole to arrive the corresponding display standard of 750px*1334px resolution ratio.
207a, the corresponding displayed page of all types of screen resolutions is matched with the target H5 page respectively.
In specific application scenarios, all types of screen resolutions correspond to the displaying format of displayed page and content should be with mesh
It is identical to mark the H5 page, just can determine the two matching.Determining the matched method of the two can be to determine that different screen is differentiated respectively
The similarity of displayed page and the target H5 page under rate can set default relatively threshold value, when similarity is greater than default relatively threshold
When value, illustrate that the target H5 page meets the displaying requirement of the screen resolution, successively determines the target H5 page in all types of screens
The compatibility of resolution ratio, wherein default relatively threshold value can receive the customized demand of user, and under normal circumstances, default is default
Comparing threshold value is 100%, when it is default relatively threshold value is 100% when, can guarantee that the accuracy of test reaches maximum.
208a, the test result that target H5 page compatibility is exported according to matching result.
In a kind of optional embodiment, step 208a be can specifically include: if it is determined that the target H5 page with it is all types of
The corresponding default display page of screen resolution is able to achieve matching, then output meets the page prompts of compatibility test;If really
The H5 page that sets the goal, which at least can not achieve with a type of screen resolution, to be matched, then output is unsatisfactory for the page of compatibility test
Face prompt.
For example, determining to need to carry out the screen resolution type of compatibility test according to the dispensing demand of the target H5 page
Are as follows: 640px*960px, 640px*1136px, 750px*1334px, 720px*1280px, 320px*480px, 720px*
1280px, however, it is determined that the target H5 page default display page corresponding with all types of screen resolutions is able to achieve matching, then may be used
Test platform the user interface displaying target H5 page by the printed words of compatibility test, can also while output character into
Row voice broadcast or vibration reminding etc., it is specified that specific prompting mode is subjected to user;If it is determined that the target H5 page and 750px*
The corresponding default display page of the screen resolution of 1334px, 720px*1280px both types can not achieve matching, then may be used
Show that the screen resolution of 750px*1334px, 720px*1280px both types does not pass through in the user interface of test platform
The prompt information of test can also carry out voice broadcast or vibration reminding etc. while output character.
209a, if it is determined that the target H5 page by compatibility test, then obtains the corresponding dispensing channel of the target H5 page.
Wherein, channel is launched as the movable channel of operation dispensing, example will be carried out by the target H5 page of compatibility test
Such as, movable channel may include Small-Medium Banks channel, financial company's channel, using channel etc..
210a, corresponding dispensing application software is configured on mobile phone simulator according to dispensing channel.
For example, the H5 page, which is launched, assembles ground in the flows such as wechat APP or top news APP, then it can be on mobile phone simulator
Configuration installation today's tops APP or wechat APP is as dispensing application software.
211a, by target H5 page dispensing to dispensing application software, carry out the simulation test of application scenarios.
For example, the example based on step 210a, if configuration installation today's tops APP or wechat on mobile phone simulator
APP is beaten then automatic test platform can simulate the H5 page in top APP or wechat APP as application software is launched
Then scene when opening opens various APP in simulator, the H5 page is embedded into APP and is opened, the simulation of scene is completed.
If the similarity with step 203a between step 203b arranged side by side, each sorting item, which at least has one, is less than default threshold
Value, it is determined that the target H5 page does not meet expected standard.
For example, if setting preset threshold as 100%, when determine image data in expected activity data and the target H5 page,
Similarity when being respectively 100%, 100%, 98% of three lteral data, redirected link sorting items, can determine whether out image data,
The similarity of the two sorting items of lteral data is 100%, is equal to preset threshold, but the phase of redirected link this sorting item
It is lower than preset threshold like degree, then can determine that the similarity between each sorting item less than preset threshold, that is, determines target H5 there are one
The page does not meet expected standard.
204b, if it is determined that the target H5 page does not meet expected standard, then determine expected activity data and activity data to be measured
Difference accounting and corresponding diff area.
Wherein, difference accounting be expected activity data from activity data to be measured there are different difference sections, occupy it is total in advance
The percentage of phase activity data, it is contemplated that activity data and the difference accounting of activity data to be measured specifically can be used 100% subtract it is corresponding
Similarity acquire.
Such as, however, it is determined that the target H5 page does not meet expected standard, and obtains expected activity data and activity data to be measured
Between similarity be 70%, then the difference accounting that both can be calculated is 30%, and the record information matched according to similarity
It can further determine that out corresponding existing diff area.
205b, diff area is carried out to become privileged label processing.
In specific application scenarios, the method for become privileged label processing to diff area is receivable personalized fixed
System, specifically can include: diff area is carried out marking red processing, label processing etc. is carried out to the region having differences.
The reason of 206b, analysis activity data to be measured and expected activity data generate difference.
In a kind of optional embodiment, step 206b be can specifically include: what is stored in analytical database does not meet
The all differences type of expected activity data and corresponding generational verctor;It establishes between difference type and corresponding generational verctor
Mapping relations;Determine the corresponding difference type in diff area in activity data to be measured;By in mapping relations with difference type pair
The generational verctor answered is determined as the reason of generating difference.
Wherein, the difference type of expected activity data is not met can include: difference caused by page uploading mistake, appearance are poor
Different reason can include: mistake occurs for system server, and analysis result is caused to have differences;Action message content does not input just
Really;Corresponding information etc. is not inputted in automatic test platform.
In specific application scenarios, if there is can not find corresponding reason, it can add automatically in handmarking's reason
It is added in corresponding reason library, it is convenient to provide the corresponding analysis of causes in the case where realizing same case, and then accomplish machine learning
Purpose.
207b, storage the reason of difference accounting, the diff area by becoming privileged label processing and generation difference is arrived
In database, and it is shown to the output page.
It, can be by the expected activity data received and the target H5 page by the automated testing method of the above-mentioned H5 page
Chained address compare, the similarity between expected activity data and each sorting item of activity data to be measured is obtained, when according to phase
When determining that the target H5 page meets expected standard like degree, the prompt page that output test passes through utilizes the terminal mould configured later
Quasi- device carries out compatibility test to different types of screen resolution, and exports the test result of compatibility, is determining target H5
After the page passes through compatibility test, corresponding dispensing is configured on mobile phone simulator by the corresponding dispensing channel of the target H5 page
Application software carries out the simulation test of application scenarios in target H5 page dispensing to dispensing application software.It is very convenient to have
Effect, whole operation can independently be completed by computer, saved the cost of manpower test, also improved working efficiency.And in determination
When the target H5 page does not meet expected standard out, can determine that out expected activity data and activity data to be measured difference accounting and
Corresponding diff area, and diff area is carried out to become privileged mark processing, and analyze activity data to be measured and expected work
The reason of dynamic data generate difference, finally by difference accounting, by becoming privileged the diff area and generate difference that label is handled
The reason of storage into database, and be shown to the output page, saved equipment required for manual test investigation diff area
Cost and time cost.
Further, the concrete embodiment as method shown in Fig. 1 and Fig. 2, the embodiment of the present application provide a kind of H5 page
Automatic test device, as shown in figure 3, the device includes: receiving module 31, determining module 32, output module 33.
Receiving module 31 can be used for receiving the chained address of expected activity data Yu the target H5 page;
Determining module 32, can be used for by expected activity data activity data to be measured corresponding with the chained address into
Row matching, determines the data test result of the target H5 page;
Output module 33 can be used for exporting the corresponding prompt page according to the data test result.
In specific application scenarios, in order to obtain determine the target H5 page data test as a result, as shown in figure 4,
Determining module 32, specifically can include: acquiring unit 321, determination unit 322.
Acquiring unit 321 is particularly used in and obtains the expected activity data and each sorting item of activity data to be measured
Between similarity;
Determination unit 322, if the similarity being particularly used between each sorting item is all larger than or is equal to preset threshold,
Determine that the target H5 page meets expected standard;
Determination unit 322, if the similarity that specifically can also be used between each sorting item at least has one less than described
Preset threshold, it is determined that the target H5 page does not meet expected standard.
In specific application scenarios, in order to export the corresponding prompt page according to the data test result, such as Fig. 4 institute
Show, output module 33, specifically can include: output unit 331, judging unit 332, processing unit 333, analytical unit 334, display
Unit 335.
Output unit 331 is particularly used in if it is determined that the target H5 page meets expected standard, then exports test and pass through
The prompt page;
Judging unit 332 is particularly used in if it is determined that the target H5 page does not meet expected standard, then determines described pre-
Phase activity data and the difference accounting of the activity data to be measured and corresponding diff area;
Processing unit 333 is particularly used in and carries out becoming privileged label processing to the diff area;
Analytical unit 334, is particularly used in the analysis activity data to be measured and the expected activity data generate difference
The reason of;
Display unit 335 is particularly used in the difference accounting, the diff area by becoming privileged label processing
And the storage of the reason of generation difference is into database, and is shown to the output page.
In specific application scenarios, analytical unit 334, not meeting for specifically can also be used to store in analytical database be pre-
The all differences type of phase activity data and corresponding generational verctor;Establish the difference type and the corresponding generation
Mapping relations between reason;Determine the corresponding difference type in diff area described in the activity data to be measured;By the mapping
The generational verctor corresponding with the difference type is determined as the reason of generating difference in relationship.
In specific application scenarios, in order to carry out in next step after determining that the target H5 page meets expected standard
Compatibility test, as shown in figure 4, the present apparatus further include: configuration module 34, display module 35, matching module 36.
Configuration module 34 can be used for configuring the terminal emulator for being suitable for different screen resolutions type;
Display module 35 can be used for respectively showing the target H5 page corresponding described in all types of screen resolutions
In terminal emulator;
Matching module 36 can be used for displayed page default display page corresponding with all types of screen resolutions respectively
Face is matched;
Output module 33, it may also be used for the test knot of the target H5 page compatibility is exported according to the matching result
Fruit.
In specific application scenarios, output module 33, it may also be used for if it is determined that the target H5 page and all types of screens
The corresponding default display page of curtain resolution ratio is able to achieve matching, then output meets the page prompts of compatibility test;
Correspondingly, output module 33, it may also be used for if it is determined that the target H5 page at least divides with a type of screen
Resolution can not achieve matching, then output is unsatisfactory for the page prompts of compatibility test.
In specific application scenarios, after determining the target H5 page by compatibility test, in order to be applied
The simulation test of scene, as shown in figure 4, the present apparatus further include: obtain module 37, putting module 38.
Module 37 is obtained, can be used for obtaining the corresponding dispensing channel of the target H5 page;
Configuration module 34, it may also be used for corresponding dispensing is configured on the mobile phone simulator according to the dispensing channel and is answered
Use software;
Putting module 38 can be used for launching the target H5 page into the dispensing application software, carry out applied field
The simulation test of scape.
It should be noted that each functional unit involved by a kind of creating device of marketing activity information provided in this embodiment
Other corresponding descriptions, can be described referring to figs. 1 to corresponding in Fig. 2, details are not described herein.
Based on above-mentioned method as depicted in figs. 1 and 2, correspondingly, the embodiment of the present application also provides a kind of storage medium,
On be stored with computer program, which realizes the automation of the above-mentioned H5 page as depicted in figs. 1 and 2 when being executed by processor
Test method.
Based on this understanding, the technical solution of the application can be embodied in the form of software products, which produces
Product can store in a non-volatile memory medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions
With so that computer equipment (can be personal computer, server or the network equipment an etc.) execution the application is each
The method of implement scene.
Based on above-mentioned method as shown in Figure 1 and Figure 2 and Fig. 3, virtual bench embodiment shown in Fig. 4, in order to realize
Above-mentioned purpose, the embodiment of the present application also provides a kind of computer equipments, are specifically as follows personal computer, server, network
Equipment etc., the entity device include storage medium and processor;Storage medium, for storing computer program;Processor is used for
Computer program is executed to realize the automated testing method of the above-mentioned H5 page as depicted in figs. 1 and 2.
Optionally, which can also include user interface, network interface, camera, radio frequency (Radio
Frequency, RF) circuit, sensor, voicefrequency circuit, WI-FI module etc..User interface may include display screen
(Display), input unit such as keyboard (Keyboard) etc., optional user interface can also connect including USB interface, card reader
Mouthful etc..Network interface optionally may include standard wireline interface and wireless interface (such as blue tooth interface, WI-FI interface).
It will be understood by those skilled in the art that computer equipment structure provided in this embodiment is not constituted and is set to the entity
Standby restriction may include more or fewer components, perhaps combine certain components or different component layouts.
It can also include operating system, network communication module in non-volatile readable storage medium.Operating system is management
The program of the entity device hardware and software resource of the automated testing method of the H5 page supports message handling program and other
The operation of software and/or program.Network communication module is for realizing between each component inside non-volatile readable storage medium
Communication, and communicated between other hardware and softwares in the entity device.
Through the above description of the embodiments, those skilled in the art can be understood that the application can borrow
It helps software that the mode of necessary general hardware platform is added to realize, hardware realization can also be passed through.Pass through the skill of application the application
Art scheme, compared with currently available technology, the application can linking the expected activity data received and the target H5 page
Address compares, and the similarity between expected activity data and each sorting item of activity data to be measured is obtained, when true according to similarity
When the H5 page that sets the goal meets expected standard, the prompt page that output test passes through is right later using the terminal emulator of configuration
Different types of screen resolution carries out compatibility test, and exports the test result of compatibility, is determining that the target H5 page is logical
After crossing compatibility test, it is soft that corresponding dispensing application is configured on mobile phone simulator by the corresponding dispensing channel of the target H5 page
Part carries out the simulation test of application scenarios in target H5 page dispensing to dispensing application software.It is very convenient effective, it is whole
A operation can independently be completed by computer, saved the cost of manpower test, also improved working efficiency.And determining target
When the H5 page does not meet expected standard, expected activity data and the difference accounting of activity data to be measured and corresponding can determine that out
Diff area, and diff area is carried out to become privileged mark processing, and analyze activity data to be measured and expected activity data
The reason of generating difference, finally by difference accounting, by becoming privileged the reason of marking the diff area of processing and generating difference
Store in database, and be shown to the output page, saved manual test investigation diff area required for equipment cost and
Time cost.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or
Process is not necessarily implemented necessary to the application.It will be appreciated by those skilled in the art that the mould in device in implement scene
Block can according to implement scene describe be distributed in the device of implement scene, can also carry out corresponding change be located at be different from
In one or more devices of this implement scene.The module of above-mentioned implement scene can be merged into a module, can also be into one
Step splits into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.Disclosed above is only the application
Several specific implementation scenes, still, the application is not limited to this, and the changes that any person skilled in the art can think of is all
The protection scope of the application should be fallen into.
Claims (10)
1. a kind of automated testing method of the H5 page characterized by comprising
Receive the chained address of expected activity data and the target H5 page;
Expected activity data activity data to be measured corresponding with the chained address is matched, determines the target H5
The data test result of the page;
The corresponding prompt page is exported according to the data test result.
2. the method according to claim 1, wherein the expected activity data and the activity data to be measured are equal
Including at least three image data, lteral data, redirected link sorting items;
Expected activity data activity data to be measured corresponding with the chained address is matched, determines the target H5
The data test of the page is as a result, specifically include:
Obtain the similarity between the expected activity data and each sorting item of activity data to be measured;
If the similarity between each sorting item is all larger than or is equal to preset threshold, it is determined that the target H5 page meets expection
Standard;
If the similarity between each sorting item, which at least has one, is less than the preset threshold, it is determined that the target H5 page
Expected standard is not met.
3. according to the method described in claim 2, it is characterized in that, described mention according to data test result output is corresponding
Show the page, specifically include:
If it is determined that the target H5 page meets expected standard, then the prompt page that test passes through is exported;
If it is determined that the target H5 page does not meet expected standard, then the expected activity data and the movable number to be measured are determined
According to difference accounting and corresponding diff area;
The diff area is carried out to become privileged label processing;
The reason of analyzing the activity data to be measured and expected activity data generation difference;
The reason of difference accounting, the diff area by becoming privileged label processing and generation difference, is stored
Into database, and it is shown to the output page.
4. according to the method described in claim 3, it is characterized in that, the analysis activity data to be measured and the expection are living
The reason of dynamic data generate difference, specifically includes:
The all differences type for not meeting expected activity data stored in analytical database and corresponding generational verctor;
Establish the mapping relations between the difference type and the corresponding generational verctor;
Determine the corresponding difference type in diff area described in the activity data to be measured;
The generational verctor corresponding with the difference type in the mapping relations is determined as the reason of generating difference.
5. according to the method described in claim 4, it is characterized in that, however, it is determined that the target H5 page meets expected standard, then
After exporting the corresponding prompt page according to the data test result, specifically further include:
Configuration is suitable for the terminal emulator of different screen resolutions type;
The target H5 page is shown respectively in the corresponding terminal emulator of all types of screen resolutions;
The corresponding displayed page of all types of screen resolutions is matched with the target H5 page respectively;
The test result of the target H5 page compatibility is exported according to the matching result.
6. according to the method described in claim 5, it is characterized in that, described according to described H5 pages of target of mating situation output
The test result of face compatibility, specifically includes:
If it is determined that the target H5 page default display page corresponding with all types of screen resolutions is able to achieve matching, then it is defeated
Meet the page prompts of compatibility test out;
If it is determined that the target H5 page at least can not achieve with a type of screen resolution and match, then output is unsatisfactory for simultaneous
The page prompts of capacitive test.
7. according to the method described in claim 6, it is characterized in that, however, it is determined that the target H5 page by compatibility test,
Then after exporting the corresponding prompt page according to the data test result, specifically further include:
Obtain the corresponding dispensing channel of the target H5 page;
Corresponding dispensing application software is configured on the mobile phone simulator according to the dispensing channel;
The target H5 page is launched into the dispensing application software, the simulation test of application scenarios is carried out.
8. a kind of automatic test device of the H5 page characterized by comprising
Reception device, for receiving the chained address of expected activity data Yu the target H5 page;
Determining device, for expected activity data activity data to be measured corresponding with the chained address to be matched,
Determine the data test result of the target H5 page;
Output device, for exporting the corresponding prompt page according to the data test result.
9. a kind of non-volatile readable storage medium, is stored thereon with computer program, which is characterized in that described program is processed
Device realizes the automated testing method of the H5 page described in any one of claims 1 to 7 when executing.
10. a kind of computer equipment, including non-volatile readable storage medium, processor and it is stored in non-volatile readable storage
On medium and the computer program that can run on a processor, which is characterized in that the processor is realized when executing described program
The automated testing method of the H5 page described in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910340506.XA CN110245068A (en) | 2019-04-25 | 2019-04-25 | Automated testing method, device and the computer equipment of the H5 page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910340506.XA CN110245068A (en) | 2019-04-25 | 2019-04-25 | Automated testing method, device and the computer equipment of the H5 page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110245068A true CN110245068A (en) | 2019-09-17 |
Family
ID=67883397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910340506.XA Pending CN110245068A (en) | 2019-04-25 | 2019-04-25 | Automated testing method, device and the computer equipment of the H5 page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110245068A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704669A (en) * | 2019-10-16 | 2020-01-17 | 紫光云技术有限公司 | Resolution compatibility test image analysis method |
CN111597116A (en) * | 2020-05-20 | 2020-08-28 | 浪潮软件集团有限公司 | Mobile terminal UI automatic test method, system, storage medium and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110093773A1 (en) * | 2009-10-19 | 2011-04-21 | Browsera LLC | Automated application compatibility testing |
CN106886491A (en) * | 2017-01-17 | 2017-06-23 | 博彦科技股份有限公司 | Webpage compatibility test method and device |
CN107678937A (en) * | 2017-07-26 | 2018-02-09 | 上海壹账通金融科技有限公司 | Page compatibility detection method, device, server and medium |
CN107783899A (en) * | 2017-08-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | The method of testing of the H5 pages, device and computer equipment in application program |
CN108121647A (en) * | 2016-11-26 | 2018-06-05 | 上海亿账通互联网科技有限公司 | The browser compatibility test method and device of the HTML5 pages |
CN109118118A (en) * | 2018-09-06 | 2019-01-01 | 平安科技(深圳)有限公司 | Methods of risk assessment, storage medium and the server of business event |
CN109299415A (en) * | 2018-09-30 | 2019-02-01 | 百度在线网络技术(北京)有限公司 | H5 page method of calibration and device |
-
2019
- 2019-04-25 CN CN201910340506.XA patent/CN110245068A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110093773A1 (en) * | 2009-10-19 | 2011-04-21 | Browsera LLC | Automated application compatibility testing |
CN108121647A (en) * | 2016-11-26 | 2018-06-05 | 上海亿账通互联网科技有限公司 | The browser compatibility test method and device of the HTML5 pages |
CN106886491A (en) * | 2017-01-17 | 2017-06-23 | 博彦科技股份有限公司 | Webpage compatibility test method and device |
CN107678937A (en) * | 2017-07-26 | 2018-02-09 | 上海壹账通金融科技有限公司 | Page compatibility detection method, device, server and medium |
CN107783899A (en) * | 2017-08-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | The method of testing of the H5 pages, device and computer equipment in application program |
CN109118118A (en) * | 2018-09-06 | 2019-01-01 | 平安科技(深圳)有限公司 | Methods of risk assessment, storage medium and the server of business event |
CN109299415A (en) * | 2018-09-30 | 2019-02-01 | 百度在线网络技术(北京)有限公司 | H5 page method of calibration and device |
Non-Patent Citations (1)
Title |
---|
李昕宇;侯春萍;王宝亮;宁国津;于奎星;: "基于图像匹配的移动应用自动化测试方法研究", 计算机工程与应用, no. 13 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704669A (en) * | 2019-10-16 | 2020-01-17 | 紫光云技术有限公司 | Resolution compatibility test image analysis method |
CN111597116A (en) * | 2020-05-20 | 2020-08-28 | 浪潮软件集团有限公司 | Mobile terminal UI automatic test method, system, storage medium and electronic equipment |
CN111597116B (en) * | 2020-05-20 | 2023-06-09 | 浪潮软件集团有限公司 | Mobile terminal UI automatic test method, system, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109618222B (en) | A kind of splicing video generation method, device, terminal device and storage medium | |
US9161238B2 (en) | Mobile device monitoring and testing | |
CN109919014A (en) | OCR recognition methods and its electronic equipment | |
CN108920380A (en) | Test method, device, server, equipment and the storage medium of the software compatibility | |
CN109766053A (en) | Method for displaying user interface, device, terminal and storage medium | |
CN110430443A (en) | The method, apparatus and computer equipment of video lens shearing | |
CN109345553B (en) | Palm and key point detection method and device thereof, and terminal equipment | |
KR100965720B1 (en) | Method for generating mosaic image and apparatus for the same | |
KR101802294B1 (en) | Apparatus and method for providing on-line learning service | |
CN109784369A (en) | H5 page test method and device, electronic equipment, storage medium | |
KR102002024B1 (en) | Method for processing labeling of object and object management server | |
CN109828906B (en) | UI (user interface) automatic testing method and device, electronic equipment and storage medium | |
CN108229373A (en) | Calligraphy exercising method and calligraphy practicing device, computer equipment and storage medium | |
KR102292775B1 (en) | System and method for providing learning service | |
CN114170468B (en) | Text recognition method, storage medium and computer terminal | |
CN109815448B (en) | Slide generation method and device | |
CN109543072B (en) | Video-based AR education method, smart television, readable storage medium and system | |
CN110245068A (en) | Automated testing method, device and the computer equipment of the H5 page | |
CN107704388A (en) | For the method and apparatus for the startup time for determining application | |
CN110248235B (en) | Software teaching method, device, terminal equipment and medium | |
CN103854020A (en) | Character recognition method and device | |
CN103455544A (en) | Method for creating thumbnail images of videos and an electronic device for display thereof | |
CN111949356A (en) | Popup window processing method and device and electronic equipment | |
US11747914B2 (en) | System and method for providing electric book based on reading type | |
CN111062377B (en) | Question number detection method, system, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |