//FooTestCase.js > Here is my Test Case: Calls methods located base Siesta.Test.Class
describe('UI Test Case', function (t) {
...
t.chain({grid: 'foogrid'});
});
//Here is Siesta.Test.Class
Class('Siesta.Test.ListClass', {
isa : Siesta.Test.ExtJS,
methods: {
grid: function (fooGrid, callback) {
let t = this;
t.it(testTranslations.testingGrid , function (t) {
t.chain(
function (next) {next();},
{waitForCQ: cssSelector1 +'[xtype='+ fooGrid +']', timeout: 120000, isReadyTimeout: 120000},
{click: cssSelector2, timeout: 120000, isReadyTimeout: 120000, desc: 'Clicks...'},
{click: cssSelector3, timeout: 120000, isReadyTimeout: 120000, desc: 'Clicks...'},
{click: cssSelector4, timeout: 120000, isReadyTimeout: 120000, desc: 'Clicks...'},
{moveCursorTo: cssSelector4, , timeout: 120000, isReadyTimeout: 120000, desc: 'Scrolling...'},
callback
)
});
},
//and the harness file
let project = new Siesta.Project.Browser();
project.configure({
title: 'Foo Test Runner',
viewDOM: true,
enableCodeCoverage: true,
coverageUnit: 'file',
waitForTimeout: 120000,
isReadyTimeout: 120000,
runCore: 'sequential',
separateContext: true
});
project.start(
{
group: 'UI Tests',
testClass: Siesta.Test.ListClass,
items: [
{
title: 'FooTestCase',
hostPageUrl: localApp,
url: testPath + 'FooTestCase.js'
}
]
}
);
1. I've tried to set waitForTimeout, isReadyTimeout configs on configure() method and timeout, isReadyTimeout on TestClass to 120000 (which 2 mins) but I can not adjust the Test Case to adapt this value. I get error below during loading data from web-service to grid because it loads litt bit slowly for sometimes.
How can I set-up a `timeout` feature better?
The step in `t.chain()` call did not complete within required timeframe, chain can not proceed
{click: cssSelector3, timeout: 120000, isReadyTimeout: 120000, desc: 'Clicks...'}
Thanks a lot..