Jump to content


Photo

Server push inside session using WAPT

ServerPush

  • Please log in to reply
1 reply to this topic

#1 PeterB

PeterB

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 16 February 2017 - 09:59 AM

My application uses server push to notify the client of changes, how can I integrate this in WAPT?

 

This is how it works:

During login, the server assigns a session id to each client -> I have been able to extract this id into a variable

Then the client sends a push request using the session id -> Also no problem using the variable for sessions id

-

What now happens is, that the server either sends push data in 200OK during a 120 seconds timeframe, or answers 120 seconds after the client request with a 200OK plus timeout information.

During the 120 sec timeframe, the client of course should send it's regular requests to the server, so the entire server push mechanism must be running in parallel to the regular user session.

After an answer from the server, the client sends a fresh push request, to keep the server push channel open. This goes on, until the client logs out.

 

Is it possible to replicate this in WAPT?

 

 



#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 662 posts

Posted 17 February 2017 - 10:31 AM

You can convert your push request to streaming request. Just select it and click on Convert To Streaming in right click menu.

Streaming request will be executed in parallel.


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users