SoapUI
- SoapUI is agile testing tool
- Popular advance api testing
tool
- Support various protocol
- Open source tool
- Automate functional and non functional testing
- Platform and language independent
- Auto mock creation
Important SoapUI features
- Extends http for xml messaging
- Drag and drop test creation
- Supports for test debugging
- Supports multiple environments- protocols-soap,rest including data driven testing
- Increase test coverage
WSDL
- Web service description language
- Xml based definition language
- Soap based services testing oriented files
- Defines various aspects of SOAP messages
- Whether elements or attibutes are allowed to appear multiple times
- Required or optional elements and
attributes
- Specific order of elements
WSDL
- Webservices breaks in 3 category
- Input, output and map
- Elements of WSDL
- Types- data types
- Operations -accept and transition-naming message, message queue
- Binding
- Pattern of operation
- One way
- Request- response
- Solicit-response
- Notifications
Tips to test web service login
- SQL injection tests
- Log in and log in again
- Lockout
- Element duplication
API testing with SoapUI
- Create soap project
- Enter WSDL and
under it various APIs
- Right click WSDL and
create test suite select APIs and ok
- Test suits contains list of test cases with name of APIs
- Expand test case > test steps> click on
request
Initialization of project
- File>new soap project or click soap icon
- Enter project name and WSDL (uri)
- Under the project having green arrow WSDL file and under that various APIs and requests
Adding WSDL to project
- Specify the initial WSDL
- Rename project
- Click ok
Create
test suits
- Expand project> contains WSDL file>list of APIs
- Right click on WSDL file >
generate test suite and click ok
- Rename the test suite
REST API
- Soap is protocol designed before rest
- Soap works on different platform, while design
specific to media components
- Webservices defined as platform on rest
- Rest supports get, push put and delete
- File>new rest project will create new rest
project> enter URI of API- uniform
resource identifier
No comments:
Post a Comment