使用RF框架做oracle數(shù)據(jù)庫的測試,首先要安裝下面兩個庫:
1.pip install robotframework-databaselibrary
2.pip install cx_Oracle --upgrade
oracle的RF腳本:
oracle數(shù)據(jù)庫? ? ?#case標(biāo)題
? ? ? ? #下面是數(shù)據(jù)庫連接的樣例;
? ? ? ? Connect To Database Using Custom Params cx_Oracle '用戶名','密碼','ip:1521/ORCL'
其他類似mysql,具體請看《Robotframework-RED-mysql數(shù)據(jù)庫的自動化測試》