mabl APIから失敗した実行に関するより詳細なインサイトを取得したいと思ったことはありませんか?それが可能になりました!mablのレポーティングAPIを通じて、失敗したテストおよびプラン実行に対して結果分析が利用できるようになりましたことをお知らせします!以前は、失敗分析を生成するには、mablアプリで失敗したテストまたはプラン実行の出力ページを開く必要がありました。現在は、テストまたはプランが失敗すると、mablが自動的に失敗分析を生成します。
カスタムレポートワークフローを利用するユーザーをサポートするため、以下のAPIエンドポイントに失敗分析を含めました。
チームはこの情報を活用して既存のレポートワークフローを強化し、組織全体でテストやプランが失敗した理由をより明確に把握できるようにします。
ご確認ください
テスト実行またはプラン実行の概要エンドポイントにリクエストを送信すると、レスポンス内に"失敗分析"オブジェクトが含まれていることを確認してください。失敗分析には、"headline"、"summary"、および"failure_category_id"が含まれています。
例を示します。
"failure_analysis": {
"headline": "The test failed because the \"Input\" link was not found on the page.",
"summary": "The test failed because the link to \"https://storage.googleapis.com/public-dev-test-lab/input/index.html\" was not found on the page. Looking at the failing step's logs, the test is on \"https://sandbox.mabl.com/\" while it is trying to click on the \"Input\" link. There may have been an issue navigating to the starting URL specified in the test configuration, or the application may have experienced a regression in which the \"Input\" link is no longer present on the page. I suggest reviewing the value of the variable \"app.url\" to ensure that it is set correctly.",
"failure_category_id": "regression"
}言語サポート
現在、結果分析は英語と日本語に対応しています。mablはワークスペースの所有者のロケール設定を使用して、失敗分析を英語または日本語のどちらで生成するかを決定します。