得到错误:错误:执行“量角器./conf.ts --suite主页”时找不到模块的src / core / configurations / configFunctions

问题描述 投票:0回答:1

[任何人请帮助我解决以下问题。我有一个ConfigFunctions类,如下所示I have an ***ConfigFunctions*** class as following

然后我尝试在我的规范中访问此类的loadConfig函数verify.home.page.display.correclt.spec.tsI try to access ***loadConfig*** function of this class in my spec verify.home.page.display.correclt.spec.ts

[不幸的是,我在尝试执行测试脚本时遇到以下错误Unfortunately, I got following error when trying to execute my test script

typescript protractor
1个回答
0
投票

您在导入中编写的路径不正确,请尝试使用root来证明相对URL,例如'../../../ configurations / configFunctions'

© www.soinside.com 2019 - 2024. All rights reserved.