soap ui - lesson2
DESCRIPTION
Lesson 2 http://www.qualitestgroup.com/TRANSCRIPT
![Page 1: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/1.jpg)
ANY QUESTIONS??
Introduction to SOAPUI
1
![Page 2: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/2.jpg)
BUILDING TEST CASES
Introduction to SOAPUI
2
![Page 3: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/3.jpg)
Building Test Cases
• Creating Test Suite, Test Cases & Test Steps
• Unit vs. Functional Tests
• Parameterization of Data (Text file, excel, Database)
3
![Page 4: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/4.jpg)
Hierarchy
• Test Suite
– Test Case
• Test Steps– Soap request
– REST request
– HTTP request
– AMF request
– JDBC request
– Data source/Data Gen
– Manual test
– Mock Response
4
![Page 5: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/5.jpg)
Test Suite• From the Project level you can create an
empty Test Suite
5
![Page 6: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/6.jpg)
Test Suite from Operation Level
6
![Page 7: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/7.jpg)
Adding a Request to a Test Case
7
![Page 8: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/8.jpg)
Options for Test Case
8
![Page 9: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/9.jpg)
Test Suite
• Defaults placeholders for Load Tests and security tests are also added:
• Name is operation name + request name
9
![Page 10: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/10.jpg)
Test Case Window
10
![Page 11: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/11.jpg)
Run the Test Case
11
![Page 12: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/12.jpg)
Test Case Properties
12
Add properties such as TestCase Description
![Page 13: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/13.jpg)
Adding New Test Steps• Click on type
of request
• Or drag and drop
existing request
13
![Page 14: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/14.jpg)
Parameterization of Data
• Input data to drive the tests can come from
– Text file
– Excel sheet
– Database
• Can also parameterize the expected outputs
14
![Page 15: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/15.jpg)
DataSource test step
• DataSource – reads test data into properties from some external source
• TestStep – uses the available properties
• DataSource Loop – calls the test step(s) for each record of data
15
![Page 16: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/16.jpg)
Let’s set up another Test Suite
New Test Suite with Test Case
16
![Page 17: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/17.jpg)
Setup Internal Data Source
17
![Page 18: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/18.jpg)
Use Properties to add Columns
18
![Page 19: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/19.jpg)
Add in Data in Grid
19
![Page 20: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/20.jpg)
Add Test Soap Request Test Step
20
![Page 21: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/21.jpg)
Map the Inputs to Test Data
21
![Page 22: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/22.jpg)
Map the 2nd Input Field to the Data
22
![Page 23: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/23.jpg)
Also want to Verify Response
• Click Assertions tab under request
23
![Page 24: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/24.jpg)
Add Assertion
24
![Page 25: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/25.jpg)
Add XPath Assertion
25
![Page 26: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/26.jpg)
Map Expected Result to Data Source
26
![Page 27: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/27.jpg)
Finish Mapping & Save
27
![Page 28: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/28.jpg)
Now add the Loop
28
![Page 29: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/29.jpg)
Then Run the Test
• By default stops on error
29
![Page 30: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/30.jpg)
Double-Click to see Details
30
![Page 31: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/31.jpg)
Update Expected Results
31
![Page 32: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/32.jpg)
Data Source- Excel
• Convert existing data store to EXCEL
32
![Page 33: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/33.jpg)
33
![Page 34: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/34.jpg)
Add Properties Back
34
![Page 35: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/35.jpg)
Data Mapping
• If data source name and properties are the same, no need to remap
35
![Page 36: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/36.jpg)
Set Test Case Options
36
![Page 37: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/37.jpg)
PTO Patent Validation
• Let’s take a look at
• http://patft.uspto.gov/netahtml/PTO/index.html
• And the Bib WSDL
37
![Page 38: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/38.jpg)
38
![Page 39: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/39.jpg)
Quick or Advanced Search
39
![Page 40: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/40.jpg)
Pick one & Review Data
40
![Page 41: Soap UI - Lesson2](https://reader031.vdocument.in/reader031/viewer/2022012405/55957f351a28abfc028b47f0/html5/thumbnails/41.jpg)
Data
41