Method and device for labeling power grid work order and storage medium

By automatically matching and labeling business tags in the power grid work order page in the web test tool, the problems of inefficient manual labeling and high error rate are solved, and more efficient and accurate work order labeling is achieved.

CN119850135APending Publication Date: 2025-04-18GUANGDONG POWER GRID CO LTD +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411937706.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Due to the large number of business labels and the complex definition, the manual labeling of power grid work order labels is inefficient and the probability of errors is high.

Method used

By implementing automated scripts in web testing tools, logging into the power grid's marketing system, detecting work order pages, matching and labeling business tags, and analyzing customer demand content using natural language processing technology to match appropriate business tags.

Benefits of technology

It improves the efficiency of labeling business labels for power grid work orders, reduces the time-consuming of manual labeling, improves the accuracy rate, and reduces the probability of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119850135A_ABST
    Figure CN119850135A_ABST
Patent Text Reader

Abstract

The invention discloses a method and equipment for labeling a power grid work order and a storage medium. The method comprises the following steps: logging in a marketing system of a power grid in a browser; detecting a work order page in a marketing system of a power grid; the work order page is used for recording signed and customer appealed work orders; matching a service label for the work order according to the content of the customer appeal in the work order page; and labeling the work order with a service label in the work order page. The embodiment of the invention provides a framework for automatically labeling the work order in the work order page with the service label, the framework can be realized by using a webpage test tool, does not cause damage to a marketing system, is low in development difficulty and development workload, can assist workers in labeling the appropriate service label for the work order of a power grid, is less in time consumption and high in accuracy, and is suitable for popularization and application. And the efficiency of labeling the service label on the power grid work order is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to a method, device and storage medium for labeling power grid work orders. Background Art

[0002] Power companies provide a variety of electricity-related services to various customers, such as installing electricity meters, restoring power after power outages, and installing charging stations. As customers have increasingly higher requirements for the service quality of power companies, power companies will classify the work orders of various customers in detail in order to implement more accurate disposal measures and more detailed post-analysis.

[0003] At present, based on the actual situation of customer demands, power companies have defined nearly a hundred business tags. These business tags are manually labeled according to the content of customer demands and the results of the handling.

[0004] Due to the large number of business tags and their complex definitions, manual labeling is time-consuming and has a high probability of error, making manual labeling of business tags for customer electricity-related work orders inefficient. Summary of the invention

[0005] In view of this, the present invention provides a method, device and storage medium for labeling power grid work orders, so as to improve the efficiency of labeling business tags for customer work orders involving electricity.

[0006] A first aspect of the present invention provides a method for labeling a power grid work order, which is applied to a webpage testing tool, and the method comprises:

[0007] Log into the power grid's marketing system in a browser;

[0008] Detecting a work order page in the marketing system of the power grid; the work order page is used to record the work orders that have been signed and requested by customers;

[0009] Matching a business tag to the work order according to the content of the customer's request on the work order page;

[0010] The work order is marked with the business tag on the work order page.

[0011] A second aspect of the present invention provides a device for labeling a power grid work order, which is applied to a webpage testing tool, and the device includes:

[0012] Marketing system login module, used to log in to the marketing system of the power grid in the browser;

[0013] A work order page detection module, used to detect a work order page in the marketing system of the power grid; the work order page is used to record the work orders that have been signed and requested by customers;

[0014] A business tag matching module, used to match business tags to the work order according to the content of the customer's request in the work order page;

[0015] The business tag marking module is used to mark the business tag on the work order on the work order page.

[0016] A third aspect of the present invention provides an electronic device, the electronic device comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for labeling power grid work orders as described in the first aspect above.

[0020] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for labeling a power grid work order as described in the first aspect above.

[0021] A fifth aspect of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the method for marking a label on a power grid work order as described in the first aspect above.

[0022] In this embodiment, the marketing system of the power grid is logged in in the browser; the work order page is detected in the marketing system of the power grid; the work order page is used to record the work orders that have been signed and requested by the customer; the work order is matched with the business tag according to the content of the customer request in the work order page; the work order is marked with the business tag in the work order page. This embodiment provides a framework for automatically marking business tags for work orders in the work order page. The framework can be implemented using a web page testing tool without causing damage to the marketing system. It has low development difficulty and low development workload. It can assist staff in marking appropriate business tags for the work orders of the power grid, takes less time, has high accuracy, and effectively improves the efficiency of marking business tags for the work orders of the power grid.

[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 This is a flow chart of a method for labeling a power grid work order provided in Embodiment 1 of the present invention.

[0026] Figure 2 It is a structural schematic diagram of a device for labeling power grid work orders provided in Embodiment 2 of the present invention.

[0027] Figure 3 It is a structural schematic diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can cover sequential implementations other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Embodiment 1

[0031] See also Figure 1, shows a flow chart of a method for labeling a power grid work order provided by an embodiment of the present invention. The method can be executed by a device for labeling a power grid work order. The device for labeling a power grid work order can be implemented in the form of hardware and / or software. The device for labeling a power grid work order can be configured in an electronic device. The electronic device is configured with a web page testing tool. Selenium is used as an example of a web page testing tool. Selenium includes the following components:

[0032] Selenium IDE: A plug-in that can record basic user operations and generate test cases. These test cases can then be run and played back in the browser, and the test cases can be converted into automated scripts in other languages.

[0033] Selenium Remote Control (RC): supports multiple platforms (i.e. operating systems) and multiple browsers, and test cases can be written in multiple languages ​​(such as Java, Ruby, Python, Perl, PHP, C#, etc.).

[0034] Selenium Grid: Allows Selenium-RC to scale for large test cases or test cases that need to run in different environments.

[0035] In this embodiment, it can be applied to a web page testing tool. On the basis of the native web page testing tool, Python and other languages ​​are used to develop the web page testing tool, so that the web page testing tool simulates the user's operation and has the function of automatically labeling the power grid work order.

[0036] like Figure 1 As shown, the method includes:

[0037] Step 101: Log in to the marketing system of the power grid in a browser.

[0038] In a web testing tool (such as Selenium library), log in to the marketing system of the power grid in a browser, and the marketing system of the power grid records the work orders of users.

[0039] In a specific implementation, a webpage testing tool (such as Selenium library) starts a browser, and inputs address information such as the URL (Uniform Resource Locator) of the marketing system of the power grid into the browser to load a login page of the marketing system of the power grid.

[0040] A first cascading style sheet selector (i.e., CSS selector) is used to locate a login button in the login page; the first cascading style sheet selector (i.e., CSS selector) belongs to the login button.

[0041] At this time, operations such as clicking can be simulated to trigger the login button to pop up a login window; the login window is used to log in to the marketing system of the power grid when the login information (such as Ukey password) entered by the staff is received.

[0042] In the marketing system of the power grid, the staff can freely operate various functions in the marketing system of the power grid without being interfered by the web testing tools.

[0043] Step 102: Check the work order page in the marketing system of the power grid.

[0044] In actual applications, web page testing tools (such as Selenium library) can be used in the marketing system of the power grid to cyclically check whether the staff has signed for the work orders requested by the customer. That is, the work order page can be cyclically checked in the marketing system of the power grid. The work order page is used to record the work orders requested by the customer that have been signed by the staff.

[0045] In one embodiment of the present invention, step 102 may include the following steps:

[0046] Step 1021: Detect the tag page related to the work order requested by the customer in the marketing system of the power grid.

[0047] In this embodiment, the marketing system of the power grid has multiple label pages (also called tabs), and the web page testing tool (such as Selenium library) can cyclically detect the label pages related to the work orders requested by customers in the marketing system of the power grid.

[0048] In a specific implementation, a web page testing tool (such as a Selenium library) searches the marketing system for a second cascading style sheet selector (i.e., CSS selector) that matches a specific path and attributes; the second cascading style sheet selector (i.e., CSS selector) belongs to a tab page.

[0049] The second cascading style sheet selector (i.e., CSS selector) is used to query the title of the tab page to determine whether the title of the tab page contains keywords related to the work order requested by the customer, such as "work order", "work order", etc.

[0050] If the title of any label page contains keywords related to the work order requested by the customer, it is determined that the label page is related to the work order requested by the customer. At this time, the business label operation can be further continued.

[0051] If the titles of all tab pages do not contain keywords related to the work order requested by the customer, wait for a certain period of time and continue to use the second cascading style sheet selector (i.e., CSS selector) in a loop to query the titles of the tab pages to determine whether the titles of the tab pages contain keywords related to the work order requested by the customer.

[0052] Step 1022: Detect the operation elements related to the work order receipt in the tab page.

[0053] In the tab page related to the work order requested by the customer, the web testing tool (such as the Selenium library) can further detect the operation elements related to the signing of the work order, where the operation elements refer to various elements in the tab page related to user operations, such as text boxes, buttons, etc.

[0054] In a specific implementation, a third cascading style sheet selector (i.e., CSS selector) that meets specific sub-paths and attributes is searched in a tab page; the third cascading style sheet selector (i.e., CSS selector) belongs to a specific text box; the specific text box is used to fill in the content of the customer's request in the work order.

[0055] The fourth cascading style sheet selector (ie, CSS selector) that matches the specific sub-path and attribute is searched in the tag page; the fourth cascading style sheet selector (ie, CSS selector) belongs to the mark button; the mark button is used to mark the specified business tag.

[0056] Search the tab page for a fifth cascading style sheet selector (i.e., CSS selector) that matches a specific subpath and attribute; the fifth cascading style sheet selector (i.e., CSS selector) belongs to a transfer button; the transfer button is used to transfer work orders between different staff members in the marketing system of the power grid.

[0057] If the third cascading style sheet selector (ie, CSS selector), the fourth cascading style sheet selector (ie, CSS selector) and the fifth cascading style sheet selector (ie, CSS selector) are found at the same time, it is determined that an operation element related to the receipt of the work order is detected in the tab page.

[0058] If the third cascading style sheet selector (ie, CSS selector), the fourth cascading style sheet selector (ie, CSS selector) and the fifth cascading style sheet selector (ie, CSS selector) are not found at the same time, it is determined that no operation elements related to the receipt of the work order are detected in the tab page.

[0059] Step 1023: If an operation element is detected, determine that the tab page is a work order page.

[0060] If a web testing tool (such as a Selenium library) detects an operation element related to signing for a work order in a tab page related to a work order requested by a customer, it can be determined that the current tab page is a work order page that records the work order requested by the customer that has been signed by the staff.

[0061] If a web testing tool (such as a Selenium library) does not detect an operation element related to signing for a work order in a tab page related to a work order requested by a customer, it can be determined that the current tab page is not a work order page that records the work order requested by the customer that has been signed by the staff.

[0062] Step 103: Match the work order with a business tag based on the content of the customer's request on the work order page.

[0063] Web page testing tools (such as Selenium library) read the content of user requests from the work order page, use NLP (Natural Language Processing) technology to analyze the semantics of the content of user requests, and then match the current work order with a business tag that is compatible with the semantics.

[0064] In one embodiment of the present invention, step 103 may include the following steps:

[0065] Step 1031: Read the content of the customer's request in the text box.

[0066] In this embodiment, the webpage testing tool (such as Selenium library) can read the text information recorded in the specific text box found previously to obtain the content of the customer's request.

[0067] Step 1032: Find the regular expression configured for each service tag.

[0068] In this embodiment, the webpage testing tool (such as Selenium library) can read the regular expression configured for each service tag from a local table.

[0069] In general, a regular expression is a text pattern that includes common characters (for example, letters from a to z) and special characters (called metacharacters) that can be used to describe and match specific patterns of strings.

[0070] In this embodiment, text features may be extracted from the content of typical customer demands under each business tag to construct corresponding regular expressions.

[0071] Furthermore, considering that the content of customer demands usually includes affirmative demands and negative demands, for the same business tag, a regular expression representing an affirmative rule and a regular expression representing a negative rule may be configured at the same time.

[0072] The regular expression representing the affirmative rule is used to match the content of the customer's affirmative request, and the regular expression representing the negative rule is used to match the content of the customer's negative request.

[0073] At this time, the webpage testing tool (such as Selenium library) can search the local table for the regular expression indicating the affirmative rule and the regular expression indicating the negative rule configured for the same business tag according to the information such as the ID of the business tag.

[0074] Step 1033: Use regular expressions to match the content.

[0075] Web page testing tools (such as Selenium library) load regular expressions and use regular expressions to match key fields in the content of customer requests.

[0076] When a regular expression representing an affirmative rule and a regular expression representing a negative rule are configured for the same business tag at the same time, on the one hand, the regular expression representing the affirmative rule is used to match the key fields of the customer's affirmative demands in the content of the customer demands, and the number of key fields of the customer's affirmative demands is counted; on the other hand, the regular expression representing the negative rule is used to match the key fields of the customer's negative demands in the content of the customer demands, and the number of key fields of the customer's negative demands is counted.

[0077] If the number of key fields of the customer's affirmative demands is greater than 0, and the number of key fields of the customer's negative demands is equal to 0, it is determined that the regular expression matches the content successfully.

[0078] If the number of key fields of the customer's affirmative demands is equal to 0, and / or the number of key fields of the customer's negative demands is greater than 0, it is determined that the regular expression fails to match the content.

[0079] Step 1034: If the regular expression matches the content successfully, determine the business tag that matches the work order.

[0080] If the regular expression of a business tag successfully matches the content of the user's request, it is determined that the business tag is matched to the corresponding work order.

[0081] For example, the content of the user's complaint is "The customer reported that he applied for a charging pile at the above address on September 10. The staff asked him to show the ownership information of the parking space, but the customer said that his parking space was a leased space and he had no ownership. He expressed dissatisfaction with this and please follow up."

[0082] For the business tag "Charging Pile Information", the regular expression representing the affirmative rule is ".*Property Information.*", and the regular expression representing the negative rule is ".*So far (?: no|no|no) person has contacted.*". At this time, the content of the customer's request can match the regular expression representing the affirmative rule, but cannot match the regular expression representing the negative rule. Therefore, the work order to which the content of the customer's request belongs matches "Charging Pile Information".

[0083] Step 104: Mark the work order with a business tag on the work order page.

[0084] In this embodiment, when matching one or more appropriate business tags to a work order on a work order page, a webpage testing tool (such as a Selenium library) marks the work order with the one or more business tags according to the operation elements provided on the work order page.

[0085] In a specific implementation, a web page testing tool (such as a Selenium library) can traverse each business tag, and use an extensible markup language path language selector (i.e., an Xpath selector) to locate a label button whose text content is a business tag, and obtain a target button; an extensible markup language path language selector (i.e., an Xpath selector) belongs to a label tag.

[0086] Use simulated clicks, selections, and other methods to trigger each target button to pre-mark each business tag to the work order.

[0087] The sixth cascading style sheet selector (ie, CSS selector) is used to trigger the OK button to confirm that the pre-marked business label is marked on the work order; the sixth cascading style sheet selector (ie, CSS selector) belongs to the OK button.

[0088] In this embodiment, the marketing system of the power grid is logged in in the browser; the work order page is detected in the marketing system of the power grid; the work order page is used to record the work orders that have been signed and requested by the customer; the work order is matched with the business tag according to the content of the customer request in the work order page; the work order is marked with the business tag in the work order page. This embodiment provides a framework for automatically marking business tags for work orders in the work order page. The framework can be implemented using a web page testing tool without causing damage to the marketing system. It has low development difficulty and low development workload. It can assist staff in marking appropriate business tags for the work orders of the power grid, takes less time, has high accuracy, and effectively improves the efficiency of marking business tags for the work orders of the power grid.

[0089] Embodiment 2

[0090] See also Figure 2 , shows a schematic diagram of the structure of a device for labeling a power grid work order provided by Embodiment 2 of the present invention. Figure 2 As shown, the device is applied to a web page testing tool, and includes:

[0091] The marketing system login module 201 is used to log in to the marketing system of the power grid in the browser;

[0092] A work order page detection module 202 is used to detect a work order page in the marketing system of the power grid; the work order page is used to record the work orders that have been signed and requested by customers;

[0093] A business tag matching module 203 is used to match the business tag of the work order according to the content of the customer's request in the work order page;

[0094] The business tag marking module 204 is used to mark the business tag on the work order in the work order page.

[0095] In one embodiment of the present invention, the marketing system login module 201 includes:

[0096] The browser startup module is used to start the browser;

[0097] A login page loading module, used to load a login page of a marketing system of a power grid in the browser;

[0098] A login button positioning module, configured to use a first cascading style sheet selector to locate a login button on the login page; the first cascading style sheet selector belongs to the login button;

[0099] The login button trigger module is used to trigger the login button to pop up a login window; the login window is used to log in to the marketing system of the power grid when the login information is received.

[0100] In one embodiment of the present invention, the work order page detection module 202 includes:

[0101] A label page detection module, used to detect label pages related to work orders requested by customers in the marketing system of the power grid;

[0102] An operation element detection module, used to detect operation elements related to signing for the work order in the tab page;

[0103] The work order page determination module is used to determine that the tab page is a work order page if the operation element is detected.

[0104] In one embodiment of the present invention, the tag page detection module is further used to:

[0105] Searching the marketing system for a second cascading style sheet selector that matches a specific path and attribute; the second cascading style sheet selector belongs to a tag page;

[0106] Using the second cascading style sheet selector to query the title of the tab page;

[0107] If the title contains keywords related to the work order requested by the customer, it is determined that the tag page is related to the work order requested by the customer.

[0108] In one embodiment of the present invention, the operation element detection module is further used to:

[0109] Searching for a third cascading style sheet selector that matches a specific subpath and attribute in the tab page; the third cascading style sheet selector is a text box; the text box is used to fill in the content of the customer's request in the work order;

[0110] Searching for a fourth cascading style sheet selector that matches a specific sub-path and attribute in the label page; the fourth cascading style sheet selector is a marking button; the marking button is used to mark a specified business label;

[0111] Searching for a fifth cascading style sheet selector that matches a specific subpath and attribute in the tab page; the fifth cascading style sheet selector belongs to a transfer button; the transfer button is used to transfer the work order in the marketing system of the power grid;

[0112] If the third cascading style sheet selector, the fourth cascading style sheet selector and the fifth cascading style sheet selector are found at the same time, it is determined that an operation element related to signing for the work order is detected in the tab page;

[0113] If the third cascading style sheet selector, the fourth cascading style sheet selector and the fifth cascading style sheet selector are not found at the same time, it is determined that no operation element related to signing for the work order is detected in the tab page.

[0114] In one embodiment of the present invention, the service tag matching module 203 includes:

[0115] A request content reading module, used to read the content of the customer's request in the text box;

[0116] A regular expression search module is used to search for regular expressions configured for each service tag;

[0117] A regular expression matching module, used for matching the content using the regular expression;

[0118] The service tag determination module is used to determine whether the service tag matches the work order if the regular expression successfully matches the content.

[0119] In one embodiment of the present invention, the regular expression search module is further used for:

[0120] Find the regular expression indicating the positive rule and the regular expression indicating the negative rule configured for the same service label;

[0121] The regular expression matching module is also used to:

[0122] Using the regular expression representing the affirmative rule to match the key fields of the customer's affirmative demand in the content;

[0123] Using the regular expression representing the negation rule to match the key field of the customer's negative request in the content;

[0124] If the number of key fields of the customer's affirmative demands is greater than 0, and the number of key fields of the customer's negative demands is equal to 0, it is determined that the regular expression successfully matches the content;

[0125] If the number of key fields of the customer's affirmative request is equal to 0, and / or the number of key fields of the customer's negative request is greater than 0, it is determined that the regular expression fails to match the content.

[0126] In one embodiment of the present invention, the service label marking module 204 includes:

[0127] a target button positioning module, used for locating the annotation button whose text content is the business tag by using an extensible markup language path language selector to obtain a target button; the extensible markup language path language selector belongs to the annotation tag;

[0128] A target button triggering module, used for triggering each of the target buttons to pre-mark each of the service tags to the work order;

[0129] The confirmation button triggering module is used to use the sixth cascading style sheet selector to trigger the confirmation button to determine to mark the pre-marked business label to the work order; the sixth cascading style sheet selector belongs to the confirmation button.

[0130] The device for labeling power grid work orders provided in the embodiment of the present invention can execute the method for labeling power grid work orders provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method for labeling power grid work orders.

[0131] Embodiment 3

[0132] See also Figure 3, showing a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0133] like Figure 3 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0134] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0135] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for labeling a power grid work order.

[0136] In some embodiments, the method for labeling a power grid work order may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for labeling a power grid work order described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for labeling a power grid work order in any other suitable manner (e.g., by means of firmware).

[0137] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0138] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0139] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0140] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0141] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0142] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0143] Embodiment 4

[0144] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the method for labeling a power grid work order as provided in any embodiment of the present invention is implemented.

[0145] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0146] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0147] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for labeling a power grid work order, characterized in that: Applied to a web page testing tool, the method comprises: Log into the power grid's marketing system in a browser; Detecting a work order page in the marketing system of the power grid; the work order page is used to record the work orders that have been signed and requested by customers; Matching a business tag to the work order according to the content of the customer's request on the work order page; The work order is marked with the business tag on the work order page.

2. The method according to claim 1, characterized in that The method of logging into the marketing system of the power grid in the browser includes: Launch your browser; Loading a login page of a marketing system of the power grid in the browser; Locating a login button in the login page using a first CSS selector; the first CSS selector belongs to the login button; The login button is triggered to pop up a login window; the login window is used to log in to the marketing system of the power grid when the login information is received.

3. The method according to claim 1 or 2, characterized in that: The detecting of the work order page in the marketing system of the power grid includes: Detecting a tag page related to a work order requested by a customer in a marketing system of the power grid; Detecting operation elements related to signing for the work order in the tab page; If the operation element is detected, it is determined that the tab page is a work order page.

4. The method according to claim 3, characterized in that The step of detecting a tag page related to a work order requested by a customer in the marketing system of the power grid includes: Searching the marketing system for a second cascading style sheet selector that matches a specific path and attribute; the second cascading style sheet selector belongs to a tag page; Using the second cascading style sheet selector to query the title of the tab page; If the title contains keywords related to the work order requested by the customer, it is determined that the tag page is related to the work order requested by the customer.

5. The method according to claim 3, characterized in that: The detecting, in the tab page, an operation element related to signing for the work order includes: Searching for a third cascading style sheet selector that matches a specific subpath and attribute in the tab page; the third cascading style sheet selector is a text box; the text box is used to fill in the content of the customer's request in the work order; Searching for a fourth cascading style sheet selector that matches a specific sub-path and attribute in the label page; the fourth cascading style sheet selector is a marking button; the marking button is used to mark a specified business label; Searching for a fifth cascading style sheet selector that matches a specific subpath and attribute in the tab page; the fifth cascading style sheet selector belongs to a transfer button; the transfer button is used to transfer the work order in the marketing system of the power grid; If the third cascading style sheet selector, the fourth cascading style sheet selector and the fifth cascading style sheet selector are found at the same time, it is determined that an operation element related to signing for the work order is detected in the tab page; If the third cascading style sheet selector, the fourth cascading style sheet selector and the fifth cascading style sheet selector are not found at the same time, it is determined that no operation element related to signing for the work order is detected in the tab page.

6. The method according to claim 5, characterized in that The matching of the service tag to the work order according to the content of the customer's request in the work order page includes: Read the content of the customer's request in the text box; Find the regular expressions configured for each service tag; Using the regular expression to match the content; If the regular expression successfully matches the content, it is determined that the work order matches the business tag.

7. The method according to claim 6, characterized in that The searching for the regular expressions configured for each service tag includes: Find the regular expression indicating the positive rule and the regular expression indicating the negative rule configured for the same service label; The using the regular expression to match the content includes: Using the regular expression representing the affirmative rule to match the key fields of the customer's affirmative demand in the content; Using the regular expression representing the negation rule to match the key field of the customer's negative request in the content; If the number of key fields of the customer's affirmative demands is greater than 0, and the number of key fields of the customer's negative demands is equal to 0, it is determined that the regular expression successfully matches the content; If the number of key fields of the customer's affirmative request is equal to 0, and / or the number of key fields of the customer's negative request is greater than 0, it is determined that the regular expression fails to match the content.

8. The method according to claim 5, characterized in that The step of marking the work order with the business tag on the work order page includes: Using an extensible markup language path language selector to locate the annotation button whose text content is the business tag, to obtain a target button; the extensible markup language path language selector belongs to the annotation tag; Triggering each of the target buttons to pre-mark each of the service tags to the work order; The sixth cascading style sheet selector is used to trigger the confirmation button to determine to mark the pre-marked business tag to the work order; the sixth cascading style sheet selector belongs to the confirmation button.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for labeling a power grid work order according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for labeling a power grid work order according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Browser-oriented webpage labeling system

    CN101739415A

  • Personalized recommendation method of digital resources

    CN105045864A

  • Cascading style sheet maintenance method and device, computer equipment and storage medium

    CN109725965A

  • Automatic identification and labeling method and device, computer equipment and storage medium

    CN110888810A

  • Webpage element labeling processing method and device, electronic equipment and storage medium

    CN113961848A