I have a problem referencing the ext-all-debug.js, ext-all.css, siesta-all.js, siesta-all.css three directories above the location of the test-harness.html and test-harness.js. Three directories upon them the extjs-4.1.3 and the siesta sources are saved. I have to use this structure because I do not want to add new sources to our subversion directory where the application I want to test with Siesta is placed.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../../extjs-4.1.3/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css" href="../../../siesta-1.1.7-trial/resources/css/siesta-all.css">
<!-- Ext JS library -->
<script type="text/javascript" src="../../../extjs-4.1.3/ext-all-debug.js"></script>
<script type="text/javascript" src="../../../siesta-1.1.7-trial/siesta-all.js"></script>
<script type="text/javascript" src="test-harness.js"></script>
</head>
<body>
</body>
</html>
ReferenceError: Siesta is not defined var Harness = Siesta.Harness.Browser.ExtJS; (test-harness.js).
Exact pathes like D:/rd/myapp/extjs-4.1.3 does not work either. Is there a way to do what I want or am I forced to place my sources there where my app.html file is placed? I am working in an ExtJS 4.1.3 mvc structure. In the examples it works with one time ../.
var Harness = Siesta.Harness.Browser.ExtJS;
Harness.configure({
title : 'MVC Test Suite',
loaderPath : { 'MyApp' : 'app' },
preload : [
"../../../extjs-4.1.3/resources/css/ext-all.css",
"../../../extjs-4.1.3/ext-all-debug.js"
]
});
Harness.start(
/*{
group : 'Sanity',
items : [
'tests/sanity.js'
]
},*/
{
group : 'UI Tests',
// need to set the `preload` to empty array - to avoid the double loading of dependencies
preload : [],
items : [
{
hostPageUrl : 'index.html',
url : 'tests/grid.js'
}
]
}
);
Erik