add
This commit is contained in:
1 parent
359991da19
commit
fef74af253
12 files changed
+506
-509
No files matched your search
@@ -1,120 +0,0 @@
|
|||||||
---
|
|
||||||
name: se-project-uuid-query
|
|
||||||
description: 仅在根据项目名称/项目别名/五码查询项目基础信息时使用。
|
|
||||||
---
|
|
||||||
|
|
||||||
# se-project-uuid-query
|
|
||||||
|
|
||||||
不要着急行动,请先思考**用户是否提供了项目信息?如果没有提供的话,请向用户询问项目名称/五码/项目别名**。
|
|
||||||
|
|
||||||
## 工作流程
|
|
||||||
|
|
||||||
```mermaid
|
|
||||||
flowchart TD
|
|
||||||
S([开始]) --> S1[第1步:调用 debuggingProjectQuery<br/>根据 projectName 查询项目基础信息]
|
|
||||||
|
|
||||||
S1 --> C1{查询结果}
|
|
||||||
C1 -->|查不到| S2[第2步:调用 debuggingProjectQuery<br/>根据 modelCode 查询项目基础信息]
|
|
||||||
C1 -->|total > 1| S5[第5步:展示 rows 中的<br/>projectName 和 modelCode<br/>让用户选择其中 1 个]
|
|
||||||
C1 -->|total = 1| S6[第6步:使用响应的 projectName<br/>调用 queryProjectNameList<br/>获取 projectUuid]
|
|
||||||
|
|
||||||
S2 --> C2{查询结果}
|
|
||||||
C2 -->|查不到| S3[第3步:调用 debuggingProjectQuery<br/>根据 projectAlias 查询项目基础信息]
|
|
||||||
C2 -->|total > 1| S5
|
|
||||||
C2 -->|total = 1| S6
|
|
||||||
|
|
||||||
S3 --> C3{查询结果}
|
|
||||||
C3 -->|查不到| S4[第4步:告诉用户查不到项目信息<br/>让用户提供正确的项目信息]
|
|
||||||
C3 -->|total > 1| S5
|
|
||||||
C3 -->|total = 1| S6
|
|
||||||
|
|
||||||
S4 --> S1
|
|
||||||
|
|
||||||
S5 --> U[用户选择其中 1 个]
|
|
||||||
U --> S6
|
|
||||||
S6 --> E([结束])
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## debuggingProjectQuery
|
|
||||||
|
|
||||||
根据项目名称、项目别名、五码模糊检索项目基础信息。
|
|
||||||
|
|
||||||
### 请求参数
|
|
||||||
|
|
||||||
|参数名称|是否必传|参数描述|
|
|
||||||
|---|---|---|
|
|
||||||
|projectName|否|项目名称|
|
|
||||||
|modelCode|否|五码|
|
|
||||||
|projectAlias|否|项目别名|
|
|
||||||
|
|
||||||
### 响应参数
|
|
||||||
|
|
||||||
|参数名称|参数描述|
|
|
||||||
|---|---|
|
|
||||||
|projectName|项目名称|
|
|
||||||
|modelCode|五码|
|
|
||||||
|projectAlias|项目别名|
|
|
||||||
|
|
||||||
#### 成功示例
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"total": 1,
|
|
||||||
"rows": [
|
|
||||||
{
|
|
||||||
"projectName": "IdeaPad 5 Pro 16ARP8",
|
|
||||||
"projectAlias": "LCP8",
|
|
||||||
"modelCode": "LT4EN"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"code": 200,
|
|
||||||
"msg": "查询成功"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 失败示例
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"code": 500,
|
|
||||||
"msg": "系统异常"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## queryProjectNameList
|
|
||||||
|
|
||||||
根据`projectName`查询`projectUuid`。
|
|
||||||
|
|
||||||
### 请求参数
|
|
||||||
|
|
||||||
|参数名称|是否必传|参数描述|示例|
|
|
||||||
|---|---|---|---|
|
|
||||||
|projectName|否|项目名称|`IdeaPad 5 Pro 16ARP8`|
|
|
||||||
|
|
||||||
### 响应参数
|
|
||||||
|
|
||||||
|参数名称|参数描述|示例|
|
|
||||||
|---|---|---|
|
|
||||||
|name|项目名称|`IdeaPad 5 Pro 16ARP8`|
|
|
||||||
|projectUuid|项目的唯一标识|`1234567890`|
|
|
||||||
|
|
||||||
#### 成功示例
|
|
||||||
|
|
||||||
```
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"name": "IdeaPad 5 Pro 16ARP8",
|
|
||||||
"projectUuid": "1234567890"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 失败示例
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"code": 500,
|
|
||||||
"msg": "系统异常"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
@@ -1,362 +0,0 @@
|
|||||||
---
|
|
||||||
name: se-stress-task-exec
|
|
||||||
description: 仅在执行stress测试的时候触发
|
|
||||||
---
|
|
||||||
|
|
||||||
# se-stress-task-exec
|
|
||||||
|
|
||||||
专门用于执行stress测试。
|
|
||||||
|
|
||||||
## stress
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"model": {
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"testModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
|
||||||
"testModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
|
||||||
"testModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
|
||||||
"parentTestModelNodeUuid": "0",
|
|
||||||
"testCaseSectionDescription": null,
|
|
||||||
"nodeCycle": 1,
|
|
||||||
"nodeIgnore": "0",
|
|
||||||
"nodeSequenceTypeKey": 1,
|
|
||||||
"nodeSequenceNumber": 1,
|
|
||||||
"nodeTimeoutTime": 0,
|
|
||||||
"nodeFailureActionKey": 3,
|
|
||||||
"triggerRetryTimes": 0,
|
|
||||||
"testModelName": "Stress_BurnIn_480Min",
|
|
||||||
"triggerRetryOnePass": "0",
|
|
||||||
"deviceConfigAcquisition": "0",
|
|
||||||
"activityStatusKey": 1,
|
|
||||||
"comments": null,
|
|
||||||
"ownerCode": null,
|
|
||||||
"delayTime": "0",
|
|
||||||
"creatorCode": null,
|
|
||||||
"modifierCode": null,
|
|
||||||
"gmtCreate": "2022-09-14 00:00:00",
|
|
||||||
"gmtModified": null,
|
|
||||||
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
|
||||||
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
|
||||||
"documentVersionUuid": null,
|
|
||||||
"stage": null,
|
|
||||||
"documentVersionCode": null,
|
|
||||||
"documentName": "",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"testModelNodeUuid": "203f4128668aec0264376db4fa24a450",
|
|
||||||
"testModelUuid": "5850c5278463420bb5a6e219771c1bff",
|
|
||||||
"testModelVersionUuid": "6686d7c339614c1a8a1c00e8bb0f40d1",
|
|
||||||
"parentTestModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
|
||||||
"testCaseSectionDescription": null,
|
|
||||||
"nodeCycle": 1,
|
|
||||||
"nodeIgnore": "0",
|
|
||||||
"nodeSequenceTypeKey": 1,
|
|
||||||
"nodeSequenceNumber": 1,
|
|
||||||
"nodeTimeoutTime": 0,
|
|
||||||
"nodeFailureActionKey": 3,
|
|
||||||
"triggerRetryTimes": 0,
|
|
||||||
"testModelName": "BurnInInstaller",
|
|
||||||
"triggerRetryOnePass": "0",
|
|
||||||
"deviceConfigAcquisition": "0",
|
|
||||||
"activityStatusKey": 1,
|
|
||||||
"comments": null,
|
|
||||||
"ownerCode": null,
|
|
||||||
"delayTime": "0",
|
|
||||||
"creatorCode": null,
|
|
||||||
"modifierCode": null,
|
|
||||||
"gmtCreate": "2022-09-14 00:00:00",
|
|
||||||
"gmtModified": null,
|
|
||||||
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
|
||||||
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
|
||||||
"documentVersionUuid": null,
|
|
||||||
"stage": null,
|
|
||||||
"documentVersionCode": null,
|
|
||||||
"documentName": null,
|
|
||||||
"children": [],
|
|
||||||
"recordNode": [],
|
|
||||||
"testModelLevelKey": 1,
|
|
||||||
"softwareToolParam": "/V 9.1.1007.0",
|
|
||||||
"softwareToolParamExplain": null,
|
|
||||||
"parameterDescription": null,
|
|
||||||
"inputLock": 0,
|
|
||||||
"resultCheckMode": 0,
|
|
||||||
"outputRedirect": 1,
|
|
||||||
"testModelVersionCode": "0.0.0.4",
|
|
||||||
"lastTestModelVersionCode": "0.0.0.6",
|
|
||||||
"updateFlag": false,
|
|
||||||
"testSoftwareToolTypeKey": "[[4,42]]",
|
|
||||||
"performEntity": 1,
|
|
||||||
"deviceTypeKey": "1",
|
|
||||||
"testModelDescription": "安装BurnIn并注册",
|
|
||||||
"isShoot": null,
|
|
||||||
"isComments": null,
|
|
||||||
"debugObjectUuid": null,
|
|
||||||
"debugGuideUuid": null,
|
|
||||||
"debugAction": null,
|
|
||||||
"debugObjectType": null,
|
|
||||||
"debugActionType": null,
|
|
||||||
"modelRunType": null,
|
|
||||||
"testSoftwareToolName": "BurnInInstaller",
|
|
||||||
"testSoftwareToolUuid": "66c3206aee894c469769861f8f5577dc",
|
|
||||||
"testSoftwareToolVersionNo": "1.0.0.1",
|
|
||||||
"testModelTypeKey": 1,
|
|
||||||
"configFileRequiredFlag": 0,
|
|
||||||
"documentCopyDTOList": [
|
|
||||||
{
|
|
||||||
"documentName": "summary_input.txt",
|
|
||||||
"fileExtensionKey": "4",
|
|
||||||
"documentVersionNo": "",
|
|
||||||
"documentVersionUuid": "",
|
|
||||||
"fileType": "txt",
|
|
||||||
"controller": {},
|
|
||||||
"progressPercent": 100,
|
|
||||||
"fileUrl": "http://10.159.41.130:8080/mbvClient/downloadFile?objectName=20260923/16/02/27/summary_input.txt&bucketName=document",
|
|
||||||
"fileUuid": "4d9ed85b5044428db48454e7acd3f9d7"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"forbiddenStatus": null,
|
|
||||||
"duplicateFlag": 0,
|
|
||||||
"functionTypeOne": null,
|
|
||||||
"functionTypeTwo": null,
|
|
||||||
"functionTypeThree": null,
|
|
||||||
"functionTypeFour": null,
|
|
||||||
"hasModify": null,
|
|
||||||
"testCaseAssociationVersionUuid": null,
|
|
||||||
"sort": null,
|
|
||||||
"porlistAssociatedFlag": 0,
|
|
||||||
"graphicShowFlag": 0,
|
|
||||||
"testModelVersionVO": null,
|
|
||||||
"lastTestModelVersionUuid": null,
|
|
||||||
"testCaseType": null,
|
|
||||||
"level": 1,
|
|
||||||
"isCheck": false,
|
|
||||||
"isConfig": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"testModelNodeUuid": "93bae141c211641b02e47e5b8eb4b636",
|
|
||||||
"testModelUuid": "af57d8e7cc544f5491e282817479525b",
|
|
||||||
"testModelVersionUuid": "5824552e38f84074ac69bd08d85eea0a",
|
|
||||||
"parentTestModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
|
||||||
"testCaseSectionDescription": null,
|
|
||||||
"nodeCycle": 1,
|
|
||||||
"nodeIgnore": "0",
|
|
||||||
"nodeSequenceTypeKey": 1,
|
|
||||||
"nodeSequenceNumber": 2,
|
|
||||||
"nodeTimeoutTime": 0,
|
|
||||||
"nodeFailureActionKey": 3,
|
|
||||||
"triggerRetryTimes": 0,
|
|
||||||
"testModelName": "BurnInTestAutoStress",
|
|
||||||
"triggerRetryOnePass": "0",
|
|
||||||
"deviceConfigAcquisition": "0",
|
|
||||||
"activityStatusKey": 1,
|
|
||||||
"comments": null,
|
|
||||||
"ownerCode": null,
|
|
||||||
"delayTime": "0",
|
|
||||||
"creatorCode": null,
|
|
||||||
"modifierCode": null,
|
|
||||||
"gmtCreate": "2022-09-14 00:00:00",
|
|
||||||
"gmtModified": null,
|
|
||||||
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
|
||||||
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
|
||||||
"documentVersionUuid": null,
|
|
||||||
"stage": null,
|
|
||||||
"documentVersionCode": null,
|
|
||||||
"documentName": null,
|
|
||||||
"children": [],
|
|
||||||
"recordNode": [],
|
|
||||||
"testModelLevelKey": 1,
|
|
||||||
"softwareToolParam": "TestTime=\"480\"",
|
|
||||||
"softwareToolParamExplain": null,
|
|
||||||
"parameterDescription": null,
|
|
||||||
"inputLock": 0,
|
|
||||||
"resultCheckMode": 0,
|
|
||||||
"outputRedirect": 1,
|
|
||||||
"testModelVersionCode": "0.0.0.5",
|
|
||||||
"lastTestModelVersionCode": "0.0.0.5",
|
|
||||||
"updateFlag": false,
|
|
||||||
"testSoftwareToolTypeKey": "[[1,12]]",
|
|
||||||
"performEntity": 1,
|
|
||||||
"deviceTypeKey": "1",
|
|
||||||
"testModelDescription": "BurnIn Test For Stress",
|
|
||||||
"isShoot": null,
|
|
||||||
"isComments": null,
|
|
||||||
"debugObjectUuid": null,
|
|
||||||
"debugGuideUuid": null,
|
|
||||||
"debugAction": null,
|
|
||||||
"debugObjectType": null,
|
|
||||||
"debugActionType": null,
|
|
||||||
"modelRunType": null,
|
|
||||||
"testSoftwareToolName": "BurnInTestStress",
|
|
||||||
"testSoftwareToolUuid": "d02a1171ae50477a9a13913bfca6c0d8",
|
|
||||||
"testSoftwareToolVersionNo": "1.20.0.6",
|
|
||||||
"testModelTypeKey": 1,
|
|
||||||
"configFileRequiredFlag": 0,
|
|
||||||
"documentCopyDTOList": [
|
|
||||||
{
|
|
||||||
"documentName": "summary_input.txt",
|
|
||||||
"fileExtensionKey": "4",
|
|
||||||
"documentVersionNo": "",
|
|
||||||
"documentVersionUuid": "",
|
|
||||||
"fileType": "txt",
|
|
||||||
"controller": {},
|
|
||||||
"progressPercent": 100,
|
|
||||||
"fileUrl": "http://10.159.41.130:8080/mbvClient/downloadFile?objectName=20260923/16/02/27/summary_input.txt&bucketName=document",
|
|
||||||
"fileUuid": "4d9ed85b5044428db48454e7acd3f9d7"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"forbiddenStatus": null,
|
|
||||||
"duplicateFlag": 0,
|
|
||||||
"functionTypeOne": null,
|
|
||||||
"functionTypeTwo": null,
|
|
||||||
"functionTypeThree": null,
|
|
||||||
"functionTypeFour": null,
|
|
||||||
"hasModify": null,
|
|
||||||
"testCaseAssociationVersionUuid": null,
|
|
||||||
"sort": null,
|
|
||||||
"porlistAssociatedFlag": 0,
|
|
||||||
"graphicShowFlag": 0,
|
|
||||||
"testModelVersionVO": null,
|
|
||||||
"lastTestModelVersionUuid": null,
|
|
||||||
"testCaseType": null,
|
|
||||||
"level": 1,
|
|
||||||
"isCheck": false,
|
|
||||||
"isConfig": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"recordNode": [],
|
|
||||||
"testModelLevelKey": 3,
|
|
||||||
"softwareToolParam": null,
|
|
||||||
"softwareToolParamExplain": null,
|
|
||||||
"parameterDescription": null,
|
|
||||||
"inputLock": 0,
|
|
||||||
"resultCheckMode": 0,
|
|
||||||
"outputRedirect": 1,
|
|
||||||
"testModelVersionCode": "0.0.0.4",
|
|
||||||
"lastTestModelVersionCode": "0.0.0.4",
|
|
||||||
"updateFlag": false,
|
|
||||||
"testSoftwareToolTypeKey": null,
|
|
||||||
"performEntity": 0,
|
|
||||||
"deviceTypeKey": "1",
|
|
||||||
"testModelDescription": "Stress Burnin 8H Test for PA",
|
|
||||||
"isShoot": null,
|
|
||||||
"isComments": null,
|
|
||||||
"debugObjectUuid": null,
|
|
||||||
"debugGuideUuid": null,
|
|
||||||
"debugAction": null,
|
|
||||||
"debugObjectType": null,
|
|
||||||
"debugActionType": null,
|
|
||||||
"modelRunType": null,
|
|
||||||
"testSoftwareToolName": null,
|
|
||||||
"testSoftwareToolUuid": null,
|
|
||||||
"testSoftwareToolVersionNo": null,
|
|
||||||
"testModelTypeKey": 2,
|
|
||||||
"configFileRequiredFlag": 0,
|
|
||||||
"documentCopyDTOList": [
|
|
||||||
{
|
|
||||||
"documentName": "summary_input.txt",
|
|
||||||
"fileExtensionKey": "4",
|
|
||||||
"documentVersionNo": "",
|
|
||||||
"documentVersionUuid": "",
|
|
||||||
"fileType": "txt",
|
|
||||||
"controller": {},
|
|
||||||
"progressPercent": 100,
|
|
||||||
"fileUrl": "http://10.159.41.130:8080/mbvClient/downloadFile?objectName=20260923/16/02/27/summary_input.txt&bucketName=document",
|
|
||||||
"fileUuid": "4d9ed85b5044428db48454e7acd3f9d7"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"forbiddenStatus": null,
|
|
||||||
"duplicateFlag": 0,
|
|
||||||
"functionTypeOne": null,
|
|
||||||
"functionTypeTwo": null,
|
|
||||||
"functionTypeThree": null,
|
|
||||||
"functionTypeFour": null,
|
|
||||||
"hasModify": null,
|
|
||||||
"testCaseAssociationVersionUuid": null,
|
|
||||||
"sort": null,
|
|
||||||
"porlistAssociatedFlag": 0,
|
|
||||||
"graphicShowFlag": 0,
|
|
||||||
"testModelVersionVO": null,
|
|
||||||
"lastTestModelVersionUuid": null,
|
|
||||||
"testCaseType": null,
|
|
||||||
"id": "3d72343",
|
|
||||||
"level": 0,
|
|
||||||
"isCheck": true,
|
|
||||||
"documentValue": "4d9ed85b5044428db48454e7acd3f9d7",
|
|
||||||
"fileUrl": "http://10.159.41.130:8080/mbvClient/downloadFile?objectName=20260923/16/02/27/summary_input.txt&bucketName=document"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"base": {
|
|
||||||
"functionTypeOne": 3,
|
|
||||||
"testTaskName": "Stress_BurnIn_480Min2026923 ",
|
|
||||||
"testTaskTypeKey": 1,
|
|
||||||
"functionTypeTwo": 106,
|
|
||||||
"functionTypeThree": 237,
|
|
||||||
"projectUuid": "",
|
|
||||||
"cascaderValue": [
|
|
||||||
3,
|
|
||||||
106,
|
|
||||||
237,
|
|
||||||
1066
|
|
||||||
],
|
|
||||||
"functionTypeFour": 1066,
|
|
||||||
"extend": {
|
|
||||||
"testCaseForm": {
|
|
||||||
"mbPn": "",
|
|
||||||
"modelName": "",
|
|
||||||
"bu": "",
|
|
||||||
"projectPhaseCode": "",
|
|
||||||
"testCaseName": []
|
|
||||||
},
|
|
||||||
"functionTypeOne": 3,
|
|
||||||
"testTaskName": "Stress_BurnIn_480Min2026923 ",
|
|
||||||
"testTaskTypeKey": 1,
|
|
||||||
"functionTypeTwo": 106,
|
|
||||||
"functionTypeThree": 237,
|
|
||||||
"projectUuid": "",
|
|
||||||
"cascaderValue": [
|
|
||||||
3,
|
|
||||||
106,
|
|
||||||
237,
|
|
||||||
1066
|
|
||||||
],
|
|
||||||
"functionTypeFour": 1066,
|
|
||||||
"projectName": "",
|
|
||||||
"testCaseData": []
|
|
||||||
},
|
|
||||||
"testTaskIssueTypeCode": 1
|
|
||||||
},
|
|
||||||
"rule": {
|
|
||||||
"testTaskUnitBindingRuleKey": 6,
|
|
||||||
"bindingRulePriority": 1,
|
|
||||||
"entityPrimaryKeyList": [
|
|
||||||
{
|
|
||||||
"key": "3015e27563524435a19963c42ad7455e",
|
|
||||||
"value": "500e Gen4s-EOP-SKU1-1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"testTaskIssueTypeCode": 1,
|
|
||||||
"testCaseAssociationVersionUuidList": [],
|
|
||||||
"other": {
|
|
||||||
"isClear": false,
|
|
||||||
"type": 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"code": "0",
|
|
||||||
"msg": "任务下发已提交,正在生成中",
|
|
||||||
"data": {
|
|
||||||
"testTaskUuid": "d3122e1933670401a2f34878c498b21c",
|
|
||||||
"offLineTestUnit": "",
|
|
||||||
"unWorkingTestUnit": "",
|
|
||||||
"testTaskCode": "TT20260923000002"
|
|
||||||
},
|
|
||||||
"ok": true
|
|
||||||
}
|
|
||||||
```
|
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
name: se-task-exec-spec
|
||||||
|
description: 在执行Stress测试、Driver更新、Preload测试时使用。
|
||||||
|
---
|
||||||
|
|
||||||
|
# se-task-exec-spec
|
||||||
|
|
||||||
|
无论如何,请先记住上下文中已提供的信息:
|
||||||
|
|
||||||
|
- `creatorCode`:当前登录人MIS系统的用户ID
|
||||||
|
- `date`:今天的日期
|
||||||
|
|
||||||
|
## 能力索引
|
||||||
|
|
||||||
|
- [执行Stress测试](./references/exec_task_stress_doc.md)
|
||||||
|
- [执行Driver更新](./references/exec_task_update_driver_doc.md)
|
||||||
|
- [执行Preload测试](./references/exec_task_preload_doc.md)
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"testModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
||||||
|
"testModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"testModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"parentTestModelNodeUuid": "0",
|
||||||
|
"nodeCycle": 1,
|
||||||
|
"nodeIgnore": "0",
|
||||||
|
"nodeSequenceTypeKey": 1,
|
||||||
|
"nodeSequenceNumber": 1,
|
||||||
|
"nodeTimeoutTime": 0,
|
||||||
|
"nodeFailureActionKey": 3,
|
||||||
|
"triggerRetryTimes": 0,
|
||||||
|
"testModelName": "Stress_BurnIn_480Min",
|
||||||
|
"triggerRetryOnePass": "0",
|
||||||
|
"deviceConfigAcquisition": "0",
|
||||||
|
"activityStatusKey": 1,
|
||||||
|
"delayTime": "0",
|
||||||
|
"gmtCreate": "2022-09-14 00:00:00",
|
||||||
|
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"testModelNodeUuid": "203f4128668aec0264376db4fa24a450",
|
||||||
|
"testModelUuid": "5850c5278463420bb5a6e219771c1bff",
|
||||||
|
"testModelVersionUuid": "6686d7c339614c1a8a1c00e8bb0f40d1",
|
||||||
|
"parentTestModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
||||||
|
"nodeCycle": 1,
|
||||||
|
"nodeIgnore": "0",
|
||||||
|
"nodeSequenceTypeKey": 1,
|
||||||
|
"nodeSequenceNumber": 1,
|
||||||
|
"nodeTimeoutTime": 0,
|
||||||
|
"nodeFailureActionKey": 3,
|
||||||
|
"triggerRetryTimes": 0,
|
||||||
|
"testModelName": "BurnInInstaller",
|
||||||
|
"triggerRetryOnePass": "0",
|
||||||
|
"deviceConfigAcquisition": "0",
|
||||||
|
"activityStatusKey": 1,
|
||||||
|
"delayTime": "0",
|
||||||
|
"gmtCreate": "2022-09-14 00:00:00",
|
||||||
|
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"testModelLevelKey": 1,
|
||||||
|
"softwareToolParam": "/V 9.1.1007.0",
|
||||||
|
"inputLock": 0,
|
||||||
|
"resultCheckMode": 0,
|
||||||
|
"outputRedirect": 1,
|
||||||
|
"testModelVersionCode": "0.0.0.4",
|
||||||
|
"lastTestModelVersionCode": "0.0.0.6",
|
||||||
|
"updateFlag": false,
|
||||||
|
"testSoftwareToolTypeKey": "[[4,42]]",
|
||||||
|
"performEntity": 1,
|
||||||
|
"deviceTypeKey": "1",
|
||||||
|
"testModelDescription": "安装BurnIn并注册",
|
||||||
|
"testSoftwareToolName": "BurnInInstaller",
|
||||||
|
"testSoftwareToolUuid": "66c3206aee894c469769861f8f5577dc",
|
||||||
|
"testSoftwareToolVersionNo": "1.0.0.1",
|
||||||
|
"testModelTypeKey": 1,
|
||||||
|
"configFileRequiredFlag": 0,
|
||||||
|
"duplicateFlag": 0,
|
||||||
|
"porlistAssociatedFlag": 0,
|
||||||
|
"graphicShowFlag": 0,
|
||||||
|
"level": 1,
|
||||||
|
"isCheck": false,
|
||||||
|
"isConfig": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"testModelNodeUuid": "93bae141c211641b02e47e5b8eb4b636",
|
||||||
|
"testModelUuid": "af57d8e7cc544f5491e282817479525b",
|
||||||
|
"testModelVersionUuid": "5824552e38f84074ac69bd08d85eea0a",
|
||||||
|
"parentTestModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
||||||
|
"nodeCycle": 1,
|
||||||
|
"nodeIgnore": "0",
|
||||||
|
"nodeSequenceTypeKey": 1,
|
||||||
|
"nodeSequenceNumber": 2,
|
||||||
|
"nodeTimeoutTime": 0,
|
||||||
|
"nodeFailureActionKey": 3,
|
||||||
|
"triggerRetryTimes": 0,
|
||||||
|
"testModelName": "BurnInTestAutoStress",
|
||||||
|
"triggerRetryOnePass": "0",
|
||||||
|
"deviceConfigAcquisition": "0",
|
||||||
|
"activityStatusKey": 1,
|
||||||
|
"delayTime": "0",
|
||||||
|
"gmtCreate": "2022-09-14 00:00:00",
|
||||||
|
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"testModelLevelKey": 1,
|
||||||
|
"softwareToolParam": "TestTime=\"480\"",
|
||||||
|
"inputLock": 0,
|
||||||
|
"resultCheckMode": 0,
|
||||||
|
"outputRedirect": 1,
|
||||||
|
"testModelVersionCode": "0.0.0.5",
|
||||||
|
"lastTestModelVersionCode": "0.0.0.5",
|
||||||
|
"updateFlag": false,
|
||||||
|
"testSoftwareToolTypeKey": "[[1,12]]",
|
||||||
|
"performEntity": 1,
|
||||||
|
"deviceTypeKey": "1",
|
||||||
|
"testModelDescription": "BurnIn Test For Stress",
|
||||||
|
"testSoftwareToolName": "BurnInTestStress",
|
||||||
|
"testSoftwareToolUuid": "d02a1171ae50477a9a13913bfca6c0d8",
|
||||||
|
"testSoftwareToolVersionNo": "1.20.0.6",
|
||||||
|
"testModelTypeKey": 1,
|
||||||
|
"configFileRequiredFlag": 0,
|
||||||
|
"duplicateFlag": 0,
|
||||||
|
"porlistAssociatedFlag": 0,
|
||||||
|
"graphicShowFlag": 0,
|
||||||
|
"level": 1,
|
||||||
|
"isCheck": false,
|
||||||
|
"isConfig": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testModelLevelKey": 3,
|
||||||
|
"inputLock": 0,
|
||||||
|
"resultCheckMode": 0,
|
||||||
|
"outputRedirect": 1,
|
||||||
|
"testModelVersionCode": "0.0.0.4",
|
||||||
|
"lastTestModelVersionCode": "0.0.0.4",
|
||||||
|
"updateFlag": false,
|
||||||
|
"performEntity": 0,
|
||||||
|
"deviceTypeKey": "1",
|
||||||
|
"testModelDescription": "Stress Burnin 8H Test for PA",
|
||||||
|
"testModelTypeKey": 2,
|
||||||
|
"configFileRequiredFlag": 0,
|
||||||
|
"duplicateFlag": 0,
|
||||||
|
"porlistAssociatedFlag": 0,
|
||||||
|
"graphicShowFlag": 0,
|
||||||
|
"id": "{id}",
|
||||||
|
"level": 0,
|
||||||
|
"isCheck": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"base": {
|
||||||
|
"functionTypeOne": 3,
|
||||||
|
"testTaskName": "Stress_BurnIn_480Min{date}",
|
||||||
|
"testTaskTypeKey": 1,
|
||||||
|
"functionTypeTwo": 106,
|
||||||
|
"functionTypeThree": 238,
|
||||||
|
"projectUuid": "",
|
||||||
|
"cascaderValue": [
|
||||||
|
3,
|
||||||
|
106,
|
||||||
|
238
|
||||||
|
],
|
||||||
|
"extend": {
|
||||||
|
"testCaseForm": {
|
||||||
|
"mbPn": "",
|
||||||
|
"modelName": "",
|
||||||
|
"bu": "",
|
||||||
|
"projectPhaseCode": "",
|
||||||
|
"testCaseName": []
|
||||||
|
},
|
||||||
|
"functionTypeOne": 3,
|
||||||
|
"testTaskName": "Stress_BurnIn_480Min{date}",
|
||||||
|
"testTaskTypeKey": 1,
|
||||||
|
"functionTypeTwo": 106,
|
||||||
|
"functionTypeThree": 238,
|
||||||
|
"projectUuid": "",
|
||||||
|
"cascaderValue": [
|
||||||
|
3,
|
||||||
|
106,
|
||||||
|
238
|
||||||
|
],
|
||||||
|
"projectName": "",
|
||||||
|
"testCaseData": []
|
||||||
|
},
|
||||||
|
"testTaskIssueTypeCode": 1
|
||||||
|
},
|
||||||
|
"rule": {
|
||||||
|
"testTaskUnitBindingRuleKey": 6,
|
||||||
|
"bindingRulePriority": 1,
|
||||||
|
"entityPrimaryKeyList": [
|
||||||
|
{
|
||||||
|
"key": "{deviceKey}",
|
||||||
|
"value": "{deviceValue}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"testTaskIssueTypeCode": 1,
|
||||||
|
"testCaseAssociationVersionUuidList": [],
|
||||||
|
"other": {
|
||||||
|
"isClear": false,
|
||||||
|
"type": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
{
|
||||||
|
"model": {
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"testModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
||||||
|
"testModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"testModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"parentTestModelNodeUuid": "0",
|
||||||
|
"nodeCycle": 1,
|
||||||
|
"nodeIgnore": "0",
|
||||||
|
"nodeSequenceTypeKey": 1,
|
||||||
|
"nodeSequenceNumber": 1,
|
||||||
|
"nodeTimeoutTime": 0,
|
||||||
|
"nodeFailureActionKey": 3,
|
||||||
|
"triggerRetryTimes": 0,
|
||||||
|
"testModelName": "Stress_BurnIn_480Min",
|
||||||
|
"triggerRetryOnePass": "0",
|
||||||
|
"deviceConfigAcquisition": "0",
|
||||||
|
"activityStatusKey": 1,
|
||||||
|
"delayTime": "0",
|
||||||
|
"gmtCreate": "2022-09-14 00:00:00",
|
||||||
|
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"testModelNodeUuid": "203f4128668aec0264376db4fa24a450",
|
||||||
|
"testModelUuid": "5850c5278463420bb5a6e219771c1bff",
|
||||||
|
"testModelVersionUuid": "6686d7c339614c1a8a1c00e8bb0f40d1",
|
||||||
|
"parentTestModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
||||||
|
"nodeCycle": 1,
|
||||||
|
"nodeIgnore": "0",
|
||||||
|
"nodeSequenceTypeKey": 1,
|
||||||
|
"nodeSequenceNumber": 1,
|
||||||
|
"nodeTimeoutTime": 0,
|
||||||
|
"nodeFailureActionKey": 3,
|
||||||
|
"triggerRetryTimes": 0,
|
||||||
|
"testModelName": "BurnInInstaller",
|
||||||
|
"triggerRetryOnePass": "0",
|
||||||
|
"deviceConfigAcquisition": "0",
|
||||||
|
"activityStatusKey": 1,
|
||||||
|
"delayTime": "0",
|
||||||
|
"gmtCreate": "2022-09-14 00:00:00",
|
||||||
|
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"testModelLevelKey": 1,
|
||||||
|
"softwareToolParam": "/V 9.1.1007.0",
|
||||||
|
"inputLock": 0,
|
||||||
|
"resultCheckMode": 0,
|
||||||
|
"outputRedirect": 1,
|
||||||
|
"testModelVersionCode": "0.0.0.4",
|
||||||
|
"lastTestModelVersionCode": "0.0.0.6",
|
||||||
|
"updateFlag": false,
|
||||||
|
"testSoftwareToolTypeKey": "[[4,42]]",
|
||||||
|
"performEntity": 1,
|
||||||
|
"deviceTypeKey": "1",
|
||||||
|
"testModelDescription": "安装BurnIn并注册",
|
||||||
|
"testSoftwareToolName": "BurnInInstaller",
|
||||||
|
"testSoftwareToolUuid": "66c3206aee894c469769861f8f5577dc",
|
||||||
|
"testSoftwareToolVersionNo": "1.0.0.1",
|
||||||
|
"testModelTypeKey": 1,
|
||||||
|
"configFileRequiredFlag": 0,
|
||||||
|
"duplicateFlag": 0,
|
||||||
|
"porlistAssociatedFlag": 0,
|
||||||
|
"graphicShowFlag": 0,
|
||||||
|
"level": 1,
|
||||||
|
"isCheck": false,
|
||||||
|
"isConfig": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"testModelNodeUuid": "93bae141c211641b02e47e5b8eb4b636",
|
||||||
|
"testModelUuid": "af57d8e7cc544f5491e282817479525b",
|
||||||
|
"testModelVersionUuid": "5824552e38f84074ac69bd08d85eea0a",
|
||||||
|
"parentTestModelNodeUuid": "325e759a512988b94eb0d34e9693403c",
|
||||||
|
"nodeCycle": 1,
|
||||||
|
"nodeIgnore": "0",
|
||||||
|
"nodeSequenceTypeKey": 1,
|
||||||
|
"nodeSequenceNumber": 2,
|
||||||
|
"nodeTimeoutTime": 0,
|
||||||
|
"nodeFailureActionKey": 3,
|
||||||
|
"triggerRetryTimes": 0,
|
||||||
|
"testModelName": "BurnInTestAutoStress",
|
||||||
|
"triggerRetryOnePass": "0",
|
||||||
|
"deviceConfigAcquisition": "0",
|
||||||
|
"activityStatusKey": 1,
|
||||||
|
"delayTime": "0",
|
||||||
|
"gmtCreate": "2022-09-14 00:00:00",
|
||||||
|
"topTestModelUuid": "4b3bfe32c86b872663ac59fd1503fd81",
|
||||||
|
"topTestModelVersionUuid": "d65130dd57816d3e1484a8822a3c2f2b",
|
||||||
|
"testModelLevelKey": 1,
|
||||||
|
"softwareToolParam": "TestTime=\"480\"",
|
||||||
|
"inputLock": 0,
|
||||||
|
"resultCheckMode": 0,
|
||||||
|
"outputRedirect": 1,
|
||||||
|
"testModelVersionCode": "0.0.0.5",
|
||||||
|
"lastTestModelVersionCode": "0.0.0.5",
|
||||||
|
"updateFlag": false,
|
||||||
|
"testSoftwareToolTypeKey": "[[1,12]]",
|
||||||
|
"performEntity": 1,
|
||||||
|
"deviceTypeKey": "1",
|
||||||
|
"testModelDescription": "BurnIn Test For Stress",
|
||||||
|
"testSoftwareToolName": "BurnInTestStress",
|
||||||
|
"testSoftwareToolUuid": "d02a1171ae50477a9a13913bfca6c0d8",
|
||||||
|
"testSoftwareToolVersionNo": "1.20.0.6",
|
||||||
|
"testModelTypeKey": 1,
|
||||||
|
"configFileRequiredFlag": 0,
|
||||||
|
"duplicateFlag": 0,
|
||||||
|
"porlistAssociatedFlag": 0,
|
||||||
|
"graphicShowFlag": 0,
|
||||||
|
"level": 1,
|
||||||
|
"isCheck": false,
|
||||||
|
"isConfig": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testModelLevelKey": 3,
|
||||||
|
"inputLock": 0,
|
||||||
|
"resultCheckMode": 0,
|
||||||
|
"outputRedirect": 1,
|
||||||
|
"testModelVersionCode": "0.0.0.4",
|
||||||
|
"lastTestModelVersionCode": "0.0.0.4",
|
||||||
|
"updateFlag": false,
|
||||||
|
"performEntity": 0,
|
||||||
|
"deviceTypeKey": "1",
|
||||||
|
"testModelDescription": "Stress Burnin 8H Test for PA",
|
||||||
|
"testModelTypeKey": 2,
|
||||||
|
"configFileRequiredFlag": 0,
|
||||||
|
"duplicateFlag": 0,
|
||||||
|
"porlistAssociatedFlag": 0,
|
||||||
|
"graphicShowFlag": 0,
|
||||||
|
"id": "{id}",
|
||||||
|
"level": 0,
|
||||||
|
"isCheck": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"base": {
|
||||||
|
"functionTypeOne": 3,
|
||||||
|
"testTaskName": "Stress_BurnIn_480Min{date}",
|
||||||
|
"testTaskTypeKey": 1,
|
||||||
|
"functionTypeTwo": 106,
|
||||||
|
"functionTypeThree": 238,
|
||||||
|
"projectUuid": "000c798c09d537f4f25f5b29046aebd1",
|
||||||
|
"cascaderValue": [
|
||||||
|
3,
|
||||||
|
106,
|
||||||
|
238
|
||||||
|
],
|
||||||
|
"extend": {
|
||||||
|
"testCaseForm": {
|
||||||
|
"mbPn": "",
|
||||||
|
"modelName": "",
|
||||||
|
"bu": "",
|
||||||
|
"projectPhaseCode": "",
|
||||||
|
"testCaseName": []
|
||||||
|
},
|
||||||
|
"functionTypeOne": 3,
|
||||||
|
"testTaskName": "Stress_BurnIn_480Min{date}",
|
||||||
|
"testTaskTypeKey": 1,
|
||||||
|
"functionTypeTwo": 106,
|
||||||
|
"functionTypeThree": 238,
|
||||||
|
"projectUuid": "{projectUuid}",
|
||||||
|
"cascaderValue": [
|
||||||
|
3,
|
||||||
|
106,
|
||||||
|
238
|
||||||
|
],
|
||||||
|
"projectName": "{projectName}",
|
||||||
|
"testCaseData": []
|
||||||
|
},
|
||||||
|
"testTaskIssueTypeCode": 1
|
||||||
|
},
|
||||||
|
"rule": {
|
||||||
|
"testTaskUnitBindingRuleKey": 6,
|
||||||
|
"bindingRulePriority": 1,
|
||||||
|
"entityPrimaryKeyList": [
|
||||||
|
{
|
||||||
|
"key": "{deviceKey}",
|
||||||
|
"value": "{deviceValue}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"testTaskIssueTypeCode": 1,
|
||||||
|
"testCaseAssociationVersionUuidList": [],
|
||||||
|
"other": {
|
||||||
|
"isClear": false,
|
||||||
|
"type": 2
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-27
@@ -1,14 +1,3 @@
|
|||||||
---
|
|
||||||
name: se-task-exec-update-driver
|
|
||||||
description: 仅在用户提出更新驱动时触发。
|
|
||||||
---
|
|
||||||
|
|
||||||
# se-task-exec-update-driver
|
|
||||||
|
|
||||||
|
|
||||||
## 更新驱动
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
{
|
||||||
"model": {
|
"model": {
|
||||||
"children": [
|
"children": [
|
||||||
@@ -163,19 +152,4 @@ description: 仅在用户提出更新驱动时触发。
|
|||||||
"isClear": false,
|
"isClear": false,
|
||||||
"type": 2
|
"type": 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"code": "0",
|
|
||||||
"msg": "任务下发已提交,正在生成中",
|
|
||||||
"data": {
|
|
||||||
"testTaskUuid": "bf3fd20b58c80ef3f8209ae12890e1bd",
|
|
||||||
"offLineTestUnit": "",
|
|
||||||
"unWorkingTestUnit": "",
|
|
||||||
"testTaskCode": "TT20260923000003"
|
|
||||||
},
|
|
||||||
"ok": true
|
|
||||||
}
|
|
||||||
```
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# 下发任务的工具使用说明
|
||||||
|
|
||||||
|
调用`creatOrSendTask`工具下发任务,请求参数取值规则:
|
||||||
|
|
||||||
|
- `requestBodyJson`:由调用侧提供。
|
||||||
|
- `creatorCode`:从上下文中获取。
|
||||||
|
- `fs`:没有特殊要求使用默认值false即可。
|
||||||
|
|
||||||
|
工具调用结果的处理:
|
||||||
|
|
||||||
|
- 调用成功,把响应结果展示给用户,用户需要记住`testTaskUuid`和`testTaskCode`。
|
||||||
|
- 调用失败,把响应结果展示给用户,友好的告知用户,下发任务工具调用失败,请您稍后再试。
|
||||||
|
|
||||||
|
**特别重要的事项:调用失败了,请不要重试,主动重试可能会带来糟糕的结果,除非用户主动要求。**
|
||||||
|
|
||||||
|
## 成功示例
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"code": "0",
|
||||||
|
"msg": "任务下发已提交,正在生成中",
|
||||||
|
"data": {
|
||||||
|
"testTaskUuid": "1234567890",
|
||||||
|
"offLineTestUnit": "",
|
||||||
|
"unWorkingTestUnit": "",
|
||||||
|
"testTaskCode": "TT20260923000001"
|
||||||
|
},
|
||||||
|
"ok": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 失败示例
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"code": "500",
|
||||||
|
"msg": "系统异常",
|
||||||
|
"ok": false
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# 执行Preload测试文档
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# 执行Stress任务文档
|
||||||
|
|
||||||
|
1. 如果用户提供了项目信息,先阅读[查项目信息文档](./query_project_info_doc.md),一步一步地获取`projectName`和`projectUuid`,如果没有的话就跳过。
|
||||||
|
2. 阅读[查测试机的文档](./query_test_device_doc.md)获取`deviceKey`和`deviceValue`。
|
||||||
|
3. 根据相应的[请求模板文件](#请求模板文件),**一字不改地生成**1个JSON字符串,再根据[变量表](#变量表)执行变量替换。
|
||||||
|
4. 阅读[下发任务文档](./create_task_doc.md),上一步生成的JSON字符串就是`requestBodyJson`参数。
|
||||||
|
|
||||||
|
## 请求模板文件
|
||||||
|
|
||||||
|
- [无项目下发](../example/stress_task_non_project_request.json)
|
||||||
|
- [根据项目下发](../example/stress_task_use_project_request.json)
|
||||||
|
|
||||||
|
## 变量表
|
||||||
|
|
||||||
|
JSON字符串中变量的格式示例:{id},根据取值规则查找并替换。
|
||||||
|
|
||||||
|
|变量名称|取值规则|
|
||||||
|
|---|---|
|
||||||
|
|id|随机生成1个由小写字母、数字组成的7位长度字符串(示例:2b43cb39)|
|
||||||
|
|projectName|调用工具获得的项目名称|
|
||||||
|
|projectUuid|调用工具获得的项目ID|
|
||||||
|
|deviceKey|调用工具获得的测试机ID|
|
||||||
|
|deviceValue|调用工具获得的测试机名称|
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# 更新驱动文档
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
# 查项目信息文档
|
||||||
|
|
||||||
|
请先思考**上下文中是否包含项目信息?如果没有的话,请向用户询问项目名称/五码/项目别名**。
|
||||||
|
|
||||||
|
## 口语和变量的映射关系
|
||||||
|
|
||||||
|
|口语|变量名称|
|
||||||
|
|---|---|
|
||||||
|
|项目名称|projectName|
|
||||||
|
|五码|modelCode|
|
||||||
|
|项目别名|projectAlias|
|
||||||
|
|项目ID|projectUuid|
|
||||||
|
|
||||||
|
## 工作流程
|
||||||
|
|
||||||
|
1. 先[查项目基础信息](#查项目基础信息),收集**项目名称**。
|
||||||
|
2. 再用项目名称[查项目名称和项目ID](#查项目名称和项目ID)。
|
||||||
|
|
||||||
|
## 查项目基础信息
|
||||||
|
|
||||||
|
调用`debuggingProjectQuery`根据**项目名称**检索,查不到根据**五码**检索,仍然查不到根据**项目别名**检索。根据返回结果中的`rows`判定查询结果,有3种情况:
|
||||||
|
|
||||||
|
- 返回1条,查询成功。
|
||||||
|
- 返回0条或多条,**向用户询问更具体的项目信息,重新查询。**
|
||||||
|
- 返回错误信息,参考[错误信息处理](#错误信息处理)。
|
||||||
|
|
||||||
|
## 查项目名称和项目ID
|
||||||
|
|
||||||
|
调用`queryProjectNameList`工具,使用**项目名称**检索,响应结果是一个JSON数组,有4种情况:
|
||||||
|
|
||||||
|
- 返回1条结果,查询成功。
|
||||||
|
- 返回多条,把查询结果展示给用户,让用户选1条。
|
||||||
|
- 返回0条结果,视为查询失败,告知用户查不到项目名称和项目ID。
|
||||||
|
- 返回错误信息,参考[错误信息处理](#错误信息处理)。
|
||||||
|
|
||||||
|
## 错误信息处理
|
||||||
|
|
||||||
|
调用`debuggingProjectQuery`或`queryProjectNameList`工具遇到错误的响应示例:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"code": 500,
|
||||||
|
"msg": "系统异常"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
应对策略:友好的告知用户,因工具调用失败,请您稍后再试。**不要自行主动重试,除非用户主动要求。**
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# 查测试机的文档
|
||||||
|
|
||||||
Reference in new issue
Block a user