Place custom widgets in the [DTP_HOME]/grs/widget directory. DTP ships with several widgets in the [DTP_HOME]/grs/plugins/widgets/builtin directory, but Parasoft strongly advises against modifying built-in widgets. You can copy an existing widget and use it as a guide or use one of the following examples to help you get started.
Custom Widget Example
The following snippet is an example of the default customHotDeploy widget.
{
"name": "DataCollectorSampleWidget",
"attributes": {
"title": "Data Collector Histogram 2",
"widgetCategory": "projectCenter",
"reportLocation": "widget/kendo/dataCollectorDiagnosticWidget.jsp",
"size_x": 6,
"size_y": 2,
"widgetLabels": [
{
"title": "hello world",
"name": "textParameter"
},
{
"title": "date",
"name": "dateParameter"
},
{
"title": "checkbox",
"name": "checkboxParameter"
},
{
"title": "dropdown",
"name": "dropdownParameter"
}
],
"parameters": [
{
"type": "text",
"name": "textParameter"
},
{
"type": "date",
"name": "dateParameter"
},
{
"type": "checkbox",
"name": "checkboxParameter"
},
{
"type": "dropdown",
"name": "dropdownParameter",
"dropdownOptions": [
{
"key": "any",
"value": "",
},
{
"key": "not tested",
"value": "not tested",
},
{
"key": "failed",
"value": "failed",
},
{
"key": "passed",
"value": "passed",
}
]
}
]
}