Automatic script generation method and device, server and storage medium
A script generation and automatic generation technology, applied in the computer field, can solve problems such as low output efficiency of web scripts, inconsistent output of web scripts, and different coding styles of programmers, so as to facilitate unified management of large batches, improve script writing efficiency, and reduce The effect of human cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a schematic flow chart of a method for automatically generating scripts provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of automatically generating web scripts. The method can be executed by an automatic script generation device, which can use software and / or Realized in the form of hardware.
[0028] Such as figure 1 Described, the method of the present embodiment comprises:
[0029] S110. Call the pre-written web script template, and edit the web script template to obtain the web script template to be parsed. When the target control on the web script template is detected and triggered, call the script generation device to convert the web script template to be parsed Import to the script generation device.
[0030] Wherein, the web script template is pre-written. Such as figure 2 As shown, the pre-written web script includes script steps, script name, browser type, URL path, element positioning meth...
Embodiment 2
[0048] As a preferred embodiment of the above embodiment, Figure 4 It is another schematic flowchart of a script automatic generation method provided by Embodiment 2 of the present invention. Such as Figure 4 As shown, the method includes:
[0049] S401, start.
[0050] It can be understood that the target web script information needs to be obtained.
[0051] S402. A template editing device.
[0052] Wherein, the template editing device can be understood as a pre-written web script template. The Web script template can include: use case steps, script name, browser type, URL path, element positioning method, element positioning value, action, input content, expected result of successful execution, and expected result of failed execution. The user can edit the corresponding content in the corresponding box, or when the user triggers each control, he can select the content to be written into each control.
[0053] Specifically, the user can edit the required content in th...
Embodiment 3
[0092] Image 6 An automatic script generation device provided by Embodiment 3 of the present invention includes: a script generation device calling module 610 and a Web script information generation module 620 .
[0093] Wherein, the script generating device calling module 610 is used to call the pre-written web script template, and edit the web script template to obtain the web script template to be parsed, when the target control on the web script template is detected and triggered , calling the script generating device to import the web script template to be parsed into the script generating device; the Web script information generating module 620 is used to parse the web script template to be parsed based on the script parsing module to obtain the target web script information, and import the target web script information into the target file.
[0094] In the technical solution of the embodiment of the present invention, by calling a pre-written web script template, when...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com