public class RobotEasyCsv extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ROBOT_LIBRARY_SCOPE |
static String |
ROBOT_LIBRARY_VERSION |
| Constructor and Description |
|---|
RobotEasyCsv() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAllCsvValues(String selector)
Get the values of all cells matching the given selector expression.
|
String |
getFirstCsvValue(String selector)
Get the value of the first cell matching the given selector expression.
|
void |
parseCsvFromFile(String pathToCsv,
int headerLineIndex)
Parse a CSV file from the given path
Arguments:
- _pathToCsv_: path to the CSV file
- _headerLineIndex_: the line index of the header line within CSV.
|
void |
saveCsvToFile(String filePath)
Save the CSV to file.
|
void |
setCsvValues(String selector,
String value)
Set the value of a the cell(s) matching the given selector expression.
|
public static final String ROBOT_LIBRARY_VERSION
public static final String ROBOT_LIBRARY_SCOPE
public void parseCsvFromFile(String pathToCsv, int headerLineIndex)
public void setCsvValues(String selector, String value)
public String getFirstCsvValue(String selector)
public List<String> getAllCsvValues(String selector)
The keyword returns list of values without further information about the corresponding source cells. Arguments: - _selector_: a valid CSV selector expression Example: | &{name}= | Parse Csv From File | [city=^Karlsruhe*$].name |
public void saveCsvToFile(String filePath)
Copyright © 2016. All Rights Reserved.