Pages

How to start testing SoapuI 5.3.0 Sample Twitter API Project


If you have selected tutorials under components while downloading SOAPUI 5.3.0, you can access SoapUI Tutorials from SoapUI-Tutorials directory directly. If you haven't you can follow the steps and download it from https://www.soapui.org/tutorials/twitter.html

Sample Twitter Project requires OAuth 1.0 for authentication for SoapUI events. To get OAuth you need to sign in and create an App at https://apps.twitter.com/. Click Create New App and specify application details. After you have created the App, you can click Keys and Access Tokens to get
  • Consumer Key (API Key)
  • Consumer Secret (API Secret)
  • Access Token
  • Access Token Secret
You can change permissions for your App depending on what you want to do with Sample Twitter  Project in SoapUI.
Next, you need to add all the required OAuth keys and tokens for your App at Project level Custom Properties as in screenshot below

Now to test if the REST request are calling the services,  Open the desired request and click on Auth (Profile) as below

Now select Add New Authorization in the Authorization drop down list as below
Select OAuth 1.0 in type and specify a unique profile name. Then click Add Token and specify keys and URLs in screen below

You can get URLs from Details tab of your App you created.

If your keys are authenticated, you will see them in green color with a green check mark as below. Now you are all set to play around with Sample Twitter API Requests in SoapUI 5.3.0.


No comments:

Post a Comment