Java and Python combined automatic script development method and device

The invention provides a Java and Python combined automatic script development method and device. The method comprises the steps of deploying a development and execution environment; adopting a Java development tool to create a Java project, and adding a Python dependence package; in the Java projec...

Full description

Saved in:
Bibliographic Details
Main Authors CAO ZONGKAI, CAI BAOLIE, PENG SHENLIANG
Format Patent
LanguageChinese
English
Published 02.04.2021
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention provides a Java and Python combined automatic script development method and device. The method comprises the steps of deploying a development and execution environment; adopting a Java development tool to create a Java project, and adding a Python dependence package; in the Java project, creating a public library keyword so as to realize calling of a Python function by a Java script;and packaging the Java project into a jar file. According to the invention, function calling defined in the Python file is achieved through the Java common function, so that a tester can use Python to achieve some self-defined operations in an automatic script developed by Java, and the invention can be suitable for different automatic test frameworks and has the advantages of being good in universality and easy to use. 本发明提出了一种Java和Python结合的自动化脚本开发方法和装置,所述方法包括:部署开发和执行环境;采用Java开发工具创建Java工程,并添加Jython依赖包;在所述Java工程内,创建公共库关键字,以实现Java脚本对Python函数的调用;将所述Java工程打包成jar文件。本发明通过一个Java公共函数,实现对Python文件中定义的函数调用,使得测试人员可以在Java开发的自动化脚
Bibliography:Application Number: CN202011577489