sapui5 opa5 opa脚本未识别视图
我已经写了一个OPA脚本,但它没有识别视图id。你能帮我解决这个问题吗 OPA脚本无法在文本区域字段的“描述”中输入文本测试 我的脚本失败了,我看到下面的错误sapui5 opa5 opa脚本未识别视图,sapui5,Sapui5,我已经写了一个OPA脚本,但它没有识别视图id。你能帮我解决这个问题吗 OPA脚本无法在文本区域字段的“描述”中输入文本测试 我的脚本失败了,我看到下面的错误 There was no Input Opa timeout This is what Opa logged: all results were filtered out by the matchers - skipping the check - sap.ui.test.pipelines.MatcherPipeline Callst
There was no Input
Opa timeout
This is what Opa logged:
all results were filtered out by the matchers - skipping the check - sap.ui.test.pipelines.MatcherPipeline
Callstack:
at fillDescription (https://webidetesting7755399-w3446edba.dispatcher.int.sap.hana.ondemand.com/webapp/test/integration/pages/ActivitySet.js?eval:58:19)
at Object.eval (https://webidetesting7755399-w3446edba.dispatcher.int.sap.hana.ondemand.com/webapp/test/integration/AllActivitySets.js?eval:32:30)
Expected:
true
Result:
false
Diff:
trufalse
下面是我的代码
Opa5.extendConfig({
viewName : "test",
arrangements: new Common(),
viewNamespace: "com.tools.melody.activityForm.view.",
autoWait: true
});
opaTest("Enter Description", function (Given, When, Then) {
// Arrangements
//Given.iStartMyApp();
//Actions
When.onTheActivitySetPage.fillDescription();
});
fillDescription: function () {
return this.waitFor({
id:"activityFormDescription",
//controlType: "sap.m.TextArea",
actions: new EnterText({
text: "Testing in Description"
}),
success: function() {
Opa5.assert.ok(true, "Testing in Description");
},
errorMessage: "There was no Input"
});
},
查看文件ID::
<TextArea id="activityFormDescription" value="{default>/0/Description}" change="handleChange"></TextArea>
尝试将viewName参数传递给waitFor函数
fillDescription: function () {
return this.waitFor({
id:"activityFormDescription",
viewName : "test",
actions: new EnterText({
text: "Testing in Description"
}),
success: function() {
Opa5.assert.ok(true, "Testing in Description");
},
errorMessage: "There was no Input"
});
},
谢谢你的回答,我已经找到了这个问题的根源。实际上,我已经通过修改Component.js中的manifest.json解决了这个问题。。