Supercharge Your Innovation With Domain-Expert AI Agents!

An automated script development method and device combining java and python

A technology of automated scripts and scripts, applied in the direction of creating/generating source code, instrumentation, error detection/correction, etc., to achieve the effects of improving test efficiency, good versatility, and reducing development workload

Active Publication Date: 2022-07-22
江苏苏宁银行股份有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although automated testing can improve testing efficiency, it also puts forward higher requirements for the skills of testers
When testers use Java to write test scripts, even if there are packaged Java public libraries available, some commonly used character processing, logic processing and business processing still need to be implemented in the script

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
  • An automated script development method and device combining java and python
  • An automated script development method and device combining java and python
  • An automated script development method and device combining java and python

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] It is easy to understand that, according to the technical solutions of the present invention, without changing the essential spirit of the present invention, those of ordinary skill in the art can propose various alternative structures and implementations. Therefore, the following specific embodiments and accompanying drawings are only exemplary descriptions of the technical solutions of the present invention, and should not be regarded as all of the present invention or as limitations or restrictions on the technical solutions of the present invention.

[0030] According to an embodiment of the present invention combined figure 1 Shows. An automated script development method combining Java and Python, including:

[0031] Step S101, deploying a development and execution environment.

[0032] Select an appropriate automated testing framework, install related software, and complete automated development and execution environment deployment. This solution chooses to use...

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 present invention proposes an automated script development method and device combining Java and Python. The method includes: deploying a development and execution environment; using a Java development tool to create a Java project, and adding a Jython dependency package; in the Java project, Create a public library keyword to implement a Java script to call a Python function; package the Java project into a jar file. The invention realizes the function call defined in the Python file through a Java public function, so that the tester can use Python to realize some self-defined operations in the automation script developed by Java, which can be applied to different automatic test frameworks, and has a universal The advantages of good performance and ease of use.

Description

technical field [0001] The invention relates to the field of software testing, in particular, to an automated script development method and device combining Java and Python. Background technique [0002] In software testing, the functions of the system under test are becoming more and more complex, and the number of test cases and the frequency of test case execution are also increasing. In response to this situation, more and more enterprises are introducing automated testing, hoping to solve the current testing dilemma through automation. In the choice of test automation framework, according to different needs, you can choose open source software or commercial software, or you can develop an automated test framework that meets your needs through self-research; the current mainstream automated test frameworks support the use of Java language or Python. and other scripting languages ​​for automated scripting. [0003] Although automated testing can improve testing efficien...

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 Patents(China)
IPC IPC(8): G06F11/36G06F8/30
CPCG06F11/3684G06F11/3664G06F8/315
Inventor 曹宗凯蔡宝列彭申亮
Owner 江苏苏宁银行股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More