Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Application Testing Guide
Previous Page Home Next Page

Datapool Editor

Datapools are edited using the Datapool Editor. The editor contains the following tabs:

Overview

This tab provides an overview of the datapool, including its general information, variables, and equivalence classes.

This tab contains the following sections:

  • General Information

    Contains the datapool's name, description, and file path within the workspace. The datapool's name1 and description are editable.


  • Variables

    Contains the variables associated with the datapool.


    Variables can be added to the list by clicking the Add button.


    Selected variables can be removed (Remove), moved up (Up), or moved down (Down).


    Variable names can be edited by double-clicking the variable or selecting the variable and pressing F2.


  • Equivalence Classes

    Contains the equivalence classes associated with the datapool.


    Equivalence classes can be added to the list by clicking the Add button.


    Selected equivalence classes can be removed (Remove), moved up (Up), moved down (Down), or opened in the associated tab (Open...).


    Equivalence class names can be edited by double-clicking the equivalence class or selecting the equivalence class and pressing F2.


[1] Datapools have a file name and logical name. The logical name is used in the Test Navigator of the Test Perspective, dialogs, editors, and wizards to represent the datapool. The file name represents the datapool file (*.datapool) within the workspace. When the datapool is created, the logical name defaults to the file name (excluding the .artifact file extension) and may be modified without modifying the file name. The logical name allows customization of the datapool name without affecting the file name within the workspace.

Equivalence Classes2

This tab contains the datapool table with the variables (or columns) for the datapool, records (or rows) for the equivalence class, and cells for the records:

  • Variables

    Each variable has an associated name and type (for example, String, Number, Boolean, Enumeration, and Complex) that are used in the variable column name (for example, <variable name>::<variable type>) in the datapool table. Each variable is positioned in the datapool table relative to the other variables in the datapool. Variables may be encrypted for sensitive data, such as user identifiers. Variables are encrypted with a password for the datapool.


    Variables can be inserted (right-click on the datapool table and select Insert Variable...), removed (right-click a variable column in the datapool table and select Remove Variable), and their properties (name, type, position, encryption, and password) edited (right-click a variable column in the datapool table and select Edit Variable... or select the variable column name in the datapool table).


  • Records

    Each record has an associated number that is used in the first column in the datapool table. Each record is positioned in the datapool table relative to the other records in the equivalence class.


    Records can be inserted (right-click on the datapool table and select Insert Record), removed (right-click the record number in the first column in the datapool table and select Remove Record), and their properties (position) edited (right-click the record number in the first column in the datapool table and select Edit Record...).


    Selected records (click the record number in the first column in the datapool table) or multiple selected records (hold Ctrl and click the record numbers in the first column in the datapool table) can be cut (right-click and select Cut, Ctrl+X, or select Edit > Cut from the file menu), copied (right-click and select Copy, Ctrl+C, or select Edit > Copy from the file menu), and deleted (press Delete). Copied records can be pasted (right-click the record number in the first column in the datapool table and select Paste, Ctrl+V, or select Edit > Paste from the file menu).


  • Cells

    Cells can be edited by double-clicking the cell in the datapool table.


    Selected cells can be cut (right-click and select Cut Ctrl+X, Ctrl+X, or select Edit > Cut Ctrl+X from the file menu), copied (right-click and select Copy Ctrl+C, Ctrl+C, or select Edit > Copy Ctrl+C from the file menu), and deleted (press Delete). Copied cells or the system clipboard can be pasted (right-click the cell and select Paste Ctrl+V, Ctrl+V, or select Edit > Ctrl+V Paste from the file menu).


    Cells can be searched and replaced (right-click and select Find/Replace... Ctrl+F, Ctrl+F, or select Edit > Find/Replace... Ctrl+F from the file menu). When searching, the next cell containing one or more occurrences of the search string is selected. When replacing, all occurrences of the search string are replaced by the replace string in the selected cell. Note, encrypted cells are not searched or replaced due to the sensitive nature of the data. To search and replace encrypted cells, decrypt the variable, perform the search and replace operations, and re-encrypt the variable.


[2] Each equivalence class has an associated tab named <Equivalence Class Name>.

Related tasks
Creating a datapool
Importing a Comma-Separated Value (CSV) file as a Datapool
Exporting a Datapool as a Comma-Separated Value (CSV) file

Related samples
Tutorial: Accessing a datapool from a TPTP JUnit test


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire