CN112363784A - Method and device for displaying window in application program - Google Patents

Method and device for displaying window in application program Download PDF

Info

Publication number
CN112363784A
CN112363784A CN202011154711.6A CN202011154711A CN112363784A CN 112363784 A CN112363784 A CN 112363784A CN 202011154711 A CN202011154711 A CN 202011154711A CN 112363784 A CN112363784 A CN 112363784A
Authority
CN
China
Prior art keywords
window
displaying
subtask
application program
remark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011154711.6A
Other languages
Chinese (zh)
Inventor
杨雨
罗成
王运圳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud 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 Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202011154711.6A priority Critical patent/CN112363784A/en
Publication of CN112363784A publication Critical patent/CN112363784A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms

Abstract

The application is applicable to the technical field of data processing, and provides a method and a device for displaying a window in an application program. The method for displaying the window in the application program comprises the following steps: injecting a preset script file into a target application program; and when the main task page of the target application program is started, constructing and displaying a subtask window and/or a remark window corresponding to the main task page through the script file. According to the application, the preset script file injected into the target application program is utilized, after the main task page of the target application program is started, the subtask window and/or the remark window are constructed and displayed through the script file, the secondary development cost of the application program can be reduced, and the development efficiency can be improved.

Description

Method and device for displaying window in application program
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for displaying a window in an application.
Background
The application program is generally developed according to the requirements of users, however, certain problems exist, so that the current requirements of the users cannot be met, at present, if the problems occur, the problems are generally solved through manual work, and the method solves the problems and brings other problems, such as low efficiency and easy error, so that the functions of the application program cannot be really perfected, and secondary development is still needed. However, if this problem is secondarily developed as a new functional point, not only the original program framework may be affected, but also the development cost may be increased.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for displaying a window in an application program, which can reduce the cost of secondary development of the application program and improve the development efficiency.
In a first aspect, an embodiment of the present application provides a method for displaying a window in an application program, including:
injecting a preset script file into a target application program;
and when the main task page of the target application program is started, constructing and displaying a subtask window and/or a remark window corresponding to the main task page through the script file.
According to the embodiment of the application, the window is added in a script file injection mode to extend the functions of the application program, so that the defects existing in the engineering of the application program used by the application program can be overcome without changing the original software framework of the application program in the secondary development, the secondary development cost of the application program can be reduced, the development efficiency can be improved, and the user requirements can be met.
Further, constructing and displaying a subtask window corresponding to the main task page through the script file includes:
acquiring a document object model of the main task page;
judging whether the main task page has a subtask list or not according to the elements of the document object model;
and if the main task page has a subtask list, constructing and displaying a corresponding subtask window according to the subtask list, wherein the specified area of the subtask window displays statistical data related to the subtask list.
After a complete document object model is generated on a main task page, whether a subtask list exists on the current page or not can be judged through elements of the document object model, if the subtask list exists, a corresponding subtask window can be constructed and displayed according to the list, and statistical data related to the subtask list can be displayed in a designated area in the constructed subtask window.
Further, judging whether the main task page has a subtask list according to the element of the document object model includes:
and traversing and searching all elements of the document object model, and judging that the main task page has a subtask list when a target element matched with a list element input in advance is searched from all the elements.
The subtask window needs to be constructed according to the subtask list, and therefore, before the subtask window is constructed, whether the subtask list exists on the main task page needs to be judged. Specifically, all elements of the document object model can be searched through traversal, then whether a target element matched with a list element input in advance exists is searched from the elements, after the target element is searched, it can be determined that the current main task page has a subtask list, and related steps of constructing and displaying the subtask list are executed.
Further, constructing and displaying a corresponding subtask window according to the subtask list includes:
analyzing the node elements of the document object model according to the subtask list to obtain attribute information of the statistical data;
acquiring the statistical data from a specified data interface according to the attribute information;
and constructing and displaying the subtask window according to the statistical data.
After the subtask list is identified, a corresponding subtask window can be constructed and displayed according to the list. Specifically, the subtask list may be used to analyze the attribute information of the corresponding statistical data from the node elements of the document object model, then obtain the statistical data from the corresponding data interface according to the analyzed attribute information, and finally construct and display a subtask window according to the obtained statistical data.
Further, after obtaining the statistical data from the specified data interface according to the attribute information, the method further includes:
and setting the data format of the statistical data as a JSON data format.
The JSON data format has the characteristics of being friendly to the web, light and convenient and the like, so that after the statistical data are obtained, the statistical data are set to be in the JSON data format, and the effect of facilitating script file processing can be achieved.
Further, after the sub-task window is constructed and displayed according to the statistical data, the method further includes:
and if the selected target attribute information is detected, displaying target statistical data corresponding to the target attribute information in the subtask window, and hiding other statistical data except the target statistical data.
In order to facilitate searching for related data and detailed information of the same subtask, after it is detected that the attribute information is selected (i.e., after the target attribute information is selected), the target statistical data corresponding to the attribute information may be displayed in the subtask window, and other data except the target statistical data may be hidden.
Further, constructing and displaying a remark window corresponding to the main task page through the script file, including:
after detecting a remark request, calling a corresponding remark template according to the type of the remark request;
and constructing and displaying a remark window corresponding to the main task page based on the remark template.
Besides counting and displaying the related data of the subtask list, a remark window corresponding to the main task page can be constructed, specifically, after a remark request is received, a corresponding remark template can be called according to the type of the remark request, and then the remark window is constructed and displayed based on the remark template.
In a second aspect, an embodiment of the present application provides an apparatus for displaying a window in an application program, including:
the script file injection module is used for injecting a preset script file into a target application program;
and the window creation display module is used for constructing and displaying a subtask window and/or a remark window corresponding to the main task page through the script file when the main task page of the target application program is started.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the method for displaying a window in an application program as set forth in the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the method for displaying a window in an application program as set forth in the first aspect of the present application.
Compared with the prior art, the embodiment of the application has the advantages that: the cost of the secondary development of the application program can be reduced, the development efficiency is improved, the implementation is convenient, and the practicability is high.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flowchart of a method for displaying a window in an application according to an embodiment of the present disclosure;
fig. 2 is a block diagram of an apparatus for displaying a window in an application according to an embodiment of the present application;
fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular device structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of this application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the embodiments of the present application, "one or more" means one, two, or more than two; "and/or" describes the association relationship of the associated objects, indicating that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The method for displaying a window in an application provided in the embodiment of the present application may be applied to a mobile phone, a tablet computer, a medical device, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and other terminal devices or a server with a display device, and the embodiment of the present application does not set any limit to specific types of the terminal devices and the server.
The current application program has certain problems in the using process, such as the current popular software development management system JIRA on the market, although the current application program has the advantages of a high-quality task management tool, a perfect agile testing process, a page form self-definition and the like, the current application program can not meet the current requirements of users, and great convenience can be brought to software developers for improving the working efficiency. However, at the same time, the problem of lack of statistics on subtask data under the task also exists, so that the task responsible person cannot intuitively know task related statistical data. If the solution of the problem is developed as a new functional point, the original architecture of the application program may be affected, and additional development cost is required, which is not friendly to both users and developers. When an application is experiencing this situation, it is therefore typically elected to solve the problem manually. However, this method may not be able to truly improve the defect because it may cause other problems such as low efficiency and error. In order to solve the problem, the application provides a method for displaying a window in an application program, which can reduce the cost of secondary development of the application program and improve the development efficiency.
In one embodiment, referring to fig. 1, fig. 1 is a flowchart illustrating a method for displaying a window in an application provided by the present application, including:
101. injecting a preset script file into a target application program;
a script file (script) is an executable file written according to a certain format using a specific descriptive language, also called macro or batch file. Script files can typically be temporarily called and executed by an application. Various scripts are widely used in the design of web pages at present, because the script files can not only reduce the scale of the web pages and improve the browsing speed of the web pages, but also enrich the expression of the web pages. Therefore, in the embodiment, the defects of the application program can be made up by injecting the preset script file into the target application program so as to meet the requirements of the user. The injection operation of the script file is realized through a third-party browser plug-in, such as a plug-in of tamvermunkey, commonly known as a monkey plug-in chinese.
102. And when the main task page of the target application program is started, constructing and displaying a subtask window and/or a remark window corresponding to the main task page through the script file.
The embodiment of the application is to inject a script file into a main task page to complete the function of an application program, wherein the main task page refers to a page for presenting project data, the page has main data, sub data is provided under the main data, for example, a story and a sub task in a story detail page of a jita application program, a sub task window refers to a window for presenting statistical data of a plurality of sub data (originally scattered data) under a certain main data, and a remark window refers to a window for presenting remark conditions of nodes of a data chain after a remark button of a certain data on the main task page is clicked. Therefore, the present application is not limited to the main task and the subtask, and may also be a page formed by other data having primary and secondary relations, that is, the main task page may also be other pages, and is not limited in the present application. When the main task page of the application program is started, the corresponding subtask window and/or remark window of the page can be constructed and displayed through the script file, and the corresponding subtask window and remark window also only serve the main task page.
In this embodiment, a preset script file is injected into a main task page of an application program through a third-party browser plug-in, and a corresponding window is created and displayed through the injected script file to improve the deficiency of the application program, so that the user requirements are met, the development efficiency of the application program can be improved, and the secondary development cost can be reduced.
Specifically, in an embodiment, the sub-task window corresponding to the task page may be constructed and displayed through the following steps:
acquiring a document object model of the main task page;
judging whether the main task page has a subtask list or not according to the elements of the document object model;
and if the main task page has a subtask list, constructing and displaying a corresponding subtask window according to the subtask list, wherein the specified area of the subtask window displays statistical data related to the subtask list.
To construct and display a subtask window of a main task page, it is necessary to determine whether or not a subtask list exists in the current main task page. Specifically, after rendering and rendering of the main task page are completed, a complete document object model is generated, at this time, the model can be obtained first, whether a subtask list exists on the main task page is judged according to elements of the model, if the subtask list does not exist, the follow-up steps are not executed, the page is monitored continuously, and the document object model is obtained again for judgment after the page is refreshed. And if the subtask list exists, constructing and displaying a corresponding subtask window according to the subtask list, wherein the specified area in the subtask window can display the related statistical data of the subtask list.
Specifically, in one embodiment, whether the main task page has the subtask list may be determined by:
and traversing and searching all elements of the document object model, and judging that the main task page has a subtask list when a target element matched with a list element input in advance is searched from all the elements.
The subtask list has corresponding list elements in the document object model, and whether the subtask list exists in the main task page or not can be judged by firstly inputting the list elements as a judgment standard, then traversing and searching all elements of the document object model of the main task page, and when a target element matched with the list elements input in advance is searched from all elements, judging that the current page has the subtask list, and executing corresponding steps of constructing and displaying the subtask window.
Specifically, in an embodiment, constructing and displaying a corresponding subtask window according to the subtask list includes:
analyzing the node elements of the document object model according to the subtask list to obtain attribute information of the statistical data;
acquiring the statistical data from a specified data interface according to the attribute information;
and constructing and displaying the subtask window according to the statistical data.
In this embodiment, the subtask window is constructed and displayed mainly for counting and displaying data related to the subtask list, and specifically, the node element of the document object model may be analyzed according to the subtask list to obtain attribute information of the statistical data, then the corresponding statistical data is obtained from the specified data interface according to the obtained attribute information, and finally the subtask window may be constructed and displayed by using the statistical data. For ease of understanding, the subtask window construction and display of the story detail page of the JIRA system is used as an example: supposing that a subtask list in a story detail page is detected, analyzing nodes of a document object model of the story detail page according to the list to obtain attribute information of the subtask list, namely workload and a responsible person, and then acquiring data summary corresponding to the responsible person and the workload through a document object model interface provided by a browser, wherein for example, data displayed in the original subtask list is Zhang three for 1.2 days and Zhang three for 0.8 days; zusanli 1.0 day, Zusanli 0.2 day, Zusanli 3.2 day after data collection, the data obtained at this time is statistical data, and finally, a subtask window can be constructed and displayed according to the statistical data.
For facilitating script processing, in an embodiment, after acquiring the statistical data from a specified data interface according to the attribute information, the statistical data is obtained by statistics after forming a data set by the acquired data, and the method further includes:
and setting the data format of the statistical data as a JSON data format.
The JSON data format is a lightweight data exchange format, adopts a text format completely independent of languages, is an ideal data exchange format, is web-friendly and is convenient for script processing. After the step is completed, a user can visually see the statistical data in the subtask window through a browser, and the problems that the efficiency is low and errors are prone to manual statistics due to the fact that the application program does not have the statistical function of the subtask data in the process of using the application program are solved.
In order to facilitate searching for related data and detailed information of the same subtask, in an embodiment, after constructing and displaying the subtask window according to the statistical data, the method further includes:
and if the selected target attribute information is detected, displaying target statistical data corresponding to the target attribute information in the subtask window, and hiding other statistical data except the target statistical data.
Specifically, after the subtask window is constructed and displayed, a check box may be created for each attribute information, and a click behavior of a user is monitored for the check box, when the user clicks and checks a certain attribute information, the attribute information is the target attribute information, and related data corresponding to the target attribute information is displayed. For example, when a designated responsible person is selected, all subtask data in the original JIRA subtask list are found out through an interface provided by a browser, then the responsible person is used as a search keyword to filter out matched subtask data from all subtask data, the matched subtask data are displayed through the browser interface, and other subtask data are hidden through the browser interface.
In addition to statistics on relevant data of a subtask list, in an embodiment, a remark window corresponding to the main task page may be constructed and displayed through the script file, including:
after detecting a remark request, calling a corresponding remark template according to the type of the remark request;
and constructing and displaying a remark window corresponding to the main task page based on the remark template.
After the script file is injected, finding a remark button of a main task page, detecting whether a remark request is received, namely, a user clicks the remark button, calling different remark templates according to different types of the remark request, and after calling the corresponding remark template, constructing and displaying a remark window corresponding to the main task page according to the remark template so as to be edited by the user. Taking the JIRA system as an example, the type of the remark request is divided into a feedback type and a demand type, different types may have different templates, and the remark button of each task node in the template may also have different permissions, for example, a product manager only has a scheme remark button, and a button for developing a repair remark and an audit remark. When different remark buttons are clicked, template contents corresponding to the remark buttons are popped up for a user to select and fill in the remark box, the template contents are remark options preset in advance according to task nodes, for example, the template contents selectable in the testing stage of the task may include tested, untested, bug repair and the like, and the remark contents are iterated along with the execution of the task. If the type of the remark request is a feedback type, the remark template obtained by clicking the remark button is an investigation remark template, and the following remarks are provided according to the execution of the task:
after the conclusion of the investigation is included in the iteration, a scheme remark button can be clicked, and the template content popped up by the button can comprise the implementation steps, the influence range, the test suggestion and the like of the scheme;
after the scheme is determined, the development can carry out feedback repair according to the scheme, a development remark button can be clicked after the repair is finished, and the template content popped up by the button can comprise an influence range, a test mode and the like;
after the development is finished, a testing stage is entered, the feedback of the acceptance and repair is tested, a test remark button can be clicked, and the template content popped up by the button can comprise whether the acceptance is finished, which scenes are accepted, and the like;
after the test is finished, the repaired task is migrated to other historical branches, after the migration is finished, a migration remark button can be clicked, the template content popped up by the button can comprise the migrated branch, the migrated version and the like,
and finally, clicking an acceptance remark button after the task is accepted, wherein the template contents popped up by the button can comprise accepted and not accepted, and the task is closed when the contents in the acceptance remark frame are accepted and mark the completion of the task.
The embodiment of the application can effectively solve the problem that the task progress caused by different remark modes is difficult to track and control, standardizes the remark flow and is favorable for tracking and solving the control of the task progress and the remark problem by providing the standard template and the template content.
Fig. 3 shows a block diagram of an apparatus for displaying a window in an application program according to an embodiment of the present application, and only shows portions related to the embodiment of the present application for convenience of description.
Referring to fig. 3, the apparatus includes:
a script file injection module 301, configured to inject a preset script file into a target application program;
and the window creation display module 302 is configured to, when the main task page of the target application program is started, construct and display a subtask window and/or a remark window corresponding to the main task page through the script file.
Further, the window creation display module 302 may include:
the model acquisition sub-module is used for acquiring a document object model of the main task page;
the subtask list judging submodule is used for judging whether the main task page has a subtask list or not according to the elements of the document object model;
and the subtask window creation and display sub-module is used for constructing and displaying a corresponding subtask window according to the subtask list if the main task page has the subtask list, wherein the specified area of the subtask window displays the statistical data related to the subtask list.
Further, the subtask list determination sub-module may include:
and the subtask list judging unit is used for traversing and searching all elements of the document object model, and judging that the main task page has a subtask list when a target element matched with a list element input in advance is found from all the elements.
Further, the subtask window creation display sub-module may further include:
the node element analysis unit is used for analyzing the node elements of the document object model according to the subtask list to obtain the attribute information of the statistical data;
a statistical data acquisition unit for acquiring the statistical data from a designated data interface according to the attribute information;
and the subtask window creation display unit is used for constructing and displaying the subtask window according to the statistical data.
Further, the window creation display sub-module may further include:
and the data format setting unit is used for setting the data format of the statistical data into a JSON data format.
Further, the window creation display sub-module may further include:
and the statistical data display unit is used for displaying the target statistical data corresponding to the target attribute information in the subtask window and hiding other statistical data except the target statistical data if the selected target attribute information is detected.
Further, the window creating and displaying module 302 may further include:
the remark template calling submodule is used for calling a corresponding remark template according to the type of the remark request after the remark request is detected;
and the remark window creating and displaying submodule is used for constructing and displaying a remark window corresponding to the main task page based on the remark template.
The embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the methods for displaying a window in an application program as provided in the present application when executing the computer program.
Embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the methods for displaying windows in an application program as set forth in the present application.
The embodiment of the present application further provides a computer program product, which, when running on a terminal device, enables the terminal device to execute the steps of the methods for displaying a window in an application program provided in the present application.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 3, the terminal device 3 of this embodiment includes: at least one processor 30 (only one shown in fig. 3), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, the processor 30 implementing the steps in any of the above-described browser-driven configuration method embodiments when executing the computer program 32.
The terminal device 3 may be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices, and a smart watch, a smart bracelet and other wearable devices. The terminal device may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 3 is only an example of the terminal device 3, and does not constitute a limitation to the terminal device 3, and may include more or less components than those shown, or combine some components, or different components, for example, and may further include an input/output device, a network access device, and the like.
The Processor 30 may be a Central Processing Unit (CPU), and the Processor 30 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may in some embodiments be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used for storing operating means, applications, bootloaders (bootloaders), data and other programs, such as program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the above-mentioned apparatus may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a terminal device, recording medium, computer Memory, Read-Only Memory (ROM), Random-Access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for displaying a window in an application, comprising:
injecting a preset script file into a target application program;
and when the main task page of the target application program is started, constructing and displaying a subtask window and/or a remark window corresponding to the main task page through the script file.
2. The method of displaying a window in an application program according to claim 1, wherein constructing and displaying a subtask window corresponding to the main task page through the script file comprises:
acquiring a document object model of the main task page;
judging whether the main task page has a subtask list or not according to the elements of the document object model;
and if the main task page has a subtask list, constructing and displaying a corresponding subtask window according to the subtask list, wherein the specified area of the subtask window displays statistical data related to the subtask list.
3. The method of displaying a window in an application program of claim 2 wherein determining whether the main task page has a subtask list based on an element of the document object model includes
And traversing and searching all elements of the document object model, and judging that the main task page has a subtask list when a target element matched with a list element input in advance is searched from all the elements.
4. The method of displaying windows in an application program according to claim 2, wherein constructing and displaying corresponding subtask windows according to the subtask list comprises:
analyzing the node elements of the document object model according to the subtask list to obtain attribute information of the statistical data;
acquiring the statistical data from a specified data interface according to the attribute information;
and constructing and displaying the subtask window according to the statistical data.
5. The method of displaying a window in an application program of claim 4, after obtaining the statistical data from a specified data interface according to the attribute information, further comprising:
and setting the data format of the statistical data as a JSON data format.
6. The method of displaying a window in an application program of claim 4, after constructing and displaying the subtask window according to the statistics, further comprising:
and if the selected target attribute information is detected, displaying target statistical data corresponding to the target attribute information in the subtask window, and hiding other statistical data except the target statistical data.
7. The method for displaying a window in an application program according to any one of claims 1 to 6, wherein constructing and displaying a remark window corresponding to the main task page through the script file comprises:
after detecting a remark request, calling a corresponding remark template according to the type of the remark request;
and constructing and displaying a remark window corresponding to the main task page based on the remark template.
8. An apparatus for displaying a window in an application, comprising:
the script file injection module is used for injecting a preset script file into a target application program;
and the window creation display module is used for constructing and displaying a subtask window and/or a remark window corresponding to the main task page through the script file when the main task page of the target application program is started.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method of displaying a window in an application according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method of displaying a window in an application according to any one of claims 1 to 7.
CN202011154711.6A 2020-10-26 2020-10-26 Method and device for displaying window in application program Pending CN112363784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011154711.6A CN112363784A (en) 2020-10-26 2020-10-26 Method and device for displaying window in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011154711.6A CN112363784A (en) 2020-10-26 2020-10-26 Method and device for displaying window in application program

Publications (1)

Publication Number Publication Date
CN112363784A true CN112363784A (en) 2021-02-12

Family

ID=74512210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011154711.6A Pending CN112363784A (en) 2020-10-26 2020-10-26 Method and device for displaying window in application program

Country Status (1)

Country Link
CN (1) CN112363784A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116069379A (en) * 2023-01-28 2023-05-05 深圳市明源云科技有限公司 Identification method, device, equipment and medium for secondary development function

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238219A (en) * 2011-05-12 2012-12-06 Sony Corp Information processing apparatus, server device, information processing method, computer program and content sharing system
CN102915318A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 Method and device for positioning and searching information in browser
CN103577030A (en) * 2012-07-27 2014-02-12 北京搜狗科技发展有限公司 Method and system for displaying interfaces of windows of browsers
CN104144224A (en) * 2014-08-22 2014-11-12 北京奇虎科技有限公司 Method and device for displaying released information through client side
CN105701164A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Statistical method and device for web hits
CN106462590A (en) * 2014-03-26 2017-02-22 谷歌公司 System for managing extension modifications to web pages
CN108509228A (en) * 2017-11-10 2018-09-07 平安普惠企业管理有限公司 Method, terminal device and the computer readable storage medium of loading page
CN109933385A (en) * 2019-03-22 2019-06-25 深圳市网心科技有限公司 A kind of page loading method, device, system and medium
CN109992264A (en) * 2017-12-29 2019-07-09 浙江宇视科技有限公司 Window management method
US10620973B1 (en) * 2017-05-09 2020-04-14 Sprint Communications Company L.P. System and methods for injection and maintenance of artifact objects within user equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012238219A (en) * 2011-05-12 2012-12-06 Sony Corp Information processing apparatus, server device, information processing method, computer program and content sharing system
CN102915318A (en) * 2012-03-08 2013-02-06 北京金山安全软件有限公司 Method and device for positioning and searching information in browser
CN103577030A (en) * 2012-07-27 2014-02-12 北京搜狗科技发展有限公司 Method and system for displaying interfaces of windows of browsers
CN106462590A (en) * 2014-03-26 2017-02-22 谷歌公司 System for managing extension modifications to web pages
CN104144224A (en) * 2014-08-22 2014-11-12 北京奇虎科技有限公司 Method and device for displaying released information through client side
CN105701164A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Statistical method and device for web hits
US10620973B1 (en) * 2017-05-09 2020-04-14 Sprint Communications Company L.P. System and methods for injection and maintenance of artifact objects within user equipment
CN108509228A (en) * 2017-11-10 2018-09-07 平安普惠企业管理有限公司 Method, terminal device and the computer readable storage medium of loading page
CN109992264A (en) * 2017-12-29 2019-07-09 浙江宇视科技有限公司 Window management method
CN109933385A (en) * 2019-03-22 2019-06-25 深圳市网心科技有限公司 A kind of page loading method, device, system and medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SHIUH-JENG WANG ET AL: "Investigations in Cross-site Script on Web-systems Gathering Digital Evidence against Cyber-Intrusions", 《 FUTURE GENERATION COMMUNICATION AND NETWORKING (FGCN 2007)》 *
严晨: "《网页交互设计基础与实例教程》", 30 June 2016, 北京理工大学出版社 *
王文辉等: "基于JavaScript的网页子窗口的创建", 《今日科苑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116069379A (en) * 2023-01-28 2023-05-05 深圳市明源云科技有限公司 Identification method, device, equipment and medium for secondary development function
CN116069379B (en) * 2023-01-28 2023-08-04 深圳市明源云科技有限公司 Identification method, device, equipment and medium for secondary development function

Similar Documents

Publication Publication Date Title
JP7398068B2 (en) software testing
US8015239B2 (en) Method and system to reduce false positives within an automated software-testing environment
US7617486B2 (en) Method and system to automate software testing using sniffer side and browser side recording and a toolbar interface
US7908583B2 (en) Evidentiary enrichment of traceability links between software specification requirements
US20160196021A1 (en) Automated Modularization of Graphical User Interface Test Cases
CN109471805B (en) Resource testing method and device, storage medium and electronic equipment
Bao et al. Extracting and analyzing time-series HCI data from screen-captured task videos
US8838559B1 (en) Data mining through property checks based upon string pattern determinations
Brandtner et al. SQA-Mashup: A mashup framework for continuous integration
US20200313994A1 (en) Automated analysis and recommendations for highly performant single page web applications
US20230003565A1 (en) User interfaces for displaying discretized elements of logical flow systems
CN110209902B (en) Method and system for visualizing feature generation process in machine learning process
CN112363784A (en) Method and device for displaying window in application program
CN113505895A (en) Machine learning engine service system, model training method and configuration method
CN112148276A (en) Visual programming for deep learning
CN114282686A (en) Method and system for constructing machine learning modeling process
US20150006236A1 (en) Rules visualization using an expression tree
CN110659998A (en) Data processing method, data processing apparatus, computer apparatus, and storage medium
Nejati et al. Wprofx: A fine-grained visualization tool for web page loads
Wang et al. Multi-perspective visualization to assist code change review
White et al. Artefact relation graphs for unit test reuse recommendation
CN114238048A (en) Automatic testing method and system for Web front-end performance
CN108960433B (en) Method and system for running machine learning modeling process
CN115437621A (en) Process editing method and device based on robot process automation
CN114371986A (en) User interface test case updating method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210212

RJ01 Rejection of invention patent application after publication