2
我想为拉力赛创建一个自定义应用程序来显示测试用例详细信息。有一个名为'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>
仍然没有得到。网页显示为空白。 – amaurya123
嗯,它在我玩的演示程序中工作。你能提供你的全部来源吗? –
我提供的代码是我的完整源代码 – amaurya123