The configuration is done using a JSON object. Please note the text must use double quotes (") around all strings. The following parameters can be set:


{
    "xtcType": "XTC",
    "cloneSources": ["TC", "UC"],
    "presetFields":[ 
	  {"field":"name", "value":"Version"},
      {"field":"name", "value":"Tester" } ],
    "render": {
      "UC": {
       "columns":[
         {"name": "Action UC", "field": "action", "editor": "text"  },
         {"name": "Expected Result UC", "field": "expected", "editor": "text"  }]
      },
      "TC":{
        "columns":[
          {"name": "Action 1 TC", "field": "action","editor": "text"  },
          {"name": "Action 2 TC", "field": "action2", "editor": "text" },
          {"name": "Expected Result", "field": "expected", "editor": "text"  }]
      },
      "XTC":{ 
        "columns":[
          {"name": "Action", "field": "action","editor": "none" },
          {"name": "Action Alt","field": "action2","editor": "text" },
          {"name": "Expected","field": "expected","editor": "none" },
          {"name": "Passed/Failed","field": "result","editor": "result" },
          {"name": "Comment","field": "comment","editor": "text"}]
      }
    },
    "defaultTestResultResult":"an",
    "automatic": [
        {"human": "passed", "code": "ap", "render": "ok", "rule": "all", "param": "p"},
        {"human": "failed", "code": "af", "render": "error", "rule": "one", "param": "f"},
        {"human": "not started", "code": "an", "render": "warning", "rule": "all", "param": ""},
        {"human": "documentation", "code": "ad", "render": "warning", "rule": "one", "param": "d"},
        {"human": "in progress", "code": "ai", "render": "warning", "rule": "", "param": ""}
    ],
    "manual": [
        {"human": "passed", "command": "passed", "render": "ok", "code": "p"},
        {"human": "failed", "command": "failed", "render": "error", "code": "f"},
        {"human": "", "command": "not executed", "render": "warning", "code": "r"},
        {"human": "to be decided", "command": "to be decided", "render": "warning", "code": "tbd"},
        {"human": "documentation", "command": "documentation", "render": "warning", "code": "d"},
        {"human": "in progress", "command": "in progress", "render": "warning", "code": "i"}
    ],
    "perStep": [
        {"human": "passed", "command": "passed", "render": "ok", "code": "p", "key": "p", "image": "success.png"},
        {"human": "failed", "command": "failed", "render": "error", "code": "f", "key": "f", "image": "fail.png"},
        {"human": "documentation", "command": "documentation", "render": "warning", "code": "d", "key": "d", "image": "docu.png"},
        {"human": "", "command": "not executed", "render": "warning", "code": "", "key": "r", "image": ""}
    ]
}


This example

// 1) in the traceability of XTC add downrule, e.g. to a NEW category FILE (which you need to create....)
{
  "message": "files", "name": "can have file", "rule":"can_have", "any_of": [ "FILE" ] 
} 
// modify the xtc_config
{
  "xtcType": "XTC",
  "cloneSources": ["TC", "UC"],
  "presetFields":[  {    "field":"meaning",     "value":"Version"   },   {      "field":"name",     "value":"Tester"     } ],
  "render": {
    "UC": {
      "columns":[    
         {"name": "Action",          "field": "action",          "editor": "text"          },
         {"name": "Expected",          "field": "expected",          "editor": "text"          }]    },
    "TC":{
      "columns":[
        {
          "name": "Links",
          "field": "links",
          "editor": "design"  
        },
        {
          "name": "Action",
          "field": "action",
          "editor": "text" 
        },
        {
          "name": "Expected",
          "field": "expected",
          "editor": "text"  
        }]
    },
    "XTC":{
      "columns":[
        {
          "name": " Links",
          "field": "dref",
          "editor": "none" 
        },
        {
          "name": "Action",
          "field": "action",
          "editor": "none" 
        },
        {
          "name": "Expected",
          "field": "expected",
          "editor": "none" 
        },
        {
          "name": "Passed/Failed",
          "field": "result",
          "editor": "result" 
        },
        {
          "name": "Test Results",
          "field": "files",
          "editor": "downrules"  
        },
        {
          "name": "Comment",
          "field": "comment",
          "editor": "text"
        }]
    }
  },
  "defaultTestResultResult":"an|warning|not started",
  "automatic": [
    {
      "human": "passed",
      "code": "ap",
      "render": "ok",
      "rule": "all",
      "param": "p"
    },
    {
      "human": "failed",
      "code": "af",
      "render": "error",
      "rule": "one",
      "param": "f"
    },
    {
      "human": "not started",
      "code": "an",
      "render": "warning",
      "rule": "all",
      "param": ""
    },
    {
      "human": "documentation",
      "code": "ad",
      "render": "warning",
      "rule": "one",
      "param": "d"
    },
    {
      "human": "in progress",
      "code": "ai",
      "render": "warning",
      "rule": "",
      "param": ""
    }
  ],
  "manual": [
    {
      "human": "passed",
      "command": "passed",
      "render": "ok",
      "code": "p"
    },
    {
      "human": "passed with deviation",
      "command": "passed with deviation",
      "render": "ok",
      "code": "pf"
    },
    {
      "human": "failed",
      "command": "failed",
      "render": "error",
      "code": "f"
    },
    {
      "human": "",
      "command": "not executed",
      "render": "warning",
      "code": "r"
    },
    {
      "human": "to be decided",
      "command": "to be decided",
      "render": "warning",
      "code": "tbd"
    },
    {
      "human": "documentation",
      "command": "documentation",
      "render": "warning",
      "code": "d"
    },
    {
      "human": "in progress",
      "command": "in progress",
      "render": "warning",
      "code": "i"
    }
  ],
  "perStep": [
    {
      "human": "passed",
      "command": "passed",
      "render": "ok",
      "code": "p",
      "key": "p",
      "image": "success.png"
    },
    {
      "human": "failed",
      "command": "failed",
      "render": "error",
      "code": "f",
      "key": "f",
      "image": "fail.png"
    },
    {
      "human": "documentation",
      "command": "documentation",
      "render": "warning",
      "code": "d",
      "key": "d",
      "image": "docu.png"
    },
    {
      "human": "",
      "command": "not executed",
      "render": "warning",
      "code": "",
      "key": "r",
      "image": ""
    }
  ]
}


 


Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues