What are the API Testing Tools ?
Few tools available to test the REST / SOAP API with out writing any code.With that simple test can verify web service is working fine or not.
Share the widely used API Tools information?
Below are the tools which i used in my experience.
- Hurl
- Postman
- SoapUI
Explain each one ?
SoapUI
|
PostMan
|
Hurl.it
|
Specifically
built tool for API functional testing.
|
Google
Chrome Extension for API testing.
|
Online
link available foe API testing.
|
Download
SoapUI Open Source
|
Google
Chrome Webstore – Add this extension
Sign in
using below
Note: If we have account, Can login to any machine
and get all the API collections which we tested.
|
|
Supports
both REST & SOAP
|
Supports
both REST & SOAP, But mostly used for REST API testing
|
Only
REST API testing supported.
|
Time Saving
– The raised request can be save and can re-run later point of time.
|
Time Saving
– The raised request can be save and can re-run later point of time.
|
Time Consuming
– Every time need to enter the request details.
|
Installation
needed
|
Extension
need to be added
|
Not required
any installation, Directly access by url
|
How to access Salesforce API from external application?
- Create a Connected app in Salesforce. Share Consumer Key,Consumer Secret with client.
- Create a user with access API only access.As best practice create a separate profile API access and create a user under that.Share that user credentials with external application.
- Note: This user credentials will be shared with external application,So it should have permission only 'API Only User' to limit that credential access.
- Generate Access Token from these values & Send CRUD request along with Access Token.
How to generate access token from "Hurl" tool ?
Please enter below details to get the access token
POST
|
https://salesforce.com/services/oauth2/token
|
||
Authentication
|
Basic Authentication, Add Username & Password
|
||
Headers
|
|
||
Parameters
:
|
|||
username
|
deepik@gmail.com
|
||
password
|
pwd
|
||
client_id
|
3MVG9d8..z..iQcL79m2_ABa8Kiq5mtRIW88bMQS5JVc6_4_zdyIjDZ8
|
||
client_secret
|
127141494000000000000
|
||
grant_type
|
password
|
Some times you get Invalid_grant / Authentication Failure error? What could be the reason?
1. If your organization security token is enabled,Need to add password+security token in above password field
2. If IP range is enabled and still getting the above error,Please verify on connected app permission is granted or not.Provide the permission for that user.
How to get the user details from Salesforce by passing the user id from external application?
GET
|
https://salesforce.com/services/apexrest/User/
| ||||
Headers
|
| ||||
Parameters
|
|
What is the significance of "Bearer" in Authorization request?
Authentication Type.
This comment has been removed by the author.
ReplyDeleteNicely crafted information. Keep up the good work
ReplyDeleteVery informative.
ReplyDeleteVery usefull
ReplyDeleteYour information related to software testing is really very useful for freshers....Thanks for sharing this informative blog..Keep posting..
ReplyDeleteSoftware Testing Services
Software Testing Services in India
Software Testing Companies in India
Software Testing Services in USA
Software Testing Companies in USA
Software Testing Companies
Software Testing Services Company
Software Testing and Quality Assurance
Thanks for sharing such a knowledgeable content. This is very helpful for us. Keep it up. Also read more about API Testing Tools
ReplyDelete