harness.configure({
title: 'Sagacity Test Suite',
runCore: 'sequential',
autoCheckGlobals:false,
//needUI:true,
testClass:Siesta.Test.LoginHelper,
Class('Siesta.Test.LoginHelper', {
isa: Siesta.Test.ExtJS,
methods: {
login: function (callback) {
this.it('Login', function(t) {
t.chain(
{click : '>> textfield[name=j_username]'},
{
type : 'jprasad@infogix.com,
target : '>> textfield[name=j_username]'
},
{click : '>> textfield[name=j_password]'},
{
type : pass,
target : '>> textfield[name=j_password]'
},
{
click : '>> button[text=Sign In]',
desc : 'Submit Login'
},
if (callback && typeof(callback) === "function") {
callback();
}
)
})
}
}
});
t.chain(
{ waitFor : 3000 },
{ login : [] },
More info how this works here: https://www.bryntum.com/docs/siesta/#!/ ... MethodCall
Or, you can use a function step in the chain and call 'login' method normally.
Sorry. I am new to Siesta and a bit more detailed explanation with sample code will be appreciated. Thank you.