Launching test suite, OS: MacOS, browser: Chrome 63.0.3239.84
[WARN] [ERROR] message : Uncaught TypeError: testClass is not a constructor
[WARN] [ERROR] url : https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js
[WARN] [ERROR] line : 17818
[WARN] [ERROR] col : 53
[WARN] [ERROR] stack : TypeError: testClass is not a constructor
at Object.processURL (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:17818:53)
at Object.override [as processURL] (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:817:32)
at Object.runCoreSequential (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:17511:22)
at Object.override [as runCoreSequential] (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:817:32)
at https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:44108:24
at Object.runCoreParallel (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:17459:25)
at Object.override [as runCoreParallel] (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:817:32)
at https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:44106:20
at processGroup (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:44146:78)
at Object.runCoreSharedContext (https://localhost:1841/oweb/test/Siesta/resources/js/siesta-all.js:44153:13)
index.js
var webApp = 'https://www..../';
var cloudApp = 'https://....';
{
group: 'Application Tests',
testClass: Siesta.Test.MonkeyTestClass,
runCore : 'sequential',
items: [
{
title: 'Automated Monkey Test for Web',
pageUrl : owebApp,
url : '04-app-tests/monkeyTestWeb.js'
},
{
title: 'Automated Monkey Test for Cloud',
pageUrl : cloudApp,
url : '04-app-tests/monkeyTestCloud.js'
}
]
}
// Here is Test Class
Class('Siesta.Test.MonkeyTestClass', {
isa: Siesta.Test.ExtJS,
methods: {
monkeyTest: function (callback) {
var t = this;
t.chain(
{ waitForCQ : 'window[title=Login]' },
function(next) {
t.cq1('>> textfield[name=username]').setValue('user@email.com');
t.cq1('>> textfield[name=password]').setValue('pass');
next();
},
{click: '>> button[text=Submit]'},
{waitForCQNotVisible: 'window[title=Login]', desc: 'Submit process is succeed!'},
function(next) {
console.log('login func log...');
next();
},
callback
)
}
}
});
// and the test assertion.
describe('Monkey Test', function (t) {
t.it('Should Login and doing some clicks on dashboard', function (t) {
t.chain(
{
monkeyTest: t.next
}
)
});
});