Please click to see detailed version of question on here: https://stackoverflow.com/questions/475 ... ith-siesta
The thing I've configured Test Class with has attribute and implemented attribute configs as Nickolay adviced. Unfortunately test suite is giving this error:
TypeError: Cannot read property 'apply' of undefined
at line 728, character 37, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 61, character 25, of https://localhost:1841/oweb/test/Siesta/lib/ListClass.js
at line 817, character 32, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 15957, character 32, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 817, character 32, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 11383, character 36, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 8152, character 27, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 817, character 32, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 8103, character 29, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
at line 817, character 32, of https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
Main Class:
Class('Siesta.Test.ListScreen', {
isa : Siesta.Test.ExtJS,
methods: {
// 1.a Navigation to submodule
navigation: function (myPackageName, mySubModule, callback) {
var t = this;
t.chain(
{waitForCQ: treeList},
function (next) {
t.click('treelist[itemId=navigationTreeList]');
next();
},
{click: '>> treelistitem[_text='+t.myPackageName+']'},
{click: '>> treelistitem[_text='+t.mySubModule+']', desc: t.mySubModule+isDisplaying},
{click: '#main-navigation-btn => .fa-navicon', desc: collapseDesc},
function (next) {
console.log('navigation func log');
next();
},
callback
);
}, ...
describe('UI Testing: Submodule List Screen', function (t) {
//Extended method for navigation to submodule
t.it('Should open: Submodule Grid', function (t) {
t.chain(
{
navigation: t.next
}
)
});
});
Waiting for element ">> treelistitem[_text=undefined]" to appear
The thing here is I want to call same TestClass method for several Submodules and override several things such as myPackageName and mySubModule. How can i mapping test file to Test Class?