Search in sources :

Example 1 with DataMapper

use of io.syndesis.qe.pages.integrations.editor.add.steps.DataMapper in project syndesis-qe by syndesisio.

the class ServiceNowSteps method mapModifiedNumberToIncidentNumber.

/**
 * Number is modified according to browser name. (due to parallelization)
 */
@When("define modified service now number {string} and map it to {string}")
public void mapModifiedNumberToIncidentNumber(String incidentNumber, String mapTo) {
    String modifiedNumber = snUtils.modifySNNumber(incidentNumber);
    DataMapper mapper = new DataMapper();
    mapper.addConstant(modifiedNumber, "String");
    mapper.openDataMapperCollectionElement();
    mapper.doCreateMapping(modifiedNumber, mapTo);
}
Also used : DataMapper(io.syndesis.qe.pages.integrations.editor.add.steps.DataMapper) When(io.cucumber.java.en.When)

Example 2 with DataMapper

use of io.syndesis.qe.pages.integrations.editor.add.steps.DataMapper in project syndesis-qe by syndesisio.

the class GoogleSheetsSteps method defineSpreadsheetIdInDatamapper.

private void defineSpreadsheetIdInDatamapper(String id, String mapTo) {
    DataMapper mapper = new DataMapper();
    mapper.addConstant(id, "String");
    mapper.openDataMapperCollectionElement();
    mapper.doCreateMapping(id, mapTo);
}
Also used : DataMapper(io.syndesis.qe.pages.integrations.editor.add.steps.DataMapper)

Aggregations

DataMapper (io.syndesis.qe.pages.integrations.editor.add.steps.DataMapper)2 When (io.cucumber.java.en.When)1