FESS で Testlink のテストケースをクロールする方法
-
データストアで MySQL DBをクロールします。
-
Testlink DBにアクセス出来るユーザーが必要です。
-
ハンドラー名 DatabaseDataStore
パラメーター
Parameter.
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://DBホスト:3306/testlink?serverTimezone=JST&useUnicode=true&characterEncoding=UTF-8
username=DBAdmin
password=DBAPass
sql=select h1.id as iid, tc.tc_external_id as eid, h1.name as title, tc.summary as summary, tc.preconditions as precond from nodes_hierarchy h1, nodes_hierarchy h2, nodes_hierarchy h3, tcversions tc where h2.parent_id=h1.id and h3.parent_id=h2.id and tc.id=h2.id
- DBホスト、User/Password は使用環境に合わせてください
- このSQLでテストケースのタイトル/サマリー/前提条件をクロールしています
テストステップと期待結果は含めていません - IDとしてテストケースの内部IDを得ています
- serverTimezone=JST は my.ini で Timezone を指定してれば不要です
スクリプト
script.
url="https://Testlinkサーバーアドレス/testlink/lib/testcases/archiveData.php?&edit=testcase&id=" + iid
host=" https://Testlinkサーバーアドレス/"
site="https://Testlinkサーバーアドレス/testlink/"
title="【Testlink】" + title
content=summary
cache=summary
digest=title
anchor=
content_length=content.length()
last_modified=new java.util.Date()
- Url: は Testlink サーバーを指定します
- 検索結果を選択すると、テストケースの編集画面が開きますが実際に編集は出来ません