我想为测试工具创建自定义的Azure管道任务

时间:2019-10-18 05:48:21

标签: azure-pipelines

我想在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"
        }
    }
}

0 个答案:

没有答案