Ask a Question

How to create DataSource(of type Grid) test step programaticalla via Groovy/Java

SOLVED
jaggu486
Occasional Visitor

How to create DataSource(of type Grid) test step programaticalla via Groovy/Java

 

Hi Team,

 

I am working on one project to automate test steps creation in a test case.

I need to create a project, test suite, test case. In the test case, I need to add data source step programmatically.

 

Here is my code in Java. Stuck here. Need help on how to create data source step of type Grid and add rows.

 

WsdlTestSuite ts =  wadlProject.addNewTestSuite("HelloTestSuite");
WsdlTestCase tc = ts.addNewTestCase("HelloTestCase1");
//WsdlTestStep testStep = tc.addTestStep("datasource","datasource");
TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
testStepConfig.setType("datasource");
testStepConfig.setName("SoapUI Pro DataSource");
ProPlaceholderStepFactory.WsdlProPlaceholderTestStep testStep = (ProPlaceholderStepFactory.WsdlProPlaceholderTestStep)tc.addTestStep(testStepConfig);

 

2 REPLIES 2
nmrao
Champion Level 3

Project creation is one time activity. Why is it considered to create it programmatically?


Regards,
Rao.
sonya_m
SmartBear Alumni (Retired)

Hi @jaggu486 ! Could you explain your use case a little so the Community will understand what you are trying to achieve better in order to help you more efficiently?


Sonya Mihaljova
Community and Education Specialist

cancel
Showing results for 
Search instead for 
Did you mean: