CN109885484A - Application page test method, device, computer equipment and storage medium - Google Patents
Application page test method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109885484A CN109885484A CN201910046676.7A CN201910046676A CN109885484A CN 109885484 A CN109885484 A CN 109885484A CN 201910046676 A CN201910046676 A CN 201910046676A CN 109885484 A CN109885484 A CN 109885484A
- Authority
- CN
- China
- Prior art keywords
- page
- test
- original image
- image
- terminal
- 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
Abstract
This application involves a kind of application page test method, device, computer equipment and storage mediums.The described method includes: obtaining page test instruction;Instruction, which is tested, according to the page obtains test case;The page display parameters of page original image and measured terminal are obtained by executing the test case;The page is generated according to the page display parameters and the page original image and shows task, is sent the page and is shown task to the measured terminal;It receives the measured terminal and executes the page display image being truncated to when the page display task;Show that image and the page original image generate page test report according to the page.Page test result is generated by image comparison using this method, test operating procedure can be simplified, improve the testing efficiency of application page.
Description
Technical field
This application involves the field of test technology, more particularly to a kind of application page test method, device, computer equipment
And storage medium.
Background technique
With the development of computer and Internet technology, there is measuring technology.Simultaneously with the exploitation of various applications, and
Various application needs are installed by different types of terminal, and show application page in different type volume terminal, in application and development
During, it needs to test application page.
However, the mode that target tests application page, the test application page is all by manually to measured terminal
Operation, so that measured terminal shows various application pages, present terminal type is also more and more, if by manually to tested end
The mode for holding operation, comes whether the test application page can normally show in the terminal of each terminal type, so that application page
Testing efficiency it is lower.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of answering for testing efficiency that can be improved application page
With page test method, device, computer equipment and storage medium.
A kind of application page test method, which comprises
Obtain page test instruction;
Instruction, which is tested, according to the page obtains test case;
The page display parameters of page original image and measured terminal are obtained by executing the test case;
The page is generated according to the page display parameters and the page original image and shows task, and it is aobvious to send the page
Show task to the measured terminal;
It receives the measured terminal and executes the page display image intercepted when the page display task;
Show that image and the page original image generate page test report according to the page.
A kind of application page test device, described device include:
Instruction acquisition module is tested, for obtaining page test instruction;
Test case obtains module, obtains test case for testing instruction according to the page;
Test case execution module, for obtaining page original image and measured terminal by executing the test case
Page display parameters;
Display task sending module, it is aobvious for generating the page according to the page display parameters and the page original image
Show task, sends the page and show task to the measured terminal;
It shows image receiver module, executes the page being truncated to when the page shows task for receiving the measured terminal
Face shows image;
Test report generation module, for showing that image and the page original image generate the page and survey according to the page
Examination report.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Obtain page test instruction;
Instruction, which is tested, according to the page obtains test case;
The page display parameters of page original image and measured terminal are obtained by executing the test case;
The page is generated according to the page display parameters and the page original image and shows task, and it is aobvious to send the page
Show task to the measured terminal;
It receives the measured terminal and executes the page display image being truncated to when the page display task;
Show that image and the page original image generate page test report according to the page.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Obtain page test instruction;
Instruction, which is tested, according to the page obtains test case;
The page display parameters of page original image and measured terminal are obtained by executing the test case;
The page is generated according to the page display parameters and the page original image and shows task, and it is aobvious to send the page
Show task to the measured terminal;
It receives the measured terminal and executes the page display image being truncated to when the page display task;
Show that image and the page original image generate page test report according to the page.
Above-mentioned application page test method, device, computer equipment and storage medium, obtain page by implementation of test cases
The page display parameters of face original image and measured terminal are generated according to the page original image and page display parameters got
The page shows task, receives measured terminal and executes the page that the is truncated to when page shows task and shows image, thus by by page
Face shows that image and page original image are compared, and obtains page test report, entire test process is without manually to tested
Terminal is operated, and test operating procedure is simplified, and improves the testing efficiency of application page.
Detailed description of the invention
Fig. 1 is the application scenario diagram of application page test method in one embodiment;
Fig. 2 is the flow diagram of application page test method in one embodiment;
Fig. 3 is the flow diagram that the step of page shows task is sent in one embodiment;
Fig. 4 is flow diagram the step of generating page test report in one embodiment;
The flow diagram for the step of Fig. 5 is query page test result in one embodiment;
Fig. 6 is the structural block diagram of application page test device in one embodiment;
Fig. 7 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Application testing method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, test is whole
End 102 with measured terminal 104 by network or data line 106 by being communicated.Wherein, test terminal 102 can with but it is unlimited
Then various personal computers, laptop, smart phone, tablet computer and portable wearable device, measured terminal 104
It can be, but not limited to be various personal computers, laptop, smart phone, tablet computer and portable wearable device.
In one embodiment, as shown in Fig. 2, providing a kind of application page test method, it is applied to Fig. 1 in this way
In test terminal 102 for be illustrated, comprising the following steps:
S202 obtains page test instruction.
Specifically, it tests in terminal and shows test page, test case may be selected in test page.Test terminal detects
When test start button is clicked, the test case mark in test page is obtained, according to the test case mark life got
It tests and instructs at the page.
S204 tests instruction according to the page and obtains test case.
Specifically, after test terminal gets page test instruction, the test case mark in page test instruction is extracted,
Test case corresponding with test case mark is inquired in test case library, extracts the test case inquired.
S206 obtains the page display parameters of page original image and measured terminal by implementation of test cases.
Specifically, test terminal is after getting test case, implementation of test cases, during implementation of test cases
Obtain the page display parameters of page original image and measured terminal.Page original image is the parent page image in application.
The page display parameters of measured terminal are the parameter that measured terminal shows page original image, and page display parameters include screen ruler
At least one of very little, OS Type, browser kernel type and resolution ratio.
In one embodiment, S206 is specific further include: determines page original image mark in test case and is tested eventually
The terminal type at end;According to page original image mark query page original image in application page original image library, and obtain
Take page display parameters corresponding with terminal type.
It wherein, include the terminal type of page original image mark and measured terminal in test case.Page original image
It is identified as the unique identification of application page corresponding page original image.Page original image mark can extremely be number, storage position
At least one of set with characteristic.The terminal type of measured terminal is the information for indicating the affiliated type of measured terminal.
Specifically, test terminal is after getting test case, page original image in read test use-case mark and
The terminal type of measured terminal is inquired corresponding with the page original image mark read in application page original image library
Page original image, and inquire corresponding with terminal type page display parameters, page display parameters include OS Type,
At least one of screen size parameter, browser type and picture presentation format.
S208 generates the page according to page display parameters and page original image and shows task, sends the page and shows task
To measured terminal.
Specifically, test terminal is packaged page display parameters and page original image, obtains the page by encapsulation
Display task determines the corresponding measured terminal of page display parameters, and the page is shown that task is sent to determining measured terminal.
In one embodiment, test terminal is adjusted page original image according to page display parameters, according to tune
Page original image after whole generates the page and shows task, and the page is shown that task is sent to quilt corresponding with page display parameters
Survey terminal.
S210 receives measured terminal and executes the page display image being truncated to when page display task.
Specifically, measured terminal shows task solution to the page after receiving the page display task that test terminal is sent
Analysis extracts the page display parameters and page original image in page display task by parsing, according to page display parameters pair
Page original image is adjusted, and page original image adjusted is shown, the page for intercepting display shows image, will
The page of interception shows that image is sent to test terminal.It tests terminal and receives the page display image that measured terminal is sent.
It in one embodiment, include according to page display parameters page original graph adjusted in page display task
Picture.After measured terminal receives page display task, page original image adjusted in page display task is extracted, display is adjusted
Page original image after whole, the page for intercepting display show image.
S212 shows that image and page original image generate page test report according to the page.
Specifically, test terminal extracts page original image after the page for receiving measured terminal transmission shows image,
The page is shown that image is compared to obtain comparison result with page original image, page test report is generated according to comparison result
It accuses.
In one embodiment, the page is shown that image is compared with page original image by test terminal, to determine page
Face shows whether image matches with page original image, if matching, test pass through;If mismatching, test and do not pass through, to survey
Whether examination is by generating page test report.It may include that the page shows image and page original image in page test report.
In the present embodiment, the page display parameters of page original image and measured terminal are obtained by implementation of test cases,
The page is generated according to the page original image and page display parameters got and shows task, and it is aobvious to receive the measured terminal execution page
The page being truncated to when showing task shows image, to be obtained by the way that the page is shown that image and page original image are compared
To page test report, entire test process simplifies test operating procedure, improves without manually operating to measured terminal
The testing efficiency of application page.
As shown in figure 3, in one embodiment, page display parameters include that the corresponding page of multiple measured terminals is aobvious
Show parameter;S208, which is specifically included, sends the step of page shows task, which specifically includes the following contents:
S302 obtains the corresponding page display parameters of each measured terminal.
Specifically, test terminal to each measured terminal of connection send inquiry message, receive each measured terminal according to
The terminal type that inquiry message returns reads each measured terminal to the page display parameters of silver according to the terminal type of return.
S304 generates the page according to the page display parameters and page original image got and shows task, obtains each
The corresponding page of measured terminal shows task.
Specifically, test terminal is according to the corresponding page display parameters of each measured terminal read, according to every
The corresponding page display parameters of a measured terminal and page original image generate the corresponding page of each measured terminal and show and appoint
Business obtains the corresponding page of each measured terminal and shows task.
The corresponding page of each measured terminal is shown that task is sent to corresponding measured terminal by S306.
Specifically, the page is shown and is appointed after generating each corresponding page display task of measured terminal by test terminal
Business is added in task queue.Test terminal reads the page from task queue and shows task, determines that the page shows that task is corresponding
Measured terminal, the page read is shown that task is sent to determining measured terminal, until the page in task queue is aobvious
Show that task is read to finish.
In the present embodiment, page display parameters include the corresponding page display parameters of multiple measured terminals, according to page
Face display parameters generate the corresponding page of each measured terminal and show task, show task pair by the corresponding page of each measured terminal
Multiple measured terminals are tested, and the testing efficiency to measured terminal is improved.
As shown in figure 4, in one embodiment, S212 includes the steps that generating page test report, which specifically wraps
Include the following contents:
S402 calculates the similarity between page display image and page original image.
Specifically, terminal is tested after getting the page being truncated to that each measured terminal is sent and showing image, for
The page being each truncated to shows image, and the page being truncated to is shown that image and page original image are converted to polar plot, is counted
The similarity between two polar plots is calculated, is obtained between each page x8inashi image being truncated to and page original image
Similarity.
In one embodiment, test terminal shows image and page original image for each page being truncated to, point
It indescribably takes the page to show the image feature data in image and page original image, the page is calculated according to the characteristic extracted
Show the similarity between image and page original image.
S404 determines measured terminal corresponding page test result according to the similarity being calculated.
Specifically, test terminal obtains default similarity threshold, will be calculated similarity and default similarity threshold into
Row compares, and when the similarity being calculated is more than or equal to default similarity threshold, then determines that the page shows that image and the page are former
Beginning image is same image, then test passes through;When the similarity being calculated is less than default similarity threshold, then the page is determined
It shows image and page original image is not same image, then test and do not pass through.
In one embodiment, S404 is specifically included: determining that the page shows the corresponding terminal type of image;It obtains and determines
The corresponding similarity threshold of terminal type;The similarity being calculated is compared with the similarity threshold got, is obtained
To the corresponding page test result of measured terminal.
Specifically, test terminal is calculating to the page being each truncated to the phase shown between image and page original image
It like degree, obtains the page being truncated to and shows terminal type corresponding to image, inquire the corresponding similarity threshold of terminal type,
The similarity being calculated is compared with the similarity threshold inquired, when the similarity being calculated is greater than similarity threshold
Value, then the corresponding page test result of measured terminal is that test passes through;When the similarity being calculated is less than or equal to similarity threshold
Value, then the corresponding page test result of measured terminal is that test does not pass through.Page test result includes that test passes through and tests not
Pass through.
S406 generates page test report according to the corresponding page test result of measured terminal.
Specifically, when test passes through, page original image and terminal type are recorded in page test report by test terminal
In announcement;When test does not pass through, the page is shown that image, terminal type, page original image and similarity record by test terminal
In page test report.
In the present embodiment, the similarity before image and page original image is shown by the calculating page, passes through similarity
To determine that the page shows whether image and page original image are same image, to obtain test result, are simplified to image
The treatment process of data, improves testing efficiency.
As shown in figure 5, in one embodiment, specifically further include the steps that query page test result after S212, it should
Step specifically includes the following contents:
S502 obtains the test result inquiry instruction triggered in test page.
Specifically, it tests in terminal and shows there is test page, inquiry button is provided in test page.Test terminal is being examined
When measuring testing button and being clicked, the query information inputted in test page is obtained, is generated and is surveyed according to the query information got
Test result inquiry instruction.Query information can be at least one of terminal type and page-images mark.
S504 extracts the terminal type in test result inquiry instruction.
Specifically, after test terminal gets test result inquiry instruction, test result inquiry instruction is parsed, is led to
Cross the terminal type in parsing extraction test result inquiry instruction.
S506 inquires page test result corresponding with the terminal type extracted in page test report.
It specifically, include page test result corresponding with terminal type in page test report.Test terminal is being extracted
To after terminal type, page test result corresponding with the terminal type extracted is inquired in page test report, extraction is looked into
The page test result ask.
S508 will inquire page test result and show in test page.
Specifically, test terminal adds test result displaying control in test page, and the page inquired is tested and is tied
Fruit shows in the test result displaying control of addition.
In the present embodiment, according to terminal type can in the page test report query page test result, and will be with end
It holds the corresponding page test result of type to show in test page, tester is facilitated to survey the corresponding page of each terminal type
Test result is checked that efficiency is checked in raising.
It should be understood that although each step in the flow chart of Fig. 2-5 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-5
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in fig. 6, providing a kind of application page test device 600, comprising: test instruction
Obtain module 602, test case obtains module 604, test case execution module 606, display task sending module 608, display
Image receiver module 610 and test report generation module 612, in which:
Instruction acquisition module 602 is tested, for obtaining page test instruction.
Test case obtains module 604, obtains test case for testing instruction according to the page.
Test case execution module 606, for obtaining page original image and measured terminal by implementation of test cases
Page display parameters.
Display task sending module 608 is appointed for generating the page according to page display parameters and page original image and showing
Business sends the page and shows task to measured terminal.
Show image receiver module 610, it is aobvious for receiving the page being truncated to when measured terminal executes page display task
Diagram picture.
Test report generation module 612, for showing that image and page original image generate page test report according to the page
It accuses.
In one embodiment, test case execution module 606 is also used to determine page original image mark in test case
Know the terminal type with measured terminal;It is original according to page original image mark query page in application page original image library
Image, and obtain page display parameters corresponding with terminal type.
In one embodiment, page display parameters include the corresponding page display parameters of multiple measured terminals;It is aobvious
Show that task sending module 608 is also used to obtain the corresponding page display parameters of each measured terminal;According to the page got
Face display parameters and page original image generate the page and show task, obtain each measured terminal corresponding page and shows times
Business;The corresponding page of each measured terminal is shown that task is sent to corresponding measured terminal.
In one embodiment, test report generation module 612 is also used to calculate the page and shows image and page original graph
Similarity as between;Measured terminal corresponding page test result is determined according to the similarity being calculated;According to measured terminal
Corresponding page test result generates page test report.
In one embodiment, test report generation module 612 is also used to determine that the page shows the corresponding terminal class of image
Type;Obtain similarity threshold corresponding with the terminal type determined;By the similarity being calculated and the similarity threshold got
Value is compared;When the similarity being calculated is greater than similarity threshold, the then corresponding page test result of the measured terminal
Pass through for test;When the similarity being calculated is less than or equal to similarity threshold, then the corresponding page of the measured terminal is tested
As a result do not pass through for test.
In one embodiment, application page test device 600 further includes test result enquiry module, test result inquiry
Module is also used to obtain the test result inquiry instruction triggered in test page;Extract the terminal class in test result inquiry instruction
Type;Page test result corresponding with the terminal type extracted is inquired in page test report;Page test will be inquired
As a result it shows in test page.
In the present embodiment, the page display parameters of page original image and measured terminal are obtained by implementation of test cases,
The page is generated according to the page original image and page display parameters got and shows task, and it is aobvious to receive the measured terminal execution page
The page being truncated to when showing task shows image, to be obtained by the way that the page is shown that image and page original image are compared
To page test report, entire test process simplifies test operating procedure, improves without manually operating to measured terminal
The testing efficiency of application page.
Specific about application page test device limits the limit that may refer to above for application page test method
Fixed, details are not described herein.Modules in above-mentioned application page test device can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 7.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of application page test method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell
Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to application scheme is tied
The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment
It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, which performs the steps of when executing computer program obtains page test instruction;It is tested according to the page
Instruction obtains test case;The page display parameters of page original image and measured terminal are obtained by implementation of test cases;Root
The page is generated according to page display parameters and page original image and shows task, is sent the page and is shown task to measured terminal;It receives
Measured terminal executes the page and shows that the page intercepted when task shows image;Show that image and page original image are raw according to the page
At page test report.
In one embodiment, ginseng is shown by the page that implementation of test cases obtains page original image and measured terminal
Number comprises determining that the terminal type of the page original image mark and measured terminal in test case;According to page original image mark
Know the query page original image in application page original image library, and obtains page display parameters corresponding with terminal type.
In one embodiment, page display parameters include the corresponding page display parameters of multiple measured terminals;Root
The page is generated according to page display parameters and page original image and shows task, is sent the page and is shown that task to measured terminal includes:
Obtain the corresponding page display parameters of each measured terminal;According to the page display parameters and page original image got
It generates the page and shows task, obtain the corresponding page of each measured terminal and show task;Each measured terminal is right respectively
The page answered shows that task is sent to corresponding measured terminal.
In one embodiment, showing that image and page original image generate page test report according to the page includes: meter
Calculate the similarity between page display image and page original image;Determine that measured terminal is corresponding according to the similarity being calculated
Page test result;Page test report is generated according to the corresponding page test result of measured terminal.
In one embodiment, determine that measured terminal corresponding page test result includes: according to the similarity being calculated
Determine that the page shows the corresponding terminal type of image;Obtain similarity threshold corresponding with the terminal type determined;It will calculate
To similarity be compared with the similarity threshold got;When the similarity being calculated be greater than similarity threshold, then by
Surveying the corresponding page test result of terminal is that test passes through;When the similarity being calculated be less than or equal to similarity threshold, then by
Surveying the corresponding page test result of terminal is that test does not pass through.
In one embodiment, after showing that image and page original image generate page test report according to the page, place
Reason device also performs the steps of the test result inquiry instruction for obtaining and triggering in test page when executing computer program;It extracts
Terminal type in test result inquiry instruction;The page corresponding with the terminal type extracted is inquired in page test report
Test result;Page test result will be inquired to show in test page.
In the present embodiment, the page display parameters of page original image and measured terminal are obtained by implementation of test cases,
The page is generated according to the page original image and page display parameters got and shows task, and it is aobvious to receive the measured terminal execution page
The page being truncated to when showing task shows image, to be obtained by the way that the page is shown that image and page original image are compared
To page test report, entire test process simplifies test operating procedure, improves without manually operating to measured terminal
The testing efficiency of application page.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor obtains page test instruction;Instruction, which is tested, according to the page obtains test use
Example;The page display parameters of page original image and measured terminal are obtained by implementation of test cases;According to page display parameters
The page is generated with page original image and shows task, is sent the page and is shown task to measured terminal;It receives measured terminal and executes page
Face shows that the page intercepted when task shows image;Show that image and page original image generate page test report according to the page
It accuses.
In one embodiment, ginseng is shown by the page that implementation of test cases obtains page original image and measured terminal
Number comprises determining that the terminal type of the page original image mark and measured terminal in test case;According to page original image mark
Know the query page original image in application page original image library, and obtains page display parameters corresponding with terminal type.
In one embodiment, page display parameters include the corresponding page display parameters of multiple measured terminals;Root
The page is generated according to page display parameters and page original image and shows task, is sent the page and is shown that task to measured terminal includes:
Obtain the corresponding page display parameters of each measured terminal;According to the page display parameters and page original image got
It generates the page and shows task, obtain the corresponding page of each measured terminal and show task;Each measured terminal is right respectively
The page answered shows that task is sent to corresponding measured terminal.
In one embodiment, showing that image and page original image generate page test report according to the page includes: meter
Calculate the similarity between page display image and page original image;Determine that measured terminal is corresponding according to the similarity being calculated
Page test result;Page test report is generated according to the corresponding page test result of measured terminal.
In one embodiment, determine that measured terminal corresponding page test result includes: according to the similarity being calculated
Determine that the page shows the corresponding terminal type of image;Obtain similarity threshold corresponding with the terminal type determined;It will calculate
To similarity be compared with the similarity threshold got;When the similarity being calculated be greater than similarity threshold, then by
Surveying the corresponding page test result of terminal is that test passes through;When the similarity being calculated be less than or equal to similarity threshold, then by
Surveying the corresponding page test result of terminal is that test does not pass through.
In one embodiment, after showing that image and page original image generate page test report according to the page, meter
Calculation machine program also performs the steps of the test result inquiry instruction for obtaining and triggering in test page when being executed by processor;It mentions
Take the terminal type in test result inquiry instruction;Page corresponding with the terminal type extracted is inquired in page test report
Face test result;Page test result will be inquired to show in test page.
In the present embodiment, the page display parameters of page original image and measured terminal are obtained by implementation of test cases,
The page is generated according to the page original image and page display parameters got and shows task, and it is aobvious to receive the measured terminal execution page
The page being truncated to when showing task shows image, to be obtained by the way that the page is shown that image and page original image are compared
To page test report, entire test process simplifies test operating procedure, improves without manually operating to measured terminal
The testing efficiency of application page.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of application page test method, which comprises
Obtain page test instruction;
Instruction, which is tested, according to the page obtains test case;
The page display parameters of page original image and measured terminal are obtained by executing the test case;
The page is generated according to the page display parameters and the page original image and shows task, is sent the page and is shown and appoints
It is engaged in the measured terminal;
It receives the measured terminal and executes the page display image intercepted when the page display task;
Show that image and the page original image generate page test report according to the page.
2. the method according to claim 1, wherein described original by executing the test case acquisition page
The page display parameters of image and measured terminal include:
Determine the terminal type of the page original image mark and measured terminal in the test case;
The query page original image in application page original image library, and acquisition and institute are identified according to the page original image
State the corresponding page display parameters of terminal type.
3. the method according to claim 1, wherein the page display parameters include multiple measured terminals respectively
Corresponding page display parameters;It is described to show and appoint according to the page display parameters and the page original image generation page
Business sends the page and shows that task to the measured terminal includes:
Obtain the corresponding page display parameters of each measured terminal;
The page is generated according to the page display parameters got and the page original image and shows task, obtains each tested end
The corresponding page is held to show task;
The corresponding page of each measured terminal is shown that task is sent to corresponding measured terminal.
4. the method according to claim 1, wherein described show that image and the page are former according to the page
Beginning image generates page test report
Calculate the similarity between the page display image and the page original image;
The measured terminal corresponding page test result is determined according to the similarity being calculated;
Page test report is generated according to the corresponding page test result of the measured terminal.
5. according to the method described in claim 4, it is characterized in that, the similarity that the basis is calculated determines described be tested
Terminal corresponding page test result includes:
Determine that the page shows the corresponding terminal type of image;
Obtain similarity threshold corresponding with the terminal type determined;
The similarity being calculated is compared with the similarity threshold got;
When the similarity being calculated is greater than similarity threshold, then the corresponding page test result of the measured terminal is that test is logical
It crosses;
When the similarity being calculated is less than or equal to similarity threshold, then the corresponding page test result of the measured terminal is to survey
Examination does not pass through.
6. the method according to claim 1, wherein described show that image and the page are former according to the page
Beginning image generates after page test report, further includes:
Obtain the test result inquiry instruction triggered in test page;
Extract the terminal type in the test result inquiry instruction;
Page test result corresponding with the terminal type extracted is inquired in the page test report;
The page test result will be inquired to show in the test page.
7. a kind of application page test device, which is characterized in that described device includes:
Instruction acquisition module is tested, for obtaining page test instruction;
Test case obtains module, obtains test case for testing instruction according to the page;
Test case execution module, for obtaining the page of page original image and measured terminal by executing the test case
Display parameters;
Display task sending module is appointed for generating the page according to the page display parameters and the page original image and showing
Business sends the page and shows task to the measured terminal;
It shows image receiver module, is shown for receiving the page intercepted when the measured terminal executes the page display task
Image;
Test report generation module, for showing that image and the page original image generate page test report according to the page
It accuses.
8. device according to claim 7, which is characterized in that the test case execution module is also used to determine the survey
The terminal type of the page original image mark and measured terminal in example on probation;It is identified according to the page original image in applications pages
Query page original image in the original image library of face, and obtain page display parameters corresponding with the terminal type.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910046676.7A CN109885484A (en) | 2019-01-16 | 2019-01-16 | Application page test method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910046676.7A CN109885484A (en) | 2019-01-16 | 2019-01-16 | Application page test method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109885484A true CN109885484A (en) | 2019-06-14 |
Family
ID=66926245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910046676.7A Pending CN109885484A (en) | 2019-01-16 | 2019-01-16 | Application page test method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109885484A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061526A (en) * | 2019-10-12 | 2020-04-24 | 平安普惠企业管理有限公司 | Automatic testing method and device, computer equipment and storage medium |
CN112329854A (en) * | 2020-11-05 | 2021-02-05 | 上海哔哩哔哩科技有限公司 | Method and device for cutting and checking advertisement material picture |
CN113507500A (en) * | 2021-06-04 | 2021-10-15 | 上海闻泰信息技术有限公司 | Terminal control method, terminal control device, computer equipment and computer-readable storage medium |
-
2019
- 2019-01-16 CN CN201910046676.7A patent/CN109885484A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061526A (en) * | 2019-10-12 | 2020-04-24 | 平安普惠企业管理有限公司 | Automatic testing method and device, computer equipment and storage medium |
CN111061526B (en) * | 2019-10-12 | 2023-12-01 | 天航长鹰(江苏)科技有限公司 | Automatic test method, device, computer equipment and storage medium |
CN112329854A (en) * | 2020-11-05 | 2021-02-05 | 上海哔哩哔哩科技有限公司 | Method and device for cutting and checking advertisement material picture |
CN112329854B (en) * | 2020-11-05 | 2023-07-28 | 上海哔哩哔哩科技有限公司 | Method and device for checking picture cutting of advertisement material |
CN113507500A (en) * | 2021-06-04 | 2021-10-15 | 上海闻泰信息技术有限公司 | Terminal control method, terminal control device, computer equipment and computer-readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110008117A (en) | Page test method, device, computer equipment and storage medium | |
CN110008118B (en) | Page data testing method and device, computer equipment and storage medium | |
CN108377240A (en) | Exceptional interface detection method, device, computer equipment and storage medium | |
CN109522218A (en) | Interface test method, device, computer equipment and storage medium | |
CN108920354A (en) | Bury a management method, device, computer equipment and storage medium | |
CN109885484A (en) | Application page test method, device, computer equipment and storage medium | |
CN108268375A (en) | Applied program testing method, device, computer equipment and storage medium | |
CN109308263B (en) | Applet testing method, device and equipment | |
CN107832206A (en) | Method of testing, device, computer-readable recording medium and computer equipment | |
CN108804548B (en) | Test data query method, device, computer equipment and storage medium | |
CN109408375B (en) | Method and device for generating interface document | |
CN109710677A (en) | Processing for Data Analysis in Physics, device, computer equipment and storage medium | |
CN108804159A (en) | Javascript module loadings method and its preprocess method, device and computer equipment | |
CN110320378B (en) | Method, apparatus, device and computer readable storage medium for applying for a quality control test | |
CN109446065A (en) | User tag test method, device, computer equipment and storage medium | |
CN109816364A (en) | Transaction data processing method, device, computer equipment and storage medium | |
CN110221967A (en) | Test data building method, device, computer equipment and storage medium | |
CN109408374A (en) | Application exception is remotely located method, system, computer equipment and medium | |
CN108399125B (en) | Automatic testing method and device, computer equipment and storage medium | |
CN109753428A (en) | Service test method, device, computer equipment and readable storage medium storing program for executing | |
CN109542763A (en) | Page monitoring method, device, computer equipment and storage medium | |
CN110232018A (en) | Interface test method, device, computer equipment | |
CN110290486A (en) | Short message sends test method, device, computer equipment and storage medium | |
CN109299009A (en) | Data test method, apparatus, computer equipment and storage medium | |
CN114549849A (en) | Image recognition method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |