Get help with testing, discuss unit testing strategies etc.


Post by Jshyu523 »

My team recently made the switch from Ext JS 4 to Ext 5. I have been using siesta-2.0.2-Standard for the past year.

My tests have been working fine up until the switch to Ext 5. I have read some articles about staying with Ext 4.2.0 and have left those alone.

The siesta UI loads and the test runs, but it fails with a timeout. Do you know if Siesta-2.0.2 is compatible with Ext 5 or not?

Post by nickolay »

Hi,

No, Siesta 2.0.2 is not compatible with ExtJS5. The ExtJS 5 support was added in 2.0.9 release.

Post by Jshyu523 »

Thanks so much. That was exactly what I needed

Post by Jshyu523 »

I have a new question regarding this issue. I am still getting the same timeout. We are actually using ExtJS 5.0.1 and I was wondering if that ext version is compatible with the latest Siesta version as well. Thanks

Post by mats »

Yes it is. Can you provide a simple test case for us?

Post by Jshyu523 »

My harness has the following preloads:
'/_layouts/1033/styles/EMSPortal/emspeed-all.css',
'https://localhost/ext-5.0.1/packages/ext-theme-EMSPEED/build/resources/EMSPEED-theme-all.css',
'/_layouts/1033/styles/EMSPortal/jquery-ui-1.10.4.tooltip.min.css',

'/_layouts/EMSPortal/common/jQuery/json2.js',
'/_layouts/EMSPortal/common/jQuery/jquery-1.9.1.js',
'/_layouts/EMSPortal/common/error.js',
'https://localhost/ext-5.0.1/build/ext-all-debug.js',
'/_layouts/EMSPortal/common/com.js',
'/_layouts/EMSPortal/common/jQuery/jquery-ui-1.10.4.custom.min.js',
'/_layouts/EMSPortal/app/dashboard/view/dashboard.js',
'/_layouts/EMSPortal/common/EmspeedTooltip.js',
'/_layouts/EMSPortal/app/app.js'
And my html file looks like:
<!DOCTYPE html>
<html>
<head>
    <title>Client UI Reporting Tests</title>
        <link rel="stylesheet" type="text/css" href="https://cdn.sencha.io/ext/gpl/4.2.0/resources/css/ext-all.css">
        <link rel="stylesheet" type="text/css" href="https://localhost/siesta-2.0.9-lite/resources/css/siesta-all.css" />
        <script type="text/javascript" src="https://cdn.sencha.io/ext/gpl/4.2.0/ext-all-debug.js"></script>
        <script type="text/javascript" src="https://localhost/siesta-2.0.9-lite/siesta-all.js"></script>
        <script type="text/javascript" src="/_layouts/EMSPortal/app/reporting/testClientUI/testIndexReporting.js"></script>
    </head>
    <body>
    </body>
</html>
As for my test case, i'm just trying to load a specific page in my application and it is stuck on a loading message.

Post by mats »

We would need a condensed, fully running test case in order to help you. Can you zip one up and upload it here?

Post by Jshyu523 »

Unfortunately, i'm not able to do that, sorry. If the html file and ext versions in the preload are fine, then i'm convinced it's an issue on my end.

EDIT: I found the problem. I wasn't including a package that contained sencha charts into my preload. Thanks for all your help

Post Reply