Get help with testing, discuss unit testing strategies etc.


Post by nickolay »

When writing the reply - see the Code button in the top of the reply text area - use it for wrapping code.

Basically - don't use "file:///C:/Program%20Files/Apache%20" links. All your links need to start with: "https://localhost:8081/myproject/...."

Post by Prashanth Jayaram »

@ nickolay,
Thanks for the Info , I had changed as per your instruction.

Post by Prashanth Jayaram »

Hi
I had completed the setup of the Siesta and executed the example Successfully given in the Getting Started Document.
I worked great as if said in it. But when i tried to Test My Code with the Tool its throwing 2 Exceptions in the Error Console.


Error: namespace is undefined
Source File: https://localhost:8081/ext-4.0.2a/ext-all-debug.js
Line: 3487



Error: Ext.grid.ColumnModel is not a constructor
Source File: https://localhost:8081/iBPM/js/adminLayout.js
Line: 131


Note: My code is extjs version 2.0.2.

Post by jakub »

The second one looks like a bug in your code. As for the first one, you'd need to provide more info.
JavaScript/Angular/ExtJS consulting - kuba@virtualdesign.pl

Post by Prashanth Jayaram »

Error Console Shows:

Error: namespace is undefined
Source File: https://localhost:8081/ext-4.0.2a/ext-all-debug.js
Line: 3487
********************************************************************************************************************************************

namespace is undefined
error source line: [Break On This Error] if (namespace === from...substring(0, from.length) === from) {

********************************************************************************************************************************************
this error occurs @ line no 3487 in ext-all-debug.js file

Post by Prashanth Jayaram »

 parseNamespace: function(namespace) {

            var cache = this.namespaceParseCache;

            if (this.enableNamespaceParseCache) {
                if (cache.hasOwnProperty(namespace)) {
                    return cache[namespace];
                }
            }

            var parts = [],
                rewrites = this.namespaceRewrites,
                rewrite, from, to, i, ln, root = Ext.global;

            for (i = 0, ln = rewrites.length; i < ln; i++) {
                rewrite = rewrites[i];
                from = rewrite.from;
                to = rewrite.to;

               [color=#FF0000] if (namespace === from || namespace.substring(0, from.length) === from) {[/color]
                    namespace = namespace.substring(from.length);

                    if (typeof to !== 'string') {
                        root = to;
                    } else {
                        parts = parts.concat(to.split('.'));
                    }

                    break;
                }
            }

            parts.push(root);

Post by Prashanth Jayaram »

I also Have one more Query if am Buying this tool Siesta - Will i get a full Support that i can test my Project which am developing in extjs 2.0.2 ?

Post by mats »

Not sure we can guarantee that it'll work on Ext 2.2, but we'd be happy to make a few fixes if that's required. As long as we're not required to write a new full Siesta for Ext 2.2 it should be fine :)

Post by nickolay »

@Prashanth - please do not color your posts with red color.

The exceptions you've posted are from your code, can you show the source of the test case?

Siesta is a generic testing tool and can test any framework, including Ext2.2. It has an optional layer which is optimized for Ext4, but its optional.

Post Reply