Hopefully I'm getting much better to set a robust Test Structure with inherited classes, test-automation, code-coverage repots.. and I keep improve current Test structure. I'll have 2 questions;
1.
First question is; We have a `singleton` class name of `MyVariables` within `ExtJS` project [MyApp naming for `/app` folder]; of course I can easily get any variable within OOP usage: `MyApp.MyVariables.myFooValue`.
How to connect Ext JS project with Siesta `harness` (new brand `project`) to be able using same OOP method to get most iterative variables which are already storing in project?
2.
As well.. We've developed multi language feature for our application through Mastering Ext JS book. In the book we locate translations files under `/app/resources` path with a single `object` file;
//translation.js
translations = {
foo: 'Foo Value',
bar: 'Bar Value',
zet: 'Zet Value',
//and it's usage
Ext.define('MyApp.FooButton' {
text: translations.foo
});
So I've tried to use same `translations` object for test spec but it's not working!
describe(translations.testingListScreen, function (t) {
t.it(translations.openGrid, function (t) {
t.chain(
{
navigation: ['Foo', 'Bar']
}
)
});
//and the error when I run `TestSpec`
Test threw an exception
TypeError: run is not a function
at line 15018, character 30, of https://localhost:1841/myapp/test/Siesta/resources/js/siesta-all.js
at line 16, character 79, of <anonymous>
Besides I've tried to load `translations.js` within Siesta `index.html` and used `preload` config on `harness` but I couldn't over come issue!? (BTW: Files loads successfully on Dev-Tools!)
How can I be able to use project files within test cases?