Chapter 14. API Reference Manual

Table of Contents

14.1. Tester-Created Special Functions
14.2. Equivalent Script API
14.3. Squish API
14.3.1. Constructors, Functions and Properties
14.3.2. Functions and Properties (Mac OS X)
14.3.3. Object Access Functions
14.3.4. Synchronization Functions
14.3.5. Interaction Functions
14.3.6. Debugging Functions
14.3.7. Conversion Functions
14.3.8. Verification Functions
14.3.9. Test Data Functions
14.3.10. Object Map Functions
14.3.11. Application Context
14.3.12. Image Object
14.3.13. squishinfo Object
14.3.14. testSettings Object
14.3.15. Miscellaneous Functions
14.3.16. Low-Level Functions
14.4. Qt Convenience API
14.4.1. QWebView Class
14.4.2. QML Extension API
14.5. Tk Convenience API
14.6. XView Convenience API
14.7. Java™ Convenience API
14.7.1. Native Java Arrays
14.7.2. Java™ Hardcoded Synthetic Properties
14.7.3. Java Extension API for Custom Widgets
14.8. Mac OS X Convenience API
14.9. iPhone Convenience API
14.10. Web Object API
14.10.1. Browser Object
14.10.2. HTML_Anchor Class
14.10.3. HTML_Array Class
14.10.4. HTML_Button Class
14.10.5. HTML_ButtonBase Class
14.10.6. HTML_CheckBox Class
14.10.7. HTML_CustomItem Class
14.10.8. HTML_CustomItemView Class
14.10.9. HTML_Document Class
14.10.10. HTML_Form Class
14.10.11. HTML_FormElement Class
14.10.12. HTML_ImageButton Class
14.10.13. HTML_Object Class
14.10.14. HTML_Option Class
14.10.15. HTML_RadioButton Class
14.10.16. HTML_Select Class
14.10.17. HTML_Style Class
14.10.18. HTML_Text Class
14.10.19. HTML_TextArea Class
14.10.20. HTML_TextBase Class
14.10.21. HTML_XPathResult Class
14.10.22. JavaScript Extension API
14.11. Windows Object API
14.12. Python Notes
14.12.1. Python Modules
14.12.2. Language Documentation
14.13. Tcl Notes
14.13.1. Language Documentation
14.14. JavaScript Notes and Extension APIs
14.14.1. Language Documentation
14.14.2. Language Core
14.14.3. File Object
14.14.4. OS Object
14.14.5. XML Object
14.14.6. SQL
14.15. Perl Notes
14.15.1. Language Documentation

This chapter documents the script APIs which can be used by Squish test scripts. See the Tutorials and the User Guide's User Guide (Chapter 13) section for complete examples that make use of all the main features that Squish's API offers. (Note that extension APIs are documented in the User Guide: QML Extension API (Section 14.4.2) (Qt), JavaScript Extension API (Section 14.10.22) (Web), and Java Extension API for Custom Widgets (Section 14.7.3) (Java).)

[Note]Convenience Function Parameters

Those functions that take an objectOrName argument can be passed a reference to an object or the symbolic or real (multi-property) name of an object as a string. Those functions that take an object argument must be passed an object reference, and those functions that take an objectName must be passed an object's symbolic or real name. (Object references are returned by the waitForObject and findObject functions.)

In this chapter we begin by looking at the special functions that testers create to make their tests usable by Squish. Then we will look at the differences between the supported scripting languages, then Squish's API is covered, then the GUI toolkit-specific convenience APIs are covered, and finally some scripting language-specific issues are dealt with.