I switched to smaller pieces, using LoaderPath. But still getting errors.
I am trying to test a package 'MyPac.utility.Config'
, which is located in packages.local.util_config.src.util.Config.js
. The requires usually is 'MyPac.utility.Config'
. How to add this to the LoaderPath.
Here is my try:
{
group: 'Functional Testing',
preload: [
'../../../packages/ext/frameworks/7.2.0/build/ext-all.js'
],
items: [{
loaderPath : {
'MyPac.utility.Config' : '../../../packages/local/util-config/'
},
group: 'MyPac.utility',
items: ['Functional/MyPac_utility/MyPac_110_LocaleProvider.t.js']
}]
}
Ext.create('MyPac.utility.Config');
==>
VM185552:3 Uncaught TypeError: c is not a constructor
at eval (eval at getInstantiator (ext-all.js:20), <anonymous>:3:8)
at Object.create (ext-all.js:20)
at eval (eval at <anonymous> (MyPac_110_LocaleProvider.t.js:3), <anonymous>:1:5)
at MyPac_110_LocaleProvider.t.js:3
at f.Siesta.Test[launch] (siesta-all.js:9)
at f.internal wrapper [as launch] (siesta-all.js:9)
at f.originalCall (siesta-all.js:9)
at f.SUPERARG (siesta-all.js:9)
at f.Siesta.Test.Browser[launch] (siesta-all.js:9)
at f.internal wrapper (siesta-all.js:9)
eval @ VM185552:3
create @ ext-all.js:20
eval @ VM191665:1
(anonymous) @ MyPac_110_LocaleProvider.t.js:3
Siesta.Test[launch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
originalCall @ siesta-all.js:9
SUPERARG @ siesta-all.js:9
Siesta.Test.Browser[launch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test.Browser[override launch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[doStart] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
originalCall @ siesta-all.js:9
SUPERARG @ siesta-all.js:9
Siesta.Test.SenchaTouch[doStart] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[start] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[launchSubTest] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
processor @ siesta-all.js:9
Siesta.Util.Queue[doOneStep] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Util.Queue[doSteps] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Util.Queue[run] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[chain] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[chainForArray] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[launchSpecs] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[override afterLaunch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[launch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
originalCall @ siesta-all.js:9
SUPERARG @ siesta-all.js:9
Siesta.Test.Browser[launch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test.Browser[override launch] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
(anonymous) @ siesta-all.js:9
Siesta.Test[setup] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
cont @ siesta-all.js:9
Siesta.Test[doStart] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
originalCall @ siesta-all.js:9
SUPERARG @ siesta-all.js:9
Siesta.Test.SenchaTouch[doStart] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
Siesta.Test[start] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
doLaunch @ siesta-all.js:9
setTimeout (async)
Siesta.Project[launchTest] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
originalCall @ siesta-all.js:9
SUPERARG @ siesta-all.js:9
Siesta.Project.Browser[override launchTest] @ siesta-all.js:9
internal wrapper @ siesta-all.js:9
(anonymous) @ siesta-all.js:9
cont @ siesta-all.js:9
cont @ siesta-all.js:9
parentWindow.Scope.Provider.__ONLOAD__.<computed> @ siesta-all.js:9
(anonymous) @ siesta.html:1
setTimeout (async)
onload @ siesta.html:1
Show 28 more frames