1
Hello!�Nice to meet you!
2
Find me at:
@ChristinaThalay
3
CONTINUOUS API TESTING
4
5
DRIVING POSTMAN TO MEET NEWMAN FOR REST
“The Challenges Faced, And Decisions Made.”
Christina Thalayasingam
Test Engineering Manager
AGENDA
7
API�TESTING
API
"API" stands for "Application Programming Interface."
API is the layer that sits between the user interface (UI) and the database layer in the creation of software applications (apps). APIs allow data and communication to flow from one software system to another. ��API Testing��API testing is a type of software testing that examines APIs directly, including their functionality, dependability, performance, and security. API testing, which is part of integration testing, tests the logic of the build architecture in a short amount of time.
8
TYPES OF API TESTING
9
WHAT DID WE LOOK FOR IN THE TOOL WE PICKED
- OAuth Tokens
- AWS Signature
10
IMPORTANT NOTE
This presentation does not carry details of how the process is conducted in any specific organization – but it is a compilation of all the important practices that I have followed in the various teams I have worked with.
11
TOOLS THAT WERE COMPARED
COMPARISON CATEGORIES | POSTMAN | INSOMNIA | PAW |
Authentication | No JWT Generation and AuthO | No JWT Generation and AuthO | No NTLM and others were working via Extensions |
Environment | Environments and their variables are segregated per project | Environments can be segregated by workspace – no Variable Grouping | Environments and their variables are segregated per workspace but no color hints |
Assertions/Automated Testing | Yes | No | No |
Save response as “Example” | Yes | No | No |
Plug-ins/Extensions | Does not allow users to create plugin | can create plugins | can create plugins |
GraphQL | Yes, includes schema fetching. | Yes, includes schema fetching. | No |
INTRODUCING�NEWMAN
13
A powerful command-line collection runner for Postman.
LET US GET STARTED
OR
14
HELPFUL FLAGS FOR CUSTOMIZATION
COMPARISON CATEGORIES | POSTMAN |
-h, --help | Output usage information |
-v, --version | Output the version number |
--folder [folderName] | Specify a single folder to run from a collection. |
-e, --environment [file|URL] | Specify a Postman environment as a JSON [file] |
-d, --iteration-data [file] | Specify a data file to use either json or csv |
-g, --globals [file] | Specify a Postman globals file as JSON [file] |
-n, --iteration-count [number] | Define the number of iterations to run |
--delay-request [number] | Specify a delay (in ms) between requests [number] |
--timeout-request [number] | Specify a request timeout (in ms) for a request |
--bail | Stops the runner when a test case fails |
-k, --insecure | Disable strict ssl |
-x, --suppress-exit-code | Continue running tests even after a failure, but exit with code=0 |
TIPS TO KEEP IN MIND WHEN USING NEWMAN
16
TIPS TO KEEP IN MIND WHEN USING NEWMAN
17
$ newman run mycollection.json --reporters cli,json --reporter-json-export outputfile.json
RUN POSTMAN SCRIPTS WITH NEWMAN�DEMO
18
CI/CD WITH NEWMAN AND JENKINS
19
CI/CD WITH NEWMAN AND JENKINS
20
MANAGING MULTIPLE COLLECTIONS WITH DIFFERENT MAUTH PROXIES WITH NEWMAN
22
Thank you very much for your time
If you have any questions please don’t hesitate to contact me at:
23
24
REFERENCES
QUESTIONS
25
?