CN108536594B - Page testing method and device and storage equipment - Google Patents

Page testing method and device and storage equipment Download PDF

Info

Publication number
CN108536594B
CN108536594B CN201810284789.6A CN201810284789A CN108536594B CN 108536594 B CN108536594 B CN 108536594B CN 201810284789 A CN201810284789 A CN 201810284789A CN 108536594 B CN108536594 B CN 108536594B
Authority
CN
China
Prior art keywords
page
test
instruction
browser kernel
customized browser
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.)
Active
Application number
CN201810284789.6A
Other languages
Chinese (zh)
Other versions
CN108536594A (en
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.)
Tencent Technology Wuhan Co Ltd
Original Assignee
Tencent Technology Wuhan Co 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 Tencent Technology Wuhan Co Ltd filed Critical Tencent Technology Wuhan Co Ltd
Priority to CN201810284789.6A priority Critical patent/CN108536594B/en
Publication of CN108536594A publication Critical patent/CN108536594A/en
Application granted granted Critical
Publication of CN108536594B publication Critical patent/CN108536594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/3684Test management for test design, e.g. generating new test cases
    • 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

Abstract

The embodiment of the invention provides a page testing method, a page testing device and storage equipment, wherein the page testing method comprises the following steps: receiving a page test instruction broadcasted by a computer terminal; generating a test script corresponding to the page test instruction; injecting the test script into a page view of a customized browser kernel, and utilizing the test script to perform test operation on a test page displayed by the page view of the customized browser kernel; and generating a test report and sending the test report to the computer terminal. The embodiment of the invention can automatically test the page acquired by the customized browser kernel, thereby saving the labor cost and improving the test efficiency.

Description

Page testing method and device and storage equipment
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a page testing method and device and storage equipment.
Background
The Android system is a semi-open source operating system, mainly used for mobile devices, developed and led by Google (Google) and the alliance of open handheld devices. In order to avoid the defects, developers develop other browser kernels, such as an X5 kernel, to replace the native browser kernel of the android system. The X5 kernel provides web page display capability for applications using the kernel's page view (WebView), which is a control in the android system for displaying web pages within an application.
The existing automatic page test schemes are designed for the kernel of the native browser, can only automatically test the page of the application program using the kernel of the native browser, and cannot help the page of the application program which does not use the kernel of the native browser. That is, the current page automatic test scheme can only test the page acquired by the native browser kernel, but cannot test the page acquired by the non-native browser kernel, and the page acquired by the non-native browser kernel usually needs to be manually tested, so that the test cost is high and the test efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a page testing method, a page testing device and storage equipment, which can be used for automatically testing a page acquired by a customized browser kernel.
The page testing method provided by the embodiment of the invention comprises the following steps:
receiving a page test instruction broadcasted by a computer terminal;
generating a test script corresponding to the page test instruction;
injecting the test script into a page view of a customized browser kernel, and utilizing the test script to perform test operation on a test page displayed by the page view of the customized browser kernel;
and generating a test report and sending the test report to the computer terminal.
The page testing device provided by the embodiment of the invention comprises:
the receiving unit is used for receiving a page test instruction broadcasted by the computer terminal;
the generating unit is used for generating a test script corresponding to the page test instruction;
the test unit is used for injecting the test script into a page view of a customized browser kernel and carrying out test operation on the test page by using the test script displayed by the page view of the customized browser kernel;
and the report unit is used for generating a test report and sending the test report to the computer terminal.
The embodiment of the invention also provides a storage device, wherein the storage device is used for storing a plurality of instructions, and the instructions are suitable for being loaded by the processor and executing the page testing method provided by the embodiment of the invention.
In the embodiment of the invention, when a page test instruction broadcasted by a computer terminal is received, a test script corresponding to the page test instruction is generated, the test script is injected into a page view of a customized browser kernel, the test script is utilized to carry out test operation on a test page displayed by the page view of the customized browser kernel, and finally, a test report is generated and sent to the computer terminal. In the embodiment of the invention, the test script is injected into the page view of the customized browser kernel by customizing the script injection capability of the page view of the browser kernel so as to execute the corresponding test instruction by using the test script and realize the corresponding test operation, thereby realizing the automatic test of the page acquired by the customized browser kernel, saving the labor cost and improving the test efficiency.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a page testing system according to an embodiment of the present invention.
Fig. 2a is a schematic flowchart of a page testing method according to an embodiment of the present invention.
Fig. 2b is another schematic flow chart of the page testing method according to the embodiment of the present invention.
Fig. 3a is a schematic flowchart of a page testing method according to an embodiment of the present invention.
Fig. 3b is a schematic flow chart of a page testing method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a page testing apparatus according to an embodiment of the present invention.
Fig. 5 is another schematic structural diagram of the page testing apparatus according to the embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mobile device according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a page testing system according to an embodiment of the present invention, where the page testing system includes a page testing apparatus, and the page testing apparatus may be specifically integrated in a mobile device (e.g., a mobile phone). Specifically, in the embodiment of the present invention, a system kernel of the mobile device may be switched from a native browser kernel to a customized browser kernel in advance, where the customized browser kernel includes, for example: the X5 kernel is used for enabling a tester to broadcast a page test instruction through a computer end when a page acquired by the customized browser kernel needs to be tested, enabling the mobile device to receive the page test instruction broadcasted by the computer end, then generating a test script (for example, java script) corresponding to the page test instruction, injecting the generated test script into a page view of the customized browser kernel, enabling the customized browser kernel to display the test page by using the page view, and utilizing the test script to perform test operation on the test page displayed by the page view of the customized browser kernel, wherein the test operation includes acquiring certain page elements in the test page, simulating user operation and the like on the certain test elements, and after the test is completed, generating a test report and sending the test report to the computer end.
In addition, the page test system may further include a page (web) server and a Research and Development Management (RDM) server, where the page server is configured to feed back information such as a test page, an operation return value, and an object state to the customized browser kernel according to a request and an operation of the customized browser kernel in the mobile device during a test process, and the RDM server is configured to provide an installation package of the customized browser kernel to the mobile device.
It should be noted that the scenario diagram of the page testing system shown in fig. 1 is only an example, and the page testing system and the scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
The details will be described below separately.
In this embodiment, a page testing method provided in the embodiment of the present invention will be described from the perspective of a page testing apparatus, where the page testing apparatus may be an automatic testing framework, and the automatic testing framework may provide a series of Application Programming Interfaces (APIs) for testing to the outside, and the automatic testing framework may be integrated in a mobile device, as shown in fig. 2a, the page testing method of the embodiment includes the following steps:
step 201, receiving a page test instruction broadcasted by a computer terminal.
The Computer terminal, also called a Personal Computer (PC), can be controlled and operated by the tester.
In a specific implementation, before step 201 is executed, a tester may install an Android Debug Bridge (Android Debug Bridge, adb) tool in advance on a computer end, then establish a connection (e.g., a data line connection, a wireless fidelity WI-FI connection) between the computer end and a mobile device, and invoke the adb tool through a command prompt (cmd.
The tester can pre-design a test case according to the test requirement, the test case comprises a series of test tasks (namely test instructions), and all the test tasks are put into a test task queue and are executed in sequence during testing.
Before the test is started, a tester can send an Android installation Package (Android Package, apk) installation instruction to the mobile device through a computer terminal to instruct the mobile device to install the customized browser kernel, after the mobile device receives the installation instruction, the mobile device can obtain the installation Package of the customized browser kernel from an RDM server (a developer can store the developed installation packages of various browser kernels in the RDM server), then the customized browser kernel is locally installed by using a host local installation kernel mode or a three-way sharing scheme, namely the customized browser kernel is integrated into an automatic test frame, and after the installation is completed, the system kernel is switched from a native browser kernel to the customized browser kernel.
The method includes the steps that a browser kernel is customized, for example, an X5 kernel, an X5 kernel is a set of solution for a page view (WebView) based on an Android system provided by a QQ browser team, can be used for replacing a native browser kernel of the Android system, is a plug-in kernel, and can solve the problems of safety, performance and other defects brought by the native browser kernel of the Android system, at present, the X5 kernel is widely applied to applications such as WeChat, cell phone QQ, QQ space, Kyoto and Tengcin video, the application mentioned in this embodiment can be an Android application, and a system of a mobile device is an Android system.
In the android system, WebView can exist as an independent plug-in, can be stripped from a system layer, and has logic of independent upgrading and loading. And in the using process of the WebView of the android system, updating and upgrading a browser kernel built in the system only by updating the form of the WebView installation package.
After the switching is successful, the mobile device may feed back the switching status to the computer side through a preset extension interface (e.g., an extension interface of the software development kit sdk). For example, a handover success may return true and a handover failure may return false. And if the state fed back by the mobile equipment is successful, starting to execute a test process, and broadcasting various test instructions to the mobile equipment by a tester through the installed adb tool at the computer end. The mobile device can register a broadcast listener to listen and receive various test instructions broadcast by the computer.
Because the page of the application program acquired by the customized browser kernel needs to be tested, the test page needs to be acquired by the customized browser kernel at first, that is, before receiving a page test instruction broadcasted by a computer, the method further comprises the following steps:
receiving an access test instruction broadcasted by a computer terminal;
and acquiring the test page from a page server through the customized browser kernel.
After the tester knows that the customized browser kernel is successfully installed, the tester may broadcast an access test instruction at the computer end through an adb tool to instruct the mobile device to acquire a test page by using the customized browser kernel, where the access test instruction may include a Uniform Resource Locator (URL) of the test page, the mobile device receives the access test instruction broadcast by the computer end, and acquires a corresponding test page from the web server by using the customized browser kernel according to the URL carried in the access test instruction. The test page obtained by the customized browser kernel from the web server is usually a HyperText Markup Language (HTML) file of the test page, the customized browser kernel can parse the HTML file to generate the test page, and the generated test page can be rendered and displayed by a page view of the customized browser kernel.
After the test page is obtained, a tester can broadcast a page test instruction through an adb tool at the computer end, and the mobile device receives the page test instruction broadcast by the computer end.
In this embodiment, system broadcast is used as an entry of the test scheme, so that a strong dependence of an automated test framework on application program packaging can be avoided, and even if the application program is an online version, as long as the application program integrates a preset expansion interface, a browser kernel used by the application program can be dynamically upgraded through the preset expansion interface. When the version of the application program is upgraded or changed, the native browser kernel is not required to be repackaged, and only the native browser kernel is required to be updated to the customized browser kernel in a plug-in manner, so that the automatic kernel quality monitoring can be realized, and the problems of numerous application programs, inconsistent update rhythm of the version of the application program and the like can be solved.
And 202, generating a test script corresponding to the page test instruction.
In this embodiment, when the mobile device receives a test instruction sent by a computer, the type of the instruction may be determined, if the test instruction is an access test instruction, the test page is obtained from a page server by customizing a browser kernel, and if the test instruction is a page test instruction, a test script corresponding to the page test instruction is generated.
In a specific implementation, the page test instruction may include a page element obtaining instruction and a page element operating instruction, where the page element includes, for example, an input box, a button, a scroll bar, a control, and the like of a page. Page element fetch instructions, such as: searching for specified page elements, acquiring a page element list and the like; page element operation instructions, such as: inputting characters in an input box, clicking a button, acquiring a page focus, switching the focus and the like.
Different test scripts can be generated according to different page test instructions, and the generation of the test scripts can be realized by calling a script generator, wherein the script generator comprises the following steps: a JavaScript script generator, an Active Server Pages (ASP) script generator, a Structured Query Language (SQL) script generator, etc., which can implement different test operations through different test scripts.
Step 203, injecting the test script into the page view of the customized browser kernel, and performing a test operation on the test page displayed by the page view of the customized browser kernel by using the test script.
After the test script is injected into the test page, the corresponding automatic test operation is executed on the test page according to the method provided by the test script.
For example, after the test script corresponding to the page element obtaining instruction is injected into the test page, the test script may automatically obtain the specified page element from the test page displayed by the page view of the customized browser kernel. The specific obtaining method may be carried in the test script, for example, the obtaining method may be obtained according to element attributes, for example: text content attribute, class name attribute, ID attribute, Xpath attribute of XML, etc.
Specifically, the test script may traverse each page element of the test page, determine various attributes of the element, if the page element has any of the following attributes: and recording the element according to the text content attribute, the class name attribute, the ID attribute and the XPath attribute, then entering a next page element, and skipping page elements without any attribute until all page elements are judged to be finished. Through the page element obtaining instruction, the specified page element can be obtained, and a page element list can also be obtained.
For another example, after the test script corresponding to the page element operation instruction is injected into the test page, the test script automatically simulates user operation on the specified page element to test the function of the specified page element. The simulated user operations include, but are not limited to: the method comprises the steps of simulating clicking operation of a user, simulating input operation of the user, simulating operation of the user for acquiring a page focus, simulating user switching of the page focus and the like.
After the generated test script is injected into the test page, a series of automatic test operations can be performed on the test page, so that the test process of the invention does not need excessive user intervention on the mobile equipment side, and the labor cost is saved.
The mobile device may execute each test task in the test task queue in turn until all test tasks in the test task queue are executed.
In the testing process, the customized browser kernel can interact with the page server by using an externally provided API, for example, a page acquisition request, a page operation request, a page jump request, a login request and the like are sent, the page server can provide a corresponding page, an operation return value, an object state and the like for the customized browser kernel according to the request of the customized browser kernel, and the mobile device can judge the execution state of the corresponding request according to the information returned by the page server and record the execution state in a log.
And step 204, generating a test report and sending the test report to the computer terminal.
Specifically, the mobile device may generate a test report according to the recorded log, or directly output the log to a designated file to form the test report, and a tester may know the test condition of the page by viewing the test report.
In a specific embodiment, the page testing method executed by the mobile device can be further illustrated in fig. 2b as follows:
after the mobile device switches the system kernel from the native browser kernel to the customized browser kernel, the mobile device can initialize the page view of the customized browser kernel, then register a broadcast monitor, judge the type of a test instruction when monitoring the test instruction sent by a computer end, and acquire a test page from a page server through the customized browser kernel if the test instruction is an access test instruction; and if the test command is a page test command, generating a corresponding test script, injecting the generated test script into a page view of a customized browser kernel, and testing a test page displayed by the page view of the customized browser kernel by using the test script. In the testing process, the customized browser kernel can interact with the page server by using an externally provided API (application programming interface), for example, a page acquisition request, a page operation request, a page jump request, a login request and the like are sent, the page server can provide a corresponding page, an operation return value, an object state and the like for the customized browser kernel according to the request of the customized browser kernel, the mobile device can judge the execution state of the corresponding request according to information returned by the page server, record the execution state in a log, and finally output an automatic testing result according to the recorded log.
In this embodiment, when a page test instruction broadcasted by a computer terminal is received, a test script corresponding to the page test instruction is generated, the test script is injected into a page view of a customized browser kernel, a test operation is performed on a test page displayed by the page view of the customized browser kernel by using the test script, and finally, a test report is generated and sent to the computer terminal. In other words, in the embodiment, the test script is injected into the page view of the customized browser kernel through the script injection capability of the page view of the customized browser kernel, and the corresponding test instruction is executed by using the test script to realize the corresponding test operation, so that the automatic test of the page acquired by the customized browser kernel is realized, the labor cost is saved, the test efficiency is improved, the product quality can be effectively monitored, and the product problem can be conveniently found in time.
As shown in fig. 3a, the method described in the above embodiment, which will be further described in detail in this embodiment, includes the following steps:
step 301, switching the system kernel from the native browser kernel to the customized browser kernel.
A tester can send an Android installation Package (apk) installation instruction to a mobile device through a computer terminal to indicate the mobile device to install a customized browser kernel, after the mobile device receives the installation instruction, the mobile device can obtain the installation Package of the customized browser kernel from an RDM server (developers can store the installation packages of various developed browser kernels in the RDM server), then the kernel is locally installed by using a host, or a three-party sharing scheme is used, the customized browser kernel is locally installed, namely the customized browser kernel is integrated into an automatic test frame, and after the installation is completed, a system kernel is switched from a native browser kernel to the customized browser kernel.
The method includes the steps that a browser kernel is customized, for example, an X5 kernel is customized, the X5 kernel is a set of WebView solution based on an Android system provided by a QQ browser team, can be used for replacing a native browser kernel of the Android system, is a plug-in kernel, and can solve the problems of safety, performance and other defects brought by the native browser kernel of the Android system, at present, the X5 kernel is widely applied to applications such as WeChat, cell phone QQ, QQ space, Jingdong, Tencent video and the like, the application mentioned in this embodiment may be an Android application, and a system of a mobile device is an Android system.
In the android system, WebView can exist as an independent plug-in, can be stripped from a system layer, and has logic of independent upgrading and loading. And in the using process of the WebView of the android system, updating and upgrading a browser kernel built in the system only by updating the form of the WebView installation package.
Step 302, register the broadcast listener.
After the switching is successful, the mobile device may feed back the switching status to the computer side through a preset extension interface (e.g., an extension interface of the software development kit sdk). For example, a handover success may return true and a handover failure may return false. If the state fed back by the mobile equipment is successful, the test process is started, and a tester can broadcast various test instructions to the mobile equipment through the adb tool at the computer end. The mobile device can register a broadcast listener to listen and receive various test instructions broadcast by the computer.
Step 303, receiving an access test instruction broadcasted by the computer terminal.
The access test instruction is used for instructing the mobile device to acquire a test page by using the customized browser core, the access test instruction may include a Uniform Resource Locator (URL) of the test page, the mobile device receives the access test instruction broadcasted by the computer, and the customized browser core is used for acquiring a corresponding test page from the web server according to the URL carried in the access test instruction. The test page obtained by the customized browser kernel from the web server is usually a HyperText Markup Language (HTML) file of the test page, the customized browser kernel can parse the HTML file to generate the test page, and the generated test page can be rendered and displayed by a page view of the customized browser kernel.
And 304, acquiring a test page from the page server through the customized browser kernel.
Step 305, receiving a page element acquisition instruction broadcasted by the computer.
Page elements such as input boxes, buttons, scroll bars, controls, etc. of a page. Page element fetch instructions, such as: searching the appointed page elements, and acquiring a page element list and the like.
And step 306, generating a test script corresponding to the page element acquisition instruction.
The generation of the test script may be implemented by invoking a script generator, such as: a JavaScript script generator, an Active Server Pages (ASP) script generator, a Structured Query Language (SQL) script generator, and the like.
Step 307, injecting the test script corresponding to the page element obtaining instruction into the page view of the customized browser kernel, and obtaining the specified page element from the test page displayed in the page view of the customized browser kernel by using the test script corresponding to the page element obtaining instruction.
For example, after the test script corresponding to the page element obtaining instruction is injected into the test page, the test script may automatically obtain the specified page element from the test page displayed by the page view of the customized browser kernel. The specific obtaining method may be carried in the test script, for example, the obtaining method may be obtained according to element attributes, for example: text content attribute, class name attribute, ID attribute, Xpath attribute of XML, etc.
Specifically, the test script may traverse each page element of the test page, determine various attributes of the element, if the page element has any of the following attributes: and recording the element according to the text content attribute, the class name attribute, the ID attribute and the XPath attribute, then entering a next page element, and skipping page elements without any attribute until all page elements are judged to be finished. Through the page element obtaining instruction, the specified page element can be obtained, and a page element list can also be obtained.
Step 308, receiving a page element operation instruction broadcasted by the computer.
Page element operation instructions, such as: inputting characters in an input box, clicking a button, acquiring a page focus, switching the focus and the like.
And 309, generating a test script corresponding to the page element operation instruction.
And 310, injecting a test script corresponding to the page element operation instruction into a page view of a customized browser kernel, and simulating user operation on the specified page element displayed in the page view of the customized browser kernel by using the test script corresponding to the page element operation instruction.
For example, after the test script corresponding to the page element operation instruction is injected into the test page, the test script automatically simulates user operation on the specified page element to test the function of the specified page element. The simulated user operations include, but are not limited to: the method comprises the steps of simulating clicking operation of a user, simulating input operation of the user, simulating operation of the user for acquiring a page focus, simulating user switching of the page focus and the like.
In a specific example, for example, the test page is a login page of the application, the simulation user operation may simulate, in a login interface of the application, that the user inputs a correct and an incorrect user name and password, respectively, and then click a login button to see whether login is possible and whether an error prompt is provided.
In the testing process, the customized browser kernel can interact with the page server by using an externally provided API, for example, a page acquisition request, a page operation request, a page jump request, a login request and the like are sent, the page server can provide a corresponding page, an operation return value, an object state and the like for the customized browser kernel according to the request of the customized browser kernel, and the mobile device can judge the execution state of the corresponding request according to the information returned by the page server and record the execution state in a log.
And 311, generating a test report and sending the test report to the computer terminal.
Specifically, the mobile device may generate a test report according to the recorded log, or directly output the log to a designated file to form the test report, and a tester may know the test condition of the page by viewing the test report.
In this embodiment, when a page test instruction broadcasted by a computer is received, a test script corresponding to the page test instruction is generated, the test script is injected into a page view of a customized browser kernel, a test operation is performed on a test page displayed by the page view of the customized browser kernel by using the test script, and finally, a test report is generated and sent to the computer. In other words, in the embodiment, the test script is injected into the page view of the customized browser kernel by customizing the script injection capability of the page view of the browser kernel, and the corresponding test instruction is executed by using the test script to realize the corresponding test operation, so that the automatic test of the page acquired by the customized browser kernel is realized, the labor cost is saved, the test efficiency is improved, the product quality can be effectively monitored, and the product problem can be conveniently found in time.
The page testing method provided by the embodiment of the present invention is described above from the mobile device side, and the page testing method provided by the embodiment of the present invention is described below with reference to the computer side, and please refer to fig. 3b, which specifically includes the following steps:
the tester can control the mobile equipment to install the customized browser kernel at the computer end, and after the installation is finished, the mobile equipment side switches the system kernel from the native browser kernel to the customized browser kernel so as to call the customized browser kernel; after successful calling, a tester broadcasts a test instruction at the computer end, wherein the test instruction comprises an access test instruction, a page element acquisition instruction, a page element operation instruction, other optional test scripts and the like.
After receiving the test instruction, the mobile equipment judges the type of the test instruction, if the test instruction is an access test instruction, a test page is obtained from a page server through the customized browser kernel, and the obtained test page is displayed through a page view of the customized browser kernel; if the test script is a page element acquisition instruction and a page element operation instruction, generating a corresponding test script, and injecting the generated test script into the page view of the customized browser kernel, so as to perform corresponding operations on the test page displayed by the page view of the customized browser kernel by using the test script, such as: after the test script corresponding to the page element obtaining instruction is injected into the test page, the test script may automatically obtain the specified page element from the test page displayed by the page view of the customized browser kernel, and the specific obtaining method may be carried in the test script, for example, the specific obtaining method may be obtained according to an element attribute, for example: text content attribute, class name attribute, ID attribute, Xpath attribute of extensible markup language, etc.; such as: after the test script corresponding to the page element operation instruction is injected into the test page, the test script can automatically simulate user operation on the specified page element so as to test the function of the specified page element. The simulated user operations include, but are not limited to: simulating the clicking operation of a user, the input operation of the user, the operation of acquiring a page focus by the user, the switching of the page focus by the user and the like; if any other test script is executed, directly injecting other test scripts into the page view of the customized browser kernel; in the testing process, the mobile equipment can record the test log, and after the testing is finished, the mobile equipment can generate a test report according to the recorded test log and send the test report to the computer terminal.
In order to better implement the above method, an embodiment of the present invention further provides a page testing apparatus, as shown in fig. 4, the apparatus of the present embodiment includes a receiving unit 401, a generating unit 402, a testing unit 403, and a reporting unit 404, as follows:
a receiving unit 401, configured to receive a page test instruction broadcasted by a computer;
a generating unit 402, configured to generate a test script corresponding to the page test instruction;
the testing unit 403 is configured to inject the test script into a page view of a customized browser core, and perform a test operation on a test page displayed in the page view of the customized browser core by using the test script;
and the report unit 404 is configured to generate a test report and send the test report to the computer.
In one embodiment, as shown in fig. 5, the apparatus further comprises:
a switching unit 405, configured to switch the system kernel from the native browser kernel to the customized browser kernel.
In an embodiment, the receiving unit 401 is further configured to receive an access test instruction broadcast by the computer;
the device further comprises:
an obtaining unit 406, configured to obtain the test page from a page server through the customized browser kernel.
In one embodiment, the page test instruction comprises a page element fetch instruction;
the test unit 403 is specifically configured to obtain, by using a test script corresponding to the page test instruction, a specified page element from a test page displayed in the page view of the customized browser kernel.
In an embodiment, the testing unit 403 is specifically configured to, by using a testing script corresponding to the page element obtaining instruction, obtain, according to a text content attribute, a class name attribute, an ID attribute, or an Xpath attribute, a specified page element from a testing page displayed in a page view of the customized browser kernel.
In one embodiment, the page test instruction further comprises a page element operation instruction;
the test unit 403 is further configured to simulate, by using a test script corresponding to the page element test instruction, a user operation on a specified page element displayed in the page view of the customized browser kernel.
In one embodiment, as shown in fig. 5, the apparatus further comprises:
a registration unit 407, configured to register a broadcast listener;
the receiving unit 401 is specifically configured to receive, by using the broadcast listener, a page test instruction broadcast by the computer terminal.
It should be noted that, when the page testing apparatus provided in the foregoing embodiment implements the page testing function, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the page testing device and the page testing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
In this embodiment, when the receiving unit receives a page test instruction broadcasted by the computer, the generating unit generates a test script corresponding to the page test instruction, the test unit injects the test script into a page view of a customized browser kernel, the test script is used to perform a test operation on a test page displayed by the page view of the customized browser kernel, and finally, the reporting unit generates a test report and sends the test report to the computer. In other words, in the embodiment, the test script is injected into the page view of the customized browser kernel by customizing the script injection capability of the page view of the browser kernel, so that the test script is used for executing a corresponding test instruction, and a corresponding test operation is realized, thereby realizing the automatic test of the page acquired by the customized browser kernel, saving the labor cost and improving the test efficiency.
Accordingly, the mobile device having the page testing apparatus described in the embodiment of the present invention is further provided, and as shown in fig. 6, the mobile device may include a Radio Frequency (RF) circuit 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, an audio circuit 506, a Wireless Fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the mobile device configuration shown in fig. 6 does not constitute a limitation of the mobile device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station. In general, RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 501 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 504 may be used to display information input by or provided to the user as well as various graphical user interfaces of the mobile device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 504 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The mobile device may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the mobile device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile device, detailed descriptions thereof are omitted.
Audio circuitry 506, a speaker, and a microphone may provide an audio interface between the user and the mobile device. The audio circuit 506 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted into audio data, which is processed by the audio data output processor 508 and then sent to, for example, another mobile device via the RF circuit 501, or output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of a peripheral headset with the mobile device.
WiFi belongs to short distance wireless transmission technology, and the mobile device can help the user send and receive e-mail, browse web page and access streaming media etc. through WiFi module 507, which provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the mobile device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is the control center of the mobile device, connects various parts of the entire mobile device using various interfaces and lines, performs various functions of the mobile device and processes data by running or executing software programs and/or modules stored in the memory 502, and calling data stored in the memory 502, thereby performing overall monitoring of the mobile device. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The mobile device also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 508 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile device may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 508 in the mobile device loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 508 runs the application programs stored in the memory 502, thereby implementing various functions:
receiving a page test instruction broadcasted by a computer terminal;
generating a test script corresponding to the page test instruction;
injecting the test script into a page view of a customized browser kernel, and carrying out test operation on the test page by using the test script displayed by the page view of the customized browser kernel;
and generating a test report and sending the test report to the computer terminal.
In some embodiments, before receiving the page test command broadcasted by the computer, the processor 508 is further configured to perform the following steps:
and switching the system kernel from the native browser kernel to the customized browser kernel.
In some embodiments, after updating the native browser kernel of the application to the custom browser kernel, processor 508 is further configured to perform the following steps:
receiving an access test instruction broadcasted by the computer terminal;
and acquiring the test page from a page server through the customized browser kernel.
In some embodiments, the page test instruction includes a page element obtaining instruction, and when the test script is used to perform a test operation on a test page displayed in a page view of the customized browser kernel, the processor 508 is specifically configured to perform the following steps:
and acquiring the specified page element from the test page displayed by the page view of the customized browser kernel by using the test script corresponding to the page element acquisition instruction.
In some embodiments, when the specified page element is obtained from the test page displayed in the page view of the customized browser kernel by using the test script corresponding to the page element obtaining instruction, the processor 508 is specifically configured to perform the following steps:
and acquiring the specified page element from the test page displayed by the page view of the customized browser kernel by using the test script corresponding to the page element acquisition instruction according to a text content attribute, a class name attribute, an identification ID attribute or an extensible markup language path language (Xpath) attribute.
In some embodiments, the page test instruction further includes a page element operation instruction, and when the test script is used to perform a test operation on a test page displayed by the page view of the customized browser kernel, the processor 508 is specifically configured to perform the following steps:
and simulating user operation on the specified page element by using the test script corresponding to the page element operation instruction.
In some embodiments, before receiving the page test command broadcasted by the computer, the processor 508 is further configured to perform the following steps:
registering a broadcast listener;
the processor 508 receives the page test command broadcasted by the computer end by using the broadcast listener.
The mobile device of this embodiment, upon receiving a page test instruction broadcasted by a computer, generates a test script corresponding to the page test instruction, injects the test script into a page view of a customized browser kernel, performs a test operation on a test page displayed by the page view of the customized browser kernel by using the test script, and finally generates a test report and sends the test report to the computer. In the embodiment of the invention, the script injection capability of the page view of the browser kernel is customized, the test script is injected into the page view of the browser kernel, and the test script is used for executing the corresponding test instruction to realize the corresponding test operation, so that the automatic test of the page acquired by the browser kernel is realized, the labor cost is saved, and the test efficiency is improved.
An embodiment of the present application further provides a storage device, where the storage device stores a computer program, and when the computer program runs on a computer, the computer is enabled to execute the web page picture viewing method in any of the above embodiments, for example: receiving a page test instruction broadcasted by a computer terminal; generating a test script corresponding to the page test instruction; injecting the test script into a page view of a customized browser kernel, and carrying out test operation on a test page displayed by the page view of the customized browser kernel by using the test script; and generating a test report and sending the test report to the computer terminal.
In the embodiment of the present application, the storage device may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the page testing method of the embodiment of the present application, a person having ordinary skill in the art may understand that all or part of the process of implementing the page testing method of the embodiment of the present application may be implemented by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the computer program may include the process of the embodiment of the page testing method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the page testing device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The page testing method, the page testing device and the storage device provided by the embodiment of the application are introduced in detail, a specific example is applied in the text to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A page testing method is characterized by comprising the following steps:
switching a system kernel from a native browser kernel to a customized browser kernel, wherein the customized browser kernel is an independent plug-in kernel used for replacing the native browser kernel, and the plug-in kernel has independent upgrading and loading logic;
monitoring and receiving a test instruction broadcasted by a computer terminal through a registered broadcast monitor;
judging the type of the test instruction;
when the type of the test instruction is an access test instruction, the customized browser kernel acquires a hypertext markup language file corresponding to a test page from a page server;
the customized browser kernel analyzes based on the hypertext markup language to obtain analysis information;
rendering the analysis information by the page view of the customized browser kernel to obtain a test page;
when the type of the test instruction is a page test instruction, calling a script generator to generate a test script corresponding to the page test instruction;
injecting the test script into a page view of a customized browser kernel, and utilizing the test script to perform test operation on the test page displayed by the page view of the customized browser kernel;
and generating a test report and sending the test report to the computer terminal.
2. The page testing method according to claim 1, wherein the page testing instruction includes a page element obtaining instruction, and the performing a testing operation on the test page displayed by the page view of the customized browser kernel by using the test script includes:
and acquiring the specified page element from the test page displayed by the page view of the customized browser kernel by using the test script corresponding to the page element acquisition instruction.
3. The method for testing the page according to claim 2, wherein the obtaining the specified page element from the test page displayed by the page view of the customized browser kernel by using the test script corresponding to the page element obtaining instruction comprises:
and acquiring the specified page element from the test page displayed by the page view of the customized browser kernel by using the test script corresponding to the page element acquisition instruction according to a text content attribute, a class name attribute, an identification ID attribute or an extensible markup language path language (Xpath) attribute.
4. The page testing method according to claim 2 or 3, wherein the page testing instruction further includes a page element operation instruction, and the testing operation is performed on the test page displayed by the page view of the customized browser kernel by using the test script, further comprising:
and simulating user operation on the specified page elements displayed by the page view of the customized browser kernel by using the test script corresponding to the page element operation instruction.
5. The page testing method according to claim 1, before receiving the page testing command broadcasted from the computer, further comprising:
a broadcast listener is registered.
6. A page testing apparatus, comprising:
the switching unit is used for switching the system kernel from the native browser kernel to the customized browser kernel;
the receiving unit is used for receiving a test instruction broadcasted by the computer end;
the judging unit is used for judging the type of the test instruction;
the obtaining unit is used for obtaining a hypertext markup language file corresponding to a test page from a page server through the customized browser kernel when the type of the test instruction is an access test instruction;
the analysis unit is used for analyzing the customized browser kernel based on the hypertext markup language to obtain analysis information;
the rendering unit is used for rendering the analysis information by using the page view of the customized browser kernel to obtain a test page;
the calling unit is used for calling the script generator to generate a test script corresponding to the page test instruction when the type of the test instruction is the page test instruction;
the test unit is used for injecting the test script into a page view of a customized browser kernel and carrying out test operation on a test page displayed by the page view of the customized browser kernel by using the test script;
and the report unit is used for generating a test report and sending the test report to the computer terminal.
7. The page testing apparatus of claim 6, wherein the page test instruction comprises a page element fetch instruction;
the test unit is specifically configured to obtain, by using a test script corresponding to the page test instruction, a specified page element from a test page displayed in a page view of the customized browser kernel.
8. The page testing apparatus according to claim 7,
the test unit is specifically configured to obtain, by using a test script corresponding to the page element obtaining instruction, a specified page element from a test page displayed in a page view of the customized browser kernel according to a text content attribute, a class name attribute, an identifier ID attribute, or an extensible markup language path attribute.
9. The page testing apparatus according to claim 7 or 8, wherein said page test instruction further comprises a page element operation instruction;
the test unit is further configured to simulate a user operation on a specified page element displayed in the page view of the customized browser kernel by using a test script corresponding to the page element test instruction.
10. The page testing apparatus according to claim 6, wherein before receiving the page testing command broadcasted from the computer, the apparatus further comprises:
and the registration unit is used for registering the broadcast listener.
11. A memory device for storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of any of claims 1 to 5.
CN201810284789.6A 2018-04-02 2018-04-02 Page testing method and device and storage equipment Active CN108536594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810284789.6A CN108536594B (en) 2018-04-02 2018-04-02 Page testing method and device and storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810284789.6A CN108536594B (en) 2018-04-02 2018-04-02 Page testing method and device and storage equipment

Publications (2)

Publication Number Publication Date
CN108536594A CN108536594A (en) 2018-09-14
CN108536594B true CN108536594B (en) 2022-03-08

Family

ID=63482869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810284789.6A Active CN108536594B (en) 2018-04-02 2018-04-02 Page testing method and device and storage equipment

Country Status (1)

Country Link
CN (1) CN108536594B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815156A (en) * 2019-02-28 2019-05-28 北京百度网讯科技有限公司 Displaying test method, device, equipment and the storage medium of visual element in the page
CN110069399A (en) * 2019-03-15 2019-07-30 平安普惠企业管理有限公司 HTML5 packet installation testing method, device, computer equipment and storage medium
CN110704270A (en) * 2019-08-20 2020-01-17 北京奇艺世纪科技有限公司 Zero-buried point data acquisition method and device, electronic equipment and storage medium
CN110750463B (en) * 2019-10-29 2023-06-23 百度在线网络技术(北京)有限公司 Method, device, system, equipment and medium for testing small program
CN112765008A (en) * 2019-11-01 2021-05-07 腾讯科技(深圳)有限公司 Functional application testing method, device, equipment and storage medium
CN111597110B (en) * 2020-04-27 2024-02-27 五八有限公司 Page test method and device, electronic equipment and storage medium
CN112685269A (en) * 2020-12-21 2021-04-20 北京达佳互联信息技术有限公司 Data acquisition method and device, electronic equipment and storage medium
CN112631908A (en) * 2020-12-21 2021-04-09 深圳壹账通智能科技有限公司 Browser page testing method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631942A (en) * 2013-12-10 2014-03-12 贝壳网际(北京)安全技术有限公司 Method and device for accessing webpage and browser
CN104699604A (en) * 2015-02-28 2015-06-10 百度在线网络技术(北京)有限公司 Method and device for testing Android application on basis of customized rendering engine
CN106033366A (en) * 2015-03-19 2016-10-19 广州市动景计算机科技有限公司 Browser core management method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8868535B1 (en) * 2000-02-24 2014-10-21 Richard Paiz Search engine optimizer
US20140039897A1 (en) * 2012-08-06 2014-02-06 Alok KULKARNI System and method for automated adaptation and improvement of speaker authentication in a voice biometric system environment
CN103034583B (en) * 2011-09-30 2016-03-30 国际商业机器公司 A kind of method and system for the treatment of software automatic test script
CN104270662A (en) * 2014-10-27 2015-01-07 冠捷显示科技(厦门)有限公司 System of terminal equipment for controlling intelligent television through browser
CN104794056B (en) * 2015-04-29 2018-10-12 北京京东尚科信息技术有限公司 web browser compatibility test method and device
CN106598829A (en) * 2015-10-15 2017-04-26 腾讯科技(深圳)有限公司 Webpage automation test method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631942A (en) * 2013-12-10 2014-03-12 贝壳网际(北京)安全技术有限公司 Method and device for accessing webpage and browser
CN104699604A (en) * 2015-02-28 2015-06-10 百度在线网络技术(北京)有限公司 Method and device for testing Android application on basis of customized rendering engine
CN106033366A (en) * 2015-03-19 2016-10-19 广州市动景计算机科技有限公司 Browser core management method, device and system

Also Published As

Publication number Publication date
CN108536594A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108536594B (en) Page testing method and device and storage equipment
CN109857403B (en) Page updating method and device, page processing method and device
US20190205123A1 (en) Apparatus and method for thread data processing
CN107247691B (en) Text information display method and device, mobile terminal and storage medium
CN107329901B (en) Data packet capturing method, terminal, server and storage medium
WO2015096747A1 (en) Operation response method, client, browser and system
CN106371964B (en) Method and device for prompting message
CN106649126B (en) Method and device for testing application program
WO2018077041A1 (en) Method and apparatus for running application
CN112882772B (en) Configuration method of application interface of mobile terminal, mobile terminal and storage medium
CN106713608B (en) Application function state modification method and device and terminal
CN107666406B (en) Intelligent card display method and device
CN109800030B (en) Application program running method and device and terminal
CN106953898B (en) Method and device for acquiring software package
WO2018086457A1 (en) Webpage display method and device, mobile terminal and storage medium
CN111723002A (en) Code debugging method and device, electronic equipment and storage medium
CN108182090B (en) Flash plug-in loading method and device based on blink kernel
CN112749074B (en) Test case recommending method and device
CN114661581A (en) Terminal testing method and device, electronic equipment and computer readable storage medium
CN108959062B (en) Webpage element acquisition method and device
CN108874653B (en) Task testing method, tester, shared server and readable storage medium
CN107967203B (en) Function judgment method and device based on executable file
CN106919458B (en) Method and device for Hook target kernel function
CN112732250A (en) Interface processing method, device and storage medium
CN110198324B (en) Data monitoring method and device, browser and terminal

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
GR01 Patent grant
GR01 Patent grant