【发布时间】:2016-12-16 10:44:34
【问题描述】:
我想为 Rally 创建一个自定义应用程序来显示测试用例的详细信息。有一个名为“LastResult”的字段,其中包含一个名为“c_blockedReason”的字段。
如何在同一个自定义应用程序上显示“c_blockedReason”而不是提供它作为参考。
到目前为止我写的代码,
<!DOCTYPE html>
<html>
<head>
<title>Grid Example</title>
<script type="text/javascript" src="/apps/2.1/sdk.js"></script>
<script type="text/javascript">
Rally.onReady(function() {
Ext.define('Rally.example.SimpleGrid', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
this.add({
xtype: 'rallygrid',
columnCfgs: [
'FormattedID',
'Name',
'Owner','Method','Type',
'LastVerdict',
'LastResult',
],
context: this.getContext(),
enableEditing: false,
showRowActionsColumn: false,
storeConfig: {
model: 'testcase'
}
});
}
});
Rally.launchApp('Rally.example.SimpleGrid', {
name: 'Grid Example'
});
});
</script>
<style type="text/css">
</style>
</head>
<body></body>
</html>
【问题讨论】: