因此,我在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
段。我不知道出了什么问题。