Get help with testing, discuss unit testing strategies etc.


Post by alex.melnyk »

Tried sandbox: false, to speed up tests. But slimerjs still reloads page for each test and is ignoring this option.
var Harness = new Siesta.Harness.Browser.ExtJS({
                    title: 'Truffala Tests',
                    autoCheckGlobals: false,
                    expectedGlobals: [],
                    autoScrollElementsIntoView : true,
                    defaultTimeout: 1000 * 60 * 5,
                    testClass: Custom.Misc,
                    id: "truffala-tests",
                    viewportWidth: 1920,
                    viewportHeight: 1080,
                    sandboxBoundaryByGroup: false,
                    sandbox: false,
                    pauseBetweenTests: 100
                });

Harness.start(
{ 
   group: 'GUI Tests',
   pageUrl: url,
   items: [
      '/resources/js/tests/application-tests/processes.t.js'
    '/resources/js/tests/application-tests/map_tools.t.js'
}
]
)

Post by nickolay »

Right, tests with "pageUrl" always create a new sandbox currently (even if the url is the same). To take advantage of the disabled sandboxing try to create a reduced version of your app and use the "preload" option.

Post Reply