cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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);

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

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

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


Regards,
Rao.

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

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

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


Regards,
Rao.

View solution in original post

Highlighted
Community Manager

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

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

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors