header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
September 08, 2008, 05:19:33 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
SOAP Response Assertion to a TestStep using Java API?
Welcome, Guest. Please login or register.
September 08, 2008, 05:19:33 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  SOAP Response Assertion to a TestStep using Java API?
« previous next »
Pages: [1] Print
Author Topic: SOAP Response Assertion to a TestStep using Java API?  (Read 208 times)
Vallish Shankar
Newbie
*
Posts: 5


« on: May 28, 2008, 08:28:14 pm »

How can I add a SOAPResponseAssertion to a TestStep using Java API?

I am able to create the testcase and teststep programmatically using the following.

WsdlProject project = new WsdlProject(projectFilePath);
WsdlTestSuite testSuite = project.addNewTestSuite("TestSuite");
WsdlTestCase tc = testSuite.addNewTestCase("TestCase" + (i+1));
TestStepConfig config = WsdlTestRequestStepFactory.createConfig(operation, "TestStep1");
WsdlTestStep ts = tc.addTestStep(config);

How do I now add a SOAP Response assertion?

Thanks much in advance!
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,210


« Reply #1 on: May 28, 2008, 08:47:07 pm »

Hi!

try the following:
Code:
...
WsdlTestRequestStep ts = (WsdlTestRequestStep) tc.addTestStep(config);
ts.addAssertion( "SOAP Response" );

works ok?

regards,

/Ole
eviware.com
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header