zoukankan      html  css  js  c++  java
  • robotframework踩坑9--Databaselibrary操作MySQL

    demo 5
        # Databaselibrary 安装:pip install robotframework-databaselibrary -i https://pypi.tuna.tsinghua.edu.cn/simple
        # Databaselibrary 在线文档:http://franz-see.github.io/Robotframework-Database-Library/
        # MySQL 驱动:pip install PyMySQL
    # 连接数据库 # Connect To Database Using Custom Params | [ dbapiModuleName=dbapiModuleName | db_connect_string=db_connect_string ] Connect To Database Using Custom Params PyMySQL database='db_customer', user='username', password='password', host='192.168.5.10', port=8101 # 执行sql语句 # Execute Sql String | query ${var1} Execute Sql String select * from customer order by ctime limit 10; log ${var1} # 执行sql文件 ${CURDIR}为当前目录 # Execute Sql Script | ${CURDIR}\test_scriptsqlfile.sql # 断开数据库连接 Disconnect From Database
    # 可以根据自己需求重写或新增 DatabaseLibrary/query.py 关键字
    喜时之言,多失信;怒时之言,多失体
  • 相关阅读:
    IAccessible ( 一 )
    object sender,EventArgs e的一些讲解
    C# 操作符重载
    MSAA简介
    小试NArrange
    C++宏
    Ext.form.ComboBox简单用法
    SQL SERVER 收缩数据库的命令
    ext.grid的配置属性和方法
    磁盘阵列
  • 原文地址:https://www.cnblogs.com/xiaohuboke/p/13500917.html
Copyright © 2011-2022 走看看