Ask a Question

sharing session coockie between 2 different tasks ?

roman_glaz
New Contributor

sharing session coockie between 2 different tasks ?

can i share session coockie between 2 different tasks ?



i ill explain:

the first task is Login:  after submit credentials opens Keep-Alive session to server and session coockie created.

the second one is that i try get any resource from the server (but the server verify by session coockie , if i can do this action)



so can i ?
4 REPLIES 4

Hi Roman,


Currently, there is no way to do this. We will consider changing this behavior.



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
roman_glaz
New Contributor

but i found the way:

i catch responce by built-in fuction OnLoadTestingResponse received from one of connections from first Task (the responce body contain set-cookie parameter with sessionID) and i just copy it to request of Task 2.



but i have another question:



can i catch responce triggered not by clients request , i mean "server push" mechanizm ?

 
AlexKaras
Community Hero

Hi Roman,



I may be wrong, or it may be specific to your application, but according to my understanding, (in http) the server does not try to push anything out until it receives the request from the client. (Otherwise, it looks like the server keeps some list of the clients and constantly in cycle tries to 'ping' these clients and send them something if they reply. Such approach seems to be very resource wasteful and may be treated by the (anti-virus/firewall) software as an attack attempt.)

The request from the client may be explicit (triggered by the button press) or implicit (executed on the client start). This is completely irrelevant from the load-testing functionality point of view, as the functionality cares only about requests/responces sequence.

So I think that TestComplete load-testing functionality should work for you after you've found how to handle session ids.
Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

Hi Roman,




can i catch responce triggered not by clients request , i mean "server push" mechanizm ?



The current version of TestComplete does not support the server push technology.



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: