Blog

  • Webcast: Qt Application Testing Made Easy

    By on March 8, 2007

    Together with our partner Trolltech we will conduct a webcast where we will show how to use Squish to create and run automated tests on Qt applications. This is a real live webcast where you will be able to ask questions, etc. Also we will run a special license price offer for webcast attendees. So if you are considering to use Squish for Qt register now and take advantage of this opportunity.

    Read more
    froglogic
  • C++ Prototype Wrapper

    By on March 6, 2007

    Imagine this: You have an existing class hierarchy, for instance a ‘Node’ class from which ‘StringNode’, ‘NumberNode’ and ‘BooleanNode’ classes derive. Now, you want to implement a nicely generic and easily extensible way to create an object of one of the three concrete classes depending on a value (for instance, a string) you get. How to do this nicely in C++? I had a problem like this, and a core part of the problem is that the existing class hierarchy had nothing like a ‘clone()’ function or so (a ‘virtual constructor’ for the cool kids on the block). I solved this by writing a generic prototype template class: class NodePrototypeWrapper { public: virtual Node *clone() const = 0; }; template <class Product> class GenericNodePrototypeWrapper : public NodePrototypeWrapper { public: virtual Node *clone() const { return new Product( 0 ); } }; class NodeFactory { public: static NodeFactory &self() {...

    Read more
    froglogic
  • Pain with browser compatibility

    By on March 5, 2007

    One improvement in Squish for Web 3.2 is the Spy object picker and screenshot comparisons. One issue common to both features is to find out the absolute (to the screen) position and size of a given DOM element. This is necessary to draw a highlighting rectangle around the element (for the object picker) and to take a screenshot of a specific element. Of course there is no cross-browser way to do this calculation. That’s why in Squish/Web versions prior to 3.1 the object picker used a bad hack to highlight elements (changing its background color) and screenshots could only be taken from the whole browser window. For Squish for Web 3.2 we finally implemented the necessary function to calculate the DOM element’s coordinates. But it really was a pain. There is no API which you can reliably use. It works differently in all browsers (I wasn’t too surprised by...

    Read more
    froglogic
  • Clever Web Object Identification

    By on March 2, 2007

    As Reginald previously mentioned Squish 3.2 is going to have an even more sophisticated technique for identifying objects based on some properties. This is achieved by allowing to determine whether a given object matches a given property value not only through a plain string comparison but by also testing whether the object matches a certain regular expression or wildcard-enhanced string. I just finished implementing a first version of the same powerful magic for Web tests and so far (keeping fingers crossed) it seems to work well without introducing any regressions. Using regular expressions and/or wildcards when patching property values is especially useful for Web tests, since many Web applications happen to encode some more or less random session ID into important attributes.

    Read more
    froglogic
  • Problems e-mailing us?

    By on March 1, 2007

    A customer has reported repeated bounces when sending mail to our support address. Unfortunately we could neither find anything in our server logs nor from the SMTP error message. So if anyone else is experiencing problems too please drop us a mail at admin@froglogic.com or (as this might one might not work for you either) just paste the error message you got as a comment below. Will try to find a common pattern behind this. Thank you.

    Read more
    froglogic
  • Squish/Web and XPath

    By on February 22, 2007

    One of the new features of Squish/Web 3.1 (released last month) is the new XPath support. I’m blogging about that since I notice from support requests that this new feature isn’t known well enough yet by our Squish/Web customers although it solves many problems in a very elegant way. In Squish you can retrieve a reference to an AUT object (DOM element in the web page in this case) by its name using the findObject function. In Squish/Web you can call on each such object evaluateXPath(). This will evaluate the XPath statement using the object itself as context node. You get back a XPathResult which gives you access to the result nodes or values. So our object identification using property lists combined with XPath is really powerful. I noticed that also the other day when one of our QA engineers was working on tests for a customer in the...

    Read more
    froglogic
  • Vista!

    By on February 20, 2007

    This blog entry is written from my brand new PC featuring an Intel Core 2 Duo 3800+ CPU, 2GB RAM, 240GB HDD and (drumroll please) Microsoft Vista. As more and more of our customers start using Vista, it became apparent that we need to be able to test Squish and on Microsoft Vista, to see whether recognizing widgets and whatnot still works.  I didn’t get around to actually trying Squish yet since I’m still aaaahh’ing and ooooohh’ing over all the new fancy effets. I think Rainer (Mac OSX fan) is a bit jealous. I like that!

    Read more
    froglogic
  • Object Identification

    By on February 20, 2007

    As I promised in my last post, we I will talk about some new Squish features which we are working on here. Today I’d like to talk about some object name enhancements which will appear in Squish 3.2. In Squish 3.1 we already introduced multi-property names in Squish as an alternative (now default) object naming scheme (Squish/Web uses this since 3.0 already). Admittingly there were some bugs in Squish 3.1.0′ multi-property name generation for Squish/Qt, but it works quite well in 3.1.1 now. Such a name may look like {type=’QPushButton’ label=’OK’ windowCaption=’MySuperApp 2.9′ windowType=’QDialog’} This will identify the OK button in the dialog with the caption ‘MySuper App 2.9′. Note that this name is quite robust because it will work even if the dialog’s internal hierarchy/structure changes and also it is robust even though no QObject name has been set for the button. But there is one disadvantage: The...

    Read more
    froglogic
  • Testing Java applets with Squish/Java

    By on February 19, 2007

    Since we released our new Squish/Java edition, we got asked a few times if it is possible to test java apples with Squish/Java. While we don’t support testing applets running in a web browser yet, it is possible to test them through the appletviewer. On Windows, just create a batch file which looks like c:\java\bin\appletviewer -J%SQUISH_JAVA_DEF_1% -J%SQUISH_JAVA_DEF_2% c:\java\demo\jfc\SwingApplet\SwingApplet.html Similarly, on Linux create a shell script #!/bin/sh /usr/local/jdk/bin/appletviewer -J$SQUISH_JAVA_DEF_1 -J$SQUISH_JAVA_DEF_2 /usr/local/jdk/demo/jfc/SwingApplet/SwingApplet.html Now set the batch file or script as AUT and start recording! BTW: SQUISH_JAVA_DEF_1 and SQUISH_JAVA_DEF_2 are set by Squish when starting up the AUT and expand to some options to be passed to the Java runtime. For future versions of Squish/Java we will add support for testing java applets in the web browser. That combined with Squish/Web will be then really powerful allowing to test the HTML page and java applet in an integrated test. Well, we will...

    Read more
    froglogic
  • Welcome

    By on February 19, 2007

    The froglogic web log – short FrogBlog – is officially online as of today. We have been looking for ways to improve communication with our users for quite some time. A blog seemed like a good choice. We are not exactly a large corporation but keeping each of our users informed about we are working on has already become a challenge. Our development process is also very much demand driven so we invite everyone to make suggestions and provide feedback. This site is running the WordPress blogging software which appeared to be a good candidate after a little bit of searching. It was very easy to set up. Not as fast as suggested by the The Famous 5-Minute Installation guide but almost. Not much customization has been done on the templates and various settings so far but will surely happen over time. I see that Frerich has already beaten...

    Read more
    froglogic
  • Processing squishrunners XML Output

    By on February 19, 2007

    One feature of our squishrunner program (which starts and controls the test execution) is that the output of the test can be given in different formats. This can be accomplished by using the ‘–reportgen’ argument and specifying an output format and an output file (i.e. ‘–reportgen xml,/tmp/results.xml’). In particular, the current version lets you generate an Excel table or a XML file with the test results instead of plain text output. The former is a simple way to make your PHB happy, the latter can be used as a hook into a whole new range of test result visualizations.

    Read more
    froglogic
Load More