In order to create and maintain your Squash TA test cases, you need several tools. In order to simplify the installation process, we have bundled these tools into the Squash TA Toolbox. The installation of the Squash TA Toolbox is described here.
In order to execute your test cases, you need the Squash TA framework, which is NOT part of the toolbox. No need to install it though, it will be automatically downloaded and installed the first time you will try to run a Squash TA test (the Squash TA framework is integrated as a maven plugin, as we will see later on).
A Squash-TA automated project must have the following structure: (This structure is specific to Squash-TA)
It's a maven Project.
The root of the Squash TA files is the 'src/squashTA' directory. It is subdivided in 5 subdirectories :
The file 'pom.xml' (Project Object Model) is the configuration file of the Maven Project.
In a Squash-TA automated project, all tests cases must be in the 'tests' directory of the project (or in a subdirectory of this directory). A test case is described within a file named TA script. The extension of the file to use is '.ta' and a TA script representing a test case. The scripts 'setup.ta' and 'teardown.ta' are reserved for the ecosystem setup and teardown phases (See below).
A test case can contain 3 phases:
Let's introduce the ecosystem notion in Squash-TA. An ecosystem is a suite of test cases which have in common a setup phase and a teardown phase. It permits to prepare the environement for a specific bunch of test cases and doing so for as many ecosystems you need.
The 'tests' directory of a Squash-TA automated project and its subdirectories correspond each one to an ecosystem as soon as they contain test cases.
The name of the ecosystem (Such as it will appear in the execution reports) is determined by the name of the directory which contains it.
The ecosystem directory contains:
An ecosystem execution takes place in 3 ordered steps (Independant of the order in the directory):
Here is an example with 5 different ecosystems in a Squash-TA automated project:
FAQ : 'How to set up a Squash-TA project?'
TA Framework guide >