Opa5:无法读取未定义的属性“ iLookAtTheScreen”

时间:2018-07-19 06:52:57

标签: javascript sapui5-opa

因此,我在Opa5中编写了我的第一个测试,当我在页面上调用iLookAtTheScreen函数时遇到此错误。我对页面进行了Worklist测试,并且调用了测试功能的WorklistJourney

工作清单之旅:

    QUnit.module("TabBar");

    opaTest("Should see all the toolbar buttons", function (Given, When, Then) {
        // Arrangements
        Given.iStartMyApp();

        //Actions
        When.onTheWorklistPage.iLookAtTheScreen();

        // Assertions
        Then.onTheWorklistPage.theTabBarShouldHaveAllTheButtons().
            and.iTeardownMyAppFrame();
    });

}

在这里,当我调用iLookAtTheScreen()函数时,它说onTheWorklistPage是未定义的。我在onTheWorklistPage文件中确实有一个Worklist.js段。我不知道出了什么问题。

0 个答案:

没有答案