Load external js resource file
Posted: Mon May 14, 2018 4:00 pm
Hi,
I've written some tests for a Sencha Extjs app (Extjs version 6.5.3 and I'm using Siesta 4.4.4).
I need to load an external javascript file which contains some functions I need inside my tests.
I've already added an external js file inside the 'preload' option of my harness file but I cannot execute the functions defined in those external js (e.g. I get 'function not defined method').
Can you explain which is the best practice about loading external js files for having custom functions to use inside Siesta tests ?
Any hint is appreciated.
Regards,
Claudia
I've written some tests for a Sencha Extjs app (Extjs version 6.5.3 and I'm using Siesta 4.4.4).
I need to load an external javascript file which contains some functions I need inside my tests.
I've already added an external js file inside the 'preload' option of my harness file but I cannot execute the functions defined in those external js (e.g. I get 'function not defined method').
Can you explain which is the best practice about loading external js files for having custom functions to use inside Siesta tests ?
Any hint is appreciated.
Regards,
Claudia