HIDDEN
TREASURESTESTCOMPLETE SCRIPT
EXTENSIONS
WHO AM
I?
• Over 16 years of experience in software testing, both manual and
automated
• SmartBear TestComplete user from before it was called TestComplete
• Community Hero on SmartBear Community forums 2016 and 2017
• Register and Visit at https://community.smartbear.com/
SCRIPT EXTENSIONS – WHY
BOTHER?
THE EVER PRESENT
HOPE
• Test automation projects move away from simple
record/playback implementation
• Movement toward coded frameworks and modularized
maintainable code
• Most projects fall somewhere in the middle
NEW PROBLEMS TO
SOLVE
• Modularized code implemented across multiple
projects
• USEUNIT, import
• Shared script units between projects
• Maintaining dependencies
• Teams with diverse skill levels
• Experienced script code writers
• Test writers with minimal coding experience
• Various degrees in between
NEW PROBLEMS TO
SOLVE
• Need for rapid test development
• Need “building blocks” to create tests
• Centralized repository for such building
blocks
• Securing Critical Code
• Move code out of TestComplete IDE
• Prevent changes for low level procedures
SCRIPT
EXTENSIONS
SCRIPT EXTENSIONS -
DEFINED
• SCRIPT – Uses script code language (JScript and VBScript)
• EXTENSION – Extends the functionality of TestComplete
• A technological tool that allows script coders the ability to
extend and enhance the functionality of TestComplete
SCRIPT EXTENSIONS – WHAT THEY
CAN DO
• Custom Record Time Actions
• Create a custom checkpoint type
• Pre-Installed: Clipboard and Manual Checkpoints
• https://github.com/smartbear-
testcomplete/HTMLTableCheckpoint
• Custom Design Time Actions
• Checkpoints again
• Can be used to generate script code for standard tasks
SCRIPT EXTENSIONS – WHAT THEY
CAN DO
• Custom Keyword Test Operations
• Special operations to use in keyword tests
• Pre-Installed: LogAttributes
• Custom Test Results Operations
• Interfaces to process log results to external
tools
• Pre-Installed: Bugzilla, Jira, QAComplete
SCRIPT EXTENSIONS – WHAT THEY
CAN DO
• Custom Script Objects
• What I use most often
• Take script code and turn it into objects
• Some examples available
• Compare Excel or Word documents
• Calling functions with “out” parameters in
JavaScript/JScript
• Pre-Installed: WMI objects
SCRIPT EXTENSIONS – SOLVING
PROBLEMS
• Remove the need for USEUNIT or import for universal
code
• Encapsulates complex code functions for ease of use
• Easily accessible libraries of “building block” code
segments
• Secures critical code to prevent accidental alteration
DEMONSTRATI
ONCREATING A SCRIPT OBJECT
EXTENSION
SCRIPT EXTENSION
AVAILABILITY
• Community Members write script extensions for
universal use
• Central location to download extensions
• https://github.com/smartbear-testcomplete
• Available Extensions from me
• sqlUtils
• ogre-utilities
• ??? -> What do you need?

Hidden Treasure - TestComplete Script Extensions

  • 1.
  • 2.
    WHO AM I? • Over16 years of experience in software testing, both manual and automated • SmartBear TestComplete user from before it was called TestComplete • Community Hero on SmartBear Community forums 2016 and 2017 • Register and Visit at https://community.smartbear.com/
  • 3.
  • 4.
    THE EVER PRESENT HOPE •Test automation projects move away from simple record/playback implementation • Movement toward coded frameworks and modularized maintainable code • Most projects fall somewhere in the middle
  • 5.
    NEW PROBLEMS TO SOLVE •Modularized code implemented across multiple projects • USEUNIT, import • Shared script units between projects • Maintaining dependencies • Teams with diverse skill levels • Experienced script code writers • Test writers with minimal coding experience • Various degrees in between
  • 6.
    NEW PROBLEMS TO SOLVE •Need for rapid test development • Need “building blocks” to create tests • Centralized repository for such building blocks • Securing Critical Code • Move code out of TestComplete IDE • Prevent changes for low level procedures
  • 7.
  • 8.
    SCRIPT EXTENSIONS - DEFINED •SCRIPT – Uses script code language (JScript and VBScript) • EXTENSION – Extends the functionality of TestComplete • A technological tool that allows script coders the ability to extend and enhance the functionality of TestComplete
  • 9.
    SCRIPT EXTENSIONS –WHAT THEY CAN DO • Custom Record Time Actions • Create a custom checkpoint type • Pre-Installed: Clipboard and Manual Checkpoints • https://github.com/smartbear- testcomplete/HTMLTableCheckpoint • Custom Design Time Actions • Checkpoints again • Can be used to generate script code for standard tasks
  • 10.
    SCRIPT EXTENSIONS –WHAT THEY CAN DO • Custom Keyword Test Operations • Special operations to use in keyword tests • Pre-Installed: LogAttributes • Custom Test Results Operations • Interfaces to process log results to external tools • Pre-Installed: Bugzilla, Jira, QAComplete
  • 11.
    SCRIPT EXTENSIONS –WHAT THEY CAN DO • Custom Script Objects • What I use most often • Take script code and turn it into objects • Some examples available • Compare Excel or Word documents • Calling functions with “out” parameters in JavaScript/JScript • Pre-Installed: WMI objects
  • 12.
    SCRIPT EXTENSIONS –SOLVING PROBLEMS • Remove the need for USEUNIT or import for universal code • Encapsulates complex code functions for ease of use • Easily accessible libraries of “building block” code segments • Secures critical code to prevent accidental alteration
  • 13.
  • 14.
    SCRIPT EXTENSION AVAILABILITY • CommunityMembers write script extensions for universal use • Central location to download extensions • https://github.com/smartbear-testcomplete • Available Extensions from me • sqlUtils • ogre-utilities • ??? -> What do you need?