Table of Contents

Modeling 2.0

This option of the TAST tool allows the user to manage UML diagrams. It will also be able to manage the data and manage the repositories of the test cases that are designed.



UML Diagram 2.0

This option of the TAST tool allows the user to manage all treatments associated with UML diagrams.

How to create an UML diagram

UML diagrams are completely necessary for the creation of the test cases. That is because every message of the diagram represents an action that will be carried on in the test (click or type, for instance). In the next paragraphs, it is explained how can an UML diagram be created.

When logged in the tool, the user can see a menu in the left side (see First steps in TAST for further info). In this menu, the user will click on the button “Modeling”.


Once in the Modeling page, the user can proceed in three ways:



Where you will have to fill in the following fields:

Edit diagram

This option of the TAST tool allows create / modify a diagram.

Below we see the screen or canvas to edit a diagram. It is the Canvas 2.0. At the top right (marked in red), is the Canvas toolbar, which offers different options for the design of the diagram. Let's look at them below:


Checking in object properties tab

The object or objects (Adapters), is the main element when creating a diagram. Two tabs help to define the name of the object, its properties and initialization or configuration parameters, to be able to interact with web pages, files, API, scripts, remote, DB.



Checking in message properties tab

In a message, by double click over it, is possible to indicate the type of action when the step is executed based on the following checkbox:


  1. Locking step: If this message fails, the test execution will stop and the test will end.
  2. Optional step: The result of this step will not impact the test result.
  3. Comment out: If this check is marked, the message will not be executed.
  4. Breakpoint: The breakpoint check is used to stop the execution of the test in this step. It is helpfull during the creation of the diagram.

Guards

A guard is a logical condition that can be included in a UML message. The behavior is as follow, when the logical condition is true, the message is executed, when the logical condition is false, the message is NOT executed.

A guard is really useful when an action must or must not be executed, based on the result of a condition.



The conditions inside a guard can be of two types:

Following some examples about simple and complex conditions in a Guard:

Multiple line text

In the mapping of a message, is possible to include a value with line skipping. For this, there is a checkbox 'Multiline Text':



If the checkbox is selected, an editor will appear to include the text:




Reply message

This message has to be tied to another message between two objects and is painted in the opposite direction. The two messages form a set and are not treated separately.


Gates

This option of the TAST tool allows the user to pass information between sequence diagrams. Gates can be an easy way to model the passing of information between a sequence diagram and its context. A gate is merely a message that is illustrated with one end connected to the sequence diagram's frame's edge and the other end connected to a lifeline and represents another diagram.

About Gates, please consider the following important topics:

How to Create a Gate:

In the toolbar, select the Gate and draw on the lifeline. Double click and open the Gate properties, where you choose the domain, the project and the diagram you want to copy.



The selected diagram can be visualized by clicking on the icon of the image.



By clicking on the message map, it is displayed.



DATA MANAGEMENT: Allows to assign test case data to each Gate included in the diagrams.



EXECUTION OF TEST SET WITH GATES: A Test Set containing Gates is created and executed.



Combined Fragments

This option of the TAST tool allows the user to handle bifurcations and loops.

TAST allows the following types of combined fragment:

SubTestCases

Subtestcases are test cases that can be drawn inside a diagram. The reason to implement the subtestcases consists in having a visual option to create test cases in a diagram instead of only in Data Management. Also, to obtain a result (or/and log) with an isolated portion of a diagram (test case) apart of the main result or log.

How to use it in a diagram

To use a subtestcase in a diagram, go to the toolbar, click on the ”+” icon and then select subtestcase. You can also use “ALT + S” as a shortcut to draw it. To place it on the canvas you will have to click where you want to place it.



Once drawn, the subtestcase can be resized with the small light green square at the bottom right of the subtestcase. Subtestcases can be moved (by selecting and dragging) in any direction. The only limitation to the vertical movement is that they do not exceed the line of the adapters.



To open the subtestcases properties, double click in the subtestcase and it will appear, here you can change the name of the subtestcase (up to 100 characters) and add/edit a guard. Also you can set a name with a variable like: “name of the subtestcase” + #Variable It also works as: ‘name of the subtestcase‘ + #Variable.

SubTestCases specs

There are some things to keep in mind using subtestcases:

  1. All the messages inside the subtestcase will work as usual in the diagram but will generate a different result and log. So, in the end, we will have one global and another with the content of the subtestcase. If you want to retrieve the logs from the client it will look like the following image, inside the folder is the subtestcase log. It will generate a folder for every subtestcase in the diagram.





  2. You cannot nest subtestcases, it will only register one of the subtestcases nested it must be avoided.
  3. Inside a subtestcase can be placed steps and fragments, those fragments can be nested.
  4. Inside a fragment can be placed a subtestcase and that subtestcase can be like the point 3.
  5. The Subtestcases can be deleted, as well as copied and pasted.
  6. Various subtestcases can be placed in the same diagram (but not nested).

SubTestCases in Data Management

In Data Management once you have a diagram with a subtestcase (or various) the SubTestCase will appear as a red rectangle.

Data Management can be used as usually with the addition of subtestcases appearing there.

SubTestCases in Results Page

In results page a new functionality has been added, with the symbol of “+” you can click to deploy a new table with all the subtestcases an execution has. For example, in the following image:

We can see the result as always. But with the new addition:

You can now see the subtestcases results. Here you can download the evidences and the result document of the subtestcase.

In the result document:



In test case data description, you can see the name of the subtestcase, in case that the test case data had a description it will show you “testcasedatadescription_subtestcasename”.

SubTestCase in ALM

In ALM it will show the full evidences of the execution, and all the subtestcases in the execution separatedly (also if you have gates with subtestcases those will be registered aswell).





Diagrams Comments

A new type of element has been added to diagrams: the Comment.

A user who models a diagram can add comments anywhere in the diagram, which will make it easier to understand when dealing with complex diagrams.

Comments will not be taken into account when executing the diagram, just as comments in any source code are not taken into account by the compiler or when executing the code.

Comments in Modeling

To draw comments on the diagram, the new Comment tool is included in the drawing tools menu:



Clicking on the diagram with this tool draws a box with a grey background where we can enter the text of the new comment.

We can also use the shortcut “ALT+C” to draw a comment on the diagram (see the shortcut table in the canvas help):



Like any other element in the diagram, the comment box will initially be red, which indicates that we still need to fill in the comment fields, and then the box will change to a grey background.



Comment properties

By double-clicking on a comment or selecting the “Edit properties” option from the context menu (right-click on a diagram element), we access the properties tab to edit the comment:


A comment has 3 fields:

Diagram with comments



Delete a message

When you want to remove a message from a diagram, TAST offers several alternatives:

The first one allows us to delete the selected object(s) from the diagram by clicking on the trash can icon in the toolbar. The following window appears with 2 possible options for deleting (Delete elements and variables, Delete elements) and a Cancel/back option.




A second one would be to click with the right mouse button on any object in the canvas, a dynamic contextual menu appears, which presents a series of options depending on the type of object. If the “Delete” option is checked, the same previous screen appears and you will confirm whether you want to “Delete elements and variables”, “Delete elements” or “Cancel/go back”.


And finally, we can delete an element (this option only allows us to “Delete elements” or “Cancel/go back”), in a faster way (shortcut), using the keyboard. In this case the Delete key. This information about the keyboard shortcuts in the canvas will be displayed by clicking on the ”?” icon in the toolbar.


And then all the necessary help will be displayed:



Information about the management of UML diagrams

Below, the screen to manage the UML diagrams :



We can see the diagram information by clicking on the 'More info' icon.
You can page the diagrams using the page numbers at the bottom of the screen.

This screen allows:

  - Create a new diagram (// New diagram // option).
  - Save the information of the active diagram on screen (diskette icon).
  - Delete a diagram, using the bin icon.
  - Create a new folder (// + Folder // option).
  - Select diagrams using user filters and mappings, clicking the filter icon.
  - Deactivate the filters used, using the cross icon.
  - Edit a diagram for its update, double click.

Message Properties Tab

In the mapping Tab you set the information at the message level:

Message Mapping Tab

In the mapping Tab you set the information of the parameters of the message. So, the “SearchBy” is the way to find an element in the parameter section (using tags) and the “Element” is the path you obtain from the real element to interact with.

Message documentation Tab

In a TAST diagram, the messages (steps) non-reply can be documented using the “Message documentation” tab in the properties of the same.

In this tab it will be possible to document everything that should be stored in the evidence repository tools such as ALM, Confluence, etc.



This new tab contains the following elements:

How to Move diagram

This option of the Tast tool allows the user to move a diagram to another folder of any domain and project to which they have access. To be able to use it you have to: Go to Model, click on UML Diagrams. The table is shown, where you have to click on the arrow icon located in the Actions column (fourth element). A pop-up appears, in which you select the domain, the project and the folder where you want to move the diagram. Click on “yes”. The diagram has been moved to that folder.





Global Variables

In a diagram, it is possible to use a set of global variables in all the parts where the help of variables is allowed (object mapping, message mapping, …).

The dropdown of variables (including global ones) will appear when typing the character '#':

In TAST, there are currently these global variables:

We can also quickly access the list of global variables through the toolbar. Clicking on the ”?” icon will display “Show Canvas help”.


Next a modal with 3 tabs and choose the “Global Variables” tab which displays the standard global variables available in any diagram.



Predefined Functions - Generation of evidences

Below, the list of predefined functions and the indication of whether they generate evidences or not:

Predefined Function AdaptorGenerates evidences
connectDatabase NO
connect_DBDatabase NO
dBExecuteStatementDatabase NO
dBGetQueryDataDatabase YES
disconnect_DBDatabase NO
getNumColumnsDatabase NO
getNumRowsDatabase NO
getTableValueDatabase NO
tableRecordCountDatabase NO
addSheetExcel File NO
deleteSheetExcel File NO
generateFileAsEvidenceExcel File YES
getCellValueExcel File NO
getColumnByRowSearchExcel File YES
getExcelSheetExcel File NO
getNumColumnsExcel File NO
getNumRowsExcel File NO
getNumValueSearchOnColumnExcel File NO
getRowByColumnSearchExcel File YES
getTableValueExcel File NO
getTableValueByColumnNameExcel File NO
getValuesByPositionExcel File NO
newFileExcel File NO
setCellValueOneParameterEcxel File NO
setColumnValuesExcel File NO
setHeaderExcel File NO
setRowValuesExcel File NO
setTableValueExcel File NO
setSheetExcel File NO
vTableLookUpExcel File YES
vTableLookupArrayExcel File YES
allOptionsAreSelectedGUI HTML YES
clearGUI HTML YES
clearAndTypeGUI HTML YES
clickGUI HTML YES
clickByJavaScriptGUI HTML YES
clickLinkGUI HTML YES
clickPrintGUI HTML NO
closeAllWindowsGUI HTML YES
closeOthersWindowsGUI HTML NO
closeWindowGUI HTML NO
countElementsGUI HTML NO
checkboxGUI HTML YES
checkRadioGUI HTML NO
doubleClickGUI HTML YES
deleteAllCookiesGUI HTML NO
deselectAllOptionsGUI HTML YES
fileDownloadGUI HTML YES
fileDownloadDialogGUI HTML YES
fileUploadGUI HTML NO
getAttributeGUI HTML YES
isCurrentUrlContainsGUI HTML YES
isCurrentUrlEqualsGUI HTML YES
isCurrentUrlMatchesGUI HTML YES
isDisplayedGUI HTML YES
isExistGUI HTML YES
isSelectedGUI HTML YES
isTitleEqualsGUI HTML YES
isTitleMatchesGUI HTML YES
hasOptionWithValueGUI HTML YES
javascriptAlertAcceptGUI HTML NO
javascriptAlertCancelGUI HTML NO
javascriptExecuteGUI HTML NO
loginGUI HTML YES
openUrlGUI HTML YES
optionWithValueIsEnabledGUI HTML YES
optionWithValueIsSelectedGUI HTML YES
pressEnterGUI HTML YES
selectGUI HTML YES
selectAllOptionsGUI HTML YES
selectOptionGUI HTML NO
submitGUI HTML YES
tableCellValueGUI HTML NO
tableCellXPathByPositionGUI HTML NO
tableColumnsNumGUI HTML NO
tableHLookUpXPathGUI HTML NO
tableHtmlGUI HTML YES
tableRowsNumGUI HTML NO
tableVLookUpValueGUI HTML NO
tableVLookUpXPathGUI HTML NO
takeScreenshotGUI HTML YES
typeGUI HTML YES
typeActionGUI HTML NO
typeKeysGUI HTML NO
uncheckboxGUI HTML YES
validateAttributeGUI HTML YES
waitForGUI HTML NO
waitForElementGUI HTML NO
waitForPageLoadGUI HTML NO
newConnect_ScriptScript Generic NO
execute_ScriptScript Generic YES
disconnect_ScriptScript Generic NO
connect_ScriptScript Generic NO
closeFileText Files NO
containsTextText Files NO
countFileLineText Files NO
countTextFile Text Files NO
deleteFtpFileText Files NO
deleteSftpFileText Files NO
generateFileAsEvidenceText Files YES
getFileTextText Files NO
getFtpFileText Files NO
getLineLengthText Files NO
getNumColumnsText Files NO
getOwnerText Files NO
getReadLineText Files NO
getSizeText Files NO
getSftpFileText Files NO
getTableValueText Files NO
getTextFileDataText Files YES
lineContainsTextText Files NO
loadCsvDataText Files YES
newFileText Files NO
openFileText Files NO
openNewFileText Files NO
putFtpFileText Files NO
putSftpFileText Files NO
replaceTextText Files NO
writeEnterText Files NO
writeToText Files NO
assertionUser Object NO
compareParametersUser Object NO
compareVariablesUser Object NO
copyFileUser Object NO
dateAdditionUser Object NO
dateDifferenceUser Object NO
dateWeekDayUser Object NO
executeCommandUser Object NO
executeJavaScriptUser Object NO
failTestUser Object NO
getCurrentDateUser Object NO
getCurrentDateAsDateUser Object NO
getCurrentDateAsStringUser Object NO
isExistVariableUser Object NO
manualTastUser Object YES
removeVariableUser Object NO
replaceAllUser Object NO
saveRepositoryAsEvidenceUser Object YES
sendKeysUser Object NO
sendKeysCombinationUser Object NO
sendKeysPasteUser Object NO
setArrayVariableUser Object NO
setVariableUser Object NO
systemCloseProgramUser Object NO
takeScreenshotUser Object YES
waitForUser Object YES
deleteRestAPI/WebService YES
getALLXMLElementValueByTagNameAPI/WebService YES
getCookieValueAPI/WebService NO
getHeaderValueAPI/WebService NO
getHTMLElementValueByXPathAPI/WebService NO
getJSONElementValueByJsonPathAPI/WebService NO
getJSONElementValueByTagNameAPI/WebService NO
getRestAPI/WebService YES
getResponseStatusAPI/WebService NO
getResponseTimeAPI/WebService NO
getXMLElementValueByXPathAPI/WebService NO
getXMLElementValueByTagNameAPI/WebService NO
patchRestAPI/WebService YES
postRestAPI/WebService YES
putRestAPI/WebService YES
responseBodyContainsTextAPI/WebService NO
setNoneAuthenticationAPI/WebService NO
setBasicAuthenticationAPI/WebService NO
setBearerTokenAuthenticationAPI/WebService NO
setDigestAuthenticationAPI/WebService NO
clearAndWriteFieldHost 3270 YES
clearFieldHost 3270 YES
containsTextHost 3270 YES
getLenghFieldHost 3270 NO
nextScreenHost 3270 YES
previousScreenHost 3270 YES
readFieldHost 3270 YES
readRowHost 3270 YES
readScreenHost 3270 YES
readScreenHost 3270 YES
rowContainsTextHost 3270 YES
waitCRCHost 3270 NO
waitForHost 3270 NO
waitForChangeHost 3270 YES
waitForTextHost 3270 YES
writeAfterLabelHost 3270 YES
writeBeforeLabelHost 3270 YES
writeFieldHost 3270 YES
writeKeyHost 3270 YES
writeKeyUntilFindHost 3270 YES
writeTextHost 3270 YES
checkTextInSlidePDF NO
checkTextOnDocumentPDF NO
checkTextOnPagePDF NO
checkTextOnPageAreaPDF NO
generateFileAsEvidencePDF YES
getGetTextByPageAreaPDF YES
getNumPagesPDF NO
getNumWhitePagesPDF NO
getPageAsImagePDF YES
getPageTextPDF YES
getTextCountOnDocumentPDF NO
getTextCountOnPagePDF NO
isPageWhitePDF NO
generateFileAsEvidenceXML YES
getElementAttrTextByXPathXML NO
getElementsCountByTagNameXML NO
getElementsCountByXPathXML NO
getElementsTextByTagNameXML YES
getElementsTextByXPathXML YES
getElementTextByTagNameXML NO
getElementTextByXPathXML NO
replaceElementAttrTextByXPathXML NO
replaceElementTextByTagNameXML NO
replaceElementTextByXPathXML NO
saveAsXML NO
saveXmlXML NO
xmlToStringXML NO
executeAllServiceOperationsSOAP UI YES
executeAllTestSuiteSOAP UI YES
executeServiceOperationSOAP UI YES
executeTestCaseSOAP UI YES
executeTestStepSOAP UI YES
executeTestSuiteSOAP UI YES
executePostmanCollectionPostman Collection YES
getResponseBodyPostman Collection YES
getResponseStatusCodePostman Collection YES


Shortcuts

You can use the following keyboard shortcuts in the canvas:

Shortcut Description
Esc Close menus and selects the pointer.
Supr Deletes elements if there is one or more elements are selected.
Alt + 9 Unlock diagrama for edition.
Alt + P Selects the pointer tool.
Alt + O Selects the “Adaptor” tool.
Alt + M Selects the “Message” tool.
Alt + R Selects the “Reply message tool”.
Alt + G Selects the “Gate” tool.
Alt + A Selects the “Combined Fragment: ALT” tool.
Alt + D Selects the “Combined Fragment: DO WHILE” tool.
Alt + W Selects the “Combined Fragment: WHILE” tool.
Alt + F Selects the “Combined Fragment: FOR” tool.
Alt + E Selects the “Combined Fragment: FOR EACH” tool.
Alt + S Selects the “Subtestcase” tool.
Ctrl + C Copy selected elements.
Ctrl + V Paste copied elements.
Ctrl + Shift + V Paste copied items on the position of the cursor.
Ctrl + Z Undoes some actions such as: Delete elements, Redistribute diagram, etc…
Ctrl + Shift + F Toggle comment out selected items (messages/gates).
Double click Edit element: double click on a diagram element to edit its properties.
Right button Context menu: by right-clicking on an element, you can access the dynamic context menu. The options of this menu vary and can appear active/not active, depending on the currently selected elements.
Mouse Wheel Zoom in/Zoom out: Ro ll the mouse wheel forward or backward to zoom in or zoom out the canvas respectively.
Shift + click Multiple selection: press “shift” key while click on items to select them.
Shift + drag Multiple drag&drop: press “shift” key while drag and drop all selected items
Click + drag Move diagram: click on an empty diagram place while drag the diagram to any direction to move it.


Multiple Selection of Messages

Selection of objects in the Canvas

By Selecting an object, we can then perform other actions with it (eg delete it, etc.)

Simple selection

To select an object in the canvas, just click on the object (in any of its parts, including the text). To deselect it, just click on an “empty” area of the canvas.

Multiple selection

To select several objects in the canvas, we will press shift-click on the different objects that we want to select.
This allows us to perform actions on that group of selected objects (eg delete them, move them, copy them, etc.)
To deselect them, just click on an “empty” area of the canvas. In multiple selection there is no limitation regarding the type of selected objects. All types of objects can be selected at the same time (messages, gates, fragments…).

Selective Mapping

TAST has an important help when mapping objects and messages in a diagram: Selective Mapping.

The configuration, how to use the functionality, and some considerations are explained in the document below:

tast_selective_mapping_v1.0.doc

tast_selective_mapping_2024.doc

Tast Table Data Management

In an UML diagram, TAST allows the use of variables of a specific type of table, called TastTableData.

These variables can be used with practically all the adaptors available in TAST (HTML GUI, Excel Files, Database, …). They can be used in the “Value” box of a Predefined Function or in Javascript.

Once the TastTableData variables have been created (as output variables), they can be used as input variables in subsequent messages. The way to use them in a “Value box” is:
#TastTableDataVariableName.functionName(params…). From javascript, you will use the syntax functionName(params…)

The functions currently available are:

Output Function Description
StringgetDateWithFormatFromCellValue(int row, int column, String format)From a cell (identified by row and column) whose content is of type DATE (dd/MM/yyyy HH:mm:ss) obtains this value or content in the indicated format. This format must be enclosed in quotation marks.
intgetNumColumns()Returns an integer with the number of columns.
int getNumRows() Returns an integer with the number of rows.
String getStringValue() Returns a string containing the content of the table separating cells with | and rows with ||.
TastRowTableData getTheRow(int index)Returns a row.
N/AaddRowData(TastRowTableData rowData)Adds a row at the end of the table.
TastRowTableData getTheColumn(int index)Returns a column (as a row).
TastDataGeneric getCellValue(int row,int column) Returns the value of a specific cell.
TastDataGeneric getTableValueByColumnName(int rowNum, String columnName) Returns the value of a cell identified by row number and Column name.
N/AsetTableValue(int row, int column, String value)Allows to add a value to a specific cell. The value can be a string, Float or Boolean value, either contained in a variable or hardcoded:

TastTableData is a multidimensional list, or a list of lists. By placing a list inside other lists, we can store information in rows and columns. Let's show an example:

With the SetVariable function we are going to define a variable of type TastTableData.




The different rows appear, containing five columns, each of one type. More rows can be added.


To get all the information that is on the first page of the Excel file, we can use the getExcelSheet function and it is stored in this variable TastOutputTable.




Then, in order to work with TastOutputTable we can use the functions or methods described above.

Tast Row Data Management

TAST allows the use of variables of a specific type of row, called TastRowValues.

These variables can be used with practically all the adaptors available in TAST (HTML GUI, Excel Files, Database, …). They can be used in the “Value” box of a Predefined Function or in Javascript.

Once the TastRowValues variables have been created (as output variables), they can be used as input variables in subsequent messages.

The way to use them in a “Value box” is: #TastRowDataVariableName.functionName(params…) From javascript, you will use the syntax functionName(params…)

In order to be able to work with these variables, some methods or Predefined Functions have been created. The functions currently available are:

Output Function Description
N/AaddCellValue(String value)Allows to add a cell at the end of the TastRowValues.
String getCellValue(int index)Returns the content of a specific cell.
StringgetDateWithFormatFromCellValue(int row, int column, String format)From a cell (identified by column) whose content is of type DATE (dd/MM/yyyy HH:mm:ss) obtains this value or content in the indicated format. This format must be enclosed in quotation marks.
int getLength()Returns the number of cells of the TastRowValues.
StringgetStringValue() Returns the content of the row separating cells with |

TastRowTableData is a collection of data in the form of a list that can be repeated. The number of elements is not fixed or limited in advance. To access the elements an index is used which indicates the position of the element in the collection. This type of data is required in several Adapters.

Let's take an example with two Adapters: User Adapter and Excel Adapter. In the User Adapter we are going to create a variable of this type. We use the Method or the Predefined Function SetVariable, for this we only have to choose the data type: TastRowValue and fill in.








In this other example (message), the column whose row meets a condition is collected from an Excel file through the Excel Adapter. The result is stored in this data type, in the variable OUTPUT.



In this other example (message) we see that we are going to use the variable OUTPUT and we are going to obtain the index cell one, with these methods or Predefined Functions, the first cell is one, it is not zero.



For more information about Variables Management, see the topic “Variable Management”.

The TAST Canvas

TAST has an important feature: the Canvas, which is a place where the user can paint the UML diagrams.

Actually, the Using TAST workflow starts from its Canvas.

Currently Canvas/Modeling 2.0 does not work in Internet Explorer, because IE is a discontinued product. All other browsers Chrome, Edge and Firefox are supported. You can launch the Canvas from several places:

We have created a page where it is explained in detail, its use, the improvements made and all the features it has. TAST Canvas 2.0

Data Management

With this option it will be possible to manage the data sets with which the tests corresponding to a specific diagram will be launched.

The Data Management option has three tabs:

Test Sets Data Window



Displays the list of diagrams for a specific domain and project, with information about their test case data sets and test case sets. In general, we can filter by:

It will also allow you to modify and delete a folder.

In the main window of Data Management, the list of diagrams for the filters used will be displayed, with the following information:

Test Set Data Window



In this window the data of the test cases of a diagram will be created. Is accessed by clicking on any diagram of the Test Sets Data window.

There will be a set of validation data and 1 to n data sets of values. It will be possible to indicate:

You can also view the diagram.

There will be the option to copy the data of the test cases, which can be modified later.

Test Set Data Info Window

There are two ways to access this Information Window:

This new Information Window will provide us with information related to:

Delete Functionality

Back in the Test Set Data Window, we have another functionality to delete massively the Test Case Data (TCD) created for that Test Set (TS).

A new icon with a trash bin inside is located in the upper icon bar.



Once this button is clicked a modal window with all the TCD list will appear.


Different features in this modal window:

Import TCD from an Excel file

In this page you can also to import data from an Excel file. You just need to click in the Import icon to show the Import TC file page.



Then,

  1. You should provide an Excel file with the right order of data.
  2. To set in the page, the correspondence between the column in the Excel file (A, B, etc.) with the related field Description, Test Type, etc.

After you select the file and set the correspondence, you should click the button Import to perform the import process.



How to search an UML diagram in Modeling

This TAST option allows the user to do a search of a diagram (and its Test Case Data) among all the domains of the application. TAST also allows the filtering of Test Set in TS Management in all domains.

To use the search for a UML diagram, click on the filter button for all domains and projects.



The following screen will appear


We can choose between two types of search:

Search by diagram ID

In the search field you type the diagram ID of the search you want to perform, and click on the magnifying glass button. The application shows the diagram with the specified ID in the search.



If you click on the file icon, the diagram will open directly:



Search by diagram name

In the search field you type the characters of the search you want to perform, and click on the magnifying glass button. The application shows all the diagrams of all the domains that contain the characters entered in the search.





If you click on the list icon, the application will switch to the selected Diagram, Domain and Project:



How to search an UML diagram in Data Management

This TAST option allows the user to do a search of a diagram (and its Test Case Data) among all the domains of the application. TAST also allows the filtering of Test Set in TS Management in all domains.

There are two types of searches:

To use the search of an UML diagram in Data Management, follow these steps:

In Modeling, select the Data Management Option.



Click on the filter button of all domains and projects.



Search by diagram ID

In the search field you type the diagram ID of the search you want to perform, and click on the magnifying glass button. The application shows the Test Set Data corresponding to the diagram with the specified ID in the search.



If you click on the file icon, the Test Set Data will open directly:



Search by diagram name

In the search field you type the characters of the search you want to perform, and click on the magnifying glass button.



The application shows all the diagrams of all the domains that contain the characters entered in the search.



If you click on the list icon, the application will switch to the selected Test Case Data, Domain and Project:



Clicking on the diagram, you can see the Test Case Data of the selected diagram.



Repository Management

In this tab, all the repositories that the users are going to use in the diagrams will be stored The repositories are TXT or YML files (they must have YML /YAML format) that we create and upload to this tab and contains information that we can use in a diagram.

Glosary

To evade confusions with the functionality, and to briefly explain how to create repositories we have to know the details about the elements used here. Next we have a detailed example.

Concepts to create a repository:

Features

In the repository management we have different “features”:

Import repositories

In the repository management tab, we have to click the import button in the top right side.



Then a modal window will appear.



In this modal window, we choose the name of the repository, domain and project also the name and where to save it.



Once it is ready, we click import.

If the TXT/YML file is ok, the importation will be perfect.



But if the file has some kind of error, this message will appear:



This can happen for different reasons:

Changes in modeling

In modeling are some changes about repositories as well.

Library Management

Introduction

Library Management provides TAST, and specifically the diagram modeling part, with a library management tool to store, organize and query javascript functions or Sql queries that the user considers useful, for example to be reused in the messages of other diagrams.

Predefined functions such executeJavascript or dbGetQueryData, are examples of messages that include a javascript code or a sql query:





Library Management Page

Library Management Menu

Since this is a tool to support diagram modeling, we find Library Management as a submenu within the main Modeling menu:



Library Management Screen

In this screen we can create, catalogue, edit and browse library elements:



In the following we will see each of the different functionalities of the screen.

Create a New library item

By clicking this button at the top right of the screen, a form appears where the user fills in the fields to register the new library item:



All these fields are mandatories and cannot be empty.

These fields are listed below:

1.Domain & Project

The user has to select a domain and a Project inside it where to save the new item. All users belonging to that domain have access to any of its library items.

2.Type

Select the type of element you are creating, being one of these:

3.Name

Text field to enter a sufficiently descriptive name that identifies the item and subsequently facilitates searches. It cannot contain spaces.

4.Tags

Text field to enter one or more tags (separated by commas) sufficiently descriptive to facilitate cataloguing and searching.

5.Description

Text field to enter a sufficiently descriptive description to facilitate the understanding of the content. For example, in the case of a javascript function, you can briefly describe what the function does, what parameters it receives and what result it returns.

6.Content

By clicking on this field, it expands and takes us to a modal window with the special code editor for entering Javascript or Sql code.

This editor supports copy/paste events from any other editor.



Select Domain



The Library Management page initially lists those items belonging to the current domain. All users who can access this domain can have access to all library items stored in it.

Filters: searching for items in libraries



As mentioned above, all items belonging to the current domain will initially appear in the list.

Later, the user can then refine their search using any of the filters provided, either individually or in combination.

1.Project

You can filter the results according to your project, by default all items within the domain will be displayed.

2.Type

The items are listed by their type: Javascript code or Sql query.

3.Name

If you want to filter results by item name, type a string in this field and press ENTER to accept. The list will show the items whose name is equal to or contains the string entered in this field.

4.Tags

If you want to filter results by item tags, type one or more tags in this field (separated by commas) and press ENTER to accept. The list will show the items whose tags are the same or contain any of the tags entered in this field.

5.Description

If you want to filter results by item description, type a string in this field and press ENTER to accept. The list will display items whose description is equal to or contains the string entered in this field.

Click on the “Clear filters” button when you want to clear the fields and reset them to their initial state.

Table or Results list



The list or table of results shows the library items found according to the search criteria at any given time.

1.The Name, Tags and Description columns show the respective fields and can be sorted alphabetically.


2.Content preview column:
By clicking on the “eye” icon, it expands a preview of the item's content, as well as the last user who edited it:



Click on the icon again to collapse the preview.

3. Actions column:



It contains a number of buttons to perform actions on each library item: edit, edit content, copy and delete.

Edit a library item

Clicking the Edit library item button in the Actions column displays a form where the user can modify any of the fields and save it again. This action also checks that no other user is editing the item at the same time.

Edit the content of a library item

Clicking on the Edit content button in the Actions column takes you directly to the code editor, where the user can modify the javascript or sql code of the item and save it again. This action also checks that no other user is editing the content of the item at the same time.



Copy a library item

Clicking the Copy library item button in the Actions column displays a form to copy this item, for example to another domain or project, and allows you to modify certain fields such as Name, Tags or Description.



Remove a library item

Clicking on the Delete library item button in the Actions column, a confirmation dialog appears to permanently delete this item.



Usability from Modeling

Accessing Library Management from Modeling

If you are modeling a diagram and need to browse the Javascript/Sql code in the libraries, you can do it in two ways:

Manually

By opening a new TAST tab in your browser, where you will open the Library Management screen.

Automatically

Clicking the Open Library Management button from the Modeling Javascript/Sql code editing window will automatically launch the Library Management page in a new tab of your browser.



Note: Remember that the Javascript/Sql code editing window appears in Modeling when editing code in messages such as executeJavascript, or dbGetQueryData, for example.

Saving Javascript/ Sql code from Modeling in a library

If you are modeling a diagram and want to save in a library the javascript/query sql code used in a given message, you can do it in two ways:

Manually

In the Library Management screen the user will create a new item, then copy the Modeling code and finally paste it into the Contents field of the new library item.

Automatically

Clicking the Create new library item button from the Modeling Javascript/Sql code editing window, which will automatically launch the Library Management page in a new tab of your browser, with the Create new library item form open and with the Domain, Project, Type and Content fields already filled in.





Retrieve Javascript/Sql code from a library for use in Modeling

When a user is modeling a diagram and editing the javascript or sql code of a message, and would like to bring the code from one of the libraries, this is the way:

1. Open the Library Management screen in a new tab of your browser and locate the desired code, then copy the code,

2. and simply paste the code into the Modeling Javascript/Sql code editing window.