CN113254018B - Automatic operation method and device for webpage view - Google Patents

Automatic operation method and device for webpage view Download PDF

Info

Publication number
CN113254018B
CN113254018B CN202110792672.0A CN202110792672A CN113254018B CN 113254018 B CN113254018 B CN 113254018B CN 202110792672 A CN202110792672 A CN 202110792672A CN 113254018 B CN113254018 B CN 113254018B
Authority
CN
China
Prior art keywords
webpage
tool
application program
association
view
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
CN202110792672.0A
Other languages
Chinese (zh)
Other versions
CN113254018A (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.)
Yifang Information Technology Co ltd
Original Assignee
Guangzhou Easefun Information Technology 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 Guangzhou Easefun Information Technology Co ltd filed Critical Guangzhou Easefun Information Technology Co ltd
Priority to CN202110792672.0A priority Critical patent/CN113254018B/en
Publication of CN113254018A publication Critical patent/CN113254018A/en
Application granted granted Critical
Publication of CN113254018B publication Critical patent/CN113254018B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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
    • 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

Abstract

The invention relates to an automatic operation method and device of a webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.

Description

Automatic operation method and device for webpage view
Technical Field
The invention relates to the technical field of software development, in particular to an automatic operation method and device for a webpage view.
Background
The webpage view (WebView) can be embedded in the mobile terminal or the client to realize the hybrid development of the front end, and most hybrid development frames are secondarily developed based on a WebView mode. Webview is an important carrier for front-end development to evolve from a PC (personal computer) end to a mobile end or a client, and various user graphical interfaces (GUIs) are provided to meet the interaction of various scenes.
Among them, automation of the user graphical interface is an effective means to reduce the workload. For example, a patent application entitled "mobile application GUI intelligent test method and system" with publication number "CN 113032243A" discloses a scheme for implementing automated GUI testing by determining a graphic object by means of picture matching recognition and the like. However, the GUI automation is realized by the picture matching recognition, which has a low recognition rate and accuracy, and often requires a great deal of modification due to the change of the interface ui. More importantly, the application program embedded with the webpage view cannot easily open and view the elements of the webpage view due to secondary processing during packaging, so that the accuracy of the mode based on image matching recognition applied to the WebView is low and the maintenance cost is high.
In summary, it can be seen that the traditional automated operation mode is not suitable for the web page view under the application development framework.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for automatically operating a web page view, aiming at the limitation that the conventional automatic operation method is not suitable for the web page view under the application development framework.
An automated operation method of a web page view, comprising the steps of:
creating an association with a target browser through an application debugging tool, thereby creating an association with a web page view nested in an application;
determining operation elements in the webpage view through a webpage testing tool according to the association between the application program debugging tool and the webpage view;
and acquiring operation elements and performing corresponding element operation by combining with a GUI automatic testing tool so as to realize the automatic operation of the webpage view.
According to the automatic operation method of the webpage view, firstly, the association is established with the target browser through the application program debugging tool, so that the association with the webpage view embedded in the application program is established, and secondly, the operation elements in the webpage view are determined through the webpage testing tool according to the association between the application program debugging tool and the webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
In one embodiment, a process for creating an association with a web page view nested within an application by creating an association with a target browser through an application debugging tool, comprises the steps of:
starting a target browser through an application program debugging tool, and establishing association between the application program debugging tool and the target browser;
establishing a service process according to the association between the application program debugging tool and the target browser;
an association of an application debugging tool with a web page view is created from a service process.
In one embodiment, the process of launching a target browser via an application debugging tool, creating an association of the application debugging tool with the target browser, comprises the steps of:
starting a driving process of a target browser through an application program debugging tool;
and constructing starting parameters of the target browser and configuring necessary parameters of the application program.
In one embodiment, the process of determining an operation element in a web page view by a web page test tool according to an association between an application program debugging tool and the web page view comprises the following steps:
establishing the association between a webpage testing tool and a webpage view according to the association between the application program debugging tool and the webpage view;
creating an executor for executing the webpage test tool command through a service process;
creating a session control process according to the starting parameters of the actuator and the target browser;
the web page test tool determines the operation elements in the web page view through the session control process.
In one embodiment, the process of determining an operation element in a web page view by a web page test tool through a session control process includes the steps of:
the webpage testing tool establishes communication connection through a session control process;
and determining the operation elements in the webpage view according to the driving process based on the communication connection.
In one embodiment, a process for obtaining operation elements and performing corresponding element operations in combination with a GUI automatic test tool to implement automatic operation of a web page view includes the steps of:
the GUI automatic testing tool obtains the operation elements through the non-webpage view nested page controls, and meanwhile, the corresponding elements operate to achieve automatic operation of the webpage view.
In one embodiment, the application debug tool comprises Chrome DevTools Protocol.
The web page test tool comprises a selenium.
The GUI automatic test tool includes PywinAuto.
An automated operation apparatus of a web page view, comprising:
the first tool configuration module is used for establishing association with a target browser through an application program debugging tool so as to establish association with a webpage view nested in an application program;
the second tool configuration module is used for determining operation elements in the webpage view through the webpage testing tool according to the association between the application program debugging tool and the webpage view;
and the third tool configuration module is used for acquiring the operation elements by combining with the GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view.
The automatic operation device of the webpage view firstly creates association with the target browser through the application program debugging tool so as to create the association with the webpage view nested in the application program, and secondly determines operation elements in the webpage view through the webpage testing tool according to the association between the application program debugging tool and the webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
A computer storage medium having stored thereon computer instructions which, when executed by a processor, implement the automated method for web page view operation of any of the above embodiments.
The computer storage medium firstly creates association with a target browser through an application program debugging tool so as to create association with a webpage view nested in an application program, and secondly determines operation elements in the webpage view through a webpage testing tool according to the association between the application program debugging tool and the webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method for automating the operation of a web page view according to any of the above embodiments when executing the program.
The computer device firstly creates association with a target browser through an application program debugging tool so as to create association with a webpage view nested in an application program, and secondly determines operation elements in the webpage view through a webpage testing tool according to the association between the application program debugging tool and the webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
Drawings
FIG. 1 is a flow diagram of a method for automating the operation of a web page view according to one embodiment;
FIG. 2 is a flow diagram of a method for automating the operation of a web page view according to another embodiment;
FIG. 3 is a flowchart of a method for automating the operation of a web page view according to yet another embodiment;
FIG. 4 is a flow diagram of a method for automating the operation of a web page view in accordance with an illustrative embodiment;
FIG. 5 is a block diagram of an embodiment of an automated handler module for a web page view;
FIG. 6 is a schematic diagram of an internal structure of a computer according to an embodiment.
Detailed Description
For better understanding of the objects, technical solutions and effects of the present invention, the present invention will be further explained with reference to the accompanying drawings and examples. Meanwhile, the following described examples are only for explaining the present invention, and are not intended to limit the present invention.
In the embodiment, the application development frame is in the target browser, and the webpage view is embedded into the application of the development frame. Based on the above, the embodiment of the invention provides an automatic operation method of a webpage view.
Fig. 1 is a flowchart illustrating an automated operation method of a web page view according to an embodiment, and as shown in fig. 1, the automated operation method of the web page view according to an embodiment includes steps S100 to S102:
s100, establishing association with a target browser through an application program debugging tool so as to establish association with a webpage view nested in an application program;
s101, determining operation elements in the webpage view through a webpage testing tool according to the association between the application program debugging tool and the webpage view;
and S102, acquiring operation elements and performing corresponding element operation by combining with a GUI automatic testing tool so as to realize the automatic operation of the webpage view.
And establishing association with the target browser and the application program thereof through an application program debugging tool so as to allow a third party to debug or analyze the application program. Based on the method, the webpage testing tool serves as a third party and can be used for testing the application program and determining and operating the operation elements of the webpage view nested in the application program based on the associated communication link. And giving the operation elements to the GUI automatic testing tool by the webpage testing tool, and completing the automatic operation of the webpage view operation elements by the GUI automatic testing tool.
In one embodiment, the target browser includes a Chrome and the application includes a web application. Correspondingly, the application program debugging tool comprises Chrome DevTools Protocol; the webpage testing tool comprises a selenium; the GUI automatic test tool includes PywinAuto. For convenience of explanation of the embodiment of the present invention, the following steps of the embodiment are explained with reference to the target browser as Chrome.
In one embodiment, fig. 2 is a flowchart of an automated operation method of a web page view according to another embodiment, and as shown in fig. 2, a process of creating an association with a target browser through an application debugging tool in step S100, so as to create an association with a web page view nested in an application, includes steps S200 to S202:
s200, starting a target browser through an application program debugging tool, and establishing association between the application program debugging tool and the target browser;
s201, establishing a service process according to the association between the application program debugging tool and the target browser;
s202, association of the application program debugging tool and the webpage view is created according to the service process.
And starting the target browser by the application program debugging tool, and starting remote connection with the target browser. And controlling the behavior of the target browser by establishing a service process and communicating with a driving process chromedriver of the target browser.
In one embodiment, fig. 3 is a flowchart of an automated operation method of a web page view according to yet another embodiment, and as shown in fig. 3, a process of starting a target browser through an application debugging tool in step S200 and creating an association between the application debugging tool and the target browser includes steps S300 and S301:
s300, starting a driving process of the target browser through an application program debugging tool;
s301, constructing starting parameters of the target browser and configuring necessary parameters of the application program.
Taking a target browser as Chrome as an example, an application program debugging tool starts a driving process Chrome of the target browser, constructs browser starting parameters through options and desired _ capabilities, and configures parameters required by an application program, namely necessary parameters.
In one embodiment, as shown in fig. 2, the process of determining the operation element in the web page view by the web page test tool according to the association between the application program debugging tool and the web page view in step S101 includes steps S203 to S206:
s203, establishing the association between the webpage testing tool and the webpage view according to the association between the application program debugging tool and the webpage view;
s204, an actuator for executing the webpage test tool command is established through the service process;
s205, creating a session control process according to the starting parameters of the actuator and the target browser;
s206, the webpage testing tool determines the operation elements in the webpage view through the session control process.
According to the above description, when the application program debugging tool is associated with the webpage view, a third party is allowed to debug or analyze the application program. At this point, the web page test tool acts as a third party, creating an association with the web page view.
Still taking the target browser as Chrome as an example, an executor command _ executor for executing the webpage test tool command is created according to the service process service _ url orientation. And the executor command _ executor and the target browser starting parameter create a browser session control process session, wherein the session _ id is associated with the webdriver instance.
Based on the above, the web page view nested in the application program controls the web page driver to continue to execute the corresponding operation through the above process.
In one embodiment, as shown in fig. 3, the process of determining the operation element in the web page view by the web page test tool through the session control process in step S206 includes steps S302 and S303:
s302, the webpage testing tool establishes communication connection through a session control process;
and S303, determining the operation elements in the webpage view according to the driving process based on the communication connection.
After the webpage testing tool establishes communication connection through a session control process, determining and operating the operation elements in the webpage view according to a chromedriver of a driving process. In one embodiment, the driver is controlled by the driver process chromedriver to perform the operation of the relevant operation element, for example as follows:
let loc be a tuple, like (by.xxx, 'XXX'), the operation element self.
In one embodiment, as shown in fig. 2, the step S102, in combination with the GUI automatic testing tool, of obtaining an operation element and performing a corresponding element operation to implement an automatic operation process of the web page view, includes the step S207:
and S207, the GUI automatic testing tool obtains the operation elements through the non-webpage view nested page controls, and meanwhile, the corresponding elements operate to realize the automatic operation of the webpage view.
The GUI automatic testing tool can be used for starting an application program, obtaining operation elements aiming at page controls which are not nested in a webpage view, and carrying out further automatic operation.
In order to better explain the embodiment of the invention, the coordination relationship of the three tools, i.e. the application program debugging tool, the web page testing tool and the GUI automatic testing tool, is explained in a specific application case.
Fig. 4 is a flowchart of an automated operation method of a web page view of a specific application example, as shown in fig. 4, taking a target browser as a chrome as an example, after the automated operation is started, an application program debugging tool starts each association of the chrome based on a driver according to each association, that is, the remote connection is used for implementation. The webpage testing tool is used as a bridge of an application program debugging tool and a GUI automatic testing tool to complete the determination and operation of each operation element. The GUI automatic testing tool starts an application program and obtains operation elements through the page controls which are not nested in the webpage view, and various automatic operations are completed.
The method for automatically operating a web page view according to any of the embodiments described above includes first creating an association with a target browser through an application debugging tool, thereby creating an association with a web page view embedded in an application, and then determining an operation element in the web page view through a web page testing tool according to the association between the application debugging tool and the web page view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
The embodiment of the invention also provides an automatic operation device of the webpage view.
Fig. 5 is a block diagram of an embodiment of an automated handling apparatus for a web page view, and as shown in fig. 5, the embodiment of the automated handling apparatus for a web page view includes a module 100, a module 101, and a module 102:
a first tool configuration module 100 for creating an association with a target browser via an application debugging tool, thereby creating an association with a web page view nested in an application;
the second tool configuration module 101 is configured to determine, according to the association between the application program debugging tool and the web page view, an operation element in the web page view through the web page testing tool;
and the third tool configuration module 102 is configured to obtain the operation elements and perform corresponding element operations in combination with the GUI automatic testing tool, so as to implement the automatic operation of the web page view.
The automatic operation device of the webpage view firstly creates association with the target browser through the application program debugging tool so as to create the association with the webpage view nested in the application program, and secondly determines operation elements in the webpage view through the webpage testing tool according to the association between the application program debugging tool and the webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
The embodiment of the invention also provides a computer storage medium, wherein computer instructions are stored on the computer storage medium, and when the instructions are executed by a processor, the method for automatically operating the webpage view of any embodiment is realized.
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 hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Corresponding to the computer storage medium, in one embodiment, a computer device is further provided, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device implements the automatic operation method of the web page view in any one of the embodiments.
The computer device may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method for automating the operation of a web page view. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
The computer equipment firstly creates association with a target browser through an application program debugging tool so as to create association with a webpage view nested in an application program, and secondly determines operation elements in the webpage view through a webpage testing tool according to the association between the application program debugging tool and the webpage view. And finally, acquiring operation elements by combining with a GUI automatic testing tool and carrying out corresponding element operation so as to realize the automatic operation of the webpage view. Based on the method, the nested webpage view under the application development framework is quickly analyzed through the combination of the application debugging tool, the webpage testing tool and the GUI automatic testing tool, and the operation elements are determined to carry out corresponding automatic operation, so that the automatic operation of the webpage view under the application development framework is effectively realized, and the complicated process that the automatic mode needs to be changed due to the change of the webpage view is avoided.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. An automated operation method of a web page view, characterized by comprising the steps of:
establishing association with a target browser and an application program thereof through an application program debugging tool so as to allow a third party to debug or analyze the application program, thereby establishing association with a webpage view nested in the application program;
determining operation elements in the webpage view through a webpage testing tool according to the association of the application program debugging tool and the webpage view; the webpage testing tool is used as a third party, can be used for testing the application program based on the associated communication link, and determines the operation elements of the webpage view nested in the application program;
acquiring the operation elements and performing corresponding element operation by combining a GUI automatic test tool so as to realize the automatic operation of the webpage view;
the process of creating an association with a target browser through an application debugging tool to create an association with a web page view nested in an application includes the steps of:
starting the target browser through the application program debugging tool, and establishing the association between the application program debugging tool and the target browser;
establishing a service process according to the association between the application program debugging tool and the target browser;
creating an association of the application program debugging tool with the webpage view according to the service process;
the process of determining the operation elements in the webpage view through the webpage testing tool according to the association of the application program debugging tool and the webpage view comprises the following steps:
according to the association between the application program debugging tool and the webpage view, the association between the webpage testing tool and the webpage view is established;
creating an executor for executing the webpage test tool command through the service process;
creating a session control process according to the starting parameters of the executor and the target browser;
the web page test tool determines an operation element in the web page view through the session control process.
2. The method for automating the operation of a web page view according to claim 1, wherein the process of starting the target browser by the application debugging tool, creating the association of the application debugging tool with the target browser comprises the steps of:
starting a driving process of the target browser through the application program debugging tool;
and constructing starting parameters of the target browser and configuring necessary parameters of the application program.
3. The method for automatically operating the webpage view, according to claim 1, wherein the webpage testing tool determines the process of the operation element in the webpage view through the session control process, comprising the steps of:
the webpage testing tool establishes communication connection through the session control process;
and determining the operation elements in the webpage view according to a driving process based on the communication connection.
4. The method for automatically operating the web page view according to claim 1, wherein the process for acquiring the operation element and performing corresponding element operation in combination with the GUI automatic testing tool to realize the automatic operation of the web page view includes the steps of:
the GUI automatic testing tool obtains the operation elements through the non-webpage view nested page controls, and meanwhile, the corresponding elements operate to achieve automatic operation of the webpage view.
5. The method of any one of claims 1 to 4, wherein the application debugging tool comprises Chrome DevTools Protocol;
the webpage testing tool comprises a selenium;
the GUI automatic test tool comprises PywinnAU.
6. An apparatus for automating the operation of a web page view, comprising:
the first tool configuration module is used for establishing association with the target browser and the application program thereof through an application program debugging tool so as to allow a third party to debug or analyze the application program, and thus, the association with the webpage view nested in the application program is established;
the second tool configuration module is used for determining operation elements in the webpage view through the webpage testing tool according to the association between the application program debugging tool and the webpage view; the webpage testing tool is used as a third party, can be used for testing the application program based on the associated communication link, and determines the operation elements of the webpage view nested in the application program;
the third tool configuration module is used for acquiring the operation elements and performing corresponding element operation by combining with a GUI automatic test tool so as to realize the automatic operation of the webpage view;
the process of creating an association with a target browser through an application debugging tool to create an association with a web page view nested in an application includes the steps of:
starting the target browser through the application program debugging tool, and establishing the association between the application program debugging tool and the target browser;
establishing a service process according to the association between the application program debugging tool and the target browser;
creating an association of the application program debugging tool with the webpage view according to the service process;
the process of determining the operation elements in the webpage view through the webpage testing tool according to the association of the application program debugging tool and the webpage view comprises the following steps:
according to the association between the application program debugging tool and the webpage view, the association between the webpage testing tool and the webpage view is established;
creating an executor for executing the webpage test tool command through the service process;
creating a session control process according to the starting parameters of the executor and the target browser;
the web page test tool determines an operation element in the web page view through the session control process.
7. A computer storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement a method for automated operation of a web page view according to any one of claims 1 to 5.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, implements a method of automating the operation of a web page view as claimed in any one of claims 1 to 5.
CN202110792672.0A 2021-07-14 2021-07-14 Automatic operation method and device for webpage view Active CN113254018B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110792672.0A CN113254018B (en) 2021-07-14 2021-07-14 Automatic operation method and device for webpage view

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110792672.0A CN113254018B (en) 2021-07-14 2021-07-14 Automatic operation method and device for webpage view

Publications (2)

Publication Number Publication Date
CN113254018A CN113254018A (en) 2021-08-13
CN113254018B true CN113254018B (en) 2021-11-02

Family

ID=77191185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110792672.0A Active CN113254018B (en) 2021-07-14 2021-07-14 Automatic operation method and device for webpage view

Country Status (1)

Country Link
CN (1) CN113254018B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061526A (en) * 2019-10-12 2020-04-24 平安普惠企业管理有限公司 Automatic testing method and device, computer equipment and storage medium
CN111191097A (en) * 2019-12-20 2020-05-22 天阳宏业科技股份有限公司 Method, device and system for automatically acquiring webpage information by web crawler

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927253B (en) * 2013-01-11 2017-04-19 阿里巴巴集团控股有限公司 Multiple browser compatibility testing method and system
US10169206B2 (en) * 2016-11-15 2019-01-01 Accenture Global Solutions Limited Simultaneous multi-platform testing
CN108111369A (en) * 2017-12-22 2018-06-01 北京奇虎科技有限公司 The test method and device of a kind of webpage performance of mobile terminal
CN108628741B (en) * 2018-04-10 2021-10-01 平安科技(深圳)有限公司 Webpage testing method and device, electronic equipment and medium
CN110659092B (en) * 2019-08-13 2023-05-02 深圳赛安特技术服务有限公司 Webpage screenshot method and device, computer equipment and storage medium
CN112364281A (en) * 2020-10-30 2021-02-12 深圳点猫科技有限公司 Browser-based webpage editing visualization implementation method, device and equipment
CN112286822A (en) * 2020-11-06 2021-01-29 国家电网有限公司 Web automatic test system, test method and test device based on selenium framework
CN112445994A (en) * 2020-11-12 2021-03-05 广东电网有限责任公司 Method for carrying out automatic operation in opened Chrome browser

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061526A (en) * 2019-10-12 2020-04-24 平安普惠企业管理有限公司 Automatic testing method and device, computer equipment and storage medium
CN111191097A (en) * 2019-12-20 2020-05-22 天阳宏业科技股份有限公司 Method, device and system for automatically acquiring webpage information by web crawler

Also Published As

Publication number Publication date
CN113254018A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
US10817819B2 (en) Workflow compilation
CN103744784A (en) Method and system for automatically testing mobile phone applications
CN110209569B (en) Interface test method, interface test device and storage medium
CN111026645A (en) User interface automatic testing method and device, storage medium and electronic equipment
CN111008132B (en) Application debugging method and device for Android system, computer equipment and storage medium
US11520686B2 (en) System and method for facilitating performance testing
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
CN112465466A (en) Flow task execution method and device, computer equipment and storage medium
CN109286517B (en) Method, device and storage medium for creating service and electronic equipment
CN114089986A (en) Method, system, device and medium for configuring low code development platform function expression
CN111414309B (en) Automatic test method of application program, computer equipment and storage medium
CN113934630A (en) Software testing method, device, equipment and medium based on image recognition
CN107102937B (en) User interface testing method and device
CN110192191A (en) Operating system is fetched
CN113254018B (en) Automatic operation method and device for webpage view
CN107590062B (en) Multi-client interaction testing method and device
CN115495188A (en) Theme color switching method, device, equipment and medium for hybrid development APP
CN114741294A (en) Page debugging method, device, equipment and storage medium
US20180189169A1 (en) Method,electronic apparatus, system, and storage medium for automated testing of application user interface
CN111459564B (en) boot stage initialization compatible implementation method, system and computer equipment
CN112214404A (en) Mobile application testing method and device, storage medium and electronic equipment
JP5657183B2 (en) Method and apparatus for enabling a first computer program to execute application logic of a second computer program, for interfacing the first computer program and the second computer program And apparatus for generating computer program code for the same, a computer program, and a software interface for enabling a first computer program to execute application logic of a second computer program For providing information (computer program interface)
CN112015378A (en) Skeleton screen page generation method and device, computer equipment and storage medium
CN112486838A (en) Interface testing method and device, computer equipment and storage medium
CN108241573B (en) Integrated test code generation method and device

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
CP03 Change of name, title or address

Address after: Room 402, No. 66, North Street, University Town Center, Panyu District, Guangzhou City, Guangdong Province, 510006

Patentee after: Yifang Information Technology Co.,Ltd.

Address before: 510006 Room 601, 603, 605, science museum, Guangdong University of technology, 100 Waihuan West Road, Xiaoguwei street, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU EASEFUN INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address