Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TestLinkにテスト結果を自動的に登録

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.
Avatar for takefumi takefumi
February 04, 2021

 TestLinkにテスト結果を自動的に登録

Avatar for takefumi

takefumi

February 04, 2021
Tweet

More Decks by takefumi

Other Decks in Technology

Transcript

  1. cat createTestCaseExecution2-2.json { "testPlanID":74771, # テスト計画ID "buildID":1, # テストケースのバージョン “platformID”:0,

    # プラットホームを設定していない場合は0でよい "testCaseExternalID":"TESTLINK-1", # テストケース名 “notes”:“This is an execution created via REST API”, # 備考 "statusCode":"", # b: ブロック f:失敗 p:成功 "executionType":"2", # 手動:1 自動:2 "executionTimeStampISO":"2013-04-27 12:09:00" # テスト終了時間 } JSON の用意
  2. curl -i -H "PHP-AUTH-USER: <APIキー>" ¥ -H "Content-Type: application/json" ¥

    -X POST ¥ --data "@./createTestCaseExecution2-2.json" ¥ http://localhost/lib/api/rest/v1/executions curl コマンド職人! あとは、コマンドをたたくだけの簡単なお仕事
  3. https://qiita.com/bakachou/items/0f4a4f875d7e452e5fb1 TestLink の RestAPI を curl コマンドでたたいて テスト実行結果を反映する TestLink の

    RestAPI を curl コマンドでたたいてテスト ケースを追加する https://qiita.com/bakachou/items/fe7aef4453068cd97e1c TestLink の RESTAPI で情報取得する https://qiita.com/bakachou/items/3df16c23d7a6b8e9125e