您好,登錄后才能下訂單哦!
*** Settings ***
Force Tags Data
Library DatabaseLibrary
*** Test Cases ***
1、coonectDatabase
[Documentation] 連接數據庫
... "Provider=SQLOLEDB.1;Data Source=172.17.1.77;Initial Catalog=Test2;Persist Security Info=True;User ID=ygtest;Password=ygtest"
Connect To Database Using Custom Params adodbapi "Provider=SQLOLEDB.1;Data Source=172.17.1.77;Initial Catalog=Test2;Persist Security Info=True;User ID=ygtest;Password=ygtest"
${sql} Query select * from Test2.dbo.table_a
${row} Row Count select * from Test2.dbo.table_a
: FOR ${i} IN RANGE ${row}
\ log ${sql[${i}][0]}
log ${row}
Disconnect From Database
2、使用參數查詢數據
Connect To Database Using Custom Params adodbapi "Provider=SQLOLEDB.1;Data Source=172.17.1.77;Initial Catalog=Test2;Persist Security Info=True;User ID=ygtest;Password=ygtest"
${sql} query select * from Test2.dbo.table_a
log ${sql}
: FOR ${i} IN RANGE 3
\ log ${sql[${i}][${i}]}
Disconnect From Database
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。