我想在azure管道中使用测试工具,因此我想为其创建自定义任务。
测试工具几乎没有Jar和run.bat文件,因此我按如下所示创建了task.json文件,并假定无需创建index.tas文件。
请建议
{
"$schema": "",
"id": "96b1719d-313a-4ac8-a959-6f28cc95dbfd",
"name": "CITSExecution",
"friendlyName": "CITS Test Execution",
"description": "Execute CITS Test",
"helpMarkDown": "Execute CITS Test using input parameters",
"category": "Test",
"visibility": [ "Build", "Release" ],
"author": "",
"version": {
"Major": 0,
"Minor": 1,
"Patch": 0
},
"instanceNameFormat": "CITS Test Execution",
"inputs": [
{
"name": "JarFiles",
"type": "string",
"label": "CITS Test",
"defaultValue": "-cp;D:\\CITS\\cognizant-intelligent-test-scripter-1.2-setup\\cognizant-intelligent-test-scripter-1.2\\lib\\cognizant-intelligent-test-scripter-engine-1.2.jar",
"required": true,
"helpMarkDown": ""
}
],
"execution": {
".bat": {
"target": "D:\\CITS\\cognizant-intelligent-test-scripter-1.2-setup\\cognizant-intelligent-test-scripter-1.2\\Run.bat"
}
}
}