cancel
Showing results for 
Search instead for 
Did you mean: 

sharing session coockie between 2 different tasks ?

Highlighted
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
Highlighted

RE: sharing session coockie between 2 different tasks ?

Hi Roman,


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



Best regards,
Alexey

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!
Highlighted
New Contributor

RE: sharing session coockie between 2 different tasks ?

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 ?

 
Highlighted
Community Hero

RE: sharing session coockie between 2 different tasks ?

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 Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Highlighted

RE: sharing session coockie between 2 different tasks ?

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

 Join SmartBear Connect next April in Boston to meet with software development, API and testing experts from around the world! Get your ticket today!