如何解决OPA 检查功能故障
我正在尝试使用 OPA5 测试运行应用程序。但我可以登录,但出现错误。
/* 全局 QUnit、opaTodo、opaSkip */ 我的 html 文件
QUnit.config.autostart = false;
sap.ui.require([
"sap/ui/test/Opa5","sap/ui/test/opaQunit","sap/ui/test/actions/Press","sap/ui/test/matchers/Properties"
],function (Opa5,opaQunit,Press,Properties) {
"use strict";
QUnit.module("Simple server action");
Opa5.extendConfig({
viewName : "KMD.Mileage.mobile.mMileageListing",//viewNamespace: "mMileageListing",autoWait : true
});
opaQunit("Should get a response",function(Given,When,Then) {
// Act
Given.iStartMyAppInAFrame("index.html");
When.waitFor({
id : "headerText",//actions : new Press(),success : function () {
Opa5.assert.ok(true,"Did update the app title correctly");
},errorMessage : "Did not find the load button"
});
Then.waitFor({
controlType : "sap.m.Page",matchers : new Properties({
title : "Hello from Server"
}),"Did update the app title correctly");
}
});
Then.iTeardownMyAppFrame();
});
QUnit.start();
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。