Ask a Question

How to get type of data source step like jdbc or excel via groovy

SOLVED
ripplegupta
Contributor

How to get type of data source step like jdbc or excel via groovy

Hi, I have question that how to get type used in data source step in groovy like jdbc, data connection, excel etc.

If (getTestStep.config.type == "datasource")
As per above script, if condition can validate if step is of type data source but what if i want to validate if datasource is of type jdbc ?
1 ACCEPTED SOLUTION

Accepted Solutions
Radford
Super Contributor

Re: How to get type of data source step like jdbc or excel via groovy

Take a look at the getDataSource() method of the class WsdlDataSourceTestStep, this returns a DataSource object which has a getType() method.

 

I've never had to use this so don't know if this is the most approprate solution for you, but perhaps its a good place to start.

View solution in original post

1 REPLY 1
Radford
Super Contributor

Re: How to get type of data source step like jdbc or excel via groovy

Take a look at the getDataSource() method of the class WsdlDataSourceTestStep, this returns a DataSource object which has a getType() method.

 

I've never had to use this so don't know if this is the most approprate solution for you, but perhaps its a good place to start.

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: