g To facilitate the integration of image comparison capabilities into the user's Devops process,Cloud Testing has opened relevant third-party interfaces. If you need additional interfaces, please join the official Cloud Testing microgroup in Need help and contact the group owner for feedback
# Set all images of the task as baseline images
# Brief description
Set all images underneath a task as baseline images so that other tasks can compare to it
# Request URL
https://minitest.weixin.qq.com/thirdapi/set_plan_image
# How to request
- POST
# parameter
| Parameter Name | Required | type | Introductions |
|---|---|---|---|
| token | yes | string | From the top right corner of the page avatar pull down menu "my information," jump to my information page, view "my Token" |
| group_en_id | yes | string | Project ID in English, available on item management / product management page |
| plan_id | yes | int | Test task ID that needs to be set |
# Return an example
{
"msg": "修改成功",
"rtn": 0,
"timestamp": 1649313364.4696019
}
# Recontrast the mission picture
# Brief description
Generally used after resetting the baseline picture, this interface can be invoked to recontrast the picture under a task. Returns a failure if the task is not finished or is already in recomparison
Particular note: After this interface is called, all images of the task are re-contrasted with baseline images, and the task state is completed by
testchange to`task comparison,
# Request URL
https://minitest.weixin.qq.com/thirdapi/re_diff_plan_image
# How to request
- POST
# parameter
| Parameter Name | Required | type | Introductions |
|---|---|---|---|
| token | yes | string | From the top right corner of the page avatar pull down menu "my information," jump to my information page, view "my Token" |
| group_en_id | yes | string | Project ID in English, available on item management / product management page |
| plan_id | yes | int | Test task ID that needs to be set |
# Return an example
{
"msg": "已开始重新对比图片,敬请耐心等待",
"rtn": 0,
"timestamp": 1649313364.4696019
}
# Delete alternative baseline pictures
# Brief description
As more automated tasks are run over time, the number of alternative baseline pictures is increasing.
Although cloud testing provides a variety of filtering capabilities, when selecting a baseline image, a very old baseline image can interfere with the selection.
This interface can be invoked at this time to delete alternative baseline pictures for a task, or to delete all alternative baseline images currently
Special Note: After deletion, the alternative baseline image cannot be recovered , please choose carefully
# Request URL
https://minitest.weixin.qq.com/thirdapi/del_plan_image
# How to request
- POST
# parameter
| Parameter Name | Required | type | Introductions |
|---|---|---|---|
| token | yes | string | From the top right corner of the page avatar pull down menu "my information," jump to my information page, view "my Token" |
| group_en_id | yes | string | Project ID in English, available on item management / product management page |
| plan_id | no | int | The test task ID that needs to be set.Note: If no plan_id is passed in, all alternative baseline images are deleted |
# Return an example
{
"msg": "成功删除了xx个备选图片",
"rtn": 0,
"timestamp": 1649313364.4696019
}