public class DataSource
extends java.lang.Object
A DataSource is the top object of a data structure used for data driven testing and holds DataSets.
Example:
A MS Excel (xls) file will be represented by a DataSource.
TestsService| Constructor and Description |
|---|
DataSource() |
DataSource(int id,
java.lang.String name,
java.lang.String typeName,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Gets the textual description for this data source
|
int |
getId()
Gets the ID of the
DataSource |
java.lang.String |
getName()
Gets the Name of the DataSource specified by the upload.
|
java.lang.String |
getTypeName()
Gets the data source type, which can be either
MS Excel, CSV, or JDBC |
void |
setDescription(java.lang.String description)
Sets the textual description for this data source
|
void |
setId(int id)
Sets the ID of the
DataSource |
void |
setName(java.lang.String name)
Sets the Name of the DataSource specified by the upload.
|
void |
setTypeName(java.lang.String typeName)
Sets the data source type, which can be either
MS Excel, CSV, or JDBC |
public DataSource()
public DataSource(int id,
java.lang.String name,
java.lang.String typeName,
java.lang.String description)
public java.lang.String getName()
public void setName(java.lang.String name)
name - public int getId()
DataSourcepublic void setId(int id)
DataSourceid - public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - public java.lang.String getTypeName()
MS Excel, CSV, or JDBCpublic void setTypeName(java.lang.String typeName)
MS Excel, CSV, or JDBCtypeName - Copyright © Micro Focus 2004-2019. All rights reserved.