Get help with testing, discuss unit testing strategies etc.


Post by zombeerose »

Running automation with webdriver, I continue to get this error and then all remaining tests fail. I have played with all the harness options and can't seem to have any impact. Any suggestions?

Siesta v5.6.1

<Exception from launcher>
    While running big script: return (function (args) {
                var me  = Siesta.my.activeHarness

            return me ? me[ 'launchAutomatedTests' ].apply(me, args)
Exception: TypeError: Cannot set properties of undefined (setting 'automationElementId')
TypeError: Cannot set properties of undefined (setting 'automationElementId')
    at Object.<anonymous> (https://mysite.net/includes/siesta/siesta-no-ui-all.js:51329:45)
    at Object.map (https://mysite.net/includes/siesta/siesta-no-ui-all.js:67:28)
    at Object.launchAutomatedTests (https://mysite.net/includes/siesta/siesta-no-ui-all.js:51326:43)
    at Object.override [as launchAutomatedTests] (https://mysite.net/includes/siesta/siesta-no-ui-all.js:817:32)
    at eval (eval at execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17), <anonymous>:4:58)
    at eval (eval at execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17), <anonymous>:5:15)
    at eval (eval at execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17), <anonymous>:5:2718)
    at eval (<anonymous>)
    at Object.execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17)
    at Object.override [as execute] (https://mysite.net/includes/siesta/siesta-no-ui-all.js:817:32)
</Exception from launcher>
<Exception from launcher>
    While running big script: return (function (args) {
                var me  = Siesta.my.activeHarness

            return me ? me[ 'launchAutomatedTests' ].apply(me, args)
Exception: TypeError: Cannot set properties of undefined (setting 'automationElementId')
TypeError: Cannot set properties of undefined (setting 'automationElementId')
    at Object.<anonymous> (https://mysite.net/includes/siesta/siesta-no-ui-all.js:51329:45)
    at Object.map (https://mysite.net/includes/siesta/siesta-no-ui-all.js:67:28)
    at Object.launchAutomatedTests (https://mysite.net/includes/siesta/siesta-no-ui-all.js:51326:43)
    at Object.override [as launchAutomatedTests] (https://mysite.net/includes/siesta/siesta-no-ui-all.js:817:32)
    at eval (eval at execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17), <anonymous>:4:58)
    at eval (eval at execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17), <anonymous>:5:15)
    at eval (eval at execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17), <anonymous>:5:2718)
    at eval (<anonymous>)
    at Object.execute (https://mysite.net/includes/siesta/siesta-no-ui-all.js:50622:17)
    at Object.override [as execute] (https://mysite.net/includes/siesta/siesta-no-ui-all.js:817:32)
</Exception from launcher>
[WARN] Can not reach the end of the test: /includes/mysite/tests/app/classic/store/cms/article/acl/user/searchoption.t.js?u=1669227699.59030, test is marked as failed
[FAIL]  /includes/mysite/tests/app/classic/store/cms/article/acl/user/searchoption.t.js?u=1669227699.59030

Basic harness:

    var harness = new Siesta.Project.Browser.ExtJS();

harness.configure({
    autoCheckGlobals: true,
    defaultTimeout: 30000,
    expectedGlobals: [
        'Ext'
    ],
    needDone: true,
    pauseBetweenTests: 1000,
    showTestDurationColumn: true,
    speedRun: true,
    transparentEx: false,
    viewDOM: false, 
    waitForTimeout: 30000
});

Post by nickolay »

Hm.. All looks good. Any chance for reproducible test case? Any other additional info?


Post Reply