OPA 检查功能故障

问题描述

我正在尝试使用 OPA5 测试运行应用程序。但我可以登录,但出现错误

enter image description here

/* 全局 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 (将#修改为@)