Cloud Tool Results API

API สำหรับการเผยแพร่และเข้าถึงผลลัพธ์จากเครื่องมือสำหรับนักพัฒนาซอฟต์แวร์

บริการ: Toolresults.googleapis.com

หากต้องการเรียกใช้บริการนี้ เราขอแนะนำให้คุณใช้ไลบรารีของไคลเอ็นต์ที่ Google จัดเตรียมไว้ให้ หากแอปพลิเคชันของคุณต้องใช้ไลบรารีของคุณเองเพื่อเรียกใช้บริการนี้ ให้ใช้ข้อมูลต่อไปนี้เมื่อคุณส่งคำขอ API

เอกสารการค้นพบ

เอกสารการค้นพบเป็นข้อกำหนดที่เครื่องอ่านได้สำหรับการอธิบายและใช้ REST API โดยใช้เพื่อสร้างไลบรารีของไคลเอ็นต์, ปลั๊กอิน IDE และเครื่องมืออื่นๆ ที่โต้ตอบกับ Google APIs บริการเดียวอาจมีเอกสารการค้นพบได้หลายรายการ บริการนี้มีเอกสารการค้นพบต่อไปนี้

ปลายทางบริการ

ปลายทางบริการคือ URL ฐานที่ระบุที่อยู่เครือข่ายของบริการ API บริการหนึ่งอาจมีปลายทางบริการหลายปลายทาง บริการนี้มีปลายทางบริการต่อไปนี้และ URI ด้านล่างทั้งหมดจะเกี่ยวข้องกับปลายทางของบริการนี้

  • https://toolresults.googleapis.com

ทรัพยากร REST: v1beta3.projects

เมธอด
getSettings GET /toolresults/v1beta3/projects/{projectId}/settings
รับการตั้งค่าผลลัพธ์เครื่องมือสำหรับโปรเจ็กต์
initializeSettings POST /toolresults/v1beta3/projects/{projectId}:initializeSettings
สร้างทรัพยากรสำหรับการตั้งค่าที่ยังไม่ได้ตั้งค่า

ทรัพยากร REST: v1beta3.projects.histories

เมธอด
create POST /toolresults/v1beta3/projects/{projectId}/histories
สร้างประวัติ
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}
รับประวัติ
list GET /toolresults/v1beta3/projects/{projectId}/histories
แสดงรายการประวัติสำหรับโปรเจ็กต์ที่ระบุ

ทรัพยากร REST: v1beta3.projects.histories.executions

เมธอด
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions
สร้างการดำเนินการ
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}
รับการดำเนินการ
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions
แสดงรายการการดำเนินการสำหรับประวัติที่ระบุ
patch PATCH /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}
อัปเดตการดำเนินการที่มีอยู่ด้วยเอนทิตีบางส่วนที่ระบุ

ทรัพยากร REST: v1beta3.projects.histories.executions.clusters

เมธอด
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}
เรียกข้อมูลคลัสเตอร์ภาพหน้าจอเดียวตามรหัส
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters

แสดงรายการคลัสเตอร์ภาพหน้าจอ

แสดงผลรายการคลัสเตอร์ภาพหน้าจอที่เกี่ยวข้องกับการดำเนินการ

ทรัพยากร REST: v1beta3.projects.histories.executions.environments

เมธอด
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}
รับสภาพแวดล้อม
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments
แสดงรายการสภาพแวดล้อมสำหรับการดำเนินการที่กำหนด

ทรัพยากร REST: v1beta3.projects.histories.executions.steps

เมธอด
accessibilityClusters GET /toolresults/v1beta3/{name=projects/*/histories/*/executions/*/steps/*}:accessibilityClusters

แสดงรายการคลัสเตอร์การช่วยเหลือพิเศษสำหรับขั้นตอนที่ต้องการ

อาจแสดงรหัสข้อผิดพลาด Canonical ต่อไปนี้

  • PERMISSION_DENIED - หากผู้ใช้ไม่ได้รับอนุญาตให้อ่านโปรเจ็กต์
  • INVALID_ARGUMENT - หากคำขอมีรูปแบบไม่ถูกต้อง
  • FAILED_PRECONDITION - หากอาร์กิวเมนต์ในคำขอไม่ถูกต้อง เช่น
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps
สร้างขั้นตอน
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}
รับขั้นตอน
getPerfMetricsSummary GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary
เรียกข้อมูล PerfMetricsSummary
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps
แสดงรายการขั้นตอนสำหรับการดำเนินการที่กำหนด
patch PATCH /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}
อัปเดตขั้นตอนที่มีอยู่ด้วยเอนทิตีบางส่วนที่ระบุ
publishXunitXmlFiles POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles
เผยแพร่ไฟล์ XML ไปยังขั้นตอนที่มีอยู่

ทรัพยากร REST: v1beta3.projects.histories.executions.steps.perfMetricsSummary

เมธอด
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary
สร้างทรัพยากร PerfMetricsSummary

ทรัพยากร REST: v1beta3.projects.histories.executions.steps.perfSampleSeries

เมธอด
create POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries
สร้าง PerfSampleSeries
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}
รับ PerfSampleSeries
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries
แสดงรายการ PerfSampleSeries สำหรับขั้นตอนหนึ่งๆ

ทรัพยากร REST: v1beta3.projects.histories.executions.steps.perfSampleSeries.samples

เมธอด
batchCreate POST /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate
สร้างกลุ่ม PerfSamples - ไคลเอ็นต์จะส่งชุด Perf Sample ได้หลายชุดผ่านการเรียกใช้วิธีนี้ซ้ำๆ เพื่อแบ่งเพย์โหลดคำขอขนาดใหญ่ ระบบจะไม่สนใจรายการที่ซ้ำและรายการการประทับเวลาที่มีอยู่
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples

แสดงรายการตัวอย่างประสิทธิภาพของชุดตัวอย่างที่ระบุ - ผลลัพธ์ในรายการจะจัดเรียงตามการประทับเวลาจากน้อยไปมาก - ขนาดหน้าเว็บเริ่มต้นคือ 500 ตัวอย่าง และขนาดสูงสุดคือ 5, 000 ตัวอย่าง - โทเค็นการตอบกลับระบุการประทับเวลา PerfSample ที่แสดงผลล่าสุด - เมื่อผลลัพธ์มีขนาดเกินขนาดหน้าเว็บ ให้ส่งคำขอที่ตามมารวมถึงโทเค็นของหน้าเว็บเพื่อแสดงผลตัวอย่างที่เหลือไปจนถึงขีดจำกัดหน้าเว็บ

อาจแสดงรหัสข้อผิดพลาด Canonical ต่อไปนี้ - OUT_OF_RANGE - คำขอ page_token ที่ระบุอยู่นอกช่วงที่ถูกต้อง - NOT_FOUND - ไม่มี PerfSampleSeries ที่มีอยู่

ทรัพยากร REST: v1beta3.projects.histories.executions.steps.testCases

เมธอด
get GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}
ดูรายละเอียดของกรอบการทดสอบสำหรับขั้นตอนหนึ่งๆ
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases
แสดงรายการกรอบการทดสอบที่แนบมากับขั้นตอน

ทรัพยากร REST: v1beta3.projects.histories.executions.steps.thumbnails

เมธอด
list GET /toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails
แสดงรายการภาพขนาดย่อของรูปภาพที่แนบมากับขั้นตอน