I am trying to use some global variables within Test suite. Therefore tried to define several variables in TestClass and calling them in test file. During running the web-runner getting this error:
Subtest `Update the form data` threw an exception
ReferenceError: DBLBACKSPACE is not defined
Test Class:
var BACKSPACE = '[BACKSPACE][BACKSPACE]';
var DBLBACKSPACE = '[BACKSPACE][BACKSPACE][BACKSPACE][BACKSPACE]';
Class('Siesta.Test.DataScreen', {
isa: Siesta.Test.ExtJS,
methods: {
...
describe('UI Testing: Submodule Data Screen', function (t) {
t.it('Update the form data', function (t) {
var next = t.next;
t.chain(
{clickAndType: ['firstnamefld[name=firstname]', DBLBACKSPACE + 'Updated First Name']},
{clickAndType: ['lastnamefld[name=lastname]', DBLBACKSPACE + 'Updated Last Name']},
...