Get help with testing, discuss unit testing strategies etc.


Post by jayaprakasha »

Its the latest version, 4.3.0 standard.

Post by nickolay »

Ok, can you try launching siesta's own examples in BS in parallel, with small --chunk-size:

bin/webdriver https://localhost/siesta/examples/index.html --max-workers 5 --chunk-size 3 --browserstack....

Post by nayila »

I have a similar issue while running my siesta test suite in Jenkin. we have a below error popping up randomly every time when we run the test. It is not reproducible in the local though. Do you know why?
<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 property 'automationElementId' of undefined
TypeError: Cannot set property 'automationElementId' of undefined
at Object.<anonymous> (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:46993:45)
at Object.map (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:67:28)
at Object.launchAutomatedTests (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:46990:43)
at Object.override [as launchAutomatedTests] (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:817:32)
at eval (eval at execute (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:46370:17), <anonymous>:4:58)
at eval (eval at execute (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:46370:17), <anonymous>:5:15)
at eval (eval at execute (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:46370:17), <anonymous>:5:2868)
at eval (<anonymous>)
at Object.execute (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:46370:17)
at Object.override [as execute] (https://elsevier.qa.ordersetsmanager.com/application/resources/siesta/siesta-all.js:817:32)
</Exception from launcher>
harness url: https://elsevier.qa.ordersetsmanager.com/application/smoke-test-harness_orderSets_Elsevier.html?selenium=true
<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 property 'automationElementId' of undefined

Post by nickolay »

Hm.. Please check your test suite for the duplicated test urls? Currenly the urls of all test scripts should be unique, if you want to re-use the same script in several tests you can append some query parameter, like : `sometest.t.js?version=1`

Post by nayila »

Hey, all my test URLs are all unique since my test cases name are all unique.

Post by nickolay »

@nayila What is your Siesta version?

Post by nayila »

4.4.2, do you think it is too old?

Post by nickolay »

Pretty outdated, yes, latest is 5.3.1. Can try upgrading to the latest to see if this issue still appears in it?

Post by nayila »

will do, thank you!

Post Reply