While implementing ATG REST WebServices, We need to test them. There are number of tools available to achieve this. Recently I have used HttpRequester, its a great tool.
Below are the key features of this tool.
- Easy to install (Available as addon to firefox).
- Simple User Interface.
- Preserves the history of request So that user can review or re-execute the request.
Here I am going to explain login\logout using HttpRequester. Sometimes we need to test functionality for registered user, to validate login flows. Using below steps user can login into application and then perform activities finally logout from system
Step 1 : Obtain the session identifier.
Call /atg/rest/SessionConfirmationActor/getSessionConfirmationNumber actor chain. This will return the session identifier.
|
Session Confirmation Request |
|
Session Confirmation Response |
Step 2 : Pass this session identifier in further requests using _dynSessConf request parameter.
|
Login Request |
Note : For logout call also you need to use the same identifier.
|
Logout Request |
Below is the Request history window. Here double click on any request, pop up will appear to re-execute the request.
|
HttpRequester Request History Window |
No comments:
Post a Comment