disconnect database

データベース接続を閉じます
名前説明タイプ修飾子
name

データベース接続の名前です。(以前にアクション connect database を使用して確立されたもの)

Stringなし
なし
次の設定はこのアクションに適用可能です:  remove double quotes from cells.
以下の例は、テストがデータベースに接続し、使用し、その後データベースから切断するプロセスを示しています。データベースへのアクセスが不要になった場合は、アクション disconnect database を使用してください。
                                
                                    	variable	driver	host
create connection string	Northwind_conn_strg	SQL Server	lgdn15031-w7d01
&nbsp			
	port	database name	username
>>>		Northwind	
&nbsp			
	password	others	
>>>		Trusted_Connection=Yes	
&nbsp			
	connection string	name	
connect database	#Northwind_conn_strg	Northwind_conn	
&nbsp			
	name		
use database	Northwind_conn		
&nbsp			
	command	result	
execute sql	select ContactName from Customers where CustomerID='ABOUT'	contactname_ds	
&nbsp			
	name	filter	
use data set	contactname_ds		
&nbsp			
	value	expected	
check value	#ContactName	Thomas Hardy	
&nbsp			
repeat for data set			
&nbsp			
	name		
disconnect database	Northwind_conn		
                                
                            
  • なお、テストが複数のデータベースに同時に接続している場合、現在のデータベースから切断する必要はないことに注意してください。
  • このアクションは修飾子 <ignore> をサポートしています。引数の値として <ignore> が存在するか、引数に <ignore> に評価される式が含まれている場合、そのアクションは実行中にスキップされます。

Copyright © 2023 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333