Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Pending Publication Date: 2020-03-17
SHENZHEN HONGDIAN TECH CORP
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, most testers are not very familiar with programming languages ​​and selenium, which leads to certain difficulties in writing web scripts, and the inconsistent coding styles of different programmers lead to inconsistent output of web scripts, which affects the low efficiency of web script output technical problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Automatic script generation method and device, server and storage medium
  • Automatic script generation method and device, server and storage medium
  • Automatic script generation method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses an automatic script generation method and device, equipment and a storage medium. The automatic script generation method comprises the steps of calling a pre-written web script template, editing the web script template to obtain a to-be-analyzed web script template, and calling a script generation device to import the to-be-analyzed web script template into the script generation device when it is detected that a target control on the web script template is triggered; and analyzing the to-be-analyzed web script template based on the script analysis module to obtain target web script information, and importing the target web script information into the target file. The technical scheme solves the technical problem that most of testers exist at present are unfamiliar with the programming language, thus being difficult in compiling the web script and different programmers have different code styles so that web script output is not consistent so asto reduce the web script output efficiency, and realizes the technical effects that the web scripts are automatically written, and script writing efficiency is improved, and labor cost is reduced areachieved.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, and in particular to a script automatic generation method, device, server and storage medium. Background technique [0002] Currently generating web scripts is mainly achieved through selenium, which can be combined with multiple languages, such as python, Java, Ruby, etc. In other words, to write web scripts, you need to have a good understanding of selenium and programming languages. [0003] At present, most testers are not very familiar with programming languages ​​and selenium, which leads to certain difficulties in writing web scripts, and the inconsistent coding styles of different programmers lead to inconsistent output of web scripts, which affects the low efficiency of web script output technical problem. Contents of the invention [0004] The invention provides a script automatic generation method, device, server and storage medium to realize the technic...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/447
Inventor 李金文司科卫
Owner SHENZHEN HONGDIAN TECH CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products