CN110597584A - Page adaptation testing method and device, electronic equipment and storage medium - Google Patents

Page adaptation testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110597584A
CN110597584A CN201910757603.9A CN201910757603A CN110597584A CN 110597584 A CN110597584 A CN 110597584A CN 201910757603 A CN201910757603 A CN 201910757603A CN 110597584 A CN110597584 A CN 110597584A
Authority
CN
China
Prior art keywords
page
tested
preset
link
adaptation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910757603.9A
Other languages
Chinese (zh)
Inventor
梅卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuomi Private Ltd
Original Assignee
Hong Kong LiveMe Corp ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hong Kong LiveMe Corp ltd filed Critical Hong Kong LiveMe Corp ltd
Priority to CN201910757603.9A priority Critical patent/CN110597584A/en
Publication of CN110597584A publication Critical patent/CN110597584A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method and a device for testing page adaptation, electronic equipment and a storage medium, relates to the technical field of computers, and can compatibly test the adaptability of pages to various types of mobile terminals and improve the testing efficiency. The method comprises the following steps: writing page data of a page to be tested into a link address corresponding to a preset link; selecting a target model of the mobile terminal to be adapted for the page to be tested according to a user instruction; and loading the page data in the link address to display the page to be tested in the simulation model of the target machine type and detect the corresponding page adaptation effect. The invention is suitable for testing the adaptation performance of various pages.

Description

Page adaptation testing method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for testing page adaptation, electronic equipment and a storage medium.
Background
With the development of mobile communication technology, various mobile terminals have become very popular in people's lives. In order to meet various demands and preferences of users, models and sizes of mobile terminals are different. When an application installed on the mobile terminal needs to display various pages, the display size of the pages is also adapted to the size of the screen so that the page contents can be clearly and completely displayed on the screen.
In order to detect whether the page is adapted to various mobile terminals, the page adaptation needs to be tested. In the related technology, the test of page adaptation needs the cooperation of developers, the test codes are programmed into the scene pages to be tested, and the test codes are packaged and then are respectively installed on the mobile terminals with different machine types and sizes, so that the mobile terminals can be tested.
However, due to the limited number of test prototypes of mobile terminals, testers often need to mutually borrow mobile terminals to complete testing tasks. And when testing, need carry out manual operation to mobile terminal and detect the functional point of every page, consequently the test operation is very loaded down with trivial details inconvenience, and is inefficient.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for testing page adaptation, an electronic device, and a storage medium, which are capable of compatibly testing the adaptability of a page to various types of mobile terminals, effectively simplifying a test procedure of page adaptation, and improving test efficiency.
In a first aspect, an embodiment of the present invention provides a method for testing page adaptation, including: writing page data of a page to be tested into a link address corresponding to a preset link; selecting a target model of the mobile terminal to be adapted for the page to be tested according to a user instruction; and loading the page data in the link address to display the page to be tested in the simulation model of the target machine type and detect the corresponding page adaptation effect.
Optionally, the writing the page data of the page to be tested into the link address corresponding to the preset link includes: writing page data of a pre-stored page to be tested into a link address corresponding to the preset link; and/or establishing connection with any mobile terminal, acquiring page data of the page to be tested from any mobile terminal, and writing the page data into a link address corresponding to the preset link.
Optionally, the number of the preset links is one or more, and the preset links correspond to the pages to be tested one to one; the page data written in the link address corresponding to the preset link can be replaced and/or modified.
Optionally, the simulation model is configured to display a simulation display screen of the target model on a computer screen, where a size of the simulation display screen is the same as an actual size of the target model.
Optionally, the loading the page data in the link address to display the page to be tested in the simulation model of the target machine model and detect the corresponding page adaptation effect includes: receiving a click instruction of a user on the preset link; according to the click command, loading page data in the link address to generate the page to be tested; displaying a visual interface of the page to be tested in the simulation model so that a tester can perform a first adaptive test on the page to be tested; and under the condition that the first adaptation test is qualified, performing a second adaptation test on the page to be tested by simulating touch screen operation.
Optionally, under the condition that the first adaptation test is qualified, performing a second adaptation test on the page to be tested by simulating a touch screen operation includes: loading the page data into simulation models of various target machine types respectively for display to form a plurality of pages to be tested; triggering a preset simulated touch screen operation at a first relative coordinate position in each simulation model according to a preset strategy; and if the responses of the preset simulated touch screen operation in each simulation model are inconsistent, determining that the to-be-tested page is unqualified in adaptation.
In a second aspect, an embodiment of the present invention further provides a page adaptation testing apparatus, including: the writing unit is used for writing the page data of the page to be tested into a link address corresponding to the preset link; the selection unit is used for selecting a target machine type of the mobile terminal to be adapted for the page to be tested according to a user instruction; and the loading unit is used for loading the page data in the link address so as to display the page to be tested in the simulation model of the target machine type and detect the corresponding page adaptation effect.
Optionally, the writing unit includes: the first writing module is used for writing page data of a page to be tested, which is stored in advance, into a link address corresponding to the preset link; and/or the second writing module is used for establishing connection with any mobile terminal, acquiring page data of the page to be tested from any mobile terminal, and writing the page data into a link address corresponding to the preset link.
Optionally, the number of the preset links is one or more, and the preset links correspond to the pages to be tested one to one; the page data written in the link address corresponding to the preset link can be replaced and/or modified.
Optionally, the simulation model is configured to display a simulation display screen of the target model on a computer screen, where a size of the simulation display screen is the same as an actual size of the target model.
Optionally, the loading unit includes: the receiving module is used for receiving a click instruction of a user on the preset link; the loading module is used for loading the page data in the link address according to the click command so as to generate the page to be tested; the display module is used for displaying the visual interface of the page to be tested in the simulation model so as to enable an inspector to perform a first adaptive test on the page to be tested; and the testing module is used for carrying out second adaptation test on the page to be tested by simulating touch screen operation under the condition that the first adaptation test is qualified.
Optionally, the test module includes: the loading submodule is used for respectively loading the page data into simulation models of various target machine types to be displayed so as to form a plurality of pages to be tested; the triggering sub-module is used for triggering preset simulated touch screen operation at the first relative coordinate position in each simulation model according to a preset strategy; and the determining submodule is used for determining that the to-be-tested page is not qualified in adaptation if the responses of the preset simulated touch screen operation in each simulation model are inconsistent.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing any page adaptation testing method provided by the embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing one or more programs, where the one or more programs are executable by one or more processors to implement any one of the page adaptation testing methods provided by the embodiments of the present invention.
The page adaptation testing method, the page adaptation testing device, the electronic equipment and the storage medium provided by the embodiment of the invention can write page data of a page to be tested into a link address corresponding to a preset link, select a target machine type of a mobile terminal to be adapted for the page to be tested according to a user instruction, and load the page data in the link address so as to display the page to be tested in a simulation model of the target machine type and detect a corresponding page adaptation effect. Therefore, the adaptation condition of the page to be tested in the mobile terminals of various types can be detected on one computer, the mobile terminals of various types do not need to be connected to the computer and download test programs, and manual test operation on the mobile terminals is not needed, so that the test flow is greatly simplified, and the test efficiency is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing page adaptation according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart of a method for testing page adaptation according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a page adaptation testing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a first aspect, embodiments of the present invention provide a method for testing page adaptation, which is capable of compatibly testing the adaptability of a page to various types of mobile terminals, effectively simplifying a testing process, and improving testing efficiency.
According to the page adaptation test method provided by the embodiment of the invention, the execution main body can be equipment with program development test capability such as a computer. The adaptability of one page to various mobile terminals is compatibly tested through the powerful processing capability of the computer.
Referring to fig. 1, a flowchart of a method for testing page adaptation provided in an embodiment of the present application is shown.
As shown in fig. 1, a method for testing page adaptation provided by an embodiment of the present invention may include:
s11, writing the page data of the page to be tested into a link address corresponding to the preset link;
in this step, optionally, the page to be tested may be a page displayed in a browser or various APPs. The preset link may be a pre-set clickable hyperlink address symbol or button, such as d: // test/documents/news1, and the like. The predetermined link may point to a local disk, a memory, or a file or a storage unit in a local area network.
S12, selecting a target model of the mobile terminal to be adapted for the page to be tested according to a user instruction;
specifically, in this step, multiple machine types existing in the current market can be displayed to the user in the form of characters, tables, pictures or the like, and the user can select one or more machine types as the target machine type according to the own test requirements, so as to determine whether the display condition of the page to be tested can be adapted to the target machine type.
Optionally, the alternative model provided for the user to select may be based on an iOS system or an Android system, and the specific model may include, for example, iPhone Xs Max (6.5 inches), iPhone XR (6.1 inches), iPhone X (5.8 inches), iPhone 8Plus (5.5 inches), iPhone 8(4.7 inches), iPhone SE (4 inches), OPPO Reno, HUAWEI MATE 7, and the like. Alternatively, the screen sizes of the various models may be the same or different.
Due to the wide variety of target models, the adaptation situation of the page to be tested to the target model may be different. For example, in one embodiment of the invention, it may happen that the page to be tested P1 fits well to one target model (e.g., iPhoneXs Max) and fails to fit another target model (e.g., iPhone SE).
S13, loading the page data in the link address to display the page to be tested in the simulation model of the target machine model and detecting the corresponding page adaptation effect.
The simulation model of the target machine model can be generated according to the basic data of the target machine model. Alternatively, the basic data may be data related to the shape, size, model, etc. of the mobile terminal. In this step, the basic data of the target model may be obtained from the local database or from the network, and the simulation model of the target model may be generated according to the basic data. Optionally, the simulation model may perform simulation display on mobile terminals such as mobile phones and tablets of various types based on the iOS system, the Android system, or other systems, which is not limited in the embodiment of the present invention.
The page adaptation effect may refer to the ability of a page to be tested to be displayed on mobile terminals of different sizes in a manner of adapting to the size of the terminal. In this step, the page data written in the link address in step S11 may be loaded, and the page to be tested corresponding to the page data is displayed in the simulation model of the target machine model. It can be understood that if the page to be tested is well adapted to the target model, the page size is matched with the screen size of the simulation model, the page content can be clearly and completely displayed, and if the page to be tested is not well adapted to the simulation model, the page can be too small or too large, the page content cannot be clearly and completely displayed, so that the adaptation effect of the page to be tested to the target model can be determined according to the display effect of the page in the simulation model.
According to the page adaptation testing method provided by the embodiment of the invention, the page data of the page to be tested can be written into the link address corresponding to the preset link, the target model of the mobile terminal needing to be adapted is selected for the page to be tested according to the user instruction, the page data in the link address is loaded, so that the page to be tested is displayed in the simulation model of the target model, and the corresponding page adaptation effect is detected. Therefore, the adaptation condition of the page to be tested in the mobile terminals of various types can be detected on one computer, the mobile terminals of various types do not need to be connected to the computer and download test programs, and manual test operation on the mobile terminals is not needed, so that the test flow is greatly simplified, and the test efficiency is effectively improved.
Optionally, in an embodiment of the present invention, writing the page data of the page to be tested into the link address corresponding to the preset link in step S11 specifically includes: and writing the page data of the page to be tested, which is stored in advance, into the link address corresponding to the preset link. For example, the web page data corresponding to the web page a loaded in the browser may be stored in the disk in advance. When the adaptation test needs to be performed on the web page a, corresponding web page data stored in the disk may be imported or copied to a link address corresponding to a preset link (e.g., http:// test.
Furthermore, besides calling the pre-stored webpage data from the disk and writing the webpage data into the link address corresponding to the preset link, the webpage data can also be downloaded from the mobile terminal and written into the corresponding link address. For example, in another embodiment of the present invention, a computer may establish a connection with any mobile terminal, obtain page data of the page to be tested from any mobile terminal, and write the page data into a link address corresponding to the preset link.
It should be noted that, although the page to be tested may be used to test the adaptability of the mobile terminals for multiple target models, the source of the page to be tested is not limited, and only the computer needs to be connected to any mobile terminal, without considering the brand and model of the mobile terminal. This is because, in any mobile terminal, as long as the accessed web addresses are consistent, the loaded page data contents are the same, and only the page size is adaptively adjusted according to the target terminal where the page is located when displaying.
Optionally, in other embodiments of the present invention, the page to be tested may also be obtained by pre-storing the page in the computer and combining two methods of connecting the computer and the mobile terminal, which is not limited in the embodiments of the present invention.
Optionally, in step S11, when the page data of the page to be tested is written into the link address corresponding to the preset link, the number of the page to be tested may be one or more, correspondingly, the number of the preset link may also be one or more, and the preset link and the page to be tested may correspond to each other. For example, the page data of the page B1 to be tested can be written into the link address corresponding to the preset link C1, and the page data of the page B2 to be tested can be written into the link address corresponding to the preset link C2, so that the page data in the two link addresses can be called simultaneously to test the adaptation performance of the pages B1 and B2 to be tested respectively.
Further, in order to facilitate flexible testing of a large number of pages, in an embodiment of the present invention, page data written in a link address corresponding to the preset link may be replaced and/or modified. For example, in an embodiment of the present invention, after the test on the adaptability of the page to be tested B3 is finished, the page data of the page to be tested B3 may be replaced with the page data of the page to be tested B4, so that the adaptability test is performed on different pages to be tested in sequence by using the same preset link.
Optionally, taking a mobile phone number registration process as an example, generally, 5 basic pages including a login/registration entry page, a page for filling a mobile phone number and a password, a short message verification page, a page for filling user basic information, and a page for recommending a main broadcasting are provided, and each page staying in the registration process can localize data of the pages and store the data in a link address corresponding to a preset link, so that different types of containers can be simultaneously selected and the adaptation problem can be immediately checked.
After the page data of the page to be tested is written into the link address corresponding to the preset link, the target model of the mobile terminal that needs to be adapted may be selected for the page to be tested in step S12 according to the user instruction, for example, in an embodiment of the present invention, the HUAWEI MATE 7 may be selected as the target model that needs to be adapted for the page to be tested according to the user instruction, that is, the adaptation effect of the page to be tested on the HUAWEI MATE 7 is tested.
Optionally, after determining the page to be tested and the target model thereof to be adapted, a simulation model of the target model may be generated by using basic data pre-stored in the target model or basic data newly obtained from the network, and of course, the simulation model of each target model may also be pre-generated and stored. The simulation model can be used for displaying a simulation display screen of a target model of the mobile terminal in a computer screen, wherein the size of the simulation display screen is the same as the actual size of the target model, for example, in one embodiment of the invention, a simulation model of an iPhone X can be displayed in the computer screen, and the various sizes of the simulation model are the same as the actual size of the iPhone X.
After the simulation model of the target machine type is generated, the adaptation effect of the page to be tested on the simulation model of the target machine type can be detected. Because various sizes of the simulation model are the same as the actual sizes of the corresponding target machine types, the actual adaptation effect of the page to be tested on the target machine types can be judged according to the adaptation effect of the page to be tested on the simulation model. Specifically, in step S13, page data in the link address of the preset link may be loaded to display the page to be tested in the simulation model and detect the corresponding page adaptation effect.
In an embodiment of the present invention, loading page data in a link address of a preset link to display a page to be tested in a simulation model and detect a corresponding page adaptation effect may include:
receiving a click instruction of a user on the preset link;
according to the click command, loading page data in the link address to generate the page to be tested;
displaying a visual interface of the page to be tested in the simulation model so that a tester can perform a first adaptive test on the page to be tested;
and under the condition that the first adaptation test is qualified, performing a second adaptation test on the page to be tested by simulating touch screen operation.
That is to say, in this embodiment, after the visual interface of the page to be tested is displayed in the simulation model, whether the page to be tested is adapted to the simulation model can be visually checked by a tester, and if the page to be tested is not adapted visually, the adaptation performance of the page to be tested can be directly determined to be unqualified, and the return to the debugging of the developer is required. If the adaptive page is visually seen, touch screen operation can be performed on the mobile terminal through computer simulation, whether the expected functions can be triggered through the touch screen operation is observed, and therefore whether the adaptive performance of the page to be tested is qualified is judged.
Optionally, the specific operation mode of performing the second adaptation test on the page to be tested by simulating the touch screen operation may be various.
For example, in one embodiment of the present invention, some function buttons in the page to be tested, such as page turning, scroll bar sliding, window minimization, title bar dragging, etc., may be triggered in a simulated manner to see whether the page will have corresponding action reaction. Optionally, if several functions of the simulation test can normally respond, it may be determined that the adaptation performance of the page to be tested is qualified, and if some functions do not normally respond, it is indicated that part of the content of the page to be tested is not correctly displayed, for example, may be blocked, so it may be determined that the adaptation performance of the page to be tested is not qualified.
Taking the function test of the new activity in the live broadcast room as an example, the target model (i.e. the container of the page to be tested) to which the page to be tested needs to be adapted can be selected before the activity is triggered. Touch screen operation is simulated, and after the triggering condition of the activity is reached, the condition that whether the shade exists or not and the display is incomplete on the dynamic effect display of the activity can be seen, so that the possible problems caused by preliminary positioning can be solved.
In order to further improve the testing efficiency, in another embodiment of the present invention, in a case that the first adaptive test is qualified, performing a second adaptive test on the page to be tested by simulating a touch screen operation may include:
loading the page data into simulation models of various target machine types respectively for display to form a plurality of pages to be tested;
triggering the preset simulated touch screen operation at the first relative coordinate position in each simulation model according to a preset strategy;
and if the responses of the preset simulated touch screen operation in each simulation model are inconsistent, determining that the to-be-tested page is unqualified in adaptation.
For example, if a "next" button is set in the page to be tested P2, the coordinate range of the "next" button in the page to be tested P2 is: and the coordinates from the upper left corner (0.4 width, 0.7 height) to the lower right corner (0.6 width, 0.8 height), wherein width is the width of the page to be tested, height is the height of the page to be tested, and the values of width and height can be different for different target models. Touch screen operation can be simulated at a plurality of preset positions or random positions of the page to be tested in each simulation model respectively, if the response of the page to be tested of each simulation model to the simulated touch screen operation is the same, for example, the page to be tested turns to the next page, or no response exists, the page to be tested can be adapted to all target machine types, and if the response of the page to be tested of one simulation model is different from the response of other pages to be tested, for example, if the page to be tested in only one simulation model (for example, OPPO Reno) does not turn to the next page, the adaptation of the page to be tested to the OPPO Reno is unqualified.
The following describes in detail the page adaptation test method provided by the embodiment of the present invention with specific embodiments.
As shown in fig. 2, the method for testing page adaptation provided by the embodiment of the present invention may include:
s201, establishing connection with any mobile terminal device 1;
s202, acquiring page data of the page B1 to be tested from any mobile terminal device1, and writing the page data into a link address corresponding to a preset link 1;
s203, displaying alternative models of the pages to be tested to a user;
s204, selecting a target model M1 of the mobile terminal needing to be adapted for the page to be tested from the alternative models according to a user instruction;
s205, generating a simulation model SM1 of the target machine type according to the basic data of the target machine type;
s206, receiving a click instruction of a user on the preset link 1;
s207, loading page data in the link address according to the click command to generate the page B1 to be tested;
s208, displaying a visual interface of the page to be tested in a simulation model so as to enable a detector to perform first adaptive test on the page to be tested;
s209, the first adaptation test is qualified, and the page data are respectively loaded into simulation models of multiple target machine types M1, M2 and M3 to be displayed, so that multiple pages B1, B2 and B3 to be tested are formed;
s210, triggering preset simulated touch screen operation at a first relative coordinate position in each of the simulation models SM1, SM2 and SM3 according to a preset strategy;
s211, if the responses of the preset simulated touch screen operation in each simulation model are inconsistent, determining that the to-be-tested page is unqualified in adaptation.
In a second aspect, an embodiment of the present invention further provides a device for testing page adaptation, which is capable of compatibly testing the adaptability of a page to various models of mobile terminals, effectively simplifying a testing process, and improving testing efficiency.
As shown in fig. 3, the page adaptation testing apparatus provided by the embodiment of the present invention may include:
the writing unit 31 is configured to write page data of a page to be tested into a link address corresponding to a preset link;
the selecting unit 32 is configured to select, according to a user instruction, a target model of the mobile terminal to be adapted for the page to be tested;
and the loading unit 33 is configured to load the page data in the link address, so as to display the page to be tested in the simulation model of the target machine model and detect a corresponding page adaptation effect.
The page adaptation testing device provided by the embodiment of the invention can write the page data of the page to be tested into the link address corresponding to the preset link, select the target model of the mobile terminal to be adapted for the page to be tested according to the user instruction, load the page data in the link address, and display the page to be tested in the simulation model of the target model and detect the corresponding page adaptation effect. Therefore, the adaptation condition of the page to be tested in the mobile terminals of various types can be detected on one computer, the mobile terminals of various types do not need to be connected to the computer and download test programs, and manual test operation on the mobile terminals is not needed, so that the test flow is greatly simplified, and the test efficiency is effectively improved.
Alternatively, the writing unit 31 may include:
the first writing module is used for writing page data of a page to be tested, which is stored in advance, into a link address corresponding to the preset link;
and/or
And the second writing module is used for acquiring the page data of the page to be tested from any mobile terminal by establishing connection with any mobile terminal, and writing the page data into a link address corresponding to the preset link.
Optionally, the number of the preset links is one or more, and the preset links correspond to the pages to be tested one to one; the page data written in the link address corresponding to the preset link can be replaced and/or modified.
Optionally, the simulation model is configured to display a simulation display screen of the target model on a computer screen, where a size of the simulation display screen is the same as an actual size of the target model.
Alternatively, the loading unit 33 may include:
the receiving module is used for receiving a click instruction of a user on the preset link;
the loading module is used for loading the page data in the link address according to the click command so as to generate the page to be tested;
the display module is used for displaying the visual interface of the page to be tested in the simulation model so as to enable an inspector to perform a first adaptive test on the page to be tested;
and the testing module is used for carrying out second adaptation test on the page to be tested by simulating touch screen operation under the condition that the first adaptation test is qualified.
Optionally, the test module may include:
the loading submodule is used for respectively loading the page data into simulation models of various target machine types to be displayed so as to form a plurality of pages to be tested;
the triggering sub-module is used for triggering preset simulated touch screen operation at the first relative coordinate position in each simulation model according to a preset strategy;
and the determining submodule is used for determining that the to-be-tested page is not qualified in adaptation if the responses of the preset simulated touch screen operation in each simulation model are inconsistent.
In a third aspect, an embodiment of the present invention further provides an electronic device, which is capable of compatibly testing the adaptability of a page to various types of mobile terminals, effectively simplifying a testing process, and improving testing efficiency.
As shown in fig. 4, an electronic device provided in an embodiment of the present invention may include: the device comprises a shell 51, a processor 52, a memory 53, a circuit board 54 and a power circuit 55, wherein the circuit board 54 is arranged inside a space enclosed by the shell 51, and the processor 52 and the memory 53 are arranged on the circuit board 54; a power supply circuit 55 for supplying power to each circuit or device of the electronic apparatus; the memory 53 is used to store executable program code; the processor 52 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 53, so as to execute the page adaptation test method provided by any one of the foregoing embodiments.
For specific execution processes of the above steps by the processor 52 and further steps executed by the processor 52 by running the executable program code, reference may be made to the description of the foregoing embodiments, and details are not described herein again.
The above electronic devices exist in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
Accordingly, an embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs can be executed by one or more processors to implement any one of the page adaptation test methods provided in the foregoing embodiments, so that corresponding technical effects can also be achieved, which have been described in detail above and are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for testing page adaptation is characterized by comprising the following steps:
writing page data of a page to be tested into a link address corresponding to a preset link;
selecting a target model of the mobile terminal to be adapted for the page to be tested according to a user instruction;
and loading the page data in the link address to display the page to be tested in the simulation model of the target machine type and detect the corresponding page adaptation effect.
2. The method according to claim 1, wherein writing the page data of the page to be tested into the link address corresponding to the preset link comprises:
writing page data of a pre-stored page to be tested into a link address corresponding to the preset link;
and/or
And establishing connection with any mobile terminal, acquiring page data of the page to be tested from any mobile terminal, and writing the page data into a link address corresponding to the preset link.
3. The method according to claim 1, wherein the number of the preset links is one or more, and the preset links correspond to the pages to be tested one by one; the page data written in the link address corresponding to the preset link can be replaced and/or modified.
4. The method of claim 1, wherein the simulation model is used for displaying a simulation display screen of the target model in a computer screen, wherein the size of the simulation display screen is the same as the actual size of the target model.
5. The method according to any one of claims 1 to 4, wherein the loading the page data in the link address to display the page to be tested in the simulation model of the target model and detect the corresponding page adaptation effect comprises:
receiving a click instruction of a user on the preset link;
according to the click command, loading page data in the link address to generate the page to be tested;
displaying a visual interface of the page to be tested in the simulation model so that a tester can perform a first adaptive test on the page to be tested;
and under the condition that the first adaptation test is qualified, performing a second adaptation test on the page to be tested by simulating touch screen operation.
6. The method of claim 5, wherein performing a second fit test on the page to be tested by simulating a touch screen operation if the first fit test is qualified comprises:
loading the page data into simulation models of various target machine types respectively for display to form a plurality of pages to be tested;
triggering a preset simulated touch screen operation at a first relative coordinate position in each simulation model according to a preset strategy;
and if the responses of the preset simulated touch screen operation in each simulation model are inconsistent, determining that the to-be-tested page is unqualified in adaptation.
7. A device for testing page adaptation, comprising:
the writing unit is used for writing the page data of the page to be tested into a link address corresponding to the preset link;
the selection unit is used for selecting a target machine type of the mobile terminal to be adapted for the page to be tested according to a user instruction;
and the loading unit is used for loading the page data in the link address so as to display the page to be tested in the simulation model of the target machine type and detect the corresponding page adaptation effect.
8. The apparatus of claim 7, wherein the write unit comprises:
the first writing module is used for writing page data of a page to be tested, which is stored in advance, into a link address corresponding to the preset link;
and/or
And the second writing module is used for establishing connection with any mobile terminal, acquiring page data of the page to be tested from any mobile terminal, and writing the page data into a link address corresponding to the preset link.
9. The device according to claim 7, wherein the number of the preset links is one or more, and the preset links correspond to the pages to be tested one by one; the page data written in the link address corresponding to the preset link can be replaced and/or modified.
10. The apparatus of claim 7, wherein the simulation model is configured to display a simulation display screen of the target model on a computer screen, and wherein the simulation display screen has a size same as an actual size of the target model.
CN201910757603.9A 2019-08-15 2019-08-15 Page adaptation testing method and device, electronic equipment and storage medium Pending CN110597584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910757603.9A CN110597584A (en) 2019-08-15 2019-08-15 Page adaptation testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910757603.9A CN110597584A (en) 2019-08-15 2019-08-15 Page adaptation testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110597584A true CN110597584A (en) 2019-12-20

Family

ID=68854446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910757603.9A Pending CN110597584A (en) 2019-08-15 2019-08-15 Page adaptation testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110597584A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831566A (en) * 2020-07-17 2020-10-27 北京字节跳动网络技术有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN112463602A (en) * 2020-11-24 2021-03-09 上海哔哩哔哩科技有限公司 User interface testing method and system
CN113094287A (en) * 2021-05-12 2021-07-09 深圳市腾讯信息技术有限公司 Page compatibility detection method, device, equipment and storage medium
CN113449227A (en) * 2020-03-24 2021-09-28 北京新氧科技有限公司 Page information processing method and terminal equipment
CN114690996A (en) * 2020-12-31 2022-07-01 Oppo广东移动通信有限公司 Content display method and device and electronic equipment
CN112817669B (en) * 2020-03-09 2023-09-19 腾讯科技(深圳)有限公司 Page selection method, device and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008055302A1 (en) * 2006-11-07 2008-05-15 Seeker Wireless Pty Limited Enhanced mobile service provision
CN102053911A (en) * 2010-12-30 2011-05-11 东莞宇龙通信科技有限公司 Automated testing method and system based on Android and mobile terminal
CN102571840A (en) * 2010-12-16 2012-07-11 卓望数码技术(深圳)有限公司 Remote terminal test method, system and proxy server
CN104636255A (en) * 2015-02-14 2015-05-20 广州华多网络科技有限公司 Method and device for testing webpage application display effect
CN105183630A (en) * 2014-06-05 2015-12-23 腾讯科技(深圳)有限公司 Method and device for testing application program
US9430361B1 (en) * 2014-06-24 2016-08-30 Amazon Technologies, Inc. Transition testing model for heterogeneous client environments
CN108614775A (en) * 2018-05-03 2018-10-02 深圳Tcl新技术有限公司 Automated testing method, device, terminal device and computer readable storage medium
WO2019037406A1 (en) * 2017-08-25 2019-02-28 深圳壹账通智能科技有限公司 Test method and apparatus for h5 page in application and computer device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008055302A1 (en) * 2006-11-07 2008-05-15 Seeker Wireless Pty Limited Enhanced mobile service provision
CN102571840A (en) * 2010-12-16 2012-07-11 卓望数码技术(深圳)有限公司 Remote terminal test method, system and proxy server
CN102053911A (en) * 2010-12-30 2011-05-11 东莞宇龙通信科技有限公司 Automated testing method and system based on Android and mobile terminal
CN105183630A (en) * 2014-06-05 2015-12-23 腾讯科技(深圳)有限公司 Method and device for testing application program
US9430361B1 (en) * 2014-06-24 2016-08-30 Amazon Technologies, Inc. Transition testing model for heterogeneous client environments
CN104636255A (en) * 2015-02-14 2015-05-20 广州华多网络科技有限公司 Method and device for testing webpage application display effect
WO2019037406A1 (en) * 2017-08-25 2019-02-28 深圳壹账通智能科技有限公司 Test method and apparatus for h5 page in application and computer device
CN108614775A (en) * 2018-05-03 2018-10-02 深圳Tcl新技术有限公司 Automated testing method, device, terminal device and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817669B (en) * 2020-03-09 2023-09-19 腾讯科技(深圳)有限公司 Page selection method, device and readable storage medium
CN113449227A (en) * 2020-03-24 2021-09-28 北京新氧科技有限公司 Page information processing method and terminal equipment
CN113449227B (en) * 2020-03-24 2023-09-19 北京新氧科技有限公司 Page information processing method and terminal equipment
CN111831566A (en) * 2020-07-17 2020-10-27 北京字节跳动网络技术有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN112463602A (en) * 2020-11-24 2021-03-09 上海哔哩哔哩科技有限公司 User interface testing method and system
CN114690996A (en) * 2020-12-31 2022-07-01 Oppo广东移动通信有限公司 Content display method and device and electronic equipment
CN113094287A (en) * 2021-05-12 2021-07-09 深圳市腾讯信息技术有限公司 Page compatibility detection method, device, equipment and storage medium
CN113094287B (en) * 2021-05-12 2024-03-15 深圳市腾讯信息技术有限公司 Page compatibility detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110597584A (en) Page adaptation testing method and device, electronic equipment and storage medium
CN106557424B (en) Memory test method, tested terminal, test client and system
CN110046101B (en) Page automatic testing method and device and computer storage medium
Sahami Shirazi et al. Insights into layout patterns of mobile user interfaces by an automatic analysis of android apps
CN107193733A (en) Simulate the methods, devices and systems of Monkey tests
CN108037923B (en) Lottery service implementation method and component
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN106599680B (en) Method and device for setting application program permission and electronic equipment
CN107370804B (en) Software application processing method and device
CN103777967A (en) Page returning method and page generating method and device
CN108536594A (en) Page test method, device and storage device
CN108804918B (en) Security defense method, security defense device, electronic equipment and storage medium
CN104698919A (en) Method and device for inspecting intelligent terminal
CN105045602A (en) Method and device for constructing Hadoop application development framework and electronic device
CN108228444A (en) A kind of test method and device
CN110597720A (en) Application program testing method and device, electronic equipment and storage medium
CN110674023B (en) Interface testing method and device
CN108845955B (en) Chinese input method test method and device and electronic equipment
CN108182030B (en) Player control hiding method and device
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN109995931B (en) Method and device for realizing automatic calling
CN110580221A (en) Control testing method and device, storage medium and electronic equipment
CN106844186B (en) Offline test method of application and terminal equipment
CN108984386A (en) Test method, device and the storage medium of application program search
CN110879738B (en) Operation step display method and device 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
TA01 Transfer of patent application right

Effective date of registration: 20210601

Address after: 25, 5th floor, shuangjingfang office building, 3 frisha street, Singapore

Applicant after: Zhuomi Private Ltd.

Address before: Room 1101, Santai Commercial Building, 139 Connaught Road, Hong Kong, China

Applicant before: HONG KONG LIVE.ME Corp.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220

RJ01 Rejection of invention patent application after publication