2016-12-09 1 views
-1

機能オートメーションとパフォーマンステストのためにSeleniumとJMeterを使用しています。私たちはJIRAとZephyrを使ってセレンと統合しようと考えています。セレンテスト結果をトリガー/収集し、zapiを使用してZephyr for Jiraに投稿するカスタムスクリプトを手伝ってもらえますか

ZEPIを使用してzephyrとセレンの統合に関するドキュメントを読みました。 POCの一環としてJiraサーバーとZAPIのために私の仕事用マシンとセレンにゼフィアをインストールしました。

私たちは、ANTビルド(build.xml)ファイルを使用してセレンスクリプト(テストケース)を実行し、テスト結果を含むHTMLファイルを生成できました。これをゼフィアに反映させたいと思います。

ゼフィーをゼファーと統合してプロジェクトの目的でゼフィーを購入することができますか?

セレンの結果をトリガ/収集し、ZAPIを使用してZephyr for Jiraに投稿するために作成する必要があるカスタムスクリプトとは何ですか?

+0

あなたはドキュメントを見ましたか?あなたはどんな努力をしましたか? – DejaVuSansMono

+0

私は彼らが提供した文書(下記のリンクを参照)を通過しました.https://support.getzephyr.com/hc/en-us/articles/204713195-Integrate-Selenium-JUnit-and-ANT-with-Zephyr- for-JIRA-and-ZAPIは、ステップ4のセレンテスト結果のHTMLレポートを生成するのに成功しましたが、私はzapy経由でゼフルでこれらのテスト結果を表示する方法についてステップ5を得ません。 – maddy

+0

ZAPI RestApi Zephyrテストケースを更新します。 –

答えて

0
First you need to get all Zephyr Test from from JIRA using ZAPi Rest Api. 
Once you got all the test id then you update Test Status. 
below are few queries you can use to get test information. 
By using GET : "http://jira.hk.hsbc/rest/api/latest/project"; 
get you project id, 
then you need to get Version Id GET : http://jira.hk.hsbc/rest/api/latest/project/" + projectId + "/versions"; 
then you need to get Cycle Id 
GET : "http://jira.hk.hsbc/rest/zapi/latest/cycle?projectId=" + projectId + "&versionId=" + versionId; 
From here you can get all your Issue Ids : 
GET : "http://jira.hk.hsbc/rest/zapi/latest/execution?projectId=" + projectId + "&versionId=" + versionId 
      + "&cycleId=" + cycleId; 
After you get your issue IDs you can then set execution status pass fail based on your results: 
PUT : https://jira.hk.hsbc/rest/zapi/latest/execution/" + issueId + "/execute 

Try this and it will solve you issue, I hope you know how to do HttpGet and Put using java if not follow this: http://stackoverflow.com/questions/1485708/how-do-i-do-a-http-get-in-java 
関連する問題